librarian-puppet 0.9.1 → 0.9.2.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/lib/librarian/puppet.rb +6 -1
  2. data/lib/librarian/puppet/cli.rb +21 -0
  3. data/lib/librarian/puppet/environment.rb +1 -0
  4. data/lib/librarian/puppet/lockfile/parser.rb +53 -0
  5. data/lib/librarian/puppet/source/forge.rb +0 -8
  6. data/lib/librarian/puppet/source/git.rb +29 -0
  7. data/lib/librarian/puppet/source/local.rb +1 -0
  8. data/lib/librarian/puppet/version.rb +5 -0
  9. data/vendor/librarian/CHANGELOG.md +17 -0
  10. data/vendor/librarian/Gemfile +2 -0
  11. data/vendor/librarian/README.md +99 -14
  12. data/vendor/librarian/features/chef/cli/init.feature +1 -0
  13. data/vendor/librarian/features/chef/cli/show.feature +13 -1
  14. data/vendor/librarian/lib/librarian/action/base.rb +6 -4
  15. data/vendor/librarian/lib/librarian/chef/cli.rb +21 -0
  16. data/vendor/librarian/lib/librarian/chef/environment.rb +9 -1
  17. data/vendor/librarian/lib/librarian/chef/manifest_reader.rb +14 -2
  18. data/vendor/librarian/lib/librarian/chef/source/git.rb +13 -0
  19. data/vendor/librarian/lib/librarian/chef/source/local.rb +8 -2
  20. data/vendor/librarian/lib/librarian/chef/source/site.rb +18 -6
  21. data/vendor/librarian/lib/librarian/cli.rb +54 -24
  22. data/vendor/librarian/lib/librarian/config.rb +7 -0
  23. data/vendor/librarian/lib/librarian/config/database.rb +205 -0
  24. data/vendor/librarian/lib/librarian/config/file_source.rb +47 -0
  25. data/vendor/librarian/lib/librarian/config/hash_source.rb +33 -0
  26. data/vendor/librarian/lib/librarian/config/source.rb +149 -0
  27. data/vendor/librarian/lib/librarian/dependency.rb +1 -5
  28. data/vendor/librarian/lib/librarian/dsl.rb +6 -3
  29. data/vendor/librarian/lib/librarian/dsl/target.rb +0 -4
  30. data/vendor/librarian/lib/librarian/environment.rb +30 -25
  31. data/vendor/librarian/lib/librarian/lockfile.rb +0 -4
  32. data/vendor/librarian/lib/librarian/lockfile/compiler.rb +0 -4
  33. data/vendor/librarian/lib/librarian/lockfile/parser.rb +4 -8
  34. data/vendor/librarian/lib/librarian/logger.rb +46 -0
  35. data/vendor/librarian/lib/librarian/manifest.rb +1 -9
  36. data/vendor/librarian/lib/librarian/resolver.rb +6 -1
  37. data/vendor/librarian/lib/librarian/resolver/implementation.rb +1 -5
  38. data/vendor/librarian/lib/librarian/source/git/repository.rb +10 -6
  39. data/vendor/librarian/lib/librarian/source/local.rb +12 -2
  40. data/vendor/librarian/lib/librarian/spec_change_set.rb +6 -3
  41. data/vendor/librarian/lib/librarian/specfile.rb +0 -4
  42. data/vendor/librarian/lib/librarian/version.rb +1 -1
  43. data/vendor/librarian/librarian.gemspec +1 -0
  44. data/vendor/librarian/spec/functional/source/git/repository_spec.rb +149 -0
  45. data/vendor/librarian/spec/unit/config/database_spec.rb +319 -0
  46. data/vendor/librarian/spec/unit/dependency_spec.rb +6 -0
  47. data/vendor/librarian/spec/unit/manifest_spec.rb +6 -0
  48. metadata +107 -66
  49. data/librarian-puppet.gemspec +0 -130
  50. data/vendor/librarian/.rspec +0 -1
  51. data/vendor/librarian/.travis.yml +0 -6
  52. data/vendor/librarian/lib/librarian/helpers/debug.rb +0 -35
@@ -25,6 +25,12 @@ describe Librarian::Dependency do
25
25
  end
26
26
  end
27
27
 
28
+ context "when the name is a single character" do
29
+ it "passes" do
30
+ described_class.new("R", [], nil)
31
+ end
32
+ end
33
+
28
34
  end
29
35
 
30
36
  end
@@ -25,6 +25,12 @@ describe Librarian::Manifest do
25
25
  end
26
26
  end
27
27
 
28
+ context "when the name is a single character" do
29
+ it "passes" do
30
+ described_class.new(nil, "R")
31
+ end
32
+ end
33
+
28
34
  end
29
35
 
30
36
  end
metadata CHANGED
@@ -1,143 +1,175 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: librarian-puppet
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.1
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 0
7
+ - 9
8
+ - 2
9
+ - pre
10
+ version: 0.9.2.pre
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Tim Sharpe
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-06-21 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-08-03 00:00:00 +10:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: thor
16
- requirement: &70127102525360 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
19
26
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '0.15'
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 15
31
+ version: "0.15"
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70127102525360
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: json
27
- requirement: &70127102524860 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
33
44
  type: :runtime
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: puppet
34
48
  prerelease: false
35
- version_requirements: *70127102524860
36
- description: ! "Simplify deployment of your Puppet infrastructure by\n automatically
37
- pulling in modules from the forge and git repositories with\n a single command."
38
- email:
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ type: :runtime
57
+ version_requirements: *id003
58
+ description: |-
59
+ Simplify deployment of your Puppet infrastructure by
60
+ automatically pulling in modules from the forge and git repositories with
61
+ a single command.
62
+ email:
39
63
  - tim@sharpe.id.au
40
- executables:
64
+ executables:
41
65
  - librarian-puppet
42
66
  extensions: []
67
+
43
68
  extra_rdoc_files: []
44
- files:
69
+
70
+ files:
45
71
  - .gitignore
46
72
  - LICENSE
47
73
  - README.md
48
74
  - bin/librarian-puppet
49
- - lib/librarian/puppet.rb
50
75
  - lib/librarian/puppet/cli.rb
51
76
  - lib/librarian/puppet/dsl.rb
52
77
  - lib/librarian/puppet/environment.rb
53
78
  - lib/librarian/puppet/extension.rb
54
- - lib/librarian/puppet/source.rb
79
+ - lib/librarian/puppet/lockfile/parser.rb
55
80
  - lib/librarian/puppet/source/forge.rb
56
81
  - lib/librarian/puppet/source/git.rb
57
82
  - lib/librarian/puppet/source/local.rb
58
83
  - lib/librarian/puppet/source/path.rb
84
+ - lib/librarian/puppet/source.rb
59
85
  - lib/librarian/puppet/templates/Puppetfile
60
- - librarian-puppet.gemspec
61
- - vendor/librarian/.rspec
62
- - vendor/librarian/.travis.yml
63
- - vendor/librarian/CHANGELOG.md
64
- - vendor/librarian/Gemfile
65
- - vendor/librarian/MIT-LICENSE
66
- - vendor/librarian/README.md
67
- - vendor/librarian/Rakefile
86
+ - lib/librarian/puppet/version.rb
87
+ - lib/librarian/puppet.rb
68
88
  - vendor/librarian/bin/librarian-chef
69
89
  - vendor/librarian/bin/librarian-mock
90
+ - vendor/librarian/CHANGELOG.md
70
91
  - vendor/librarian/config/cucumber.yaml
71
92
  - vendor/librarian/features/chef/cli/init.feature
72
93
  - vendor/librarian/features/chef/cli/install.feature
73
94
  - vendor/librarian/features/chef/cli/show.feature
74
95
  - vendor/librarian/features/chef/cli/version.feature
75
96
  - vendor/librarian/features/support/env.rb
76
- - vendor/librarian/lib/librarian.rb
77
- - vendor/librarian/lib/librarian/action.rb
97
+ - vendor/librarian/Gemfile
78
98
  - vendor/librarian/lib/librarian/action/base.rb
79
99
  - vendor/librarian/lib/librarian/action/clean.rb
80
100
  - vendor/librarian/lib/librarian/action/ensure.rb
81
101
  - vendor/librarian/lib/librarian/action/install.rb
82
102
  - vendor/librarian/lib/librarian/action/resolve.rb
83
103
  - vendor/librarian/lib/librarian/action/update.rb
84
- - vendor/librarian/lib/librarian/chef.rb
104
+ - vendor/librarian/lib/librarian/action.rb
85
105
  - vendor/librarian/lib/librarian/chef/cli.rb
86
106
  - vendor/librarian/lib/librarian/chef/dsl.rb
87
107
  - vendor/librarian/lib/librarian/chef/environment.rb
88
108
  - vendor/librarian/lib/librarian/chef/extension.rb
89
109
  - vendor/librarian/lib/librarian/chef/integration/knife.rb
90
110
  - vendor/librarian/lib/librarian/chef/manifest_reader.rb
91
- - vendor/librarian/lib/librarian/chef/source.rb
92
111
  - vendor/librarian/lib/librarian/chef/source/git.rb
93
112
  - vendor/librarian/lib/librarian/chef/source/local.rb
94
113
  - vendor/librarian/lib/librarian/chef/source/path.rb
95
114
  - vendor/librarian/lib/librarian/chef/source/site.rb
115
+ - vendor/librarian/lib/librarian/chef/source.rb
96
116
  - vendor/librarian/lib/librarian/chef/templates/Cheffile
97
- - vendor/librarian/lib/librarian/cli.rb
117
+ - vendor/librarian/lib/librarian/chef.rb
98
118
  - vendor/librarian/lib/librarian/cli/manifest_presenter.rb
119
+ - vendor/librarian/lib/librarian/cli.rb
120
+ - vendor/librarian/lib/librarian/config/database.rb
121
+ - vendor/librarian/lib/librarian/config/file_source.rb
122
+ - vendor/librarian/lib/librarian/config/hash_source.rb
123
+ - vendor/librarian/lib/librarian/config/source.rb
124
+ - vendor/librarian/lib/librarian/config.rb
99
125
  - vendor/librarian/lib/librarian/dependency.rb
100
- - vendor/librarian/lib/librarian/dsl.rb
101
126
  - vendor/librarian/lib/librarian/dsl/receiver.rb
102
127
  - vendor/librarian/lib/librarian/dsl/target.rb
128
+ - vendor/librarian/lib/librarian/dsl.rb
103
129
  - vendor/librarian/lib/librarian/environment.rb
104
130
  - vendor/librarian/lib/librarian/error.rb
105
131
  - vendor/librarian/lib/librarian/helpers.rb
106
- - vendor/librarian/lib/librarian/helpers/debug.rb
107
- - vendor/librarian/lib/librarian/lockfile.rb
108
132
  - vendor/librarian/lib/librarian/lockfile/compiler.rb
109
133
  - vendor/librarian/lib/librarian/lockfile/parser.rb
134
+ - vendor/librarian/lib/librarian/lockfile.rb
135
+ - vendor/librarian/lib/librarian/logger.rb
110
136
  - vendor/librarian/lib/librarian/manifest.rb
111
137
  - vendor/librarian/lib/librarian/manifest_set.rb
112
- - vendor/librarian/lib/librarian/mock.rb
113
138
  - vendor/librarian/lib/librarian/mock/cli.rb
114
139
  - vendor/librarian/lib/librarian/mock/dsl.rb
115
140
  - vendor/librarian/lib/librarian/mock/environment.rb
116
141
  - vendor/librarian/lib/librarian/mock/extension.rb
117
- - vendor/librarian/lib/librarian/mock/source.rb
118
- - vendor/librarian/lib/librarian/mock/source/mock.rb
119
142
  - vendor/librarian/lib/librarian/mock/source/mock/registry.rb
143
+ - vendor/librarian/lib/librarian/mock/source/mock.rb
144
+ - vendor/librarian/lib/librarian/mock/source.rb
145
+ - vendor/librarian/lib/librarian/mock.rb
120
146
  - vendor/librarian/lib/librarian/resolution.rb
121
- - vendor/librarian/lib/librarian/resolver.rb
122
147
  - vendor/librarian/lib/librarian/resolver/implementation.rb
123
- - vendor/librarian/lib/librarian/source.rb
124
- - vendor/librarian/lib/librarian/source/git.rb
148
+ - vendor/librarian/lib/librarian/resolver.rb
125
149
  - vendor/librarian/lib/librarian/source/git/repository.rb
150
+ - vendor/librarian/lib/librarian/source/git.rb
126
151
  - vendor/librarian/lib/librarian/source/local.rb
127
152
  - vendor/librarian/lib/librarian/source/path.rb
