dsl_evaluator 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/dsl_evaluator/printer.rb +2 -2
- data/lib/dsl_evaluator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bea8f2cdeb33fb9d9097da35a37832950927715a1fb2c453c9c0b019168239fe
|
4
|
+
data.tar.gz: 1faf1744fe8cff0920ba6568113a90b99a3e33973c92df1d2a23fc869856f327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593c439ab5a3aaf4418d5a26731f415b96dd79fdc3fd16340b7bcac58654434f5d635dd4ac42c042c0a04f12cb9a7806e56f1f9f8bb4607ac95a262a23e19226
|
7
|
+
data.tar.gz: 9c4c8dde24543bc6dadc119fa6ee91a3f219d4e868f7e9eb0c997454b322ce34c8ba656cfd3d7c4dea9cc5c66f5dae9dda192935c7f514a3ed2ef544d2ae21cd
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [0.1.3]
|
7
|
+
- #2 fix current line number printed
|
8
|
+
|
6
9
|
## [0.1.2]
|
7
10
|
- #1 get line info from error message also
|
8
11
|
|
@@ -51,9 +51,9 @@ module DslEvaluator
|
|
51
51
|
content_lines[top..bottom].each_with_index do |line_content, index|
|
52
52
|
current_line = top+index+1
|
53
53
|
if current_line == line_number
|
54
|
-
printf("%#{lpad}d %s\n".color(:red),
|
54
|
+
printf("%#{lpad}d %s\n".color(:red), current_line, line_content)
|
55
55
|
else
|
56
|
-
printf("%#{lpad}d %s\n",
|
56
|
+
printf("%#{lpad}d %s\n", current_line, line_content)
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dsl_evaluator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|