jquery-lazy-images 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,11 +3,15 @@ module ActionView
3
3
 
4
4
  def image_tag_with_laziness(source, options={})
5
5
  options = options.symbolize_keys
6
+ orig_options = options.dup
6
7
 
7
8
  options[:data] ||= {}
8
9
  options[:data] = {original: path_to_image(source)}
10
+ options[:class] ||= ""
11
+ options[:class] << " lazy"
9
12
 
10
- image_tag_without_laziness('grey.gif', options)
13
+ output = image_tag_without_laziness('grey.gif', options)
14
+ output << content_tag('noscript', image_tag_without_laziness(source, orig_options))
11
15
  end
12
16
 
13
17
  alias_method_chain :image_tag, :laziness
@@ -1,3 +1,3 @@
1
1
  module JqueryLazyImages
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-lazy-images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-06 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: launchy
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
62
78
  - !ruby/object:Gem::Dependency
63
79
  name: guard-rspec
64
80
  requirement: !ruby/object:Gem::Requirement
@@ -91,6 +107,22 @@ dependencies:
91
107
  - - ! '>='
92
108
  - !ruby/object:Gem::Version
93
109
  version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rb-fsevent
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
94
126
  description: ! "Why make the browser load images that the user isn't going to see?\n
95
127
  \ This Rails engine prevents images from loading until they're actually going
96
128
  to be displayed.\n This saves bandwidth, reduces server load, and helps the user
@@ -133,3 +165,4 @@ signing_key:
133
165
  specification_version: 3
134
166
  summary: Load all images in your Rails app lazily (i.e. only when they are visible).
135
167
  test_files: []
168
+ has_rdoc: