sass_inline_svg 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDY5ZjliYmQ0YzRlMTMxOWM5NmQ2YTc3YzMzZGQwZGU1NzIxNGI3Mg==
4
+ OTk0YTQ2MzliYmUwZDRjNTBhZDg1MjZkMjAxNGRiMDIwMDI2ZDA2YQ==
5
5
  data.tar.gz: !binary |-
6
- ZTRmOWYwODMwODY2NDUyM2QxYjMwMzBjYjA0NzY2MTAyMDZmODNmNg==
6
+ M2MxNDEzY2E5MTM4NjUzOWUyNGIyZDdjMjc1YjgzZDYwNmUzNDZjMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2VmODFkMzQ1MzE4NTMzNTg1MjdkZTI4NDE4ZDY1NTRkNGZhMjBiZmYyNjBj
10
- NTlmY2VmNTZjY2MwMjMzNjhhYzU0YjNlMzE0NjkzOTNhMjY1ZjU4OTgzZWY4
11
- YTk0YTljNzIxNWZjM2FiMzI3Y2FlMjZiNWU4YTRmNTA5YjkzMmM=
9
+ MzI3NmY5YzI4NmQ1NTcwOGNmOTAzM2E3ZjlmNzY3YzE5NzA1NGUxMWJlZDVk
10
+ YTA4NmVmYmI2Yjg0ZDQ1M2Y0MzZjNTJmNWFiMGFiNjA4ZTllMDRjNzM3ZTBk
11
+ OTE5MzQ5ZDNjZTRhYmEyZTBiNmRiMDg3YWEwYzBjYTdmY2ExNTc=
12
12
  data.tar.gz: !binary |-
13
- MjgxMjMzYzE0Mjg0NDgxNWQ0ZWEwYzFhYmQzZWExNjEyNGU5NWExYWY4Mzk3
14
- ZDIyNTk0YmViNjJlMGI2MGZkMjg4NDgzMzY2NzBhNWVmZGZiMTUyN2NjZTBh
15
- YzZiZmI0ZmI1Nzc0MzI3ZGEzNDBmMDhkNDQ0MWZiMjNiNzY1ZTI=
13
+ YzE4ODJkY2M0NWQwMjllOTZjM2EzNWFhNzExMGJhMWRlN2M3YmMyYTcwZmZk
14
+ MjZjY2M3OGMwZGIwN2M5MDU4OGMwNzNlNmNlYWQzZDJlZTkxNTcyZTQyZDZi
15
+ MWZiOGE2MDc4ZDk2ZTViNTAyOWY1MWVhMjlmMjJiYjZlN2M5NGE=
data/README.md CHANGED
@@ -27,15 +27,17 @@ Sass-inline-svg adds a `inline-svg` function you can use with Sass. It url-encod
27
27
 
28
28
  When working with plain Sass, you'll have to use the full path to the svg file, when using Rails the path will be resolved by the Rails asset pipeline.
29
29
 
30
+ The `svg-inline()` function as it was named in earlier versions is now aliased to `inline-svg()` so either of both can be used.
31
+
30
32
  ###Replace Variable Strings
31
33
 
32
34
  Replacing variable strings in SVG when inlining them with Sass makes sense e.g. if you need multiple variants of the same graphic with different fill colors.
33
35
 
34
36
  With Sass-Inline-Svg you only need __one__ source svg file with a variable string for `fill`:
35
37
 
36
-
37
- <polygon fill="fillcolor" points="29.43 25.19 20.24 16 29.43 6.81 25.19 2.57 16 11.76 6.81 2.57 2.57 6.81 11.76 16 2.57 25.19 6.81 29.44 16 20.24 25.19 29.44 "/>
38
-
38
+
39
+ <polygon fill="fillcolor" points="29.43 25.19 20.24 16 29.43 6.81 25.19 2.57 16 11.76 6.81 2.57 2.57 6.81 11.76 16 2.57 25.19 6.81 29.44 16 20.24 25.19 29.44 "/>
40
+
39
41
 
40
42
  The variants needed can be created during inlinig with Sass. Pass a Sass map of replacements as a second parameter:
41
43
 
@@ -6,7 +6,7 @@ module Sass::Script::Functions
6
6
 
7
7
  # Alias function to comply with old documentation
8
8
  def svg_inline(path, repl = nil)
9
- svg_inline(path, repl)
9
+ inline_svg(path, repl)
10
10
  end
11
11
 
12
12
  def inline_svg(path, repl = nil)
@@ -1,3 +1,3 @@
1
1
  module SassInlineSvg
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass_inline_svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franz Heidl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler