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 +4 -4
- data/lib/polyblock/version.rb +1 -1
- data/lib/tasks/ckeditor.rake +16 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 970e4adb05f5718842bd91d15cec05bce16e0cf5
|
4
|
+
data.tar.gz: 4dcbabd046bf3f04c0f04e61839c96c36aa6271e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a7a7d052025b96cc50f285a88f576da15b2c28d2991c5564b972974a4001188ff240d0b65aaac984216a3b36f61e849638562c77729dbd80cd38e5ea04e925a
|
7
|
+
data.tar.gz: 1844939c939eab5f6505f4f674f8ef79452a80ad04b31c51ffb9233b10310662151b9df787abb863c77268eebcee852674ee63ec25239fb9b35ca29f99380df1
|
data/lib/polyblock/version.rb
CHANGED
@@ -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.
|
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-
|
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
|