inventory 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/inventory-1.0.rb CHANGED
@@ -40,7 +40,7 @@ class Inventory
40
40
 
41
41
  def dependencies
42
42
  Dependencies.new{
43
- development 'inventory', Version.major, Version.minor, Version.patch
43
+ runtime 'inventory', Version.major, Version.minor, Version.patch
44
44
  }
45
45
  end
46
46
 
@@ -113,12 +113,6 @@ class Inventory
113
113
 
114
114
  attr_reader :major, :minor, :patch, :path, :srcdir, :package_path, :package_require
115
115
 
116
- # %w'
117
- # inventory/dependencies.rb
118
- # inventory/dependency.rb
119
- # '.each do |load|
120
- ## Kernel.load File.expand_path('../%s' % load, __FILE__)
121
- # end
122
116
  load File.expand_path('../inventory/version.rb', __FILE__)
123
117
  Version.loads.each do |load|
124
118
  Kernel.load File.expand_path('../%s' % load, __FILE__)
@@ -3,6 +3,10 @@
3
3
  class Inventory::Dependencies::Development
4
4
  include Inventory::Dependency
5
5
 
6
+ def require
7
+ nil
8
+ end
9
+
6
10
  def add_to_gem_specification(specification)
7
11
  specification.add_development_dependency name, gem_requirement
8
12
  self
@@ -2,4 +2,8 @@
2
2
 
3
3
  class Inventory::Dependencies::Optional
4
4
  include Inventory::Dependency
5
+
6
+ def require
7
+ nil
8
+ end
5
9
  end
@@ -2,8 +2,4 @@
2
2
 
3
3
  class Inventory::Dependencies::Runtime
4
4
  include Inventory::Dependency
5
-
6
- def require
7
- require '%s-%d.0' % [name, major]
8
- end
9
5
  end
@@ -15,7 +15,7 @@ module Inventory::Dependency
15
15
  end
16
16
 
17
17
  def require
18
- nil
18
+ super feature
19
19
  end
20
20
 
21
21
  def add_to_gem_specification(specification)
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  class Inventory
4
- Version = Inventory.new(1, 1, 0){
4
+ Version = Inventory.new(1, 1, 1){
5
5
  def dependencies
6
6
  Dependencies.new{
7
7
  development 'lookout', 3, 0, 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: lookout
16
- requirement: &3940080 !ruby/object:Gem::Requirement
16
+ requirement: &10481940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *3940080
24
+ version_requirements: *10481940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: yard
27
- requirement: &3938508 !ruby/object:Gem::Requirement
27
+ requirement: &10480308 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.7.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *3938508
35
+ version_requirements: *10480308
36
36
  description: ! " Inventory\n\n Inventory allows
37
37
  you to create inventories of your Ruby projects. These\n inventories can then
38
38
  be used to load the project, create gem specifications\n and gems, run unit tests,