dslh 0.4.9 → 0.4.10

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
  SHA256:
3
- metadata.gz: ae3c8de73b7bec79381d59db0631e657aaafb104e4d495dde972f823d8182274
4
- data.tar.gz: 4ef63792e8a1e6efa66bf000f80c9272b14d15740684f3d11e7b707996851555
3
+ metadata.gz: 52e8fca92396ff10604912350977f2d50a8c94fb85f88223adfc5296ca54f694
4
+ data.tar.gz: 73e0742000b6a98cae5de8020deb5e68c7a91f46c4f7821a70318a23dafd6fc3
5
5
  SHA512:
6
- metadata.gz: 6af7bc54551590de0256423e0ddff7e61db25d56a574e897f49c9bc216bb2c036bf73413db7a174e965d1af16c182ec4f7c90c238d892352fe66ae018b93f2fa
7
- data.tar.gz: fd0666fc8b8e5aa677ef82cfb902a74bd6f0e58aa89d52a725fecbbca6f7842e0e1ecd60687d4a02f37b3bd8986bdd7f424dd907183d0a1c0ec95fd18a50f0ce
6
+ metadata.gz: b2ded09c1ad8f1385b2cb05e0a93f29e6126205700bda9af4fcf7ed3a1b2446e58d32549ceba546aba3be41e307e25fcba4b8cc8df7d1739266056feecbd2a69
7
+ data.tar.gz: 1153bcb401924575bacc76cd7532345d14bc1f0de30311d8f50f81d3ddbeb10c3fece4b66d0ab9ef93d8a25b1440db89d85f50ebeca5be4644dd8c3e30dfd740
@@ -2,10 +2,9 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.0.0
6
- - 2.1.8
7
- - 2.2.4
8
5
  - 2.3.0
6
+ - 2.4.4
7
+ - 2.5.1
9
8
  before_install:
10
9
  - gem install bundler
11
10
  script:
@@ -1,6 +1,7 @@
1
1
  require 'dslh/version'
2
2
  require 'stringio'
3
3
  require 'pp'
4
+ require 'json'
4
5
  require 'yaml'
5
6
 
6
7
  class Dslh
@@ -193,8 +194,12 @@ class Dslh
193
194
  key_conv = @options[:key_conv]
194
195
 
195
196
  if exclude_keys?(hash.keys)
196
- buf.puts('(' + ("\n" + hash.pretty_inspect.strip).gsub("\n", "\n" + indent) + ')')
197
- return
197
+ _buf = <<EOS
198
+ (
199
+ #{JSON.pretty_generate(hash, { indent: indent })}
200
+ )
201
+ EOS
202
+ return buf.puts(_buf)
198
203
  end
199
204
 
200
205
  hash.each do |key, value|
@@ -1,3 +1,3 @@
1
1
  class Dslh
2
- VERSION = '0.4.9'
2
+ VERSION = '0.4.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dslh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-19 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler