itcsscli 0.1.2 → 0.1.4
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 +4 -4
- data/lib/itcsscli/version.rb +1 -1
- data/lib/itcsscli.rb +4 -4
- 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: 12152547613dd2f9a9911d3082a3cb2bb93950a1
|
4
|
+
data.tar.gz: b613870e5cbfedc447e3a425d140e517e8447c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 746fc8c8aa4e619621989ed793298b5c282e859dec0a775521737d764ce2759ef876dabe7c1bc183d38ae8e73548a8c6b2665e92ebb05dad6a4509f8687c5660
|
7
|
+
data.tar.gz: 007cb6b55d0be75ceca5c83d2c9b7ba9d7da51834dc9164050f9c63079071c2c8d61b54b8d775bbe5146bfee0495ffa8f580a760a2d4552df34f4105fa28817c
|
data/lib/itcsscli/version.rb
CHANGED
data/lib/itcsscli.rb
CHANGED
@@ -53,6 +53,7 @@ module Itcsscli
|
|
53
53
|
if File.exist?(@ITCSS_CONFIG_FILE) && @ITCSS_CONFIG['package_manager']
|
54
54
|
@ITCSS_PACKAGE_MANAGER ||= @ITCSS_CONFIG['package_manager']
|
55
55
|
@INUIT_MODULES ||= @ITCSS_CONFIG['inuit_modules']
|
56
|
+
@INUIT_PREFIX ||= @ITCSS_CONFIG['inuit_prefix']
|
56
57
|
else
|
57
58
|
@ITCSS_PACKAGE_MANAGER = nil
|
58
59
|
end
|
@@ -155,6 +156,7 @@ module Itcsscli
|
|
155
156
|
end
|
156
157
|
|
157
158
|
init_config['package_manager'] = user_package_manager
|
159
|
+
init_config['inuit_prefix'] = ''
|
158
160
|
end
|
159
161
|
|
160
162
|
File.open @ITCSS_CONFIG_TEMPLATE do |io|
|
@@ -214,7 +216,7 @@ module Itcsscli
|
|
214
216
|
end
|
215
217
|
|
216
218
|
itcss_module_files = Dir[ File.join("#{@ITCSS_DIR}/#{current_module}/", '**', '*') ].reject { |p| File.directory? p }
|
217
|
-
itcss_files_to_import[current_module] += itcss_module_files.map{|s| s.gsub("#{@ITCSS_DIR}/", '').gsub(".sass", '')}
|
219
|
+
itcss_files_to_import[current_module] += itcss_module_files.map{|s| s.gsub("#{@ITCSS_DIR}/", '').gsub(".sass", '').gsub("_", '')}
|
218
220
|
end
|
219
221
|
|
220
222
|
file_path = "#{@ITCSS_DIR}/#{@ITCSS_BASE_FILE}.sass"
|
@@ -370,9 +372,7 @@ module Itcsscli
|
|
370
372
|
end
|
371
373
|
|
372
374
|
def inuit_imports_path(filename)
|
373
|
-
@
|
374
|
-
frags = filename.split(".")
|
375
|
-
"#{package_manager_prefix}/inuit-#{frags[1]}/#{filename}"
|
375
|
+
"#{@INUIT_PREFIX}inuit-#{filename.split(".")[1]}/#{filename}"
|
376
376
|
end
|
377
377
|
|
378
378
|
end
|