polyblock 0.4.5 → 0.4.6

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: e5f7455e2a49732afd959cb9bb272dd89b481c5d
4
- data.tar.gz: e0e2f33166daced52f6a3bce8a247355a3b4c2a6
3
+ metadata.gz: 42747cfbd46df2c15e5ca45e18e30b2892f3812f
4
+ data.tar.gz: 11830645c53a9f3b99ecdba1ae1c6df39d968aea
5
5
  SHA512:
6
- metadata.gz: 716400ebf754ab31a050ae504ed7d7beee74d125582a100dc47717e4c501c25228594d15365fb94cf23dd218407d0c02dda22f78bfeade9f73ac7d02244c7907
7
- data.tar.gz: d2a3fae20cfdbbabaa781a42c3ddc1bffa57138e4b73df3cab4953e508bc0eeff7e0e689c9f443de40e3d07f078539f59728672c0f04e8186fbfbc9244244111
6
+ metadata.gz: 5e22778c2477ba6f63847a81482c9441f6da11e40a86a29e54ab6752c6fb361cf5d60e3251c17028b807e2a201f3c488eea49e46cebe06f13c00142af38ededb
7
+ data.tar.gz: a7cc3b2e8dde9476a6edb9a339e952654f8b751a58b5341b5a5a12df9adac06d2db5e01a0e5c2f1022a620fb5fba09f33c625e652107c97a0cd07bfc6991a3fb
@@ -54,6 +54,7 @@ module Polyblock
54
54
  else
55
55
  "false"
56
56
  end
57
+ tag_options.delete(:contenteditable) if tag_options[:contenteditable] == "false"
57
58
  tag_options[:class] = (tag_options.has_key?(:class) ? "#{tag_options[:class]} ":"") + "polyblock"
58
59
  tag_options[:data][:pb_exists] = pb_exists
59
60
 
@@ -6,7 +6,7 @@ module Polyblock
6
6
  belongs_to :contentable, :polymorphic => true, :dependent => :destroy
7
7
 
8
8
  def self.import(pbs)
9
- pbs.each{|pb| Block.create!(pb) unless Block.where(:name => pb['name']).any? }
9
+ pbs.each{|pb| Block.create(pb) }
10
10
  end
11
11
 
12
12
  def self.export
@@ -14,7 +14,7 @@ module Polyblock
14
14
  puts ""
15
15
  puts "Run the following in Rails Console on the remote server:"
16
16
  puts ""
17
- puts "Polyblock.import(#{output})"
17
+ puts "Polyblock::Block.import(#{output})"
18
18
  puts ""
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith