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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 595f696067ee780226eb9e657df1786a99e805f58516f43c9c0fcfd0feed5579
4
- data.tar.gz: be599ec59b45ffabff696d03eb331613bd08e759ae645d9734af7bae7691095c
3
+ metadata.gz: 28b247461fa24c079dcb4d026b6384e803f83d11cba292464d8972ce3df6b562
4
+ data.tar.gz: 97e778665b9ba5712c4fd8df9f6dae55c650ce95857854271bb98b1c1bdf4b81
5
5
  SHA512:
6
- metadata.gz: 319902ca73d2ad35626d5cad95dee5504e0cd4eeedd759fcf1c64e4739ab749597e7397712e868b262628c902a683d060454fe22e0944c46f9e36497643dbf15
7
- data.tar.gz: f14346e3eb2d380e4228ea1beed7e3e08767abf715e08e14165559c84254376446897c91e8d203bd3a1e7422a548575f2e5f16ed604617581b78fd493c9cf640
6
+ metadata.gz: f59bba90a9f52c65bf7457cbd82de139101a917953b8db65357a63ad130843704bbf83be142fd9abdcc5f76e6586a1d1d2ded46531fe18b5e1edb7f201eb071d
7
+ data.tar.gz: 8816a32293fdc6f3d82ade76fb5a76d83aa9e0c3eb93df6a146cd1643cda2e27d671cbbcc9db54e890eab9eb37c020d1fc264ef681e8f9600a8776ae9d1a13c8
@@ -16,7 +16,7 @@ module IsoDoc
16
16
  puts(current_task)
17
17
  compile_scss_task(current_task)
18
18
  rescue StandardError => e
19
- puts(e.message, "skiping #{current_task}")
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
- [File.join('lib', 'isodoc'),
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
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "1.1.3-alpha2".freeze
2
+ VERSION = "1.1.3-alpha3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3.pre.alpha2
4
+ version: 1.1.3.pre.alpha3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.