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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38416a5462223f8c1b87c303e81c02d7410e76c371fde03eb03de37a9f455a90
4
- data.tar.gz: 264bb6cc47c4c02a047dea7812810b741be48eca5f6298bce98510a568b3be26
3
+ metadata.gz: bea8f2cdeb33fb9d9097da35a37832950927715a1fb2c453c9c0b019168239fe
4
+ data.tar.gz: 1faf1744fe8cff0920ba6568113a90b99a3e33973c92df1d2a23fc869856f327
5
5
  SHA512:
6
- metadata.gz: 76d9c1b745ce57961e5d8458e0037c16709617e821f43ce6ee6b4072b54cae60e117ea6a9540ee1fde97fca86276b7498a184a77fefc5cab9b8a603103e80042
7
- data.tar.gz: bc0e3ec881d84a2ef80b16b05dbbed1c3f63877a394e9027bb409372501a557af5c08b352631ece2d49e262cde1733f7b69637bb2ca1fefce29291626501b84c
6
+ metadata.gz: 593c439ab5a3aaf4418d5a26731f415b96dd79fdc3fd16340b7bcac58654434f5d635dd4ac42c042c0a04f12cb9a7806e56f1f9f8bb4607ac95a262a23e19226
7
+ data.tar.gz: 9c4c8dde24543bc6dadc119fa6ee91a3f219d4e868f7e9eb0c997454b322ce34c8ba656cfd3d7c4dea9cc5c66f5dae9dda192935c7f514a3ed2ef544d2ae21cd
@@ -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), line_number, line_content)
54
+ printf("%#{lpad}d %s\n".color(:red), current_line, line_content)
55
55
  else
56
- printf("%#{lpad}d %s\n", line_number, line_content)
56
+ printf("%#{lpad}d %s\n", current_line, line_content)
57
57
  end
58
58
  end
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module DslEvaluator
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  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.2
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-05-30 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow