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: 538d014717ee172a947c3798afdfa72e2ae0e6a9
4
- data.tar.gz: 2207a918a3489fa3ac9b14a98ae74a6b640999c4
3
+ metadata.gz: 7f5fe3dfa8e8ace072e283299610859caf1c1faa
4
+ data.tar.gz: a1b14ed6053954107b8cf82327412d3ec096c42e
5
5
  SHA512:
6
- metadata.gz: 9f0d00c22f0b4dbe7b614939cd5ead0e1f8d2971d38340908277f68c5148ad8fdceea3b49ec9a2dbb94bb01a1069ac0d30bdcb712ecdee7d888bbfb9ae21458d
7
- data.tar.gz: f982d79c5d0910ff19b0cbd12249bf53fc4767a76c20799f72b4e50a91cba15b97b840bb6ca0482769151f867d5dd044fdcf3a780ba165efcbb7eac63c145c12
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[:editable]
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
- <i class="icon-pencil pb-change-indicator" style="margin-right:6px;"></i>
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;">
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -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/contents-*.css', 'public/assets/ckeditor/skins/moono/*.png', 'public/assets/ckeditor/plugins/**/*.js']
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.9
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-03-25 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails