lazyload-rails 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acc10ee27e56b6596896e9cb5875175feea8d785
4
- data.tar.gz: b07b92855c6db5f0a3b46ea80b9384415e2f0ffc
3
+ metadata.gz: 6d3ae7b6404532e88eb9a6bbfaf7837c06d3b037
4
+ data.tar.gz: 2763f7b41f9d5e8d04ccb3d944b14c28e21ad25a
5
5
  SHA512:
6
- metadata.gz: e5787e4b5f1f6bc45899d45344d0af6714066dee49251c117cfd065b6f05fd92382e83a48e711bcabaa0c3473b4c0c1c6d440645535d4bd8f10073dcb877f272
7
- data.tar.gz: a4a9ab28ea4bfd036ca3315ee6d740d028fbfa4ef32c45a1afaab581c06428a8a0bfba41dc363301fe81163b8b90241c57533b6643e44b556d08eb126871a10e
6
+ metadata.gz: 84f18a5cb5587e28813d214add7f0b0f334ce315fb31af0c5422e68bd549399ce7c0057cf3d3a2c7aa78e069625eec4c9cd5c3d6dab926c5347c9c76c8440f10
7
+ data.tar.gz: ed23c7fb9c5dcead008628c13b45cf3724a9f9e2a7b7d15ab44a92d7f578220fa69df9167d0a4f73b8e79fa05f130177aae339f0986bec3b46ec0776b7653760
@@ -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.last.delete(:lazy)
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
@@ -1,5 +1,5 @@
1
1
  module Lazyload
2
2
  module Rails
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  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.0
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 00:00:00.000000000 Z
11
+ date: 2014-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri