Class: Inventory::Dependencies::Development

Inherits:
Object
  • Object
show all
Includes:
Inventory::Dependency
Defined in:
lib/inventory-1.0/dependencies/development.rb

Overview

A development dependency is one that’s needed during development of a project. It won’t be required when the library is loaded, but it will be added to a Gem specification as a development dependency.

Instance Attribute Summary

Attributes included from Inventory::Dependency

#feature, #major, #minor, #name, #patch

Instance Method Summary collapse

Methods included from Inventory::Dependency

#initialize, #to_s

Instance Method Details

#add_to_gem_specification(specification) ⇒ self

Add the receiver as a development dependency to SPECIFICATION.

Parameters:

  • specification (Gem::Specification)

Returns:

  • (self)


18
19
20
21
# File 'lib/inventory-1.0/dependencies/development.rb', line 18

def add_to_gem_specification(specification)
  specification.add_development_dependency name, gem_requirement
  self
end

#requirenil

Do nothing.

Returns:

  • (nil)


11
12
13
# File 'lib/inventory-1.0/dependencies/development.rb', line 11

def require
  nil
end