librarian 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/CHANGELOG.md +4 -0
  2. data/lib/librarian.rb +5 -178
  3. data/lib/librarian/action.rb +5 -0
  4. data/lib/librarian/action/base.rb +22 -0
  5. data/lib/librarian/action/clean.rb +56 -0
  6. data/lib/librarian/action/ensure.rb +24 -0
  7. data/lib/librarian/action/install.rb +101 -0
  8. data/lib/librarian/action/resolve.rb +81 -0
  9. data/lib/librarian/action/update.rb +76 -0
  10. data/lib/librarian/chef/cli.rb +7 -2
  11. data/lib/librarian/chef/dsl.rb +0 -3
  12. data/lib/librarian/chef/environment.rb +19 -0
  13. data/lib/librarian/chef/extension.rb +1 -16
  14. data/lib/librarian/chef/integration/knife.rb +9 -16
  15. data/lib/librarian/chef/source/git.rb +0 -2
  16. data/lib/librarian/chef/source/local.rb +1 -74
  17. data/lib/librarian/chef/source/local/manifest.rb +82 -0
  18. data/lib/librarian/chef/source/path.rb +0 -2
  19. data/lib/librarian/chef/source/site.rb +9 -89
  20. data/lib/librarian/chef/source/site/manifest.rb +94 -0
  21. data/lib/librarian/cli.rb +56 -17
  22. data/lib/librarian/dependency.rb +2 -2
  23. data/lib/librarian/dsl.rb +15 -5
  24. data/lib/librarian/dsl/receiver.rb +2 -0
  25. data/lib/librarian/dsl/target.rb +13 -1
  26. data/lib/librarian/environment.rb +94 -0
  27. data/lib/librarian/error.rb +4 -0
  28. data/lib/librarian/helpers/debug.rb +6 -6
  29. data/lib/librarian/lockfile.rb +7 -5
  30. data/lib/librarian/lockfile/compiler.rb +5 -4
  31. data/lib/librarian/lockfile/parser.rb +6 -5
  32. data/lib/librarian/manifest.rb +2 -2
  33. data/lib/librarian/mock/cli.rb +6 -1
  34. data/lib/librarian/mock/dsl.rb +0 -3
  35. data/lib/librarian/mock/environment.rb +24 -0
  36. data/lib/librarian/mock/extension.rb +1 -20
  37. data/lib/librarian/mock/source/mock.rb +7 -7
  38. data/lib/librarian/mock/source/mock/registry.rb +16 -12
  39. data/lib/librarian/resolver.rb +5 -116
  40. data/lib/librarian/resolver/implementation.rb +117 -0
  41. data/lib/librarian/source/git.rb +8 -7
  42. data/lib/librarian/source/git/repository.rb +7 -5
  43. data/lib/librarian/source/local.rb +1 -1
  44. data/lib/librarian/source/path.rb +7 -6
  45. data/lib/librarian/spec_change_set.rb +6 -5
  46. data/lib/librarian/specfile.rb +10 -4
  47. data/lib/librarian/version.rb +1 -1
  48. data/librarian.gemspec +1 -0
  49. data/spec/functional/chef/source/git_spec.rb +177 -89
  50. data/spec/functional/chef/source/site_spec.rb +111 -52
  51. data/spec/unit/action/base_spec.rb +18 -0
  52. data/spec/unit/action/clean_spec.rb +133 -0
  53. data/spec/unit/action/ensure_spec.rb +37 -0
  54. data/spec/unit/action/install_spec.rb +113 -0
  55. data/spec/unit/dsl_spec.rb +15 -13
  56. data/spec/unit/environment_spec.rb +9 -0
  57. data/spec/unit/lockfile_spec.rb +15 -4
  58. data/spec/unit/mock/source/mock.rb +22 -0
  59. data/spec/unit/resolver_spec.rb +24 -24
  60. data/spec/unit/spec_change_set_spec.rb +29 -25
  61. metadata +47 -19
  62. data/lib/librarian/chef/particularity.rb +0 -9
  63. data/lib/librarian/mock/particularity.rb +0 -9
  64. data/lib/librarian/particularity.rb +0 -7
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librarian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-25 00:00:00.000000000Z
12
+ date: 2011-11-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &25393320 !ruby/object:Gem::Requirement
16
+ requirement: &22289120 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,21 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *25393320
24
+ version_requirements: *22289120
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &22288700 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *22288700
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: rspec
27
- requirement: &25392900 !ruby/object:Gem::Requirement
38
+ requirement: &22288280 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ! '>='
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: '0'
33
44
  type: :development
34
45
  prerelease: false
35
- version_requirements: *25392900
46
+ version_requirements: *22288280
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: cucumber
38
- requirement: &25392480 !ruby/object:Gem::Requirement
49
+ requirement: &22287860 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: '0'
44
55
  type: :development
45
56
  prerelease: false
46
- version_requirements: *25392480
57
+ version_requirements: *22287860
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: aruba
49
- requirement: &25392060 !ruby/object:Gem::Requirement
60
+ requirement: &22287440 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ! '>='
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: '0'
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *25392060
68
+ version_requirements: *22287440
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: webmock
60
- requirement: &25391640 !ruby/object:Gem::Requirement
71
+ requirement: &22286960 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ! '>='
@@ -65,10 +76,10 @@ dependencies:
65
76
  version: '0'
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *25391640
79
+ version_requirements: *22286960
69
80
  - !ruby/object:Gem::Dependency
