lono-params 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +23 -7
- data/lib/lono-params.rb +4 -0
- data/lib/lono_params/generator.rb +2 -5
- data/lib/lono_params/version.rb +1 -1
- data/lono_params.gemspec +2 -0
- data/spec/spec_helper.rb +1 -4
- metadata +29 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42b15262add0a738a598444f08b024a970c757b6
|
4
|
+
data.tar.gz: 16216129105d15e26dfd5904b23c90338558a0b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b5d928c11c708bb2fdb08282aa267495045e3343ed00cbc8f2058a548b0e07c13f71d1c101f1b6889eef07d9387f978fe185fdc08b7a352a9c32550db68cdc6
|
7
|
+
data.tar.gz: c7ec7f911c7a4cfd6cd20b9b4b6b6b569d30fbeaa30c95d462d521c3cffd55a4490a0f70af4c3bff2573862e3c3ab2a2aee26713c01f44f2e3d3f7a11c7d3b59
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lono-params (0.1.
|
4
|
+
lono-params (0.1.1)
|
5
5
|
colorize
|
6
6
|
hashie
|
7
|
+
json
|
7
8
|
plissken
|
8
9
|
thor
|
9
10
|
|
@@ -19,22 +20,36 @@ GEM
|
|
19
20
|
thread_safe (~> 0.3, >= 0.3.4)
|
20
21
|
tzinfo (~> 1.1)
|
21
22
|
builder (3.2.3)
|
22
|
-
codeclimate-test-reporter (0.
|
23
|
-
simplecov (
|
23
|
+
codeclimate-test-reporter (1.0.8)
|
24
|
+
simplecov (<= 0.13)
|
24
25
|
colorize (0.8.1)
|
26
|
+
diff-lcs (1.3)
|
25
27
|
docile (1.1.5)
|
26
28
|
hashie (3.5.5)
|
27
29
|
i18n (0.8.1)
|
28
|
-
json (2.0
|
30
|
+
json (2.1.0)
|
29
31
|
minitest (5.10.2)
|
30
32
|
plissken (0.3.0)
|
31
33
|
symbolize (~> 4.2)
|
32
|
-
rake (
|
33
|
-
|
34
|
+
rake (12.0.0)
|
35
|
+
rspec (3.6.0)
|
36
|
+
rspec-core (~> 3.6.0)
|
37
|
+
rspec-expectations (~> 3.6.0)
|
38
|
+
rspec-mocks (~> 3.6.0)
|
39
|
+
rspec-core (3.6.0)
|
40
|
+
rspec-support (~> 3.6.0)
|
41
|
+
rspec-expectations (3.6.0)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.6.0)
|
44
|
+
rspec-mocks (3.6.0)
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
+
rspec-support (~> 3.6.0)
|
47
|
+
rspec-support (3.6.0)
|
48
|
+
simplecov (0.13.0)
|
34
49
|
docile (~> 1.1.0)
|
35
50
|
json (>= 1.8, < 3)
|
36
51
|
simplecov-html (~> 0.10.0)
|
37
|
-
simplecov-html (0.10.
|
52
|
+
simplecov-html (0.10.1)
|
38
53
|
symbolize (4.5.2)
|
39
54
|
activemodel (>= 3.2, < 5)
|
40
55
|
activesupport (>= 3.2, < 5)
|
@@ -52,6 +67,7 @@ DEPENDENCIES
|
|
52
67
|
codeclimate-test-reporter
|
53
68
|
lono-params!
|
54
69
|
rake
|
70
|
+
rspec
|
55
71
|
|
56
72
|
BUNDLED WITH
|
57
73
|
1.14.6
|
data/lib/lono-params.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
$:.unshift(File.expand_path("../", __FILE__))
|
2
2
|
require "lono_params/version"
|
3
3
|
|
4
|
+
require "json"
|
5
|
+
require "fileutils"
|
6
|
+
require 'plissken' # Hash#to_snake_keys
|
7
|
+
|
4
8
|
module LonoParams
|
5
9
|
autoload :CLI, 'lono_params/cli'
|
6
10
|
autoload :Generator, 'lono_params/generator'
|
@@ -1,7 +1,3 @@
|
|
1
|
-
require "json"
|
2
|
-
require "fileutils"
|
3
|
-
require 'plissken' # Hash#to_snake_keys
|
4
|
-
|
5
1
|
module LonoParams
|
6
2
|
class Generator
|
7
3
|
def initialize(name, options)
|
@@ -72,10 +68,11 @@ module LonoParams
|
|
72
68
|
end
|
73
69
|
|
74
70
|
def output_path
|
75
|
-
"#{@project_root}/output/params/#{@name}.json".sub
|
71
|
+
"#{@project_root}/output/params/#{@name}.json".sub(/\.\//,'')
|
76
72
|
end
|
77
73
|
|
78
74
|
def write_output(json)
|
75
|
+
puts "output_path #{output_path.inspect}"
|
79
76
|
dir = File.dirname(output_path)
|
80
77
|
FileUtils.mkdir_p(dir) unless File.exist?(dir)
|
81
78
|
IO.write(output_path, json)
|
data/lib/lono_params/version.rb
CHANGED
data/lono_params.gemspec
CHANGED
@@ -22,7 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency "hashie"
|
23
23
|
spec.add_dependency "colorize"
|
24
24
|
spec.add_dependency "plissken"
|
25
|
+
spec.add_dependency "json"
|
25
26
|
|
26
27
|
spec.add_development_dependency "bundler", "~> 1.3"
|
27
28
|
spec.add_development_dependency "rake"
|
29
|
+
spec.add_development_dependency "rspec"
|
28
30
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lono-params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +108,20 @@ dependencies:
|
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
97
125
|
description: Tool to generate a CloudFormation parameters json formatted file
|
98
126
|
email:
|
99
127
|
- tongueroo@gmail.com
|