retinajs-rails 2.1.1 → 2.1.2
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 +4 -4
- data/README.md +2 -2
- data/lib/retinajs-rails.rb +1 -1
- data/retinajs-rails.gemspec +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: a070ca0daac5fbe11703a8c4b3c65555cd4722ea
|
4
|
+
data.tar.gz: 8333942ca60d252a8c2b6929465cad8f701971d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363753be262a278d0e48073d452562a36f99119f068488e6bace934507fd8bd659fdd57ade629e589ecea19b0c78a98e9ca69d9aaeb1a5a7a7ec80908bb814c5
|
7
|
+
data.tar.gz: ecab4a813b04600cfd0d4730431a5de890aba804fd9f6b046596e1f3ec0bcbfb81555320fda00b5e30fea5aba6ce4622d054048fedc19f9a33b14c40c2afdc37
|
data/README.md
CHANGED
@@ -33,9 +33,9 @@ image_tag "logo.png"
|
|
33
33
|
image_tag_with_at2x "logo.png"
|
34
34
|
```
|
35
35
|
|
36
|
-
This will output the HTML similar to
|
36
|
+
This will output the HTML similar to:
|
37
37
|
```html
|
38
|
-
<img data-
|
38
|
+
<img data-rjs="/assets/logo@2x.png" src="/assets/logo.png">
|
39
39
|
```
|
40
40
|
|
41
41
|
### SCSS mixin
|
data/lib/retinajs-rails.rb
CHANGED
@@ -6,7 +6,7 @@ end
|
|
6
6
|
module ImageHelper
|
7
7
|
def image_tag_with_at2x(name_at_1x, options={})
|
8
8
|
name_at_2x = name_at_1x.gsub(%r{\.\w+$}, '@2x\0')
|
9
|
-
image_tag(name_at_1x, options.merge("data-
|
9
|
+
image_tag(name_at_1x, options.merge("data-rjs" => asset_path(name_at_2x)))
|
10
10
|
end
|
11
11
|
end
|
12
12
|
ActionView::Base.send :include, ImageHelper
|
data/retinajs-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: retinajs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Jansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Adds retina.js assets and image helpers to your Rails app
|
14
14
|
email:
|