raabro 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2fa1cb664d06179ef03c05a8aa87173c1e097f8d
4
+ data.tar.gz: 01f4350acf6028d2b33f5ca0de6775eb7e8d9a8c
5
+ SHA512:
6
+ metadata.gz: 6521b4ace2882213adf5c248181387bcb179df9c1b0b68f8f238cc5de582f773092925a3584146fc5b2944ff981743f8d06708a2965da8bb07c265acc39e3160
7
+ data.tar.gz: ce28d1b1114ed171efa5e292f4af867c8a98420eeb157daad52315c44ecde15825a4db20d5e99f3bcf42dc57b968a282b2b5245cdbf7693118accd1923e30098
@@ -2,6 +2,11 @@
2
2
  # raabro CHANGELOG.md
3
3
 
4
4
 
5
+ ## raabro 1.1.6 released 2018-06-22
6
+
7
+ * Remove unused `add` var, gh-2, thanks to https://github.com/utilum
8
+
9
+
5
10
  ## raabro 1.1.5 released 2017-08-19
6
11
 
7
12
  * Default name to nil for Tree#subgather, #gather, #sublookup, and #lookup
@@ -0,0 +1,14 @@
1
+
2
+ # raabro credits
3
+
4
+ * Utilum https://github.com/utilum removed unused var
5
+ * John Mettraux https://github.com/jmettraux author and maintainer
6
+
7
+
8
+ ## aabro and jaabro credits
9
+
10
+ Thanks to all the people who contributed to aabro and jaabro as well.
11
+
12
+ * https://github.com/flon-io/aabro
13
+ * https://github.com/jmettraux/jaabro
14
+
@@ -1,5 +1,5 @@
1
1
 
2
- Copyright (c) 2015-2017, John Mettraux, jmettraux@gmail.com
2
+ Copyright (c) 2015-2018, John Mettraux, jmettraux@gmail.com
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
19
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
20
  THE SOFTWARE.
21
21
 
22
+
23
+ Made in Japan.
24
+
data/Makefile CHANGED
@@ -1,9 +1,15 @@
1
1
 
2
+ ## gem tasks ##
3
+
2
4
  NAME = \
3
5
  $(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.name")
4
6
  VERSION = \
5
7
  $(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.version")
6
8
 
9
+ count_lines:
10
+ find lib -name "*.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
11
+ find spec -name "*_spec.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
12
+ cl: count_lines
7
13
 
8
14
  gemspec_validate:
9
15
  @echo "---"
@@ -13,6 +19,9 @@ gemspec_validate:
13
19
  name: gemspec_validate
14
20
  @echo "$(NAME) $(VERSION)"
15
21
 
22
+ cw:
23
+ find lib -name "*.rb" -exec ruby -cw {} \;
24
+
16
25
  build: gemspec_validate
17
26
  gem build $(NAME).gemspec
18
27
  mkdir -p pkg
@@ -21,3 +30,10 @@ build: gemspec_validate
21
30
  push: build
22
31
  gem push pkg/$(NAME)-$(VERSION).gem
23
32
 
33
+ spec:
34
+ bundle exec rspec
35
+ test: spec
36
+
37
+
38
+ .PHONY: count_lines gemspec_validate name cw build push spec
39
+
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  # raabro
3
3
 
4
- [![Build Status](https://secure.travis-ci.org/jmettraux/raabro.svg)](http://travis-ci.org/jmettraux/raabro)
4
+ [![Build Status](https://secure.travis-ci.org/floraison/raabro.svg)](http://travis-ci.org/floraison/raabro)
5
5
  [![Gem Version](https://badge.fury.io/rb/raabro.svg)](http://badge.fury.io/rb/raabro)
6
6
 
7
7
  A very dumb PEG parser library.
@@ -187,7 +187,7 @@ end
187
187
 
188
188
  I'm using "child or sub-child" instead of "descendant" because once a child or sub-child matches, those methods do not consider the children or sub-children of that matching entity.
189
189
 
190
- Here is a closeup on the rewrite functions of the sample parser at [doc/readme1.rb](doc/readme1.rb) (extracted from an early version of [floraison/dense](https://github.com/floraison/dense):
190
+ Here is a closeup on the rewrite functions of the sample parser at [doc/readme1.rb](doc/readme1.rb) (extracted from an early version of [floraison/dense](https://github.com/floraison/dense)):
191
191
  ```ruby
192
192
  require 'raabro'
193
193
 
@@ -1,31 +1,7 @@
1
- #--
2
- # Copyright (c) 2015-2017, John Mettraux, jmettraux@gmail.com
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
-
25
1
 
26
2
  module Raabro
27
3
 
28
- VERSION = '1.1.5'
4
+ VERSION = '1.1.6'
29
5
 
30
6
  class Input
31
7
 
@@ -478,8 +454,6 @@ module Raabro
478
454
 
479
455
  loop do
480
456
 
481
- add = true
482
-
483
457
  st = i > 0 ? _parse(seppa, input) : nil
484
458
  et = st == nil || st.result == 1 ? _parse(eltpa, input) : nil
485
459
 
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
 
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'John Mettraux' ]
12
- s.email = [ 'jmettraux@gmail.com' ]
13
- s.homepage = 'http://github.com/jmettraux/raabro'
12
+ s.email = [ 'jmettraux+flor@gmail.com' ]
13
+ s.homepage = 'http://github.com/floraison/raabro'
14
14
  #s.rubyforge_project = 'rufus'
15
15
  s.license = 'MIT'
16
16
  s.summary = 'a very dumb PEG parser library'
@@ -30,7 +30,7 @@ A very dumb PEG parser library, with a horrible interface.
30
30
 
31
31
  #s.add_runtime_dependency 'tzinfo'
32
32
 
33
- s.add_development_dependency 'rspec', '~> 3.4.0'
33
+ s.add_development_dependency 'rspec', '~> 3.7'
34
34
 
35
35
  s.require_path = 'lib'
36
36
  end
metadata CHANGED
@@ -1,68 +1,65 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raabro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
5
- prerelease:
4
+ version: 1.1.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Mettraux
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2017-08-18 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 3.4.0
19
+ version: '3.7'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 3.4.0
26
+ version: '3.7'
30
27
  description: A very dumb PEG parser library, with a horrible interface.
31
28
  email:
32
- - jmettraux@gmail.com
29
+ - jmettraux+flor@gmail.com
33
30
  executables: []
34
31
  extensions: []
35
32
  extra_rdoc_files: []
36
33
  files:
37
- - README.md
38
34
  - CHANGELOG.md
35
+ - CREDITS.md
39
36
  - LICENSE.txt
40
37
  - Makefile
38
+ - README.md
41
39
  - lib/raabro.rb
42
40
  - raabro.gemspec
43
- homepage: http://github.com/jmettraux/raabro
41
+ homepage: http://github.com/floraison/raabro
44
42
  licenses:
45
43
  - MIT
44
+ metadata: {}
46
45
  post_install_message:
47
46
  rdoc_options: []
48
47
  require_paths:
49
48
  - lib
50
49
  required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
50
  requirements:
53
- - - ! '>='
51
+ - - ">="
54
52
  - !ruby/object:Gem::Version
55
53
  version: '0'
56
54
  required_rubygems_version: !ruby/object:Gem::Requirement
57
- none: false
58
55
  requirements:
59
- - - ! '>='
56
+ - - ">="
60
57
  - !ruby/object:Gem::Version
61
58
  version: '0'
62
59
  requirements: []
63
60
  rubyforge_project:
64
- rubygems_version: 1.8.23.2
61
+ rubygems_version: 2.5.2
65
62
  signing_key:
66
- specification_version: 3
63
+ specification_version: 4
67
64
  summary: a very dumb PEG parser library
68
65
  test_files: []