deep_end 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/deep_end.gemspec CHANGED
@@ -17,8 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency "log4r"
21
-
22
20
  gem.add_development_dependency 'rake'
23
21
  gem.add_development_dependency 'rspec'
24
22
  end
@@ -1,3 +1,3 @@
1
1
  module DeepEnd
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -88,6 +88,19 @@ module DeepEnd
88
88
  @graph.resolved_dependencies.length.should == 0
89
89
  end
90
90
 
91
+ it 'should correctly order interdependent objects' do
92
+ # Add dependencies
93
+ @graph.add_dependency @dependency_f, [@dependency_e, @dependency_d]
94
+ @graph.add_dependency @dependency_e, [@dependency_d]
95
+ @graph.add_dependency @dependency_d
96
+ # Check order
97
+ sorted_objects = @graph.resolved_dependencies
98
+ sorted_objects[0].should == @dependency_d
99
+ sorted_objects[1].should == @dependency_e
100
+ sorted_objects[2].should == @dependency_f
101
+ end
102
+
103
+
91
104
  end
92
105
 
93
106
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_end
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,22 +11,6 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: log4r
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: rake
32
16
  requirement: !ruby/object:Gem::Requirement