puppet_forge 2.2.5 → 2.2.6

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: bb6c13dde0b75c97be8726b4b9e754fba7a3c37e
4
- data.tar.gz: 0d0e3a9112d81e3a459c7e37f245a6a0afe5d50e
3
+ metadata.gz: 142ea90bc811679fcc6b1861bf7247d2c7d28e8f
4
+ data.tar.gz: ae77ef475e48a283f3738f62d4fb1a866f3d2aab
5
5
  SHA512:
6
- metadata.gz: b9d21c14690d2ae563bc1c166ffba9b7507d33cd9fbb5ef81d4ce2ba1351d4fc58fa486e0fec8470694cb746e3d32b31b4ae4e9d44eda6d72eb8c73e1934869f
7
- data.tar.gz: f96f9901f85f25e04d3d800c54945212342c49b36391d999e670752c1eec0648a055559f23fe86c787324fea6e5165d899068190198ba6d8a5458b77b28ff4e4
6
+ metadata.gz: 1af1e6dd24b0179f139087ffd8d8143732e59ab246f223e61dffd42899a1dd3c7b4c8b19cd145941928cfc037c2da905a90f52528505f6cf2206d07b7dfb6673
7
+ data.tar.gz: e070fb3539d78e13f817ec42e3e79936579941a3acbb51e43dc2975dd1dc62ef3c033a7e246dc3e281a67b3c740b17dd90682a52dea9c61a526d6173a543343c
@@ -3,6 +3,12 @@
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.6 - 2017-06-27
7
+
8
+ ### Fixed
9
+
10
+ * Fixed an issue when attempting to assign a non-String value to `PuppetForge.host`.
11
+
6
12
  ## v2.2.5 - 2017-06-26
7
13
 
8
14
  ### Fixed
@@ -7,6 +7,7 @@ module PuppetForge
7
7
  attr_reader :host
8
8
 
9
9
  def host=(new_host)
10
+ new_host = new_host.to_s
10
11
  new_host << '/' unless new_host[-1] == '/'
11
12
 
12
13
  # TODO: maybe freeze this
@@ -1,3 +1,3 @@
1
1
  module PuppetForge
2
- VERSION = '2.2.5' # Library version
2
+ VERSION = '2.2.6' # Library version
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'uri'
2
3
 
3
4
  RSpec.describe PuppetForge do
4
5
  describe 'host attribute' do
@@ -11,5 +12,12 @@ RSpec.describe PuppetForge do
11
12
 
12
13
  expect(PuppetForge.host[-1,1]).to eq '/'
13
14
  end
15
+
16
+ it 'should coerce non-String values if possible' do
17
+ PuppetForge.host = URI.parse('http://example.com')
18
+
19
+ expect(PuppetForge.host).to be_a String
20
+ expect(PuppetForge.host[-1,1]).to eq '/'
21
+ end
14
22
  end
15
23
  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.5
4
+ version: 2.2.6
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-26 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday