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 +4 -4
- data/lib/polyblock/version.rb +1 -1
- data/lib/polyblock/view_helpers.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff857a4f0e3e9ab5a5d010b4d8e609752b933509
|
4
|
+
data.tar.gz: b3c3c81c34bc63ce8721ebabca286b840463205a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64b76b6a9049a17eb21a71ade8d6cc0903883275271486e5689e50c2c3445198f5f0917da744c2a08ca48adf98c3481f5ec281e6ee6b3f7ec098ad81d63b9109
|
7
|
+
data.tar.gz: 997011ec6537b48d2c6ff635f97a1e3ed7b138d20be28b9016338b04b1078005b0c95a9ad05e2cf42558a95d4dd97da6ede988681866bbf71a8a317bd4ae11a3
|
data/lib/polyblock/version.rb
CHANGED
@@ -9,7 +9,7 @@ module Polyblock
|
|
9
9
|
:condensed => false,
|
10
10
|
:length => 250,
|
11
11
|
:omission => '... (continued)'
|
12
|
-
}.
|
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].
|
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 = {}.
|
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
|
-
}.
|
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
|
-
}.
|
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.
|
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-
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|