polyblock 0.9.3 → 0.9.4

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: 06919525f4b221723117aefa89b3197c9a76d502
4
- data.tar.gz: 0c597e36d939f518fc755188d36f29746dffb570
3
+ metadata.gz: ff857a4f0e3e9ab5a5d010b4d8e609752b933509
4
+ data.tar.gz: b3c3c81c34bc63ce8721ebabca286b840463205a
5
5
  SHA512:
6
- metadata.gz: 57bc2dcaf71ca828830c2bf35f759a2454ce455c2f366b7392ba9b1117c63d4c94e2c00164196c9f7b8f92d99c38f9c89a3cf63bf8a7ae561be38e141cc895cb
7
- data.tar.gz: b68949a6c40b78f33772e1fa9422e7c9845e4d05d2635cfbcd12f0b7ab4e65aabdd899e3c1fb89bacb95385a06ca39ca20d999461e9a1ec935bdddef97880de9
6
+ metadata.gz: 64b76b6a9049a17eb21a71ade8d6cc0903883275271486e5689e50c2c3445198f5f0917da744c2a08ca48adf98c3481f5ec281e6ee6b3f7ec098ad81d63b9109
7
+ data.tar.gz: 997011ec6537b48d2c6ff635f97a1e3ed7b138d20be28b9016338b04b1078005b0c95a9ad05e2cf42558a95d4dd97da6ede988681866bbf71a8a317bd4ae11a3
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
@@ -9,7 +9,7 @@ module Polyblock
9
9
  :condensed => false,
10
10
  :length => 250,
11
11
  :omission => '... (continued)'
12
- }.merge(options)
12
+ }.deep_merge(options)
13
13
 
14
14
  # Fetch or create Polyblock
15
15
  pb = Block.fetch_or_create(name)
@@ -19,7 +19,7 @@ module Polyblock
19
19
 
20
20
  # Build output tag
21
21
  content = pb.content.present? ? pb.content : pb.settings[:default_text]
22
- tag_options = options[:tag_options].deep_merge({:id => "pb-#{pb_id}-#{random_id}", :data => {:pbid => pb_id, :pbname => name}})
22
+ tag_options = options[:tag_options].deep_deep_merge({:id => "pb-#{pb_id}-#{random_id}", :data => {:pbid => pb_id, :pbname => name}})
23
23
  tag_options[:contenteditable] = if options[:condensed]
24
24
  'false'
25
25
  elsif options.has_key?(:editable)
@@ -53,7 +53,7 @@ module Polyblock
53
53
  end
54
54
 
55
55
  def fields_for_polyblock(name, f, options={})
56
- options = {}.merge(options)
56
+ options = {}.deep_merge(options)
57
57
  pb = pb_from_name(name, f)
58
58
  render :partial => 'polyblock/fields_for', :locals => {:f => f, :pb => pb, :name => name, :options => options}
59
59
  end
@@ -69,7 +69,7 @@ module Polyblock
69
69
  }
70
70
  },
71
71
  :use_input_field => false
72
- }.merge(settings)
72
+ }.deep_merge(settings)
73
73
  # Merge in legacy fields
74
74
  [:label, :input_html].each{|o| options[:field][o] = options[o] if options[o].present? }
75
75
  render :partial => 'polyblock/simple_fields_for',
@@ -79,7 +79,7 @@ module Polyblock
79
79
  def simple_form_for_polyblocks(options={})
80
80
  options = {
81
81
  :url => '/polyblock/update'
82
- }.merge(options)
82
+ }.deep_merge(options)
83
83
  simple_form_for(:polyblocks, options) do |f| yield(f) end
84
84
  end
85
85
 
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.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails