rspec-puppet-facts 1.7.0 → 1.7.1

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: 13500ef636b561fc94ded0be8be865f94f004b07
4
- data.tar.gz: 515732b3aa600a4f4b6de18598d064972160944a
3
+ metadata.gz: e501268fb551da91bff54951aee4dc884f117a4b
4
+ data.tar.gz: cabe7a413415661d69ab685a614e7c6bfbe50729
5
5
  SHA512:
6
- metadata.gz: 1495b667b0e488ac1c9bcf8ee6bfd89a01ec5e747ff31f97f0eca476325e4efb57141e8eef4341db9596ebcf2d9f5569292ed6baa12417643740466992b7336d
7
- data.tar.gz: 2494c062b9d5e89c6fd94e0dd5b62c0e873c820e5bd14468114ce9ce4577afedf5c4c3674b1c9874bbc2d354176cafba10751b761727d89d1e75db56850be4b4
6
+ metadata.gz: 3cca12e796f02836127490f652cf3ca9a461878e7ea1d18ac94e84986ec3575bb1b60ae4d02144eeaa824ab3300251d31e1f4ff00dfd177d8d2c5d709e0bf71c
7
+ data.tar.gz: e7ae8569cc4d2715effe03add802b420fe52c3f76b7c94bdbb72d8c83e4d1160ab559d7ce99dac4c39d933a8b9478047a07155cf86e907904205cd9e17cb95f2
@@ -22,5 +22,6 @@ matrix:
22
22
  fast_finish: true
23
23
  allow_failures:
24
24
  - rvm: 1.8.7
25
+ - rvm: 1.9.3
25
26
  notifications:
26
27
  email: false
@@ -1,3 +1,6 @@
1
+ ##2017-01-04 - Release 1.7.1
2
+ - Ignore case when choosing H/W models
3
+
1
4
  ##2016-09-16 - Release 1.7.0
2
5
  - Support custom facts defined by spec_helper
3
6
 
data/README.md CHANGED
@@ -241,7 +241,7 @@ end
241
241
  Append some facts:
242
242
  ------------------
243
243
 
244
- 1. In your spec
244
+ You can locally override facts in your spec:
245
245
 
246
246
  ```ruby
247
247
  require 'spec_helper'
@@ -263,11 +263,12 @@ describe 'myclass' do
263
263
  end
264
264
  ```
265
265
 
266
- 2. In your `spec_helper.rb`
266
+ You can also globally set facts in `spec/spec_helper.rb`
267
+
267
268
  * Simple:
268
269
 
269
270
  ```ruby
270
- add_custom_fact 'foo', 'bar'
271
+ add_custom_fact :concat_basedir, '/doesnotexist'
271
272
  ```
272
273
 
273
274
  * Confine to an OS:
@@ -284,7 +285,7 @@ end
284
285
  * Call a proc to get a value:
285
286
 
286
287
  ```ruby
287
- add_custom_fact :root_home, ->(_os,facts) { "/tmp/#{facts['hostname']}"
288
+ add_custom_fact :root_home, ->(_os,facts) { "/tmp/#{facts['hostname']}" }
288
289
  ```
289
290
 
290
291
  Usage
@@ -296,7 +297,7 @@ Add this in your Gemfile:
296
297
  gem 'rspec-puppet-facts', :require => false
297
298
  ```
298
299
 
299
- Add this is your spec/spec_helper.rb:
300
+ Add this is your `spec/spec_helper.rb`:
300
301
 
301
302
  ```ruby
302
303
  require 'rspec-puppet-facts'
@@ -36,11 +36,11 @@ module RspecPuppetFacts
36
36
  os_sup['operatingsystemrelease'].map do |operatingsystemmajrelease|
37
37
  opts[:hardwaremodels].each do |hardwaremodel|
38
38
 
39
- if os_sup['operatingsystem'] =~ /BSD/
39
+ if os_sup['operatingsystem'] =~ /BSD/i
40
40
  hardwaremodel = 'amd64'
41
- elsif os_sup['operatingsystem'] =~ /Solaris/
41
+ elsif os_sup['operatingsystem'] =~ /Solaris/i
42
42
  hardwaremodel = 'i86pc'
43
- elsif os_sup['operatingsystem'] =~ /windows/
43
+ elsif os_sup['operatingsystem'] =~ /Windows/i
44
44
  hardwaremodel = 'x64'
45
45
  end
46
46
 
@@ -2,6 +2,6 @@ module RspecPuppetFacts
2
2
  # This module contains the current version constant
3
3
  module Version
4
4
  # The current version of this gem
5
- STRING = '1.7.0'
5
+ STRING = '1.7.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet-facts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickaël Canévet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-16 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.5.1
195
+ rubygems_version: 2.5.2
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Standard facts fixtures for Puppet