librarian-puppet-maestrodev 0.9.7.5 → 0.9.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/README.md +3 -3
  2. data/bin/librarian-puppet +0 -2
  3. data/lib/librarian/puppet.rb +10 -1
  4. data/lib/librarian/puppet/extension.rb +68 -11
  5. data/lib/librarian/puppet/requirement.rb +39 -0
  6. data/lib/librarian/puppet/source.rb +1 -0
  7. data/lib/librarian/puppet/source/forge.rb +8 -1
  8. data/lib/librarian/puppet/source/git.rb +2 -0
  9. data/lib/librarian/puppet/source/githubtarball.rb +16 -1
  10. data/lib/librarian/puppet/version.rb +1 -1
  11. metadata +33 -112
  12. data/vendor/librarian/CHANGELOG.md +0 -185
  13. data/vendor/librarian/Gemfile +0 -6
  14. data/vendor/librarian/MIT-LICENSE +0 -20
  15. data/vendor/librarian/README.md +0 -403
  16. data/vendor/librarian/Rakefile +0 -34
  17. data/vendor/librarian/bin/librarian-chef +0 -7
  18. data/vendor/librarian/bin/librarian-mock +0 -7
  19. data/vendor/librarian/config/cucumber.yaml +0 -1
  20. data/vendor/librarian/features/chef/cli/init.feature +0 -11
  21. data/vendor/librarian/features/chef/cli/install.feature +0 -64
  22. data/vendor/librarian/features/chef/cli/show.feature +0 -77
  23. data/vendor/librarian/features/chef/cli/version.feature +0 -11
  24. data/vendor/librarian/features/support/env.rb +0 -9
  25. data/vendor/librarian/lib/librarian.rb +0 -19
  26. data/vendor/librarian/lib/librarian/action.rb +0 -5
  27. data/vendor/librarian/lib/librarian/action/base.rb +0 -24
  28. data/vendor/librarian/lib/librarian/action/clean.rb +0 -44
  29. data/vendor/librarian/lib/librarian/action/ensure.rb +0 -24
  30. data/vendor/librarian/lib/librarian/action/install.rb +0 -99
  31. data/vendor/librarian/lib/librarian/action/resolve.rb +0 -81
  32. data/vendor/librarian/lib/librarian/action/update.rb +0 -78
  33. data/vendor/librarian/lib/librarian/chef.rb +0 -1
  34. data/vendor/librarian/lib/librarian/chef/cli.rb +0 -48
  35. data/vendor/librarian/lib/librarian/chef/dsl.rb +0 -15
  36. data/vendor/librarian/lib/librarian/chef/environment.rb +0 -27
  37. data/vendor/librarian/lib/librarian/chef/extension.rb +0 -9
  38. data/vendor/librarian/lib/librarian/chef/integration/knife.rb +0 -42
  39. data/vendor/librarian/lib/librarian/chef/manifest_reader.rb +0 -59
  40. data/vendor/librarian/lib/librarian/chef/source.rb +0 -3
  41. data/vendor/librarian/lib/librarian/chef/source/git.rb +0 -25
  42. data/vendor/librarian/lib/librarian/chef/source/local.rb +0 -69
  43. data/vendor/librarian/lib/librarian/chef/source/path.rb +0 -12
  44. data/vendor/librarian/lib/librarian/chef/source/site.rb +0 -446
  45. data/vendor/librarian/lib/librarian/chef/templates/Cheffile +0 -15
  46. data/vendor/librarian/lib/librarian/cli.rb +0 -205
  47. data/vendor/librarian/lib/librarian/cli/manifest_presenter.rb +0 -79
  48. data/vendor/librarian/lib/librarian/config.rb +0 -7
  49. data/vendor/librarian/lib/librarian/config/database.rb +0 -205
  50. data/vendor/librarian/lib/librarian/config/file_source.rb +0 -47
  51. data/vendor/librarian/lib/librarian/config/hash_source.rb +0 -33
  52. data/vendor/librarian/lib/librarian/config/source.rb +0 -149
  53. data/vendor/librarian/lib/librarian/dependency.rb +0 -91
  54. data/vendor/librarian/lib/librarian/dsl.rb +0 -108
  55. data/vendor/librarian/lib/librarian/dsl/receiver.rb +0 -48
  56. data/vendor/librarian/lib/librarian/dsl/target.rb +0 -172
  57. data/vendor/librarian/lib/librarian/environment.rb +0 -134
  58. data/vendor/librarian/lib/librarian/error.rb +0 -4
  59. data/vendor/librarian/lib/librarian/helpers.rb +0 -13
  60. data/vendor/librarian/lib/librarian/lockfile.rb +0 -29
  61. data/vendor/librarian/lib/librarian/lockfile/compiler.rb +0 -66
  62. data/vendor/librarian/lib/librarian/lockfile/parser.rb +0 -100
  63. data/vendor/librarian/lib/librarian/logger.rb +0 -46
  64. data/vendor/librarian/lib/librarian/manifest.rb +0 -132
  65. data/vendor/librarian/lib/librarian/manifest_set.rb +0 -154
  66. data/vendor/librarian/lib/librarian/mock.rb +0 -1
  67. data/vendor/librarian/lib/librarian/mock/cli.rb +0 -19
  68. data/vendor/librarian/lib/librarian/mock/dsl.rb +0 -15
  69. data/vendor/librarian/lib/librarian/mock/environment.rb +0 -24
  70. data/vendor/librarian/lib/librarian/mock/extension.rb +0 -9
  71. data/vendor/librarian/lib/librarian/mock/source.rb +0 -1
  72. data/vendor/librarian/lib/librarian/mock/source/mock.rb +0 -97
  73. data/vendor/librarian/lib/librarian/mock/source/mock/registry.rb +0 -83
  74. data/vendor/librarian/lib/librarian/resolution.rb +0 -44
  75. data/vendor/librarian/lib/librarian/resolver.rb +0 -78
  76. data/vendor/librarian/lib/librarian/resolver/implementation.rb +0 -118
  77. data/vendor/librarian/lib/librarian/source.rb +0 -2
  78. data/vendor/librarian/lib/librarian/source/git.rb +0 -150
  79. data/vendor/librarian/lib/librarian/source/git/repository.rb +0 -217
  80. data/vendor/librarian/lib/librarian/source/local.rb +0 -61
  81. data/vendor/librarian/lib/librarian/source/path.rb +0 -74
  82. data/vendor/librarian/lib/librarian/spec.rb +0 -13
  83. data/vendor/librarian/lib/librarian/spec_change_set.rb +0 -173
  84. data/vendor/librarian/lib/librarian/specfile.rb +0 -18
  85. data/vendor/librarian/lib/librarian/support/abstract_method.rb +0 -21
  86. data/vendor/librarian/lib/librarian/ui.rb +0 -64
  87. data/vendor/librarian/lib/librarian/version.rb +0 -3
  88. data/vendor/librarian/librarian.gemspec +0 -34
  89. data/vendor/librarian/spec/functional/chef/source/git_spec.rb +0 -432
  90. data/vendor/librarian/spec/functional/chef/source/site_spec.rb +0 -215
  91. data/vendor/librarian/spec/functional/source/git/repository_spec.rb +0 -149
  92. data/vendor/librarian/spec/unit/action/base_spec.rb +0 -18
  93. data/vendor/librarian/spec/unit/action/clean_spec.rb +0 -102
  94. data/vendor/librarian/spec/unit/action/ensure_spec.rb +0 -37
  95. data/vendor/librarian/spec/unit/action/install_spec.rb +0 -111
  96. data/vendor/librarian/spec/unit/config/database_spec.rb +0 -319
  97. data/vendor/librarian/spec/unit/dependency_spec.rb +0 -36
  98. data/vendor/librarian/spec/unit/dsl_spec.rb +0 -194
  99. data/vendor/librarian/spec/unit/environment_spec.rb +0 -9
  100. data/vendor/librarian/spec/unit/lockfile/parser_spec.rb +0 -162
  101. data/vendor/librarian/spec/unit/lockfile_spec.rb +0 -65
  102. data/vendor/librarian/spec/unit/manifest_set_spec.rb +0 -202
  103. data/vendor/librarian/spec/unit/manifest_spec.rb +0 -36
  104. data/vendor/librarian/spec/unit/mock/source/mock_spec.rb +0 -22
  105. data/vendor/librarian/spec/unit/resolver_spec.rb +0 -192
  106. data/vendor/librarian/spec/unit/source/git_spec.rb +0 -29
  107. data/vendor/librarian/spec/unit/spec_change_set_spec.rb +0 -169
@@ -1,29 +0,0 @@
1
- require "librarian"
2
-
3
- module Librarian
4
- module Source
5
- describe Git do
6
-
7
- let(:env) { Environment.new }
8
-
9
- describe "validating options for the specfile" do
10
-
11
- context "with only known options" do
12
- it "should not raise" do
13
- expect { described_class.from_spec_args(env, "some://git/repo.git", :ref => "megapatches") }.
14
- to_not raise_error
15
- end
16
- end
17
-
18
- context "with an unknown option" do
19
- it "should raise" do
20
- expect { described_class.from_spec_args(env, "some://git/repo.git", :branch => "megapatches") }.
21
- to raise_error Error, "unrecognized options: branch"
22
- end
23
- end
24
-
25
- end
26
-
27
- end
28
- end
29
- end
@@ -1,169 +0,0 @@
1
- require 'librarian'
2
- require 'librarian/spec_change_set'
3
- require 'librarian/mock'
4
-
5
- module Librarian
6
- describe SpecChangeSet do
7
-
8
- let(:env) { Mock::Environment.new }
9
- let(:resolver) { env.resolver }
10
-
11
- context "a simple root removal" do
12
-
13
- it "should work" do
14
- env.registry :clear => true do
15
- source 'source-1' do
16
- spec 'butter', '1.0'
17
- spec 'jam', '1.0'
18
- end
19
- end
20
- spec = env.dsl do
21
- src 'source-1'
22
- dep 'butter'
23
- dep 'jam'
24
- end
25
- lock = resolver.resolve(spec)
26
- lock.should be_correct
27
-
28
- spec = env.dsl do
29
- src 'source-1'
30
- dep 'jam'
31
- end
32
- changes = described_class.new(env, spec, lock)
33
- changes.should_not be_same
34
-
35
- manifests = ManifestSet.new(changes.analyze).to_hash
36
- manifests.should have_key('jam')
37
- manifests.should_not have_key('butter')
38
- end
39
-
40
- end
41
-
42
- context "a simple root add" do
43
-
44
- it "should work" do
45
- env.registry :clear => true do
46
- source 'source-1' do
47
- spec 'butter', '1.0'
48
- spec 'jam', '1.0'
49
- end
50
- end
51
- spec = env.dsl do
52
- src 'source-1'
53
- dep 'jam'
54
- end
55
- lock = resolver.resolve(spec)
56
- lock.should be_correct
57
-
58
- spec = env.dsl do
59
- src 'source-1'
60
- dep 'butter'
61
- dep 'jam'
62
- end
63
- changes = described_class.new(env, spec, lock)
64
- changes.should_not be_same
65
- manifests = ManifestSet.new(changes.analyze).to_hash
66
- manifests.should have_key('jam')
67
- manifests.should_not have_key('butter')
68
- end
69
-
70
- end
71
-
72
- context "a simple root change" do
73
-
74
- context "when the change is consistent" do
75
-
76
- it "should work" do
77
- env.registry :clear => true do
78
- source 'source-1' do
79
- spec 'butter', '1.0'
80
- spec 'jam', '1.0'
81
- spec 'jam', '1.1'
82
- end
83
- end
84
- spec = env.dsl do
85
- src 'source-1'
86
- dep 'butter'
87
- dep 'jam', '= 1.1'
88
- end
89
- lock = resolver.resolve(spec)
90
- lock.should be_correct
91
-
92
- spec = env.dsl do
93
- src 'source-1'
94
- dep 'butter'
95
- dep 'jam', '>= 1.0'
96
- end
97
- changes = described_class.new(env, spec, lock)
98
- changes.should_not be_same
99
- manifests = ManifestSet.new(changes.analyze).to_hash
100
- manifests.should have_key('butter')
101
- manifests.should have_key('jam')
102
- end
103
-
104
- end
105
-
106
- context "when the change is inconsistent" do
107
-
108
- it "should work" do
109
- env.registry :clear => true do
110
- source 'source-1' do
111
- spec 'butter', '1.0'
112
- spec 'jam', '1.0'
113
- spec 'jam', '1.1'
114
- end
115
- end
116
- spec = env.dsl do
117
- src 'source-1'
118
- dep 'butter'
119
- dep 'jam', '= 1.0'
120
- end
121
- lock = resolver.resolve(spec)
122
- lock.should be_correct
123
-
124
- spec = env.dsl do
125
- src 'source-1'
126
- dep 'butter'
127
- dep 'jam', '>= 1.1'
128
- end
129
- changes = described_class.new(env, spec, lock)
130
- changes.should_not be_same
131
- manifests = ManifestSet.new(changes.analyze).to_hash
132
- manifests.should have_key('butter')
133
- manifests.should_not have_key('jam')
134
- end
135
-
136
- end
137
-
138
- end
139
-
140
- context "a simple root source change" do
141
- it "should work" do
142
- env.registry :clear => true do
143
- source 'source-1' do
144
- spec 'butter', '1.0'
145
- end
146
- source 'source-2' do
147
- spec 'butter', '1.0'
148
- end
149
- end
150
- spec = env.dsl do
151
- src 'source-1'
152
- dep 'butter'
153
- end
154
- lock = resolver.resolve(spec)
155
- lock.should be_correct
156
-
157
- spec = env.dsl do
158
- src 'source-1'
159
- dep 'butter', :src => 'source-2'
160
- end
161
- changes = described_class.new(env, spec, lock)
162
- changes.should_not be_same
163
- manifests = ManifestSet.new(changes.analyze).to_hash
164
- manifests.should_not have_key('butter')
165
- end
166
- end
167
-
168
- end
169
- end