polyblock 0.4.9 → 0.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f5fe3dfa8e8ace072e283299610859caf1c1faa
|
4
|
+
data.tar.gz: a1b14ed6053954107b8cf82327412d3ec096c42e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 067675d4c2306bea96aed782c52c96dead22bf05c170f38d19ac12cd59a908354346e8f8de0b2bd7c82cdebd0fc6a5d44d59a133c55b6da56dd86d45f5b2c5ab
|
7
|
+
data.tar.gz: 1e714590e6d4c161ac548fe19574582f5f35bc187fe1ef991a9e72041dbd60cec934cfc8c24b8ee22950f4401ccd1a1c3ac0c46a923e2b3b93efcf1dda781897
|
@@ -37,8 +37,8 @@ module Polyblock
|
|
37
37
|
tag_options = options[:tag_options].deep_merge({:id => "pb-#{pb_id}-#{random_id}", :data => {:pbid => pb_id, :pbname => name}})
|
38
38
|
tag_options[:contenteditable] = if options[:condensed]
|
39
39
|
"false"
|
40
|
-
elsif options
|
41
|
-
"true"
|
40
|
+
elsif options.has_key?(:editable)
|
41
|
+
options[:editable] ? "true" : "false"
|
42
42
|
elsif respond_to?(:can?) && can?(:manage, pb)
|
43
43
|
"true"
|
44
44
|
elsif respond_to?(:user_signed_in?) && user_signed_in?
|
@@ -9,7 +9,7 @@
|
|
9
9
|
</div>
|
10
10
|
<div class="collapse navbar-collapse pbbar-collapse">
|
11
11
|
<span class="navbar-brand" style="margin:6px 0px;">
|
12
|
-
<
|
12
|
+
<span class="glyphicon glyphicon-pencil pb-change-indicator" style="margin-right:6px;"></span>
|
13
13
|
<span class="pb-change-text">Polyblock Editor</span>
|
14
14
|
</span>
|
15
15
|
<div class="btn-group" id="pb_bar_format_buttons" style="padding-top:8px;">
|
data/lib/polyblock/version.rb
CHANGED
data/lib/tasks/ckeditor.rake
CHANGED
@@ -2,7 +2,7 @@ namespace :ckeditor do
|
|
2
2
|
desc 'Create nondigest versions of some ckeditor assets (e.g. moono skin png)'
|
3
3
|
task :create_nondigest_assets do
|
4
4
|
fingerprint = /\-[0-9a-f]{32}\./
|
5
|
-
for file in Dir['public/assets/ckeditor
|
5
|
+
for file in Dir['public/assets/ckeditor/**/*']
|
6
6
|
next unless file =~ fingerprint
|
7
7
|
nondigest = file.sub fingerprint, '.' # contents-0d8ffa186a00f5063461bc0ba0d96087.css => contents.css
|
8
8
|
FileUtils.cp file, nondigest, verbose: true
|
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.
|
4
|
+
version: 0.5.0
|
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
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|