fauxhai 5.3.0 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/PLATFORMS.md +4 -0
- data/fauxhai.gemspec +1 -1
- data/lib/fauxhai/mocker.rb +1 -1
- data/lib/fauxhai/platforms/centos/7.4.1708.json +4075 -0
- data/lib/fauxhai/platforms/oracle/7.4.json +4203 -0
- data/lib/fauxhai/platforms/redhat/7.4.json +4271 -0
- data/lib/fauxhai/platforms/suse/12.3.json +14297 -0
- data/lib/fauxhai/version.rb +1 -1
- data/tmp/.gitkeep +0 -0
- metadata +7 -7
- data/.gitignore +0 -21
- data/.travis.yml +0 -13
- data/Gemfile +0 -2
- data/Rakefile +0 -49
data/lib/fauxhai/version.rb
CHANGED
data/tmp/.gitkeep
ADDED
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.
|
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-
|
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.
|
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
data/.travis.yml
DELETED
data/Gemfile
DELETED
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
|