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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56ff044351d9ed7ed4aaa1403a4ea48b2398d0e6
4
- data.tar.gz: 0806fcd26439a1ddb59c21dcd57209193f0892e7
3
+ metadata.gz: de0f08cbfc87b60937a0e6230debf2752b15b12a
4
+ data.tar.gz: 1c75ac92f3d3b27043975a158ef1ebeb9757ad11
5
5
  SHA512:
6
- metadata.gz: 02416f5020d3bcd27901fe5d3d163c685375e45641c8bc8b08f3987ea149149eee25c79cc9fda2ccac66a33b60806dee712e1e5e7d4266557b273a10d8f473ae
7
- data.tar.gz: 65450105b14cbe6ea3773cd8590b59b392cec0430c83630c80e151249bb663a4844f4124dc5ec096c979181fc3a4bdf38b01ad6664d9c1c507ebea293663bb7e
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[:"demo-path"]
58
+ if options[:demo_path]
57
59
  files.demo_files.each do |filename, content|
58
- utilities.create_file "#{options[:"demo-path"]}/#{filename}", content
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[:"demo-path"]}/demo-files/fonts/#{filename.sub('fonts/', '')}", content
64
+ utilities.create_file "#{options[:demo_path]}/demo-files/fonts/#{filename.sub('fonts/', '')}", content
63
65
  end
64
66
 
65
- utilities.gsub_file "#{options[:"demo-path"]}/demo.html", /href="style.css">/, 'href="demo-files/style.css">'
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[:"session-path"]
69
- utilities.create_file "#{options[:"session-path"]}/session.json", files.session_file
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
 
@@ -1,4 +1,4 @@
1
1
  module Icomoon2Sass
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icomoon2sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Foster