librarian 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/librarian.rb +5 -178
- data/lib/librarian/action.rb +5 -0
- data/lib/librarian/action/base.rb +22 -0
- data/lib/librarian/action/clean.rb +56 -0
- data/lib/librarian/action/ensure.rb +24 -0
- data/lib/librarian/action/install.rb +101 -0
- data/lib/librarian/action/resolve.rb +81 -0
- data/lib/librarian/action/update.rb +76 -0
- data/lib/librarian/chef/cli.rb +7 -2
- data/lib/librarian/chef/dsl.rb +0 -3
- data/lib/librarian/chef/environment.rb +19 -0
- data/lib/librarian/chef/extension.rb +1 -16
- data/lib/librarian/chef/integration/knife.rb +9 -16
- data/lib/librarian/chef/source/git.rb +0 -2
- data/lib/librarian/chef/source/local.rb +1 -74
- data/lib/librarian/chef/source/local/manifest.rb +82 -0
- data/lib/librarian/chef/source/path.rb +0 -2
- data/lib/librarian/chef/source/site.rb +9 -89
- data/lib/librarian/chef/source/site/manifest.rb +94 -0
- data/lib/librarian/cli.rb +56 -17
- data/lib/librarian/dependency.rb +2 -2
- data/lib/librarian/dsl.rb +15 -5
- data/lib/librarian/dsl/receiver.rb +2 -0
- data/lib/librarian/dsl/target.rb +13 -1
- data/lib/librarian/environment.rb +94 -0
- data/lib/librarian/error.rb +4 -0
- data/lib/librarian/helpers/debug.rb +6 -6
- data/lib/librarian/lockfile.rb +7 -5
- data/lib/librarian/lockfile/compiler.rb +5 -4
- data/lib/librarian/lockfile/parser.rb +6 -5
- data/lib/librarian/manifest.rb +2 -2
- data/lib/librarian/mock/cli.rb +6 -1
- data/lib/librarian/mock/dsl.rb +0 -3
- data/lib/librarian/mock/environment.rb +24 -0
- data/lib/librarian/mock/extension.rb +1 -20
- data/lib/librarian/mock/source/mock.rb +7 -7
- data/lib/librarian/mock/source/mock/registry.rb +16 -12
- data/lib/librarian/resolver.rb +5 -116
- data/lib/librarian/resolver/implementation.rb +117 -0
- data/lib/librarian/source/git.rb +8 -7
- data/lib/librarian/source/git/repository.rb +7 -5
- data/lib/librarian/source/local.rb +1 -1
- data/lib/librarian/source/path.rb +7 -6
- data/lib/librarian/spec_change_set.rb +6 -5
- data/lib/librarian/specfile.rb +10 -4
- data/lib/librarian/version.rb +1 -1
- data/librarian.gemspec +1 -0
- data/spec/functional/chef/source/git_spec.rb +177 -89
- data/spec/functional/chef/source/site_spec.rb +111 -52
- data/spec/unit/action/base_spec.rb +18 -0
- data/spec/unit/action/clean_spec.rb +133 -0
- data/spec/unit/action/ensure_spec.rb +37 -0
- data/spec/unit/action/install_spec.rb +113 -0
- data/spec/unit/dsl_spec.rb +15 -13
- data/spec/unit/environment_spec.rb +9 -0
- data/spec/unit/lockfile_spec.rb +15 -4
- data/spec/unit/mock/source/mock.rb +22 -0
- data/spec/unit/resolver_spec.rb +24 -24
- data/spec/unit/spec_change_set_spec.rb +29 -25
- metadata +47 -19
- data/lib/librarian/chef/particularity.rb +0 -9
- data/lib/librarian/mock/particularity.rb +0 -9
- 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.
|
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-
|
12
|
+
date: 2011-11-13 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
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: *
|
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: &
|
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: *
|
46
|
+
version_requirements: *22288280
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: cucumber
|
38
|
-
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: *
|
57
|
+
version_requirements: *22287860
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: aruba
|
49
|
-
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: *
|
68
|
+
version_requirements: *22287440
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: webmock
|
60
|
-
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: *
|
79
|
+
version_requirements: *22286960
|
69
80
|
- !ruby/object:Gem::Dependency
|
70
81
|
name: chef
|
71
|
-
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: *
|
90
|
+
version_requirements: *22286360
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: highline
|
82
|
-
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: *
|
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: ''
|