to_simple_yaml 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6cc249936a142c461dc41b60b02bc587c50bf8f53111396ff017e808c883599
4
- data.tar.gz: 15064dde68c208573a69e62a5c169c701a4016c3b7058d39c866b994bcd5b7ef
3
+ metadata.gz: '08afbaadd7cb4b24e8b7d7ee7a195ea8c5f0d921a234cc9ce8c4661994f6219d'
4
+ data.tar.gz: 0a701b137593a38f266622565f399d679d7d2c28b2d6355802e44ae8caa4ab16
5
5
  SHA512:
6
- metadata.gz: 36c63e2aaeaaf2f1ed7aae54fe715062f29f1044868d2cb59b3880ce51bb0533fbe0323d8bdfc5873adfe7f4544d5cc884bf45540ab84ee4dcd6fa580aad9dbf
7
- data.tar.gz: 23b56ce3f7e3fa8a405d8f3e186a3d88143d57a453122e5ad727b76014680ca32b1fcc03fe3343c76ab59e0be760b5a92e36d7ce61350aead5554b191c2d2339
6
+ metadata.gz: b6732abd96cbe16e7b94d943744c6ac3f3d6979fb3f74f0db0e4188e195d3dfb006f18e025c9061e4d9685fc3c46705dfada831deac58ac232c39f091ceb4ea1
7
+ data.tar.gz: d713c143dd95a321ed75a5a264e7aff7c39f958a849ef4f0007c97ff47be488be4a9dbd9a45452d3bdd86b4034ce48efd27ca2c34486e14d2ce56a677a88f3b9
@@ -8,7 +8,7 @@
8
8
  <orderEntry type="inheritedJdk" />
9
9
  <orderEntry type="sourceFolder" forTests="false" />
10
10
  <orderEntry type="library" scope="PROVIDED" name="bundler (v1.17.2, rbenv: 2.6.2) [gem]" level="application" />
11
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.12.2, rbenv: 2.6.2) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.13.0, rbenv: 2.6.2) [gem]" level="application" />
12
12
  <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, rbenv: 2.6.2) [gem]" level="application" />
13
13
  </component>
14
14
  </module>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- to_simple_yaml (1.0.2)
4
+ to_simple_yaml (1.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -25,7 +25,7 @@ class Object
25
25
  obj.compact.keys.each_with_index do |key, index|
26
26
  array_first = array && index == 0
27
27
  array_inline = array && index != 0
28
- if obj[key].is_a?(String) || obj[key].is_a?(Numeric)
28
+ if obj[key].is_a?(String) || obj[key].is_a?(Numeric) || obj[key].is_a?(TrueClass) || obj[key].is_a?(FalseClass)
29
29
  yaml << template("#{array_first ? '- ' : ''}#{key}: #{obj[key]}", array_inline ? indent + 1 : indent)
30
30
  elsif obj[key].is_a?(Symbol)
31
31
  yaml << template("#{array_first ? '- ' : ''}#{key}: #{obj[key].to_s}", array_inline ? indent + 1 : indent)
@@ -41,7 +41,7 @@ class Object
41
41
  elsif obj.is_a?(Array)
42
42
  yaml = ''
43
43
  obj.compact.each do |value|
44
- if value.is_a?(String) || value.is_a?(Numeric)
44
+ if value.is_a?(String) || value.is_a?(Numeric) || value.is_a?(TrueClass) || value.is_a?(FalseClass)
45
45
  yaml << template("- #{value}", indent)
46
46
  elsif value.is_a?(Symbol)
47
47
  yaml << template("- #{value.to_s}", indent)
@@ -1,3 +1,3 @@
1
1
  module ToSimpleYaml
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_simple_yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tanmen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-08 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler