basic101 1.0.1 → 1.0.2

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: e0193e509ddc33dd99a3c9a48eb1592d97969e14c6f9f1efe50a97c44c7f166b
4
- data.tar.gz: dfbc3c201e048e30d911389c7f96571fb738e59ba91fd57076d8236f23b026ca
3
+ metadata.gz: 045dbc2cfee4f52910f73756f5af8dc808e3c0c735f547744c119c81cccbddae
4
+ data.tar.gz: 9c1c6afa398e9a1baf65cbc782ae68c9d4467912b751c05cb29ac72730680079
5
5
  SHA512:
6
- metadata.gz: 6965dade108384d3bcd82cc2cdd11258a01fea3d789e827fec34065f73a654b83df1b496582cb9bebf11f1bf7c5b366e496986cdc6f9ac6d691d18b55655d372
7
- data.tar.gz: 9e26904377b3ac26b57dbe582f6871e17fffdcc8df5cab9ec52d14aecb9a2f4cb7a50a7c43462b9c63cb6dfb7d235322d1993724222e307ea3b81655ac822807
6
+ metadata.gz: e14c33185bb0abefeb57b3fdfc356658cc25c470eee0a84e147650bc32d7636d1bb09dcfd8c8dc42dfd71592eca6398177ce1af1f8b43db40da09b02999c8cbc
7
+ data.tar.gz: b18c08404bdd18a3a040999c134e3b1f132b44b6dcbde23b3eb49fed460ced101c6367ae9f84c9fefd472ef1c0d5471dc802306243757b57a1c5bf87efa217c6
data/Changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ # Development
2
+
3
+ # 1.0.2 - 2022-03-12
4
+
5
+ * Fix stack trace on parse error
6
+
1
7
  # 1.0.1 - 2022-03-11
2
8
 
3
9
  * Update gems to support Ruby 3.0. Now requires >= Ruby 2.5.
@@ -18,7 +24,7 @@
18
24
  # 0.2.0
19
25
 
20
26
  * Versions in Gemfile dependencies
21
-
27
+
22
28
  # 0.1.0
23
29
 
24
30
  Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- basic101 (1.0.1)
4
+ basic101 (1.0.2)
5
5
  parslet (~> 2.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -186,7 +186,7 @@ Wayne Conrad <wconrad@yagni.com>
186
186
  [6]: http://www.vintage-basic.net/bcg/superstartrekins.bas
187
187
  [7]: http://www.vintage-basic.net/bcg/civilwar.bas
188
188
  [8]: http://www.vintage-basic.net/games.html
189
- [9]: http://www.classicbasicgames.org/
189
+ [9]: https://web.archive.org/web/20200918091341/http://www.classicbasicgames.org/
190
190
  [10]: https://github.com/lylek/vintage-basic
191
191
  [11]: http://en.wikipedia.org/wiki/Parsing_expression_grammar
192
192
  [12]: http://kschiess.github.io/parslet/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -23,10 +23,11 @@ module Basic101
23
23
  tree = parser.parse(source)
24
24
  transform.apply(tree)
25
25
  rescue Parslet::ParseFailed => error
26
- line_number, column_number =
27
- error.cause.source.line_and_column(error.cause.pos)
26
+ error_cause = error.parse_failure_cause
27
+ error_source = error_cause.source
28
+ line_number, column_number = error_source.line_and_column(error_cause.pos)
28
29
  line = source.lines[line_number - 1]
29
- raise SyntaxError.new(line, line_number, column_number, error.message)
30
+ raise SyntaxError.new(line, line_number, column_number, error.to_s)
30
31
  end
31
32
 
32
33
  def initialize(lines = [])
@@ -6,8 +6,8 @@ module Basic101
6
6
  # by the library as well.
7
7
  module Release
8
8
 
9
- VERSION = "1.0.1"
10
- DATE = "2022-03-11"
9
+ VERSION = "1.0.2"
10
+ DATE = "2022-03-12"
11
11
 
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basic101
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne Conrad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-11 00:00:00.000000000 Z
11
+ date: 2022-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet