chefspec 4.4.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d51759cbf26eafa32f06c7ca69f4a29fa3346e5
4
- data.tar.gz: 3ba929b21426c5f1c941eb44d2342c21c44b8b57
3
+ metadata.gz: 4abcb8430f01e2e4a0d3a1be5f8266929d2a0dbc
4
+ data.tar.gz: 07da81047be5641e57bb1cfd4c331b1b4082ea09
5
5
  SHA512:
6
- metadata.gz: ab5f29d8ebfff60c179bf65412c2699829b7c5670f3c8572bfd0dc487bfb2a211781ab6ac146481e1433227d9163a73859621fdb65e415968ecab6afff559c62
7
- data.tar.gz: bceceb40f68701b239b504633a2027b86aa55a66bbe9c017c78dbcb36c696282a8f90b403bf7c08da113ac273a32845f4930cd405c5f1f491f69cc25e52bcd83
6
+ metadata.gz: cf4f698fca28f6ef69b7d7a176733cbfb0b2608c3bfb8fb8c090187391c167a87bd72564809ecd3f31f4b6e7770431aeba816450efa5c638277df31a646a5f2f
7
+ data.tar.gz: d7804c8c4f6f77fb783b161907524d203cdc9505bc089b9e2a46857413d1cc6d1265baee2e6a64e946d89b0eadc1a6f7205b07463deae1e1e0691b74423b5c53
@@ -17,6 +17,7 @@ gemfile: gemfiles/chefspec.gemfile
17
17
 
18
18
  env:
19
19
  - CHEF_VERSION=master
20
+ - CHEF_VERSION=12.5.1
20
21
  - CHEF_VERSION=12.4.3
21
22
  - CHEF_VERSION=12.4.0
22
23
  - CHEF_VERSION=12.3.0
@@ -1,6 +1,11 @@
1
1
  CHANGELOG for ChefSpec
2
2
  ======================
3
3
 
4
+ ## 4.5.0 (December 4, 2015)
5
+
6
+ Improvements
7
+ - Update Fauxhai dependency to 3.0 to bring in newly generated mocked Ohai data
8
+
4
9
  ## 4.4.0 (September 18, 2015)
5
10
 
6
11
  Bugfixes
@@ -20,14 +25,14 @@ Bugfixes:
20
25
  - Only exit if the status is a failure [GH-565]
21
26
  - Fix load order on Windows when using the `rights` attributes
22
27
  - Improve testing matrix and remove deprecated Chef versions
23
- - Supress chef_gem compile_time warnings
28
+ - Suppress chef_gem compile_time warnings
24
29
  - Fix exceptions on converge for Chef 12.1.0 masking
25
- - Update Librarian `Cheffile` site URL to supermerket.chef.io
30
+ - Update Librarian `Cheffile` site URL to supermarket.chef.io
26
31
  - Filter Windows and Unix paths for test coverage report with Berkshelf
27
32
 
28
33
  Improvements:
29
34
  - Added possibility to specify file_cache_path globally
30
- - Added new capabilities for reboot resouce
35
+ - Added new capabilities for reboot resource
31
36
  - Use `Chef::Resource#declared_type` first if available (Chef >= 12),
32
37
  otherwise fall back to `Chef::Resource#resource_name` (Chef <= 11)
33
38
  - Extend render_file to yield the content as a block
@@ -67,7 +72,7 @@ Improvements:
67
72
  - Updated documentation
68
73
 
69
74
  Breaking changes:
70
- - Due to the new `ServerRunner`, the `ChefSpec::Server` singleton object has been deprecated. As much as I would like to provide a backwards-compatible interface, there is no way to do so (as the code now supports multipel Chef Server instances). Sorry :(.
75
+ - Due to the new `ServerRunner`, the `ChefSpec::Server` singleton object has been deprecated. As much as I would like to provide a backwards-compatible interface, there is no way to do so (as the code now supports multiple Chef Server instances). Sorry :(.
71
76
  - Remove old deprecations - this is not really a breaking change, but the v2.0.0 deprecations have been removed in favor of new ones
72
77
 
73
78
  ## 4.0.2 (August 13, 2014)
@@ -154,7 +159,7 @@ Bugfixes:
154
159
  - Fix coverage calculation when there are no resources in the collection
155
160
  - Fix misplaced quote in matcher output
156
161
  - Include all files in generated gem
157
- - Ensure compatability with Chef HEAD
162
+ - Ensure compatibility with Chef HEAD
158
163
 
159
164
  Improvements:
160
165
  - Test Ruby 2.1 on Travis
data/README.md CHANGED
@@ -28,10 +28,10 @@ Important Notes
28
28
  - **ChefSpec 3.0+ requires Ruby 1.9 or higher!**
29
29
  - **This documentation corresponds to the master branch, which may be unreleased. Please check the README of the latest git tag or the gem's source for your version's documentation!**
30
30
  - **Each resource matcher is self-documented using [Yard](http://rubydoc.info/github/sethvargo/chefspec) and has a corresponding aruba test from the [examples directory](https://github.com/sethvargo/chefspec/tree/master/examples).**
31
- - **ChefSpec aims to maintain compatability with the two most recent minor versions of Chef.** If you are running an older version of Chef it may work, or you will need to run an older version of ChefSpec.
31
+ - **ChefSpec aims to maintain compatibility with the two most recent minor versions of Chef.** If you are running an older version of Chef it may work, or you will need to run an older version of ChefSpec.
32
32
 
33
33
 
34
- Notes on Compatability with Chef Versions
34
+ Notes on Compatibility with Chef Versions
35
35
  -----------------------------------------
36
36
  As a general rule, if it is tested in the Travis CI matrix, it is a supported version. The section below details any specific versions that are _not_ supported and why:
37
37
 
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.required_ruby_version = '>= 1.9'
28
28
 
29
29
  s.add_dependency 'chef', '>= 11.14'
30
- s.add_dependency 'fauxhai', '~> 2.3'
30
+ s.add_dependency 'fauxhai', '~> 3.0', '>= 3.0.1'
31
31
  s.add_dependency 'rspec', '~> 3.0'
32
32
 
33
33
  # Development Dependencies
@@ -27,7 +27,7 @@ describe 'server::node' do
27
27
 
28
28
  node = chef_run.get_node('chefspec')
29
29
  expect(node['kernel']['name']).to eq('Linux')
30
- expect(node['kernel']['release']).to eq('3.2.0-26-generic')
30
+ expect(node['kernel']['release']).to eq('3.2.0-92-generic')
31
31
  expect(node['kernel']['machine']).to eq('x86_64')
32
32
  end
33
33
  end
@@ -15,19 +15,19 @@ module ChefSpec::API
15
15
  # The Examples section demonstrates the different ways to test a
16
16
  # +directory+ resource with ChefSpec.
17
17
  #
18
- # @example Assert that a +directory+ was createed
18
+ # @example Assert that a +directory+ was created
19
19
  # expect(chef_run).to create_directory('/tmp')
20
20
  #
21
- # @example Assert that a +directory+ was createed with predicate matchers
21
+ # @example Assert that a +directory+ was created with predicate matchers
22
22
  # expect(chef_run).to create_directory('/tmp').with_user('svargo')
23
23
  #
24
- # @example Assert that a +directory+ was createed with attributes
24
+ # @example Assert that a +directory+ was created with attributes
25
25
  # expect(chef_run).to create_directory('/tmp').with(user: 'svargo')
26
26
  #
27
- # @example Assert that a +directory+ was createed using a regex
27
+ # @example Assert that a +directory+ was created using a regex
28
28
  # expect(chef_run).to create_directory('/tmp').with(user: /sva(.+)/)
29
29
  #
30
- # @example Assert that a +directory+ was _not_ createed
30
+ # @example Assert that a +directory+ was _not_ created
31
31
  # expect(chef_run).to_not create_directory('/tmp')
32
32
  #
33
33
  #
@@ -52,19 +52,19 @@ module ChefSpec::API
52
52
  # The Examples section demonstrates the different ways to test a
53
53
  # +directory+ resource with ChefSpec.
54
54
  #
55
- # @example Assert that a +directory+ was deleteed
55
+ # @example Assert that a +directory+ was deleted
56
56
  # expect(chef_run).to delete_directory('/tmp')
57
57
  #
58
- # @example Assert that a +directory+ was deleteed with predicate matchers
58
+ # @example Assert that a +directory+ was deleted with predicate matchers
59
59
  # expect(chef_run).to delete_directory('/tmp').with_user('svargo')
60
60
  #
61
- # @example Assert that a +directory+ was deleteed with attributes
61
+ # @example Assert that a +directory+ was deleted with attributes
62
62
  # expect(chef_run).to delete_directory('/tmp').with(user: 'svargo')
63
63
  #
64
- # @example Assert that a +directory+ was deleteed using a regex
64
+ # @example Assert that a +directory+ was deleted using a regex
65
65
  # expect(chef_run).to delete_directory('/tmp').with(user: /sva(.+)/)
66
66
  #
67
- # @example Assert that a +directory+ was _not_ deleteed
67
+ # @example Assert that a +directory+ was _not_ deleted
68
68
  # expect(chef_run).to_not delete_directory('/tmp')
69
69
  #
70
70
  #
@@ -15,19 +15,19 @@ module ChefSpec::API
15
15
  # The Examples section demonstrates the different ways to test a
16
16
  # +group+ resource with ChefSpec.
17
17
  #
18
- # @example Assert that a +group+ was createed
18
+ # @example Assert that a +group+ was created
19
19
  # expect(chef_run).to create_group('apache2')
20
20
  #
21
- # @example Assert that a +group+ was createed with predicate matchers
21
+ # @example Assert that a +group+ was created with predicate matchers
22
22
  # expect(chef_run).to create_group('apache2').with_gid(1234)
23
23
  #
24
- # @example Assert that a +group+ was createed with attributes
24
+ # @example Assert that a +group+ was created with attributes
25
25
  # expect(chef_run).to create_group('apache2').with(gid: 1234)
26
26
  #
27
- # @example Assert that a +group+ was createed using a regex
27
+ # @example Assert that a +group+ was created using a regex
28
28
  # expect(chef_run).to create_group('apache2').with(gid: /\d+/)
29
29
  #
30
- # @example Assert that a +group+ was _not_ createed
30
+ # @example Assert that a +group+ was _not_ created
31
31
  # expect(chef_run).to_not create_group('apache2')
32
32
  #
33
33
  #
@@ -15,19 +15,19 @@ module ChefSpec::API
15
15
  # The Examples section demonstrates the different ways to test a
16
16
  # +link+ resource with ChefSpec.
17
17
  #
18
- # @example Assert that a +link+ was createed
18
+ # @example Assert that a +link+ was created
19
19
  # expect(chef_run).to create_link('/tmp')
20
20
  #
21
- # @example Assert that a +link+ was createed with predicate matchers
21
+ # @example Assert that a +link+ was created with predicate matchers
22
22
  # expect(chef_run).to create_link('/tmp').with_link_type(:hard)
23
23
  #
24
- # @example Assert that a +link+ was createed with attributes
24
+ # @example Assert that a +link+ was created with attributes
25
25
  # expect(chef_run).to create_link('/tmp').with(link_type: :hard)
26
26
  #
27
- # @example Assert that a +link+ was createed using a regex
27
+ # @example Assert that a +link+ was created using a regex
28
28
  # expect(chef_run).to create_link('/tmp').with(link_type: Symbol)
29
29
  #
30
- # @example Assert that a +link+ was _not_ createed
30
+ # @example Assert that a +link+ was _not_ created
31
31
  # expect(chef_run).to_not create_link('/tmp')
32
32
  #
33
33
  #
@@ -52,19 +52,19 @@ module ChefSpec::API
52
52
  # The Examples section demonstrates the different ways to test a
53
53
  # +link+ resource with ChefSpec.
54
54
  #
55
- # @example Assert that a +link+ was deleteed
55
+ # @example Assert that a +link+ was deleted
56
56
  # expect(chef_run).to delete_link('/tmp')
57
57
  #
58
- # @example Assert that a +link+ was deleteed with predicate matchers
58
+ # @example Assert that a +link+ was deleted with predicate matchers
59
59
  # expect(chef_run).to delete_link('/tmp').with_link_type(:hard)
60
60
  #
61
- # @example Assert that a +link+ was deleteed with attributes
61
+ # @example Assert that a +link+ was deleted with attributes
62
62
  # expect(chef_run).to delete_link('/tmp').with(link_type: :hard)
63
63
  #
64
- # @example Assert that a +link+ was deleteed using a regex
64
+ # @example Assert that a +link+ was deleted using a regex
65
65
  # expect(chef_run).to delete_link('/tmp').with(link_type: Symbol)
66
66
  #
67
- # @example Assert that a +link+ was _not_ deleteed
67
+ # @example Assert that a +link+ was _not_ deleted
68
68
  # expect(chef_run).to_not delete_link('/tmp')
69
69
  #
70
70
  #
@@ -52,19 +52,19 @@ module ChefSpec::API
52
52
  # The Examples section demonstrates the different ways to test a
53
53
  # +mdadm+ resource with ChefSpec.
54
54
  #
55
- # @example Assert that a +mdadm+ was createed
55
+ # @example Assert that a +mdadm+ was created
56
56
  # expect(chef_run).to create_mdadm('/dev/md0')
57
57
  #
58
- # @example Assert that a +mdadm+ was createed with predicate matchers
58
+ # @example Assert that a +mdadm+ was created with predicate matchers
59
59
  # expect(chef_run).to create_mdadm('/dev/md0').with_devices(['/dev/sda'])
60
60
  #
61
- # @example Assert that a +mdadm+ was createed with attributes
61
+ # @example Assert that a +mdadm+ was created with attributes
62
62
  # expect(chef_run).to create_mdadm('/dev/md0').with(devices: ['/dev/sda'])
63
63
  #
64
- # @example Assert that a +mdadm+ was createed using a regex
64
+ # @example Assert that a +mdadm+ was created using a regex
65
65
  # expect(chef_run).to create_mdadm('/dev/md0').with(devices: '/dev/sda')
66
66
  #
67
- # @example Assert that a +mdadm+ was _not_ createed
67
+ # @example Assert that a +mdadm+ was _not_ created
68
68
  # expect(chef_run).to_not create_mdadm('/dev/md0')
69
69
  #
70
70
  #
@@ -15,19 +15,19 @@ module ChefSpec::API
15
15
  # The Examples section demonstrates the different ways to test a
16
16
  # +remote_directory+ resource with ChefSpec.
17
17
  #
18
- # @example Assert that a +remote_directory+ was createed
18
+ # @example Assert that a +remote_directory+ was created
19
19
  # expect(chef_run).to create_remote_directory('/tmp')
20
20
  #
21
- # @example Assert that a +remote_directory+ was createed with predicate matchers
21
+ # @example Assert that a +remote_directory+ was created with predicate matchers
22
22
  # expect(chef_run).to create_remote_directory('/tmp').with_overwrite(true)
23
23
  #
24
- # @example Assert that a +remote_directory+ was createed with attributes
24
+ # @example Assert that a +remote_directory+ was created with attributes
25
25
  # expect(chef_run).to create_remote_directory('/tmp').with(overwrite: true)
26
26
  #
27
- # @example Assert that a +remote_directory+ was createed using a regex
27
+ # @example Assert that a +remote_directory+ was created using a regex
28
28
  # expect(chef_run).to create_remote_directory('/tmp').with(overwrite: /true/)
29
29
  #
30
- # @example Assert that a +remote_directory+ was _not_ createed
30
+ # @example Assert that a +remote_directory+ was _not_ created
31
31
  # expect(chef_run).to_not create_remote_directory('/tmp')
32
32
  #
33
33
  #
@@ -92,19 +92,19 @@ module ChefSpec::API
92
92
  # The Examples section demonstrates the different ways to test a
93
93
  # +remote_directory+ resource with ChefSpec.
94
94
  #
95
- # @example Assert that a +remote_directory+ was deleteed
95
+ # @example Assert that a +remote_directory+ was deleted
96
96
  # expect(chef_run).to delete_remote_directory('/tmp')
97
97
  #
98
- # @example Assert that a +remote_directory+ was deleteed with predicate matchers
98
+ # @example Assert that a +remote_directory+ was deleted with predicate matchers
99
99
  # expect(chef_run).to delete_remote_directory('/tmp').with_overwrite(true)
100
100
  #
101
- # @example Assert that a +remote_directory+ was deleteed with attributes
101
+ # @example Assert that a +remote_directory+ was deleted with attributes
102
102
  # expect(chef_run).to delete_remote_directory('/tmp').with(overwrite: true)
103
103
  #
104
- # @example Assert that a +remote_directory+ was deleteed using a regex
104
+ # @example Assert that a +remote_directory+ was deleted using a regex
105
105
  # expect(chef_run).to delete_remote_directory('/tmp').with(overwrite: /true/)
106
106
  #
107
- # @example Assert that a +remote_directory+ was _not_ deleteed
107
+ # @example Assert that a +remote_directory+ was _not_ deleted
108
108
  # expect(chef_run).to_not delete_remote_directory('/tmp')
109
109
  #
110
110
  #
@@ -52,19 +52,19 @@ module ChefSpec::API
52
52
  # The Examples section demonstrates the different ways to test a
53
53
  # +route+ resource with ChefSpec.
54
54
  #
55
- # @example Assert that a +route+ was deleteed
55
+ # @example Assert that a +route+ was deleted
56
56
  # expect(chef_run).to delete_route('10.0.0.10/32')
57
57
  #
58
- # @example Assert that a +route+ was deleteed with predicate matchers
58
+ # @example Assert that a +route+ was deleted with predicate matchers
59
59
  # expect(chef_run).to delete_route('10.0.0.10/32').with_device('eth0')
60
60
  #
61
- # @example Assert that a +route+ was deleteed with attributes
61
+ # @example Assert that a +route+ was deleted with attributes
62
62
  # expect(chef_run).to delete_route('10.0.0.10/32').with(device: 'eth0')
63
63
  #
64
- # @example Assert that a +route+ was deleteed using a regex
64
+ # @example Assert that a +route+ was deleted using a regex
65
65
  # expect(chef_run).to delete_route('10.0.0.10/32').with(device: /eth(\d+)/)
66
66
  #
67
- # @example Assert that a +route+ was _not_ deleteed
67
+ # @example Assert that a +route+ was _not_ deleted
68
68
  # expect(chef_run).to_not delete_route('10.0.0.10/32')
69
69
  #
70
70
  #
@@ -15,19 +15,19 @@ module ChefSpec::API
15
15
  # The Examples section demonstrates the different ways to test a
16
16
  # +user+ resource with ChefSpec.
17
17
  #
18
- # @example Assert that a +user+ was createed
18
+ # @example Assert that a +user+ was created
19
19
  # expect(chef_run).to create_user('apache2')
20
20
  #
21
- # @example Assert that a +user+ was createed with predicate matchers
21
+ # @example Assert that a +user+ was created with predicate matchers
22
22
  # expect(chef_run).to create_user('apache2').with_uid(1234)
23
23
  #
24
- # @example Assert that a +user+ was createed with attributes
24
+ # @example Assert that a +user+ was created with attributes
25
25
  # expect(chef_run).to create_user('apache2').with(uid: 1234)
26
26
  #
27
- # @example Assert that a +user+ was createed using a regex
27
+ # @example Assert that a +user+ was created using a regex
28
28
  # expect(chef_run).to create_user('apache2').with(uid: /\d+/)
29
29
  #
30
- # @example Assert that a +user+ was _not_ createed
30
+ # @example Assert that a +user+ was _not_ created
31
31
  # expect(chef_run).to_not create_user('apache2')
32
32
  #
33
33
  #
@@ -1,3 +1,3 @@
1
1
  module ChefSpec
2
- VERSION = '4.4.0'
2
+ VERSION = '4.5.0'
3
3
  end
@@ -97,7 +97,7 @@ describe ChefSpec::SoloRunner do
97
97
  it 'sets the attributes from fauxhai' do
98
98
  expect(hash['os']).to eq('linux')
99
99
  expect(hash['languages']['ruby']['ruby_bin']).to eq('/usr/local/bin/ruby')
100
- expect(hash['os_version']).to eq('3.2.0-26-generic')
100
+ expect(hash['os_version']).to eq('3.2.0-92-generic')
101
101
  expect(hash['fqdn']).to eq('fauxhai.local')
102
102
  expect(hash['domain']).to eq('local')
103
103
  expect(hash['ipaddress']).to eq('10.0.0.2')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Crump
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-30 00:00:00.000000000 Z
12
+ date: 2015-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -31,14 +31,20 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '2.3'
34
+ version: '3.0'
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.1
35
38
  type: :runtime
36
39
  prerelease: false
37
40
  version_requirements: !ruby/object:Gem::Requirement
38
41
  requirements:
39
42
  - - "~>"
40
43
  - !ruby/object:Gem::Version
41
- version: '2.3'
44
+ version: '3.0'
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.1
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: rspec
44
50
  requirement: !ruby/object:Gem::Requirement
@@ -794,7 +800,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
794
800
  version: '0'
795
801
  requirements: []
796
802
  rubyforge_project:
797
- rubygems_version: 2.4.5
803
+ rubygems_version: 2.2.3
798
804
  signing_key:
799
805
  specification_version: 4
800
806
  summary: Write RSpec examples and generate coverage reports for Chef recipes!