rails_responsive_images 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_responsive_images/version.rb +1 -1
- data/lib/tasks/rails_responsive_images.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ade105b571cef7d92a16d3d349ec52b4f2334f
|
4
|
+
data.tar.gz: 99f0e9086bf3d309aca45a906eace0138556ecfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93280611f078431d0683c57ec55a61a37ec887d07a8463d6806d9cccb30005870893ebc1ba3d127555aeb71e165d6b19108ebe1d5879e3d912e893513fa5a4a0
|
7
|
+
data.tar.gz: 52b11fbd9fa2f9358f89820c4a8008ae36ba9b04e82d46469d7fb984ba0f2b073a5e5cc86147c8be1a90096c700feb444ca4bdc3a2707174d4bda29024bddfd1
|
@@ -17,14 +17,14 @@ namespace :rails_responsive_images do
|
|
17
17
|
RakeFileUtils.verbose(false)
|
18
18
|
start_time = Time.now
|
19
19
|
|
20
|
-
file_list = FileList.new(Rails.root.join('app', 'assets', 'images/**/*.{gif,jpeg,jpg,png}').to_s) do |f|
|
20
|
+
file_list = ::FileList.new(Rails.root.join('app', 'assets', 'images/**/*.{gif,jpeg,jpg,png}').to_s) do |f|
|
21
21
|
f.exclude(/(responsive_images_)\d+/)
|
22
22
|
end
|
23
23
|
|
24
24
|
puts "\nResize #{ file_list.size } image files."
|
25
25
|
|
26
26
|
::RailsResponsiveImages.configuration.image_sizes.each do |size|
|
27
|
-
file_list.
|
27
|
+
file_list.to_a.each do |original_filepath|
|
28
28
|
filepath = original_filepath.gsub(Rails.root.join('app', 'assets', 'images').to_s, '')
|
29
29
|
responsive_filepath = Rails.root.join('app', 'assets', 'images', "responsive_images_#{size}", filepath.sub(/\A\//, ''))
|
30
30
|
::RailsResponsiveImages::Image.instance.create_responsive_folder!(responsive_filepath)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_responsive_images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Chilian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|