puppet_forge 1.0.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/CHANGELOG.md +23 -0
  2. data/MAINTAINERS +13 -0
  3. data/README.md +48 -6
  4. data/lib/puppet_forge.rb +4 -0
  5. data/lib/puppet_forge/connection.rb +81 -0
  6. data/lib/puppet_forge/connection/connection_failure.rb +26 -0
  7. data/lib/puppet_forge/error.rb +34 -0
  8. data/lib/{her → puppet_forge}/lazy_accessors.rb +20 -27
  9. data/lib/{her → puppet_forge}/lazy_relations.rb +28 -9
  10. data/lib/puppet_forge/middleware/symbolify_json.rb +72 -0
  11. data/lib/puppet_forge/tar.rb +10 -0
  12. data/lib/puppet_forge/tar/mini.rb +81 -0
  13. data/lib/puppet_forge/unpacker.rb +68 -0
  14. data/lib/puppet_forge/v3.rb +11 -0
  15. data/lib/puppet_forge/v3/base.rb +106 -73
  16. data/lib/puppet_forge/v3/base/paginated_collection.rb +23 -14
  17. data/lib/puppet_forge/v3/metadata.rb +197 -0
  18. data/lib/puppet_forge/v3/module.rb +2 -1
  19. data/lib/puppet_forge/v3/release.rb +33 -8
  20. data/lib/puppet_forge/v3/user.rb +2 -0
  21. data/lib/puppet_forge/version.rb +1 -1
  22. data/puppet_forge.gemspec +6 -3
  23. data/spec/fixtures/v3/modules/puppetlabs-apache.json +21 -1
  24. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.1.json +4 -1
  25. data/spec/integration/forge/v3/module_spec.rb +79 -0
  26. data/spec/integration/forge/v3/release_spec.rb +75 -0
  27. data/spec/integration/forge/v3/user_spec.rb +70 -0
  28. data/spec/spec_helper.rb +15 -8
  29. data/spec/unit/forge/connection/connection_failure_spec.rb +30 -0
  30. data/spec/unit/forge/connection_spec.rb +53 -0
  31. data/spec/unit/{her → forge}/lazy_accessors_spec.rb +20 -13
  32. data/spec/unit/{her → forge}/lazy_relations_spec.rb +60 -46
  33. data/spec/unit/forge/middleware/symbolify_json_spec.rb +63 -0
  34. data/spec/unit/forge/tar/mini_spec.rb +85 -0
  35. data/spec/unit/forge/tar_spec.rb +9 -0
  36. data/spec/unit/forge/unpacker_spec.rb +58 -0
  37. data/spec/unit/forge/v3/base/paginated_collection_spec.rb +68 -46
  38. data/spec/unit/forge/v3/base_spec.rb +1 -1
  39. data/spec/unit/forge/v3/metadata_spec.rb +300 -0
  40. data/spec/unit/forge/v3/module_spec.rb +14 -36
  41. data/spec/unit/forge/v3/release_spec.rb +9 -30
  42. data/spec/unit/forge/v3/user_spec.rb +7 -7
  43. metadata +127 -41
  44. checksums.yaml +0 -7
  45. data/lib/puppet_forge/middleware/json_for_her.rb +0 -37
@@ -2,9 +2,16 @@ require 'spec_helper'
2
2
 
3
3
  describe PuppetForge::V3::Module do
4
4
  before do
5
- stub_api_for(PuppetForge::V3::Module) do |api|
6
- stub_fixture(api, :get, '/v3/modules/puppetlabs-apache')
7
- stub_fixture(api, :get, '/v3/modules/absent-apache')
5
+ stub_api_for(PuppetForge::V3::Base) do |stubs|
6
+ stub_fixture(stubs, :get, '/v3/modules/puppetlabs-apache')
7
+ stub_fixture(stubs, :get, '/v3/modules/absent-apache')
8
+ stub_fixture(stubs, :get, '/v3/users/puppetlabs')
9
+ stub_fixture(stubs, :get, '/v3/releases/puppetlabs-apache-0.0.1')
10
+ stub_fixture(stubs, :get, '/v3/releases/puppetlabs-apache-0.0.2')
11
+ stub_fixture(stubs, :get, '/v3/releases/puppetlabs-apache-0.0.3')
12
+ stub_fixture(stubs, :get, '/v3/releases/puppetlabs-apache-0.0.4')
13
+ stub_fixture(stubs, :get, '/v3/releases/puppetlabs-apache-0.1.1')
14
+ stub_fixture(stubs, :get, '/v3/releases?module=puppetlabs-apache')
8
15
  end
9
16
  end
10
17
 
@@ -17,19 +24,13 @@ describe PuppetForge::V3::Module do
17
24
  end
18
25
 
19
26
  it 'returns nil for non-existent modules' do
20
- expect(missing_mod).to be_nil
27
+ expect { missing_mod }.to raise_error(Faraday::ResourceNotFound)
21
28
  end
22
29
  end
23
30
 
24
31
  describe '#owner' do
25
32
  let(:mod) { PuppetForge::V3::Module.find('puppetlabs-apache') }
26
33
 
27
- before do
28
- stub_api_for(PuppetForge::V3::User) do |api|
29
- stub_fixture(api, :get, '/v3/users/puppetlabs')
30
- end
31
- end
32
-
33
34
  it 'exposes the related module as a property' do
34
35
  expect(mod.owner).to_not be nil
35
36
  end
@@ -57,32 +58,11 @@ describe PuppetForge::V3::Module do
57
58
  expect(mod.current_release.version).to_not be nil
58
59
  end
59
60
 
60
- it 'transparently makes API calls for other attributes' do
61
- stub_api_for(PuppetForge::V3::Release) do |api|
62
- api.get(mod.current_release.uri) do
63
- load_fixture('/v3/releases/puppetlabs-apache-0.0.1')
64
- end
65
- end
66
-
67
- mod.attributes[:current_release].delete :created_at
68
- expect(mod.current_release.created_at).to_not be nil
69
- end
70
61
  end
71
62
 
72
63
  describe '#releases' do
73
64
  let(:mod) { PuppetForge::V3::Module.find('puppetlabs-apache') }
74
65
 
75
- before do
76
- stub_api_for(PuppetForge::V3::Release) do |api|
77
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.0.1')
78
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.0.2')
79
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.0.3')
80
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.0.4')
81
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.1.1')
82
- stub_fixture(api, :get, '/v3/releases?module=puppetlabs-apache')
83
- end
84
- end
85
-
86
66
  it 'exposes the related releases as a property' do
87
67
  expect(mod.releases).to be_an Array
88
68
  end
@@ -96,15 +76,13 @@ describe PuppetForge::V3::Module do
96
76
  expect(mod.releases.map(&:version)).to_not include nil
97
77
  end
98
78
 
99
- it 'transparently makes API calls for other attributes' do
79
+ it 'loads releases lazily' do
100
80
  versions = %w[ 0.0.1 0.0.2 0.0.3 0.0.4 0.1.1 ]
101
81
  releases = mod.releases.select { |x| versions.include? x.version }
102
82
 
103
- expect(PuppetForge::V3::Release).to receive(:request) \
104
- .exactly(5).times \
105
- .and_call_original
83
+ expect(PuppetForge::V3::Base).to receive(:request).exactly(5).times.and_call_original
106
84
 
107
- expect(releases.map(&:created_at)).to_not include nil
85
+ expect(releases.map(&:downloads)).to_not include nil
108
86
  end
109
87
  end
110
88
 
@@ -3,9 +3,12 @@ require 'fileutils'
3
3
 
4
4
  describe PuppetForge::V3::Release do
5
5
  before do
6
- stub_api_for(PuppetForge::V3::Release) do |api|
7
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.0.1')
8
- stub_fixture(api, :get, '/v3/releases/absent-apache-0.0.1')
6
+ stub_api_for(PuppetForge::V3::Base) do |stubs|
7
+ stub_fixture(stubs, :get, '/v3/releases/puppetlabs-apache-0.0.1')
8
+ stub_fixture(stubs, :get, '/v3/releases/absent-apache-0.0.1')
9
+ stub_fixture(stubs, :get, '/v3/files/puppetlabs-apache-0.0.1.tar.gz')
10
+ stub_fixture(stubs, :get, '/v3/modules/puppetlabs-apache')
11
+ stub_fixture(stubs, :get, '/v3/releases?module=puppetlabs-apache')
9
12
  end
10
13
  end
11
14
 
@@ -17,20 +20,14 @@ describe PuppetForge::V3::Release do
17
20
  expect(release.version).to eql('0.0.1')
18
21
  end
19
22
 
20
- it 'returns nil for non-existent releases' do
21
- expect(missing_release).to be nil
23
+ it 'raises Faraday::ResourceNotFound for non-existent releases' do
24
+ expect { missing_release }.to raise_error(Faraday::ResourceNotFound)
22
25
  end
23
26
  end
24
27
 
25
28
  describe '#module' do
26
29
  let(:release) { PuppetForge::V3::Release.find('puppetlabs-apache-0.0.1') }
27
30
 
28
- before do
29
- stub_api_for(PuppetForge::V3::Module) do |api|
30
- stub_fixture(api, :get, '/v3/modules/puppetlabs-apache')
31
- end
32
- end
33
-
34
31
  it 'exposes the related module as a property' do
35
32
  expect(release.module).to_not be nil
36
33
  end
@@ -49,12 +46,6 @@ describe PuppetForge::V3::Release do
49
46
  describe '#download_url' do
50
47
  let(:release) { PuppetForge::V3::Release.find('puppetlabs-apache-0.0.1') }
51
48
 
52
- before do
53
- stub_api_for(PuppetForge::V3::Release) do |api|
54
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.0.1')
55
- end
56
- end
57
-
58
49
  it 'handles an API response that does not include a scheme and host' do
59
50
  release.file_uri = '/v3/files/puppetlabs-apache-0.0.1.tar.gz'
60
51
  expect(release.download_url).to eql(PuppetForge.host + '/v3/files/puppetlabs-apache-0.0.1.tar.gz')
@@ -72,16 +63,10 @@ describe PuppetForge::V3::Release do
72
63
 
73
64
  before { FileUtils.rm tarball rescue nil }
74
65
  after { FileUtils.rm tarball rescue nil }
75
- before do
76
- stub_api_for(PuppetForge::V3::Release) do |api|
77
- stub_fixture(api, :get, '/v3/releases/puppetlabs-apache-0.0.1')
78
- stub_fixture(api, :get, '/v3/files/puppetlabs-apache-0.0.1.tar.gz')
79
- end
80
- end
81
66
 
82
67
  it 'downloads the file to the specified location' do
83
68
  expect(File.exist?(tarball)).to be false
84
- release.download(tarball)
69
+ release.download(Pathname.new(tarball))
85
70
  expect(File.exist?(tarball)).to be true
86
71
  end
87
72
  end
@@ -89,12 +74,6 @@ describe PuppetForge::V3::Release do
89
74
  describe '#metadata' do
90
75
  let(:release) { PuppetForge::V3::Release.find('puppetlabs-apache-0.0.1') }
91
76
 
92
- before do
93
- stub_api_for(PuppetForge::V3::Module) do |api|
94
- stub_fixture(api, :get, '/v3/modules/puppetlabs-apache')
95
- end
96
- end
97
-
98
77
  it 'is lazy and repeatable' do
99
78
  3.times do
100
79
  expect(release.module.releases.last.metadata).to_not be_nil
@@ -2,9 +2,9 @@ require 'spec_helper'
2
2
 
3
3
  describe PuppetForge::V3::User do
4
4
  before do
5
- stub_api_for(PuppetForge::V3::User) do |api|
6
- stub_fixture(api, :get, '/v3/users/puppetlabs')
7
- stub_fixture(api, :get, '/v3/users/absent')
5
+ stub_api_for(PuppetForge::V3::User) do |stubs|
6
+ stub_fixture(stubs, :get, '/v3/users/puppetlabs')
7
+ stub_fixture(stubs, :get, '/v3/users/absent')
8
8
  end
9
9
  end
10
10
 
@@ -16,15 +16,15 @@ describe PuppetForge::V3::User do
16
16
  expect(user.username).to eq('puppetlabs')
17
17
  end
18
18
 
19
- it 'returns nil for non-existent users' do
20
- expect(missing_user).to be_nil
19
+ it 'raises Faraday::ResourceNotFound for non-existent users' do
20
+ expect { missing_user }.to raise_error(Faraday::ResourceNotFound)
21
21
  end
22
22
  end
23
23
 
24
24
  describe '#modules' do
25
25
  before do
26
- stub_api_for(PuppetForge::V3::Module) do |api|
27
- stub_fixture(api, :get, '/v3/modules?owner=puppetlabs')
26
+ stub_api_for(PuppetForge::V3::Module) do |stubs|
27
+ stub_fixture(stubs, :get, '/v3/modules?owner=puppetlabs')
28
28
  end
29
29
  end
30
30
 
metadata CHANGED
@@ -1,160 +1,221 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_forge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 2.0.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Puppet Labs
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-07-25 00:00:00.000000000 Z
12
+ date: 2015-08-14 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: activesupport
15
+ name: faraday
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
- version: '4.2'
21
+ version: 0.9.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
- version: '4.2'
29
+ version: 0.9.0
27
30
  - !ruby/object:Gem::Dependency
28
- name: her
31
+ name: faraday_middleware
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
- version: 0.6.8
37
+ version: 0.9.0
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
- version: 0.6.8
45
+ version: 0.9.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: semantic_puppet
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.1.0
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.1.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: minitar
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
41
78
  - !ruby/object:Gem::Dependency
42
79
  name: bundler
43
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
44
82
  requirements:
45
- - - "~>"
83
+ - - ~>
46
84
  - !ruby/object:Gem::Version
47
85
  version: '1.6'
48
86
  type: :development
49
87
  prerelease: false
50
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
51
90
  requirements:
52
- - - "~>"
91
+ - - ~>
53
92
  - !ruby/object:Gem::Version
54
93
  version: '1.6'
55
94
  - !ruby/object:Gem::Dependency
56
95
  name: rake
57
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
58
98
  requirements:
59
- - - ">="
99
+ - - ! '>='
60
100
  - !ruby/object:Gem::Version
61
101
  version: '0'
62
102
  type: :development
63
103
  prerelease: false
64
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
65
106
  requirements:
66
- - - ">="
107
+ - - ! '>='
67
108
  - !ruby/object:Gem::Version
68
109
  version: '0'
69
110
  - !ruby/object:Gem::Dependency
70
111
  name: rspec
71
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
72
114
  requirements:
73
- - - "~>"
115
+ - - ~>
74
116
  - !ruby/object:Gem::Version
75
117
  version: '3.0'
76
118
  type: :development
77
119
  prerelease: false
78
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
79
122
  requirements:
80
- - - "~>"
123
+ - - ~>
81
124
  - !ruby/object:Gem::Version
82
125
  version: '3.0'
83
126
  - !ruby/object:Gem::Dependency
84
127
  name: simplecov
85
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
86
130
  requirements:
87
- - - ">="
131
+ - - ! '>='
88
132
  - !ruby/object:Gem::Version
89
133
  version: '0'
90
134
  type: :development
91
135
  prerelease: false
92
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
93
138
  requirements:
94
- - - ">="
139
+ - - ! '>='
95
140
  - !ruby/object:Gem::Version
96
141
  version: '0'
97
142
  - !ruby/object:Gem::Dependency
98
143
  name: cane
99
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
100
146
  requirements:
101
- - - ">="
147
+ - - ! '>='
102
148
  - !ruby/object:Gem::Version
103
149
  version: '0'
104
150
  type: :development
105
151
  prerelease: false
106
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
107
154
  requirements:
108
- - - ">="
155
+ - - ! '>='
109
156
  - !ruby/object:Gem::Version
110
157
  version: '0'
111
158
  - !ruby/object:Gem::Dependency
112
159
  name: yard
113
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
114
162
  requirements:
115
- - - ">="
163
+ - - ! '>='
116
164
  - !ruby/object:Gem::Version
117
165
  version: '0'
118
166
  type: :development
119
167
  prerelease: false
120
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
121
170
  requirements:
122
- - - ">="
171
+ - - ! '>='
123
172
  - !ruby/object:Gem::Version
124
173
  version: '0'
125
174
  - !ruby/object:Gem::Dependency
126
175
  name: redcarpet
127
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
128
178
  requirements:
129
- - - ">="
179
+ - - ! '>='
130
180
  - !ruby/object:Gem::Version
131
181
  version: '0'
132
182
  type: :development
133
183
  prerelease: false
134
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
135
186
  requirements:
136
- - - ">="
187
+ - - ! '>='
137
188
  - !ruby/object:Gem::Version
138
189
  version: '0'
139
- description:
190
+ description: Tools that can be used to access Forge API information on Modules, Users,
191
+ and Releases. As well as download, unpack, and install Releases to a directory.
140
192
  email:
141
193
  - forge-team+api@puppetlabs.com
142
194
  executables: []
143
195
  extensions: []
144
196
  extra_rdoc_files: []
145
197
  files:
146
- - ".gitignore"
198
+ - .gitignore
199
+ - CHANGELOG.md
147
200
  - Gemfile
148
201
  - LICENSE.txt
202
+ - MAINTAINERS
149
203
  - README.md
150
204
  - Rakefile
151
- - lib/her/lazy_accessors.rb
152
- - lib/her/lazy_relations.rb
153
205
  - lib/puppet_forge.rb
154
- - lib/puppet_forge/middleware/json_for_her.rb
206
+ - lib/puppet_forge/connection.rb
207
+ - lib/puppet_forge/connection/connection_failure.rb
208
+ - lib/puppet_forge/error.rb
209
+ - lib/puppet_forge/lazy_accessors.rb
210
+ - lib/puppet_forge/lazy_relations.rb
211
+ - lib/puppet_forge/middleware/symbolify_json.rb
212
+ - lib/puppet_forge/tar.rb
213
+ - lib/puppet_forge/tar/mini.rb
214
+ - lib/puppet_forge/unpacker.rb
155
215
  - lib/puppet_forge/v3.rb
156
216
  - lib/puppet_forge/v3/base.rb
157
217
  - lib/puppet_forge/v3/base/paginated_collection.rb
218
+ - lib/puppet_forge/v3/metadata.rb
158
219
  - lib/puppet_forge/v3/module.rb
159
220
  - lib/puppet_forge/v3/release.rb
160
221
  - lib/puppet_forge/v3/user.rb
@@ -186,39 +247,54 @@ files:
186
247
  - spec/fixtures/v3/releases__module=puppetlabs-apache.json
187
248
  - spec/fixtures/v3/users/puppetlabs.headers
188
249
  - spec/fixtures/v3/users/puppetlabs.json
250
+ - spec/integration/forge/v3/module_spec.rb
251
+ - spec/integration/forge/v3/release_spec.rb
252
+ - spec/integration/forge/v3/user_spec.rb
189
253
  - spec/spec_helper.rb
190
254
  - spec/tmp/.gitkeep
255
+ - spec/unit/forge/connection/connection_failure_spec.rb
256
+ - spec/unit/forge/connection_spec.rb
257
+ - spec/unit/forge/lazy_accessors_spec.rb
258
+ - spec/unit/forge/lazy_relations_spec.rb
259
+ - spec/unit/forge/middleware/symbolify_json_spec.rb
260
+ - spec/unit/forge/tar/mini_spec.rb
261
+ - spec/unit/forge/tar_spec.rb
262
+ - spec/unit/forge/unpacker_spec.rb
191
263
  - spec/unit/forge/v3/base/paginated_collection_spec.rb
192
264
  - spec/unit/forge/v3/base_spec.rb
265
+ - spec/unit/forge/v3/metadata_spec.rb
193
266
  - spec/unit/forge/v3/module_spec.rb
194
267
  - spec/unit/forge/v3/release_spec.rb
195
268
  - spec/unit/forge/v3/user_spec.rb
196
- - spec/unit/her/lazy_accessors_spec.rb
197
- - spec/unit/her/lazy_relations_spec.rb
198
269
  homepage: https://github.com/puppetlabs/forge-ruby
199
270
  licenses:
200
271
  - Apache-2.0
201
- metadata: {}
202
272
  post_install_message:
203
273
  rdoc_options: []
204
274
  require_paths:
205
275
  - lib
206
276
  required_ruby_version: !ruby/object:Gem::Requirement
277
+ none: false
207
278
  requirements:
208
- - - ">="
279
+ - - ! '>='
209
280
  - !ruby/object:Gem::Version
210
281
  version: 1.9.3
211
282
  required_rubygems_version: !ruby/object:Gem::Requirement
283
+ none: false
212
284
  requirements:
213
- - - ">="
285
+ - - ! '>='
214
286
  - !ruby/object:Gem::Version
215
287
  version: '0'
288
+ segments:
289
+ - 0
290
+ hash: -2116773441322079787
216
291
  requirements: []
217
292
  rubyforge_project:
218
- rubygems_version: 2.5.1
293
+ rubygems_version: 1.8.23.2
219
294
  signing_key:
220
- specification_version: 4
221
- summary: Access and manipulate the Puppet Forge API from Ruby.
295
+ specification_version: 3
296
+ summary: Access the Puppet Forge API from Ruby for resource information and to download
297
+ releases.
222
298
  test_files:
223
299
  - spec/fixtures/v3/files/puppetlabs-apache-0.0.1.tar.gz.headers
224
300
  - spec/fixtures/v3/files/puppetlabs-apache-0.0.1.tar.gz.json
@@ -246,13 +322,23 @@ test_files:
246
322
  - spec/fixtures/v3/releases__module=puppetlabs-apache.json
247
323
  - spec/fixtures/v3/users/puppetlabs.headers
248
324
  - spec/fixtures/v3/users/puppetlabs.json
325
+ - spec/integration/forge/v3/module_spec.rb
326
+ - spec/integration/forge/v3/release_spec.rb
327
+ - spec/integration/forge/v3/user_spec.rb
249
328
  - spec/spec_helper.rb
250
329
  - spec/tmp/.gitkeep
330
+ - spec/unit/forge/connection/connection_failure_spec.rb
331
+ - spec/unit/forge/connection_spec.rb
332
+ - spec/unit/forge/lazy_accessors_spec.rb
333
+ - spec/unit/forge/lazy_relations_spec.rb
334
+ - spec/unit/forge/middleware/symbolify_json_spec.rb
335
+ - spec/unit/forge/tar/mini_spec.rb
336
+ - spec/unit/forge/tar_spec.rb
337
+ - spec/unit/forge/unpacker_spec.rb
251
338
  - spec/unit/forge/v3/base/paginated_collection_spec.rb
252
339
  - spec/unit/forge/v3/base_spec.rb
340
+ - spec/unit/forge/v3/metadata_spec.rb
253
341
  - spec/unit/forge/v3/module_spec.rb
254
342
  - spec/unit/forge/v3/release_spec.rb
255
343
  - spec/unit/forge/v3/user_spec.rb
256
- - spec/unit/her/lazy_accessors_spec.rb
257
- - spec/unit/her/lazy_relations_spec.rb
258
344
  has_rdoc: