polyblock 0.8.7 → 0.8.8

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
  SHA1:
3
- metadata.gz: 12414f97ba5ec4f81c60d1a7256b5e7adb5d1c38
4
- data.tar.gz: 313611b1f47caf5b10138a011fd5237b4b0ebba8
3
+ metadata.gz: bbefa64847a7363aaca2d2b19172cadf459a9e08
4
+ data.tar.gz: 6e540f64345f94bf2e423ee70c0de8ae06b6af18
5
5
  SHA512:
6
- metadata.gz: 70830bb6beb082a02de1de4a33a7e2e2ec54518656feca153fff63c23988c648dbdef898c722368bd1af137232ce440e2ab333d0cad3a812890267c91553a0de
7
- data.tar.gz: 70315af38b46cb91af728acdaa112d6e8da26c193e992de6a581c04d30afbd533a5d674769d83eedacd97005a2d03bd0b887da3a244c41fdd662d494a9cbf751
6
+ metadata.gz: d2777dcb2e6a3bc97275b0c1d6a44124d402cd37c7b3c0745508718b36a580e23ee1cb1f5c8b75c5f0de3eead51a27556789a4c38070b9edfd3db0e287237c08
7
+ data.tar.gz: 44aa66f75e3f2e693d88ab4723f997103a6a8faec432466986cd156a8f1adfcb6d51d79805e2013a7bf419a0c8335b09116bbea6b1a3aac1aa9747a287130536
@@ -20,8 +20,8 @@ module Polyblock
20
20
 
21
21
  def self.import(pbs)
22
22
  outputs = pbs.map do |pb|
23
- block = fetch_or_initialize pb[:name]
24
- block.content = pb[:content] if pb.key?(:content) && pb[:content].present? && pb[:content] != block.content
23
+ block = fetch_or_initialize pb['name']
24
+ block.content = pb['content'] if pb.key?('content') && pb['content'].present? && pb['content'] != block.content
25
25
  block.save
26
26
  end
27
27
  outputs.include?(false)
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails