kelbim 0.2.7 → 0.2.8

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: 98475033d7688faa312b278ccdfd6d5bc7ca681f
4
- data.tar.gz: 8eedc96af4b4355a31853021a58f2eb9e3164bc0
3
+ metadata.gz: 985c32d5001bec5916fa5249c6b6ca1be0e04c43
4
+ data.tar.gz: f042628f55dac37d71a44bbe0cf693954f0a055a
5
5
  SHA512:
6
- metadata.gz: b81b1a71bde1623c87a933626cbf2a5a299ee9b3bc8e5574f2e6bd64dc31c6c9ff940665b5a6f7b6f6b66af675e97c22fa20472f0a023090296d6591892c4fd5
7
- data.tar.gz: 94e7c7aa7628c02a38d096a42b3b2c7e93b06ea7ebb7ef7d91db2beb2ef23206f5f540e7cb67c03dd2d4398b3f3514f85cc57cbfc03b443c9c40d4204b40278f
6
+ metadata.gz: 8af73901e757f33acf4eb6dabada4dbf8b6be7f660f04607ea1594c71691a4c608276f3d0a4fd238a514129088d181b5a8c617f663cfe57827ad15a7ff9da7f1
7
+ data.tar.gz: 43b411bffe8029948338138bea52e4ac7c106260a8a9c8bff536fb650bb5d7dd514f4c3d1cf38f39f3f7714582ab4bdb582199b3af0fa5974ccc2b8c356410b5
@@ -23,7 +23,7 @@ module Kelbim
23
23
  if args.length == 1
24
24
  value = args.first
25
25
  call_once(method_name)
26
- expected_type(value, Hash)
26
+ expected_type(value, Hash, Array)
27
27
  @result[method_name] = value
28
28
  else
29
29
  super
@@ -187,7 +187,12 @@ end
187
187
 
188
188
  def output_attributes(attributes)
189
189
  attributes = attributes.map do |name, value|
190
- value = value.inspect.sub(/\A\s*{\s*/, '').sub!(/\s*}\s*\Z/, '')
190
+ if value.kind_of?(Hash)
191
+ value = value.inspect.sub(/\A\s*{\s*/, '').sub!(/\s*}\s*\Z/, '')
192
+ else
193
+ value = value.inspect
194
+ end
195
+
191
196
  [name, value]
192
197
  end
193
198
 
@@ -1,5 +1,5 @@
1
1
  module Kelbim
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
4
4
 
5
5
  Version = Kelbim::VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelbim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.49.0
19
+ version: 1.59.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.49.0
26
+ version: 1.59.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: uuid
29
29
  requirement: !ruby/object:Gem::Requirement