render-component 0.3.0 → 0.4.0

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: 01b3e1f47a2b989201db8741c9c14cca41e20c07
4
- data.tar.gz: 29656a9120557b57c85cfa94f099ac8d6c4e22c3
3
+ metadata.gz: 12bcb63bed1ade5adad632375ff23370655b63cf
4
+ data.tar.gz: 5d327f6cb1d3cefce63e54b8733fe50e9af8a0a2
5
5
  SHA512:
6
- metadata.gz: 84fe3e3eb43efb4af3543d52f68403f603c89a093afaa68e0752190dae10ecf5bd653fb04e6368ca9fe9b66c1037c9447ee2f85306853a307df2033681808c3f
7
- data.tar.gz: db900dd1f5cccc21d3985d7f1507319d584b4bc71d5640370aba599119aed1622173e0478f1304864459f2f81db503edca3c75311072c0cb6e347bebe6f91880
6
+ metadata.gz: 43ab72cf0933778d0a50b49d593d2b1a338ffe0130c9055aa00c2b9c6411df9ce9f8b18591e68a5a6490c3a0626ab6a69ef1d4673b6a79ccc3c6a694f688ae57
7
+ data.tar.gz: eca79d4ddac8c64920e8c11545f9a1255261d694786d5de966b50cc6be557cdbe8acf220291096b4645e748852c7ea692c06ae4a5046c6231cfd9890f5263fb3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- render-component (0.3.0)
4
+ render-component (0.4.0)
5
5
  curb (~> 0.9.3)
6
6
  json
7
7
 
@@ -26,9 +26,9 @@ class Render::Component::Client
26
26
  end
27
27
 
28
28
  def apply_default_attributes(attributes)
29
- body = JSON.parse(attributes)
30
- body['base_path'] = default_base_path
31
- JSON.generate(body)
29
+ attributes = JSON.parse(attributes) unless attributes.is_a?(Hash)
30
+ attributes['base_path'] = default_base_path
31
+ JSON.generate(attributes)
32
32
  end
33
33
 
34
34
  def default_base_path
@@ -1,5 +1,5 @@
1
1
  module Render
2
2
  module Component
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Gomide
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb