rsec 0.4.2 → 0.4.3

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
- SHA1:
3
- metadata.gz: 23d745b038736c185b7a9159a77477ae93cb5e40
4
- data.tar.gz: 9b8a26991ce589d93503450c851cdabda83d342e
2
+ SHA256:
3
+ metadata.gz: '0729a60e389265baab9ff529159db7a7027c4b0635640ecfb50cf83c2cc2a0db'
4
+ data.tar.gz: d74e398d26955b73151494f55b3315e06f61483dbedd5136076bb90164e3f24d
5
5
  SHA512:
6
- metadata.gz: 6f23ad71fc0ac0fa8619630f7c636037ad4cd0e759d7e059ee9b9f2dfa18d2f482b0bf10dd0687e809a3e0fecff242d9d5018d7ca9e696e5de310785429738b0
7
- data.tar.gz: edc0398eaae5e0e2997310f561811d7679e718f1df3c371dd78ba76d52ba629163817f2c02758969f9a6442f57f76997e1b3f39a70f89acb1e20e84dd71fd360
6
+ metadata.gz: e5c81b3f0727c69ff705dcbd0aa077eed43a1f99c7d760e60c49dd4a4a98fd3417c86987a65776f0c88279c1c636cb3812e0be3693d0d3d871653ccee2437251
7
+ data.tar.gz: 468b07ca8e630158a0605315b381ab40df83c0a4a3bab56e92d60868ddcfcc5fec4e83cc944efdb63e7bd609240fd384f459b3e8204fc8e990363e133fe1fca3
data/lib/rsec.rb CHANGED
@@ -11,7 +11,7 @@ module Rsec
11
11
  TO_PARSER_METHOD = :r
12
12
  end
13
13
 
14
- VERSION = '0.4.2'
14
+ VERSION = '0.4.3'
15
15
  end
16
16
 
17
17
  require "strscan"
data/lib/rsec/helpers.rb CHANGED
@@ -87,7 +87,7 @@ module Rsec #:nodoc:
87
87
  raise 'Floating points does not allow :base'
88
88
  end
89
89
  base ||= 10
90
- Rsec.assert_type base, Fixnum
90
+ Rsec.assert_type base, Integer
91
91
  unless (2..36).include? base
92
92
  raise RangeError, ":base should be in 2..36, but got #{base}"
93
93
  end
data/readme.rdoc CHANGED
@@ -1,17 +1,15 @@
1
1
  == Parser / Regexp Combinator for Ruby.
2
2
 
3
- Easier and faster than treetop / rex+racc.
3
+ PEG grammar for Ruby, based on StringScanner. Consistently superior speed: up to 10 times faster than Treetop[https://github.com/nathansobo/treetop], and twice the speed of rex+racc.
4
4
 
5
- It's ruby1.9 only.
5
+ Compatible with Ruby v1.9 and above.
6
6
 
7
7
  == License
8
8
 
9
- As Ruby's
9
+ Same license as for Ruby.
10
10
 
11
11
  == Install
12
12
 
13
- The pure Ruby gem is fast enough (about 10+x faster than treetop generated code):
14
-
15
13
  gem in rsec
16
14
 
17
15
  == Doc
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - NS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-25 00:00:00.000000000 Z
11
+ date: 2019-03-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Easy and extreme fast dynamic PEG parser combinator.
14
14
  email:
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project:
74
- rubygems_version: 2.5.1
74
+ rubygems_version: 3.0.0.beta1
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Extreme Fast Parser Combinator for Ruby