70
81
  name: chef
71
- requirement: &25391140 !ruby/object:Gem::Requirement
82
+ requirement: &22286360 !ruby/object:Gem::Requirement
72
83
  none: false
73
84
  requirements:
74
85
  - - ! '>='
@@ -76,10 +87,10 @@ dependencies:
76
87
  version: '0.10'
77
88
  type: :runtime
78
89
  prerelease: false
79
- version_requirements: *25391140
90
+ version_requirements: *22286360
80
91
  - !ruby/object:Gem::Dependency
81
92
  name: highline
82
- requirement: &25390720 !ruby/object:Gem::Requirement
93
+ requirement: &22285800 !ruby/object:Gem::Requirement
83
94
  none: false
84
95
  requirements:
85
96
  - - ! '>='
@@ -87,7 +98,7 @@ dependencies:
87
98
  version: '0'
88
99
  type: :runtime
89
100
  prerelease: false
90
- version_requirements: *25390720
101
+ version_requirements: *22285800
91
102
  description: Librarian
92
103
  email:
93
104
  - y_feldblum@yahoo.com
@@ -111,24 +122,35 @@ files:
111
122
  - features/chef/cli/install.feature
112
123
  - features/support/env.rb
113
124
  - lib/librarian.rb
125
+ - lib/librarian/action.rb
126
+ - lib/librarian/action/base.rb
127
+ - lib/librarian/action/clean.rb
128
+ - lib/librarian/action/ensure.rb
129
+ - lib/librarian/action/install.rb
130
+ - lib/librarian/action/resolve.rb
131
+ - lib/librarian/action/update.rb
114
132
  - lib/librarian/chef.rb
115
133
  - lib/librarian/chef/cli.rb
116
134
  - lib/librarian/chef/dsl.rb
135
+ - lib/librarian/chef/environment.rb
117
136
  - lib/librarian/chef/extension.rb
118
137
  - lib/librarian/chef/integration/knife.rb
119
138
  - lib/librarian/chef/manifest.rb
120
- - lib/librarian/chef/particularity.rb
121
139
  - lib/librarian/chef/source.rb
122
140
  - lib/librarian/chef/source/git.rb
123
141
  - lib/librarian/chef/source/local.rb
142
+ - lib/librarian/chef/source/local/manifest.rb
124
143
  - lib/librarian/chef/source/path.rb
125
144
  - lib/librarian/chef/source/site.rb
145
+ - lib/librarian/chef/source/site/manifest.rb
126
146
  - lib/librarian/chef/templates/Cheffile
127
147
  - lib/librarian/cli.rb
128
148
  - lib/librarian/dependency.rb
129
149
  - lib/librarian/dsl.rb
130
150
  - lib/librarian/dsl/receiver.rb
131
151
  - lib/librarian/dsl/target.rb
152
+ - lib/librarian/environment.rb
153
+ - lib/librarian/error.rb
132
154
  - lib/librarian/helpers.rb
133
155
  - lib/librarian/helpers/debug.rb
134
156
  - lib/librarian/lockfile.rb
@@ -139,14 +161,14 @@ files:
139
161
  - lib/librarian/mock.rb
140
162
  - lib/librarian/mock/cli.rb
141
163
  - lib/librarian/mock/dsl.rb
164
+ - lib/librarian/mock/environment.rb
142
165
  - lib/librarian/mock/extension.rb
143
- - lib/librarian/mock/particularity.rb
144
166
  - lib/librarian/mock/source.rb
145
167
  - lib/librarian/mock/source/mock.rb
146
168
  - lib/librarian/mock/source/mock/registry.rb
147
- - lib/librarian/particularity.rb
148
169
  - lib/librarian/resolution.rb
149
170
  - lib/librarian/resolver.rb
171
+ - lib/librarian/resolver/implementation.rb
150
172
  - lib/librarian/source.rb
151
173
  - lib/librarian/source/git.rb
152
174
  - lib/librarian/source/git/repository.rb
@@ -161,8 +183,14 @@ files:
161
183
  - librarian.gemspec
162
184
  - spec/functional/chef/source/git_spec.rb
163
185
  - spec/functional/chef/source/site_spec.rb
186
+ - spec/unit/action/base_spec.rb
187
+ - spec/unit/action/clean_spec.rb
188
+ - spec/unit/action/ensure_spec.rb
189
+ - spec/unit/action/install_spec.rb
164
190
  - spec/unit/dsl_spec.rb
191
+ - spec/unit/environment_spec.rb
165
192
  - spec/unit/lockfile_spec.rb
193
+ - spec/unit/mock/source/mock.rb
166
194
  - spec/unit/resolver_spec.rb
167
195
  - spec/unit/spec_change_set_spec.rb
168
196
  homepage: ''
@@ -1,9 +0,0 @@
1
- module Librarian
2
- module Chef
3
- module Particularity
4
- def root_module
5
- Chef
6
- end
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module Librarian
2
- module Mock
3
- module Particularity
4
- def root_module
5
- Mock
6
- end
7
- end
8
- end
9
- end
@@ -1,7 +0,0 @@
1
- module Librarian
2
- module Particularity
3
- def root_module
4
- nil
5
- end
6
- end
7
- end