svg_fallback 1.0.0 → 1.0.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 +4 -4
- data/README.md +2 -0
- data/lib/svg_fallback/svgFallbackHelper.rb +1 -1
- data/lib/svg_fallback/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: 081c674970fa937fbdfda250c2288ea4542acf76
|
4
|
+
data.tar.gz: c64b73c5edc2fa64a4bc97715ff8761cb82c60ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f34878426fe38af7f705d8fc3113c166067cf985b256bb7c47d04b1a42d79e2829a5e92b99c50f74d2afb183bc019d6d02842e4f4a8db99e02fb5b880a35db1d
|
7
|
+
data.tar.gz: 92c9ffead176228768a0ba2286aaa13342c4404f70186a8383ed3f280d20b31ac774a925a91c45f4fa6b6053ac2e4fc3d824710520a562c21498538e7de30bad
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# svg_fallback
|
2
2
|
|
3
|
+
[](http://badge.fury.io/rb/svg_fallback)
|
4
|
+
|
3
5
|
Using svg files is nice. What's not nice however is having to comply with Internet Explorer 8 and below when using svg files.
|
4
6
|
|
5
7
|
svg_fallback provides a wrapper to image_tag that detects the user's browser and if it is incompatible with svg files it will fallback to a compatible filetype.
|
@@ -4,7 +4,7 @@ module SVGFallbackHelper
|
|
4
4
|
|
5
5
|
def svg_fallback_tag path, options = {}
|
6
6
|
extension = 'svg'
|
7
|
-
|
7
|
+
unless browser.modern?
|
8
8
|
if options[:fallback_extension]
|
9
9
|
extension = options[:fallback_extension]
|
10
10
|
options.delete :fallback_extension
|
data/lib/svg_fallback/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svg_fallback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lockhart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|