Rakefile in fauxhai-4.1.0 vs Rakefile in fauxhai-5.0.0

- old
+ new

@@ -28,10 +28,14 @@ f = File.new('PLATFORMS.md', 'w') 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" Dir.glob('./lib/fauxhai/platforms/**') do |platform_path| f.write "\n### #{platform_path.split('/')[-1]}\n\n" Dir.glob(File.join(platform_path, '**.json')).each do |version_path| - f.write " - #{version_path.split('/')[-1].chomp('.json')}\n" + # skip anything marked as deprecated + data = JSON.parse(File.read(version_path)) + unless data['deprecated'] + f.write " - #{version_path.split('/')[-1].chomp('.json')}\n" + end end end f.close end end