153
+ - vendor/librarian/lib/librarian/source.rb
128
154
  - vendor/librarian/lib/librarian/spec.rb
129
155
  - vendor/librarian/lib/librarian/spec_change_set.rb
130
156
  - vendor/librarian/lib/librarian/specfile.rb
131
157
  - vendor/librarian/lib/librarian/support/abstract_method.rb
132
158
  - vendor/librarian/lib/librarian/ui.rb
133
159
  - vendor/librarian/lib/librarian/version.rb
160
+ - vendor/librarian/lib/librarian.rb
134
161
  - vendor/librarian/librarian.gemspec
162
+ - vendor/librarian/MIT-LICENSE
163
+ - vendor/librarian/Rakefile
164
+ - vendor/librarian/README.md
135
165
  - vendor/librarian/spec/functional/chef/source/git_spec.rb
136
166
  - vendor/librarian/spec/functional/chef/source/site_spec.rb
167
+ - vendor/librarian/spec/functional/source/git/repository_spec.rb
137
168
  - vendor/librarian/spec/unit/action/base_spec.rb
138
169
  - vendor/librarian/spec/unit/action/clean_spec.rb
139
170
  - vendor/librarian/spec/unit/action/ensure_spec.rb
140
171
  - vendor/librarian/spec/unit/action/install_spec.rb
172
+ - vendor/librarian/spec/unit/config/database_spec.rb
141
173
  - vendor/librarian/spec/unit/dependency_spec.rb
142
174
  - vendor/librarian/spec/unit/dsl_spec.rb
143
175
  - vendor/librarian/spec/unit/environment_spec.rb
@@ -149,28 +181,37 @@ files:
149
181
  - vendor/librarian/spec/unit/resolver_spec.rb
150
182
  - vendor/librarian/spec/unit/source/git_spec.rb
151
183
  - vendor/librarian/spec/unit/spec_change_set_spec.rb
184
+ has_rdoc: true
152
185
  homepage: https://github.com/rodjek/librarian-puppet
153
186
  licenses: []
187
+
154
188
  post_install_message:
155
189
  rdoc_options: []
156
- require_paths:
190
+
191
+ require_paths:
157
192
  - lib
158
- required_ruby_version: !ruby/object:Gem::Requirement
159
- none: false
160
- requirements:
161
- - - ! '>='
162
- - !ruby/object:Gem::Version
163
- version: '0'
164
- required_rubygems_version: !ruby/object:Gem::Requirement
165
- none: false
166
- requirements:
167
- - - ! '>='
168
- - !ruby/object:Gem::Version
169
- version: '0'
193
+ required_ruby_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ segments:
198
+ - 0
199
+ version: "0"
200
+ required_rubygems_version: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ">"
203
+ - !ruby/object:Gem::Version
204
+ segments:
205
+ - 1
206
+ - 3
207
+ - 1
208
+ version: 1.3.1
170
209
  requirements: []
210
+
171
211
  rubyforge_project:
172
- rubygems_version: 1.8.11
212
+ rubygems_version: 1.3.6
173
213
  signing_key:
174
214
  specification_version: 3
175
215
  summary: Bundler for your Puppet modules
176
216
  test_files: []
