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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a582cc107bc79283feb136fe633b572ea5418272
4
- data.tar.gz: 21a66cdf79f35051364210c32afbd18eb18fd531
3
+ metadata.gz: 081c674970fa937fbdfda250c2288ea4542acf76
4
+ data.tar.gz: c64b73c5edc2fa64a4bc97715ff8761cb82c60ed
5
5
  SHA512:
6
- metadata.gz: e5a07b873464bc2fc540688a19eb1d1219d9f6b88f926efdc9a2abb5fe936ef48add4014f365d79f845f60bdb161969c872bc3e4340ae6b44caf76953f10ab6f
7
- data.tar.gz: 14d888505806ed900f008ad65bd46f13708b207d38c4339686408a94965d52b3138c1a17c498fa05e21d44d9124a6649b9597064b27962a6582ad9e3d1c29ae6
6
+ metadata.gz: f34878426fe38af7f705d8fc3113c166067cf985b256bb7c47d04b1a42d79e2829a5e92b99c50f74d2afb183bc019d6d02842e4f4a8db99e02fb5b880a35db1d
7
+ data.tar.gz: 92c9ffead176228768a0ba2286aaa13342c4404f70186a8383ed3f280d20b31ac774a925a91c45f4fa6b6053ac2e4fc3d824710520a562c21498538e7de30bad
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # svg_fallback
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/svg_fallback.svg)](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
- if browser.name == 'Internet Explorer' && browser.version >= 8
7
+ unless browser.modern?
8
8
  if options[:fallback_extension]
9
9
  extension = options[:fallback_extension]
10
10
  options.delete :fallback_extension
@@ -1,3 +1,3 @@
1
1
  module SVGFallback
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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: 2014-11-27 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler