kumogata-template 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e864c2a60e72840e4dbd4654d206ad26a537f6a
4
- data.tar.gz: 42092ee39c37f1ece34f4df417bc8bc9808c1fb2
3
+ metadata.gz: '08cd537236edb177fd1201221693623a58998108'
4
+ data.tar.gz: 3c1e901ed5171b9d288f56583614f48547c1f43e
5
5
  SHA512:
6
- metadata.gz: 20b12e59103fdd77b860bdf4b5d45c5481140a50abc191662662e8ae3c588376b1939d046d009ea0885d08e16cc2cfaac0b8e427d3bc703065795787f96ee88d
7
- data.tar.gz: e0e8c9b6be839f6675901e136a84458b2c996338f0db834c045c3a2600ba8b7410564a79cb8a055925651689f680501fcce9a95b141bd907fae499b7173b650d
6
+ metadata.gz: 76c880806ec9deced00fdf572ce244cd476d8050b746f05a744b60510cba54c80ef97b2d99db7dfe370043f7f94669e56fd552560e39b83b9ed8816d42e9d579
7
+ data.tar.gz: ef155df939575cbb86246bb57819eeada6302df841f578b4f415034cfb9312c5e328a61e27812dd44d176c275faf6c0a491c94fbfdf618458feb8874a4606656
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kumogata-template (0.0.13)
4
+ kumogata-template (0.0.16)
5
5
  aws-sdk (~> 2.3)
6
- kumogata (= 0.5.10)
6
+ kumogata (= 0.5.12)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- aws-sdk (2.6.44)
12
- aws-sdk-resources (= 2.6.44)
13
- aws-sdk-core (2.6.44)
11
+ aws-sdk (2.7.7)
12
+ aws-sdk-resources (= 2.7.7)
13
+ aws-sdk-core (2.7.7)
14
14
  aws-sigv4 (~> 1.0)
15
15
  jmespath (~> 1.0)
16
- aws-sdk-resources (2.6.44)
17
- aws-sdk-core (= 2.6.44)
16
+ aws-sdk-resources (2.7.7)
17
+ aws-sdk-core (= 2.7.7)
18
18
  aws-sdk-v1 (1.66.0)
19
19
  json (~> 1.4)
20
20
  nokogiri (>= 1.4.4)
@@ -27,12 +27,12 @@ GEM
27
27
  diffy (3.1.0)
28
28
  dslh (0.2.7)
29
29
  execjs (2.7.0)
30
- hashie (3.4.6)
30
+ hashie (3.5.3)
31
31
  highline (1.7.8)
32
32
  jmespath (1.3.1)
33
- json (1.8.5)
33
+ json (1.8.3)
34
34
  json5 (0.0.1)
35
- kumogata (0.5.10)
35
+ kumogata (0.5.12)
36
36
  aws-sdk-v1
37
37
  coderay
38
38
  coffee-script
@@ -40,28 +40,29 @@ GEM
40
40
  dslh (>= 0.2.7, < 0.3)
41
41
  hashie
42
42
  highline
43
- json
43
+ json (= 1.8.3)
44
44
  json5
45
45
  net-ssh
46
+ nokogiri (= 1.6.7.2)
46
47
  retryable (~> 2.0.0)
47
48
  term-ansicolor
48
- therubyracer
49
+ therubyracer (= 0.12.2)
49
50
  uuidtools
50
51
  libv8 (3.16.14.17)
51
- mini_portile2 (2.1.0)
52
+ mini_portile2 (2.0.0)
52
53
  minitest (5.10.1)
53
54
  net-ssh (4.0.1)
54
- nokogiri (1.7.0.1)
55
- mini_portile2 (~> 2.1.0)
55
+ nokogiri (1.6.7.2)
56
+ mini_portile2 (~> 2.0.0.rc2)
56
57
  rake (11.3.0)
57
58
  ref (2.0.0)
58
59
  retryable (2.0.4)
59
60
  term-ansicolor (1.4.0)
60
61
  tins (~> 1.0)
61
- therubyracer (0.12.3)
62
- libv8 (~> 3.16.14.15)
62
+ therubyracer (0.12.2)
63
+ libv8 (~> 3.16.14.0)
63
64
  ref
64
- tins (1.13.0)
65
+ tins (1.13.2)
65
66
  uuidtools (2.1.5)
66
67
 
67
68
  PLATFORMS
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'aws-sdk', '~> 2.3'
22
- spec.add_dependency 'kumogata', '0.5.10'
22
+ spec.add_dependency 'kumogata', '0.5.12'
23
23
  spec.add_development_dependency 'bundler', '~> 1.11'
24
24
  spec.add_development_dependency 'rake', '~> 11.1'
25
25
  spec.add_development_dependency 'minitest', '~> 5.8'
@@ -99,72 +99,4 @@ class Kumogata::Client
99
99
  template_path = File.join(template_path, "#{file}.rb") unless file.nil?
100
100
  template_path
101
101
  end
102
-
103
- def evaluate_template(template, path_or_url)
104
- key_converter = proc do |key|
105
- key = key.to_s
106
- unless @options.skip_replace_underscore?
107
- key.gsub!('_', ':')
108
- key.gsub!('__', '::')
109
- end
110
- key
111
- end
112
-
113
- value_converter = proc do |v|
114
- case v
115
- when Hash, Array
116
- v
117
- else
118
- v.to_s
119
- end
120
- end
121
-
122
- template = Dslh.eval(template.read, {
123
- :key_conv => key_converter,
124
- :value_conv => value_converter,
125
- :scope_hook => proc {|scope|
126
- define_template_func(scope, path_or_url)
127
- },
128
- :filename => path_or_url,
129
- })
130
-
131
- @outputs_filter.fetch!(template)
132
- @post_processing.fetch!(template)
133
-
134
- return template
135
- end
136
-
137
- def devaluate_template(template)
138
- exclude_key = proc do |k|
139
- k = k.to_s.gsub('::', '__')
140
- k !~ /\A[_a-z]\w+\Z/i and k !~ %r|\A/\S*\Z|
141
- end
142
-
143
- key_conv = proc do |k|
144
- k = k.to_s
145
-
146
- if k =~ %r|\A/\S*\Z|
147
- proc do |v, nested|
148
- if nested
149
- "_path(#{k.inspect}) #{v}"
150
- else
151
- "_path #{k.inspect}, #{v}"
152
- end
153
- end
154
- else
155
- k.gsub(':', '_')
156
- k.gsub('::', '__')
157
- end
158
- end
159
-
160
- value_conv = proc do |v|
161
- if v.kind_of?(String) and v =~ /\A(?:0|[1-9]\d*)\Z/
162
- v.to_i
163
- else
164
- v
165
- end
166
- end
167
-
168
- Dslh.deval(template, :key_conv => key_conv, :value_conv => value_conv, :exclude_key => exclude_key)
169
- end
170
102
  end
@@ -1 +1 @@
1
- KUMOGATA_TEMPLATE_VERSION = '0.0.16'
1
+ KUMOGATA_TEMPLATE_VERSION = '0.0.17'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumogata-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoya Nakazawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.5.10
33
+ version: 0.5.12
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.5.10
40
+ version: 0.5.12
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -402,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
402
  version: '0'
403
403
  requirements: []
404
404
  rubyforge_project:
405
- rubygems_version: 2.6.8
405
+ rubygems_version: 2.5.2
406
406
  signing_key:
407
407
  specification_version: 4
408
408
  summary: Template for Kumogata.