217
+
@@ -1,130 +0,0 @@
1
- $:.push File.expand_path("../lib", __FILE__)
2
- $:.push File.expand_path("../vendor/librarian/lib", __FILE__)
3
- require 'librarian/puppet'
4
-
5
- Gem::Specification.new do |s|
6
- s.name = 'librarian-puppet'
7
- s.version = Librarian::Puppet::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ['Tim Sharpe']
10
- s.email = ['tim@sharpe.id.au']
11
- s.homepage = 'https://github.com/rodjek/librarian-puppet'
12
- s.summary = 'Bundler for your Puppet modules'
13
- s.description = 'Simplify deployment of your Puppet infrastructure by
14
- automatically pulling in modules from the forge and git repositories with
15
- a single command.'
16
-
17
- s.files = [
18
- '.gitignore',
19
- 'LICENSE',
20
- 'README.md',
21
- 'bin/librarian-puppet',
22
- 'lib/librarian/puppet.rb',
23
- 'lib/librarian/puppet/cli.rb',
24
- 'lib/librarian/puppet/dsl.rb',
25
- 'lib/librarian/puppet/environment.rb',
26
- 'lib/librarian/puppet/extension.rb',
27
- 'lib/librarian/puppet/source.rb',
28
- 'lib/librarian/puppet/source/forge.rb',
29
- 'lib/librarian/puppet/source/git.rb',
30
- 'lib/librarian/puppet/source/local.rb',
31
- 'lib/librarian/puppet/source/path.rb',
32
- 'lib/librarian/puppet/templates/Puppetfile',
33
- 'librarian-puppet.gemspec',
34
- 'vendor/librarian/.rspec',
35
- 'vendor/librarian/.travis.yml',
36
- 'vendor/librarian/CHANGELOG.md',
37
- 'vendor/librarian/Gemfile',
38
- 'vendor/librarian/MIT-LICENSE',
39
- 'vendor/librarian/README.md',
40
- 'vendor/librarian/Rakefile',
41
- 'vendor/librarian/bin/librarian-chef',
42
- 'vendor/librarian/bin/librarian-mock',
43
- 'vendor/librarian/config/cucumber.yaml',
44
- 'vendor/librarian/features/chef/cli/init.feature',
45
- 'vendor/librarian/features/chef/cli/install.feature',
46
- 'vendor/librarian/features/chef/cli/show.feature',
47
- 'vendor/librarian/features/chef/cli/version.feature',
48
- 'vendor/librarian/features/support/env.rb',
49
- 'vendor/librarian/lib/librarian.rb',
50
- 'vendor/librarian/lib/librarian/action.rb',
51
- 'vendor/librarian/lib/librarian/action/base.rb',
52
- 'vendor/librarian/lib/librarian/action/clean.rb',
53
- 'vendor/librarian/lib/librarian/action/ensure.rb',
54
- 'vendor/librarian/lib/librarian/action/install.rb',
55
- 'vendor/librarian/lib/librarian/action/resolve.rb',
56
- 'vendor/librarian/lib/librarian/action/update.rb',
57
- 'vendor/librarian/lib/librarian/chef.rb',
58
- 'vendor/librarian/lib/librarian/chef/cli.rb',
59
- 'vendor/librarian/lib/librarian/chef/dsl.rb',
60
- 'vendor/librarian/lib/librarian/chef/environment.rb',
61
- 'vendor/librarian/lib/librarian/chef/extension.rb',
62
- 'vendor/librarian/lib/librarian/chef/integration/knife.rb',
63
- 'vendor/librarian/lib/librarian/chef/manifest_reader.rb',
64
- 'vendor/librarian/lib/librarian/chef/source.rb',
65
- 'vendor/librarian/lib/librarian/chef/source/git.rb',
66
- 'vendor/librarian/lib/librarian/chef/source/local.rb',
67
- 'vendor/librarian/lib/librarian/chef/source/path.rb',
68
- 'vendor/librarian/lib/librarian/chef/source/site.rb',
69
- 'vendor/librarian/lib/librarian/chef/templates/Cheffile',
70
- 'vendor/librarian/lib/librarian/cli.rb',
71
- 'vendor/librarian/lib/librarian/cli/manifest_presenter.rb',
72
- 'vendor/librarian/lib/librarian/dependency.rb',
73
- 'vendor/librarian/lib/librarian/dsl.rb',
74
- 'vendor/librarian/lib/librarian/dsl/receiver.rb',
75
- 'vendor/librarian/lib/librarian/dsl/target.rb',
76
- 'vendor/librarian/lib/librarian/environment.rb',
77
- 'vendor/librarian/lib/librarian/error.rb',
78
- 'vendor/librarian/lib/librarian/helpers.rb',
79
- 'vendor/librarian/lib/librarian/helpers/debug.rb',
80
- 'vendor/librarian/lib/librarian/lockfile.rb',
81
- 'vendor/librarian/lib/librarian/lockfile/compiler.rb',
82
- 'vendor/librarian/lib/librarian/lockfile/parser.rb',
83
- 'vendor/librarian/lib/librarian/manifest.rb',
84
- 'vendor/librarian/lib/librarian/manifest_set.rb',
85
- 'vendor/librarian/lib/librarian/mock.rb',
86
- 'vendor/librarian/lib/librarian/mock/cli.rb',
87
- 'vendor/librarian/lib/librarian/mock/dsl.rb',
88
- 'vendor/librarian/lib/librarian/mock/environment.rb',
89
- 'vendor/librarian/lib/librarian/mock/extension.rb',
90
- 'vendor/librarian/lib/librarian/mock/source.rb',
91
- 'vendor/librarian/lib/librarian/mock/source/mock.rb',
92
- 'vendor/librarian/lib/librarian/mock/source/mock/registry.rb',
93
- 'vendor/librarian/lib/librarian/resolution.rb',
94
- 'vendor/librarian/lib/librarian/resolver.rb',
95
- 'vendor/librarian/lib/librarian/resolver/implementation.rb',
96
- 'vendor/librarian/lib/librarian/source.rb',
97
- 'vendor/librarian/lib/librarian/source/git.rb',
98
- 'vendor/librarian/lib/librarian/source/git/repository.rb',
99
- 'vendor/librarian/lib/librarian/source/local.rb',
100
- 'vendor/librarian/lib/librarian/source/path.rb',
101
- 'vendor/librarian/lib/librarian/spec.rb',
102
- 'vendor/librarian/lib/librarian/spec_change_set.rb',
103
- 'vendor/librarian/lib/librarian/specfile.rb',
104
- 'vendor/librarian/lib/librarian/support/abstract_method.rb',
105
- 'vendor/librarian/lib/librarian/ui.rb',
106
- 'vendor/librarian/lib/librarian/version.rb',
107
- 'vendor/librarian/librarian.gemspec',
108
- 'vendor/librarian/spec/functional/chef/source/git_spec.rb',
109
- 'vendor/librarian/spec/functional/chef/source/site_spec.rb',
110
- 'vendor/librarian/spec/unit/action/base_spec.rb',
111
- 'vendor/librarian/spec/unit/action/clean_spec.rb',
112
- 'vendor/librarian/spec/unit/action/ensure_spec.rb',
113
- 'vendor/librarian/spec/unit/action/install_spec.rb',
114
- 'vendor/librarian/spec/unit/dependency_spec.rb',
115
- 'vendor/librarian/spec/unit/dsl_spec.rb',
116
- 'vendor/librarian/spec/unit/environment_spec.rb',
117
- 'vendor/librarian/spec/unit/lockfile/parser_spec.rb',
118
- 'vendor/librarian/spec/unit/lockfile_spec.rb',
119
- 'vendor/librarian/spec/unit/manifest_set_spec.rb',
120
- 'vendor/librarian/spec/unit/manifest_spec.rb',
121
- 'vendor/librarian/spec/unit/mock/source/mock_spec.rb',
122
- 'vendor/librarian/spec/unit/resolver_spec.rb',
123
- 'vendor/librarian/spec/unit/source/git_spec.rb',
124
- 'vendor/librarian/spec/unit/spec_change_set_spec.rb',
125
- ]
126
- s.executables = ['librarian-puppet']
127
-
128
- s.add_dependency "thor", "~> 0.15"
129
- s.add_dependency "json"
130
- end
@@ -1 +0,0 @@
1
- --color
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.8.7
4
- - 1.9.2
5
- - 1.9.3
6
- - rbx
@@ -1,35 +0,0 @@
1
- require 'librarian/support/abstract_method'
2
-
3
- module Librarian
4
- module Helpers
5
- module Debug
6
-
7
- include Support::AbstractMethod
8
-
9
- LIBRARIAN_PATH = Pathname.new('../../../../').expand_path(__FILE__)
10
-
11
- abstract_method :environment
12
-
13
- private
14
-
15
- def relative_path_to(path)
16
- environment.project_relative_path_to(path)
17
- end
18
-
19
- def debug
20
- if ui = environment.ui
21
- if ui.respond_to? :debug_line_numbers and ui.debug_line_numbers
22
- loc = caller.find{|l| !(l =~ /in `debug'$/)}
23
- if loc =~ /^(.+):(\d+):in `(.+)'$/
24
- loc = "#{Pathname.new($1).relative_path_from(LIBRARIAN_PATH)}:#{$2}:in `#{$3}'"
25
- end
26
- ui.debug { "[Librarian] #{yield} [#{loc}]" }
27
- else
28
- ui.debug { "[Librarian] #{yield}" }
29
- end
30
- end
31
- end
32
-
33
- end
34
- end
35
- end