sass_inline_svg 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/lib/sass_inline_svg.rb +1 -1
- data/lib/sass_inline_svg/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
N2M5ZGE2ZTA3OGZhNTJkODBiM2Q1OWNjYzgxOTlmMmM5M2E4NjMyNQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ODdkNzIzZGU4ODliNzI1ZjkyMDMxZTcwOTM0YTdiMjk0M2RmMGYyMQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDRjMWM3ZTM4YzIwY2NlNTY1ZGRhNWM5OTRmNTEwZjA5OTcyNDg2OTc4OWE3
|
10
|
+
YTA2ZDRiMTZjYTBiMTg4NjM3NTZjMDU0NjQ4ZjExZDQ5ZWFkMzU4YjNmYzEw
|
11
|
+
OGM1OGYwOGNiNTk5YTg0YThlNDcwM2E4NjY4ZDdlMDZkZDUzNjU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjBjNzZkNzM0MDI2NTMxODA5NzYzYmI4OTMxYzAzNzE3ZDJjMDljY2Y1MGQ0
|
14
|
+
MDA3NDViMjIzMWY2NDEwY2RiM2NjZTA2MTIwMGVmMzUxMGEwNDU5MDRmY2My
|
15
|
+
MWE0YmM5MTlmM2FmZDAyNDkyMmJiNGE2ZjlhNTFlNzNjMjZmYTM=
|
data/lib/sass_inline_svg.rb
CHANGED
@@ -15,7 +15,7 @@ module Sass::Script::Functions
|
|
15
15
|
|
16
16
|
# Use Soprockets / Rails asset pipeline if in Rails context (and handle File not found):
|
17
17
|
if defined?(Rails)
|
18
|
-
asset = Rails.application.assets.find_asset(path)
|
18
|
+
asset = (Rails.application.assets || ::Sprockets::Railtie.build_environment(Rails.application)).find_asset(path).to_s
|
19
19
|
raise "File not found or cannot be read (Sprockets): #{path}" if asset.nil?
|
20
20
|
svg = asset.to_s
|
21
21
|
else # otherwise read file:
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass_inline_svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franz Heidl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Inline url-encoded SVG with Sass. Optional variable string replacement
|
@@ -46,7 +46,7 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
-
|
49
|
+
- .gitignore
|
50
50
|
- Gemfile
|
51
51
|
- LICENSE.txt
|
52
52
|
- README.md
|
@@ -65,17 +65,17 @@ require_paths:
|
|
65
65
|
- lib
|
66
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ! '>='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
78
|
+
rubygems_version: 2.0.0.rc.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Inline url-encoded SVG with Sass
|