lazyload-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lazyload-rails.rb +6 -2
- data/lib/lazyload-rails/version.rb +1 -1
- 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: 6d3ae7b6404532e88eb9a6bbfaf7837c06d3b037
|
4
|
+
data.tar.gz: 2763f7b41f9d5e8d04ccb3d944b14c28e21ad25a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f18a5cb5587e28813d214add7f0b0f334ce315fb31af0c5422e68bd549399ce7c0057cf3d3a2c7aa78e069625eec4c9cd5c3d6dab926c5347c9c76c8440f10
|
7
|
+
data.tar.gz: ed23c7fb9c5dcead008628c13b45cf3724a9f9e2a7b7d15ab44a92d7f578220fa69df9167d0a4f73b8e79fa05f130177aae339f0986bec3b46ec0776b7653760
|
data/lib/lazyload-rails.rb
CHANGED
@@ -57,10 +57,14 @@ ActionView::Helpers::AssetTagHelper.module_eval do
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def extract_options_and_args(*attrs)
|
60
|
-
options = attrs.last.dup
|
61
60
|
args = attrs
|
62
61
|
|
63
|
-
args.
|
62
|
+
if args.size > 1
|
63
|
+
options = attrs.last.dup
|
64
|
+
args.last.delete(:lazy)
|
65
|
+
else
|
66
|
+
options = {}
|
67
|
+
end
|
64
68
|
|
65
69
|
[options, args]
|
66
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazyload-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Saldana
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|