responsive_image_tag 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module ResponsiveImageTag
|
4
|
+
module Generators
|
5
|
+
class JavascriptGenerator < Rails::Generators::Base
|
6
|
+
desc 'Creates a javascript file which takes care of responsive images for you'
|
7
|
+
|
8
|
+
def self.source_root
|
9
|
+
File.expand_path("../templates", __FILE__)
|
10
|
+
end
|
11
|
+
|
12
|
+
def create_javascript_file
|
13
|
+
template 'responsive-image-tag.js',
|
14
|
+
File.join('javascript', 'responsive-image-tag.js')
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
File without changes
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{responsive_image_tag}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dave Hrycyszyn"]
|
12
|
-
s.date = %q{2011-08-
|
12
|
+
s.date = %q{2011-08-16}
|
13
13
|
s.description = %q{Allows you to specify two images in a responsive_image_tag, and includes a javascript generator which will rewrite the DOM, requesting the correct image based on the screen size of the current client device.}
|
14
14
|
s.email = %q{dave.hrycyszyn@headlondon.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,7 +24,8 @@ Gem::Specification.new do |s|
|
|
24
24
|
"README.rdoc",
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
|
-
"lib/rails/generators/responsive_image_tag/
|
27
|
+
"lib/rails/generators/responsive_image_tag/javascript/javascript_generator.rb",
|
28
|
+
"lib/rails/generators/responsive_image_tag/javascript/templates/responsive-image-tag.js",
|
28
29
|
"lib/responsive_image_tag.rb",
|
29
30
|
"responsive_image_tag.gemspec",
|
30
31
|
"test/helper.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: responsive_image_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dave Hrycyszyn
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-16 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -109,7 +109,8 @@ files:
|
|
109
109
|
- README.rdoc
|
110
110
|
- Rakefile
|
111
111
|
- VERSION
|
112
|
-
- lib/rails/generators/responsive_image_tag/
|
112
|
+
- lib/rails/generators/responsive_image_tag/javascript/javascript_generator.rb
|
113
|
+
- lib/rails/generators/responsive_image_tag/javascript/templates/responsive-image-tag.js
|
113
114
|
- lib/responsive_image_tag.rb
|
114
115
|
- responsive_image_tag.gemspec
|
115
116
|
- test/helper.rb
|