fauxhai 5.3.0 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Fauxhai
2
- VERSION = '5.3.0'.freeze
2
+ VERSION = '5.4.0'.freeze
3
3
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fauxhai
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2017-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -74,15 +74,11 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - ".gitignore"
78
- - ".travis.yml"
79
77
  - CHANGELOG.md
80
78
  - CONTRIBUTING.md
81
- - Gemfile
82
79
  - LICENSE
83
80
  - PLATFORMS.md
84
81
  - README.md
85
- - Rakefile
86
82
  - bin/fauxhai
87
83
  - examples/chefspec.md
88
84
  - examples/rspec-chef.md
@@ -136,6 +132,7 @@ files:
136
132
  - lib/fauxhai/platforms/centos/7.1.1503.json
137
133
  - lib/fauxhai/platforms/centos/7.2.1511.json
138
134
  - lib/fauxhai/platforms/centos/7.3.1611.json
135
+ - lib/fauxhai/platforms/centos/7.4.1708.json
139
136
  - lib/fauxhai/platforms/chefspec/0.6.1.json
140
137
  - lib/fauxhai/platforms/clearos/7.0.json
141
138
  - lib/fauxhai/platforms/debian/7.0.json
@@ -204,6 +201,7 @@ files:
204
201
  - lib/fauxhai/platforms/oracle/7.1.json
205
202
  - lib/fauxhai/platforms/oracle/7.2.json
206
203
  - lib/fauxhai/platforms/oracle/7.3.json
204
+ - lib/fauxhai/platforms/oracle/7.4.json
207
205
  - lib/fauxhai/platforms/raspbian/8.0.json
208
206
  - lib/fauxhai/platforms/redhat/5.10.json
209
207
  - lib/fauxhai/platforms/redhat/5.11.json
@@ -225,6 +223,7 @@ files:
225
223
  - lib/fauxhai/platforms/redhat/7.1.json
226
224
  - lib/fauxhai/platforms/redhat/7.2.json
227
225
  - lib/fauxhai/platforms/redhat/7.3.json
226
+ - lib/fauxhai/platforms/redhat/7.4.json
228
227
  - lib/fauxhai/platforms/slackware/14.1.json
229
228
  - lib/fauxhai/platforms/smartos/5.11.json
230
229
  - lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json
@@ -235,6 +234,7 @@ files:
235
234
  - lib/fauxhai/platforms/suse/12.0.json
236
235
  - lib/fauxhai/platforms/suse/12.1.json
237
236
  - lib/fauxhai/platforms/suse/12.2.json
237
+ - lib/fauxhai/platforms/suse/12.3.json
238
238
  - lib/fauxhai/platforms/ubuntu/12.04.json
239
239
  - lib/fauxhai/platforms/ubuntu/14.04.json
240
240
  - lib/fauxhai/platforms/ubuntu/15.04.json
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  version: '0'
275
275
  requirements: []
276
276
  rubyforge_project:
277
- rubygems_version: 2.6.12
277
+ rubygems_version: 2.6.13
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: Fauxhai provides an easy way to mock out your ohai data for testing with
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- vendor
19
-
20
- # ohai makes this file
21
- 1
@@ -1,13 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- dist: trusty
5
-
6
- rvm:
7
- - 2.2.7
8
- - 2.3.4
9
- - 2.4.1
10
-
11
- branches:
12
- only:
13
- - master
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
data/Rakefile DELETED
@@ -1,49 +0,0 @@
1
- #!/usr/bin/env rake
2
- require 'bundler/gem_tasks'
3
- require 'json'
4
-
5
- task :default => ['validate:json']
6
-
7
- namespace :validate do
8
- desc 'Validate mock platform data is valid JSON'
9
- task :json do
10
- failure = false
11
- Dir.glob('./lib/fauxhai/platforms/**/*.json') do |file|
12
- begin
13
- JSON.parse(File.read(file))
14
- rescue JSON::ParserError => e
15
- failure = true
16
- puts "Failed to parse #{file}."
17
- end
18
- end
19
- exit! if failure
20
- puts 'JSON files validated'
21
- end
22
- end
23
-
24
- namespace :documentation do
25
- desc 'Update the PLATFORMS.md file with a list of all platforms'
26
- task :update_platforms do
27
- File.delete('PLATFORMS.md') if File.exist?('PLATFORMS.md')
28
- f = File.new('PLATFORMS.md', 'w')
29
- f.write "## Fauxhai Platforms\n\nThis file lists each platform known to Fauxhai and the available versions for each of those platforms. See the ChefSpec documentation for mocking out platforms and platform versions within ChefSpec.\n"
30
- Dir.glob('./lib/fauxhai/platforms/**') do |platform_path|
31
- versions = []
32
- Dir.glob(File.join(platform_path, '**.json')).each do |version_path|
33
- # skip anything marked as deprecated
34
- data = JSON.parse(File.read(version_path))
35
- unless data['deprecated']
36
- versions << version_path.split('/')[-1].chomp('.json')
37
- end
38
- end
39
- # make sure there are any non-deprecated platforms before writing out the header
40
- unless versions.empty?
41
- f.write "\n### #{platform_path.split('/')[-1]}\n\n"
42
- versions.each do |v|
43
- f.write " - #{v}\n"
44
- end
45
- end
46
- end
47
- f.close
48
- end
49
- end