icomoon2sass 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/icomoon2sass.rb +9 -7
- data/lib/icomoon2sass/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de0f08cbfc87b60937a0e6230debf2752b15b12a
|
4
|
+
data.tar.gz: 1c75ac92f3d3b27043975a158ef1ebeb9757ad11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e002ebec6ea8747950afc13e7c156a85fe478cdeee678e61e5be9c63401ed8234c2436b7e5e93518e04bc899b7f6cc1281cc32b74f24a18a3300c166072edc
|
7
|
+
data.tar.gz: 8fcc78fdef25d17c8a4c06b5b1e0685c198ba401d8e0de38fd3d99f673d2d027cedcd2c529c70901e8c2a9bada11d91bc54fef2f66cdd87c9a2079dffb3f772a
|
data/lib/icomoon2sass.rb
CHANGED
@@ -13,7 +13,9 @@ module Icomoon2Sass
|
|
13
13
|
defaults = {
|
14
14
|
scss: false,
|
15
15
|
compatible: false,
|
16
|
-
oocss: false
|
16
|
+
oocss: false,
|
17
|
+
demo_path: options[:"demo-path"],
|
18
|
+
session_path: options[:"session-path"]
|
17
19
|
}
|
18
20
|
|
19
21
|
options = defaults.merge options.symbolize_keys
|
@@ -53,20 +55,20 @@ module Icomoon2Sass
|
|
53
55
|
utilities.create_file "#{font_path}/#{filename.sub('fonts/', '')}", content
|
54
56
|
end
|
55
57
|
|
56
|
-
if options[:
|
58
|
+
if options[:demo_path]
|
57
59
|
files.demo_files.each do |filename, content|
|
58
|
-
utilities.create_file "#{options[:
|
60
|
+
utilities.create_file "#{options[:demo_path]}/#{filename}", content
|
59
61
|
end
|
60
62
|
|
61
63
|
files.font_files.each do |filename, content|
|
62
|
-
utilities.create_file "#{options[:
|
64
|
+
utilities.create_file "#{options[:demo_path]}/demo-files/fonts/#{filename.sub('fonts/', '')}", content
|
63
65
|
end
|
64
66
|
|
65
|
-
utilities.gsub_file "#{options[:
|
67
|
+
utilities.gsub_file "#{options[:demo_path]}/demo.html", /href="style.css">/, 'href="demo-files/style.css">'
|
66
68
|
end
|
67
69
|
|
68
|
-
if options[:
|
69
|
-
utilities.create_file "#{options[:
|
70
|
+
if options[:session_path]
|
71
|
+
utilities.create_file "#{options[:session_path]}/session.json", files.session_file
|
70
72
|
end
|
71
73
|
end
|
72
74
|
|
data/lib/icomoon2sass/version.rb
CHANGED