yaml_to_json 0.1.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 +7 -0
- data/Gemfile +3 -0
- data/README.md +4 -0
- data/bin/yaml_to_json +16 -0
- data/files.rb +7 -0
- data/version.rb +9 -0
- data/yaml_to_json.gemspec +25 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 35752bd7ef5c6796c9a768aabaa3c36870031bca
|
4
|
+
data.tar.gz: 2ccc4b4f4c7184decf950207ba1e3dc6ec6d8a91
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7fd1290b8f434bd0199f71abe6b1cc4132a3858547091cc3bed81ef98876cecb08370c37dad9d505f9aa21be330cf865ad6c3e7e858861706416334b4371e035
|
7
|
+
data.tar.gz: 05c574c75a5ef5fcf58dbb56a4d4a0165d2bc11b966a6f2c19581450bf110bb90f171430f972b8a08beb9344ca14429aa4d95635ff337a1a4a87feeec1ba9227
|
data/Gemfile
ADDED
data/README.md
ADDED
data/bin/yaml_to_json
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'yaml'
|
4
|
+
require 'json'
|
5
|
+
require 'optparse'
|
6
|
+
require 'fileutils'
|
7
|
+
|
8
|
+
yaml_file = File.expand_path(ARGV[0], FileUtils.pwd)
|
9
|
+
output_file = File.expand_path(ARGV[1], FileUtils.pwd)
|
10
|
+
|
11
|
+
yaml = YAML.load(File.read(yaml_file))
|
12
|
+
json = yaml.to_json
|
13
|
+
|
14
|
+
File.open(output_file, 'w+') do |file|
|
15
|
+
file.puts(json)
|
16
|
+
end
|
data/files.rb
ADDED
data/version.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require File.expand_path('../version.rb', __FILE__)
|
2
|
+
require File.expand_path('../files.rb', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.specification_version = 1 if s.respond_to? :specification_version=
|
6
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version
|
7
|
+
s.required_ruby_version = '>= 2.2.2'
|
8
|
+
|
9
|
+
s.name = 'yaml_to_json'
|
10
|
+
s.version = YamlToJson.version
|
11
|
+
s.date = '2016-02-18'
|
12
|
+
s.summary = 'Convert YAML to JSON'
|
13
|
+
s.authors = ['Dana Scheider']
|
14
|
+
|
15
|
+
s.files = YamlToJson.files
|
16
|
+
s.require_paths = ['bin']
|
17
|
+
|
18
|
+
s.executables = ['yaml_to_json']
|
19
|
+
s.default_executable = 'yaml_to_json'
|
20
|
+
|
21
|
+
s.add_runtime_dependency 'colorize', '~> 0.7'
|
22
|
+
|
23
|
+
s.homepage = 'http://github.com/danascheider/yaml_to_json'
|
24
|
+
s.rubygems_version = '1.1.1'
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yaml_to_json
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dana Scheider
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colorize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.7'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
executables:
|
30
|
+
- yaml_to_json
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- "./bin/yaml_to_json"
|
35
|
+
- Gemfile
|
36
|
+
- README.md
|
37
|
+
- bin/yaml_to_json
|
38
|
+
- files.rb
|
39
|
+
- version.rb
|
40
|
+
- yaml_to_json.gemspec
|
41
|
+
homepage: http://github.com/danascheider/yaml_to_json
|
42
|
+
licenses: []
|
43
|
+
metadata: {}
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- bin
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.2.2
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 2.4.8
|
61
|
+
signing_key:
|
62
|
+
specification_version: 1
|
63
|
+
summary: Convert YAML to JSON
|
64
|
+
test_files: []
|