polyblock 0.4.7 → 0.4.8

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: 05240a5a962e2ad7b6c0172c48ff0c1796de1990
4
- data.tar.gz: ee083552560a4635714fb333bb397aae5a5700f3
3
+ metadata.gz: 970e4adb05f5718842bd91d15cec05bce16e0cf5
4
+ data.tar.gz: 4dcbabd046bf3f04c0f04e61839c96c36aa6271e
5
5
  SHA512:
6
- metadata.gz: d2e6861b9cf59615cc45dcfa0e296decfd70cb30f7769d9d83db134e18bcd78caf99769498b8186503cb1e3e8523cc4325c71db0a4b32ca253be9ecdf87b17f2
7
- data.tar.gz: 013fd350f4bcfe098898664e39b9012ba541445c40632ae767ece8d8da35f5dd0912d1601c752a9603e075294d2e8fb7e5214a405cd73e8bd6f33c0a382a699f
6
+ metadata.gz: 3a7a7d052025b96cc50f285a88f576da15b2c28d2991c5564b972974a4001188ff240d0b65aaac984216a3b36f61e849638562c77729dbd80cd38e5ea04e925a
7
+ data.tar.gz: 1844939c939eab5f6505f4f674f8ef79452a80ad04b31c51ffb9233b10310662151b9df787abb863c77268eebcee852674ee63ec25239fb9b35ca29f99380df1
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
@@ -0,0 +1,16 @@
1
+ namespace :ckeditor do
2
+ desc 'Create nondigest versions of some ckeditor assets (e.g. moono skin png)'
3
+ task :create_nondigest_assets do
4
+ fingerprint = /\-[0-9a-f]{32}\./
5
+ for file in Dir['public/assets/ckeditor/contents-*.css', 'public/assets/ckeditor/skins/moono/*.png']
6
+ next unless file =~ fingerprint
7
+ nondigest = file.sub fingerprint, '.' # contents-0d8ffa186a00f5063461bc0ba0d96087.css => contents.css
8
+ FileUtils.cp file, nondigest, verbose: true
9
+ end
10
+ end
11
+ end
12
+
13
+ # auto run ckeditor:create_nondigest_assets after assets:precompile
14
+ Rake::Task['assets:precompile'].enhance do
15
+ Rake::Task['ckeditor:create_nondigest_assets'].invoke
16
+ end
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.7
4
+ version: 0.4.8
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-24 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -200,6 +200,7 @@ files:
200
200
  - lib/polyblock/has_polyblock.rb
201
201
  - lib/polyblock/version.rb
202
202
  - lib/polyblock.rb
203
+ - lib/tasks/ckeditor.rake
203
204
  - lib/tasks/polyblock_tasks.rake
204
205
  - MIT-LICENSE
205
206
  - Rakefile