puppet_forge 2.2.7 → 2.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50ae156c931b5b0f762aed1b68412d6e203681e2
4
- data.tar.gz: ad082614f565312c528438c46b84033e3416361e
3
+ metadata.gz: c446c6b2fd293f0c4abe109188991d8414c4ec5f
4
+ data.tar.gz: b5855c3e6dc41cdd974043a5790253eb7ad0cf8c
5
5
  SHA512:
6
- metadata.gz: c0bb0b11dcefec8c7dc09fb62fdf6d367e449ec66a787e8f19962535a65d67c29aab166758be666cbe3c462115d431218c27df362afdfa0938b543e3ef8edc4a
7
- data.tar.gz: 066eadca06f32397ed935ba3e2d2bafe1b72c59032b2fbe10b95239bbe90c92b76009727b32288fcbd70ed4e11ca58caeb50382b340c8a4b750a36fdbfc0c1c4
6
+ metadata.gz: a735cdcca88c6521cb6eb7289060b959c4052f959b4dd7a7fedc83129c20f9fe3dcdfdcb5b92c61e3f164b3ee77a546a2736ba8a25a36894d499c2650326836c
7
+ data.tar.gz: 46c55b0bab4377f6ed182a26231c7bbcd04070e7fdc11b0619675119eb143cafb3ef181079d07f30b2f12d898ff9876d96c63631761f10aa1411426edb7a7faf
data/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  Starting with v2.0.0, all notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## v2.2.8 - 2017-11-09
7
+
8
+ ### Added
9
+
10
+ Created PuppetForge::Util class with a single method, version_valid?, in order to
11
+ drop the r10k dependency on semantic_puppet.
12
+
6
13
  ## v2.2.7 - 2017-06-30
7
14
 
8
15
  ### Changed
@@ -19,7 +26,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
19
26
 
20
27
  ### Fixed
21
28
 
22
- * (FORGE-338) Fixed an issue where `V3::Release.download_url` returned an incorrect value when `PuppetForge.host` included
29
+ * (FORGE-338) Fixed an issue where `V3::Release.download_url` returned an incorrect value when `PuppetForge.host` included
23
30
  a path prefix. (Thanks to [Jainish Shah](https://github.com/jainishshah17) for the report and initial fix proposal.)
24
31
 
25
32
  ## v2.2.4 - 2017-04-17
@@ -0,0 +1,9 @@
1
+ require 'semantic_puppet'
2
+
3
+ module PuppetForge
4
+ class Util
5
+ def self.version_valid?(version)
6
+ return SemanticPuppet::Version.valid?(version)
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module PuppetForge
2
- VERSION = '2.2.7' # Library version
2
+ VERSION = '2.2.8' # Library version
3
3
  end
@@ -0,0 +1,17 @@
1
+ require 'puppet_forge/util'
2
+
3
+ describe PuppetForge::Util do
4
+
5
+ describe "version_valid?" do
6
+ it "returns true for a valid version" do
7
+ expect(described_class.version_valid?('1.0.0')).to equal(true)
8
+ end
9
+
10
+
11
+ it "returns false for an invalid version" do
12
+ expect(described_class.version_valid?('notaversion')).to equal(false)
13
+ end
14
+
15
+ end
16
+
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_forge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-30 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -223,6 +223,7 @@ files:
223
223
  - lib/puppet_forge/tar.rb
224
224
  - lib/puppet_forge/tar/mini.rb
225
225
  - lib/puppet_forge/unpacker.rb
226
+ - lib/puppet_forge/util.rb
226
227
  - lib/puppet_forge/v3.rb
227
228
  - lib/puppet_forge/v3/base.rb
228
229
  - lib/puppet_forge/v3/base/paginated_collection.rb
@@ -276,6 +277,7 @@ files:
276
277
  - spec/unit/forge/tar/mini_spec.rb
277
278
  - spec/unit/forge/tar_spec.rb
278
279
  - spec/unit/forge/unpacker_spec.rb
280
+ - spec/unit/forge/util_spec.rb
279
281
  - spec/unit/forge/v3/base/paginated_collection_spec.rb
280
282
  - spec/unit/forge/v3/base_spec.rb
281
283
  - spec/unit/forge/v3/metadata_spec.rb
@@ -303,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
305
  version: '0'
304
306
  requirements: []
305
307
  rubyforge_project:
306
- rubygems_version: 2.6.8
308
+ rubygems_version: 2.6.11
307
309
  signing_key:
308
310
  specification_version: 4
309
311
  summary: Access the Puppet Forge API from Ruby for resource information and to download
@@ -352,6 +354,7 @@ test_files:
352
354
  - spec/unit/forge/tar/mini_spec.rb
353
355
  - spec/unit/forge/tar_spec.rb
354
356
  - spec/unit/forge/unpacker_spec.rb
357
+ - spec/unit/forge/util_spec.rb
355
358
  - spec/unit/forge/v3/base/paginated_collection_spec.rb
356
359
  - spec/unit/forge/v3/base_spec.rb
357
360
  - spec/unit/forge/v3/metadata_spec.rb
@@ -359,4 +362,3 @@ test_files:
359
362
  - spec/unit/forge/v3/release_spec.rb
360
363
  - spec/unit/forge/v3/user_spec.rb
361
364
  - spec/unit/puppet_forge_spec.rb
362
- has_rdoc: