isodoc 1.1.3.pre.alpha2 → 1.1.3.pre.alpha3
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/isodoc/gem_tasks.rb +18 -2
- data/lib/isodoc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28b247461fa24c079dcb4d026b6384e803f83d11cba292464d8972ce3df6b562
|
|
4
|
+
data.tar.gz: 97e778665b9ba5712c4fd8df9f6dae55c650ce95857854271bb98b1c1bdf4b81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f59bba90a9f52c65bf7457cbd82de139101a917953b8db65357a63ad130843704bbf83be142fd9abdcc5f76e6586a1d1d2ded46531fe18b5e1edb7f201eb071d
|
|
7
|
+
data.tar.gz: 8816a32293fdc6f3d82ade76fb5a76d83aa9e0c3eb93df6a146cd1643cda2e27d671cbbcc9db54e890eab9eb37c020d1fc264ef681e8f9600a8776ae9d1a13c8
|
data/lib/isodoc/gem_tasks.rb
CHANGED
|
@@ -16,7 +16,7 @@ module IsoDoc
|
|
|
16
16
|
puts(current_task)
|
|
17
17
|
compile_scss_task(current_task)
|
|
18
18
|
rescue StandardError => e
|
|
19
|
-
|
|
19
|
+
notify_borken_compilation(e, current_task)
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -42,6 +42,17 @@ module IsoDoc
|
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
def notify_borken_compilation(error, current_task)
|
|
46
|
+
puts("Cannot compile #{current_task} because of #{error.message}")
|
|
47
|
+
puts('continue anyway[y|n]?')
|
|
48
|
+
answer = STDIN.gets.strip
|
|
49
|
+
if %w[y yes].include?(answer.strip.downcase)
|
|
50
|
+
puts("Cannot compile #{current_task} because of #{error.message}")
|
|
51
|
+
else
|
|
52
|
+
exit(0)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
45
56
|
def git_cache_compiled_files
|
|
46
57
|
CLEAN.each do |css_file|
|
|
47
58
|
sh "git add #{css_file}"
|
|
@@ -92,7 +103,12 @@ module IsoDoc
|
|
|
92
103
|
def compile_scss(filename)
|
|
93
104
|
require 'sassc'
|
|
94
105
|
|
|
95
|
-
[
|
|
106
|
+
isodoc_path = if Gem.loaded_specs['isodoc']
|
|
107
|
+
File.join(Gem.loaded_specs['isodoc'].full_gem_path, 'lib', 'isodoc')
|
|
108
|
+
else
|
|
109
|
+
File.join('lib', 'isodoc')
|
|
110
|
+
end
|
|
111
|
+
[isodoc_path,
|
|
96
112
|
File.dirname(filename)].each do |name|
|
|
97
113
|
SassC.load_paths << name
|
|
98
114
|
end
|
data/lib/isodoc/version.rb
CHANGED