rspec-puppet 2.7.1 → 2.7.2

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
- SHA1:
3
- metadata.gz: 8bfde7204a46cbdfc8a4fa1ac03ae8e9d5320372
4
- data.tar.gz: fe3d036fa4a3452167b4d422729f1bda754e4309
2
+ SHA256:
3
+ metadata.gz: 176a810cdf4b4c2640ac1d8d8ec5085ef192d8c99b921a0a7b8612f9a067a35e
4
+ data.tar.gz: c4397dd3a4636280346e7ca4d5a251d8de496f004b47d9b3cd233e96314399c0
5
5
  SHA512:
6
- metadata.gz: 410832cb75f7f019c0cd7ea9a53d4650101a1c5890aad0a766adb3dcdd1e1fb0f2fdda7c32a272ab0cdeadd016f5659cb33d5c24cec3424d3b68c3107c4369fd
7
- data.tar.gz: 3ec95e750f92e06d09deb612bfea796dcd42db71ae584a76881d6bb97edda3e6b3afb2a69d3ab2545afbe2f42a6e2aef5b7fd1a661cf34f4958ce862e6deea7b
6
+ metadata.gz: 23ed9a0f35e5193952868083155e0519620d0e09e2deee04e5c272ef695935c398637bec4102ef04f224f47cbd8ba884de3248f4e78fb389f3294eeb1071f370
7
+ data.tar.gz: 01ad7d0d738923721f0ba267b58d31b5d8ccc6fb32cc2590f085a24a562302af62ec049a4d3e15f33dfdd604f9233b5902423a8afd2d29afe1ca5cf5f6a39c60
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file. This
3
3
  project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [2.7.2]
6
+
7
+ ### Changed
8
+ * Reverted the change introduced in 2.7.0 that reencoded resource parameter
9
+ values to modify their line endings.
10
+
5
11
  ## [2.7.1]
6
12
 
7
13
  ### Fixed
data/README.md CHANGED
@@ -873,7 +873,7 @@ Or by using the `execute` method on the subject directly
873
873
 
874
874
  ```ruby
875
875
  it 'something' do
876
- subject.exectue('foo', 'bar', ['baz'])
876
+ subject.execute('foo', 'bar', ['baz'])
877
877
  end
878
878
  ```
879
879
 
@@ -78,7 +78,7 @@ module RSpec::Puppet
78
78
  end
79
79
 
80
80
  def check_regexp(expected, actual)
81
- !!(munge_line_endings(actual.to_s).match expected) == @should_match
81
+ !!(actual.to_s.match expected) == @should_match
82
82
  end
83
83
 
84
84
  # Ensure that two hashes have the same number of keys, and that for each
@@ -119,17 +119,7 @@ module RSpec::Puppet
119
119
  end
120
120
 
121
121
  def check_string(expected, actual)
122
- (expected.to_s == munge_line_endings(actual.to_s)) == @should_match
123
- end
124
-
125
- def munge_line_endings(value)
126
- return value unless value.respond_to?(:encode)
127
-
128
- if Puppet::Util::Platform.windows?
129
- value.encode(:crlf_newline => true)
130
- else
131
- value.encode(:universal_newline => true)
132
- end
122
+ (expected.to_s == actual.to_s) == @should_match
133
123
  end
134
124
  end
135
125
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-04 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.6.14.1
92
+ rubygems_version: 2.7.7
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: RSpec tests for your Puppet manifests