racc 1.4.10 → 1.4.11

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
  SHA1:
3
- metadata.gz: 678067056a78af4ab020b8cbdd35502a1a27ea16
4
- data.tar.gz: 8b19bd475f558fc1c3802063e6181584854abe55
3
+ metadata.gz: fdb6705e48d3a3a31eaecc3f8a8edd1364ec3ecf
4
+ data.tar.gz: fa53ba44667f1cfb398754892215edf534852b7d
5
5
  SHA512:
6
- metadata.gz: 493e3227232a476dbe7d727d1d16a77a5050b3959ff4c631244bdb6f05bc88d19dd8a91fde2915bd4c81bcbd34c92c1cf075f63fae44f72c179c309f04b6f256
7
- data.tar.gz: 9ef0cd010deb4fda96c73c2403dec66dbcc2790df1640cdc001553597ea558a71a60b26daf49fa246241a2ce336588f4fd40ff4e49f308efbed1b4294e90d809
6
+ metadata.gz: afa071e7276dc5119482415d9b3d2ec26e8358abd05ca774b8d4d69e336e8aefbeca8531a7aa2e29d3dd1b76d7b1f19d26f3f9e5c4504f12dcd729fe7d542421
7
+ data.tar.gz: a23383e18a0be74fcf2747486ded24bd7c86cfa78fffa48deb1f6570e85d23a8e351bb3d2908a545480ce6f7c5ce6bae73690da2e7e96c30bc9e3228d8db740b
Binary file
@@ -0,0 +1,2 @@
1
+ "d.��߉)�o��)� 4l��ɖ�������D����8��ۼ���(AE.q��,���4ꘒg6�4j�f>�-C�����ն\n������Z��%meW�+q�
2
+ ·��=��ȇ�9�\����,>c�I�5��S�X/�@=�A���<|>j-�s}so�G��+e G]�a�;�Th��#�M� �'
data/Rakefile CHANGED
@@ -8,24 +8,25 @@ require "rake/extensiontask"
8
8
 
9
9
  Hoe.plugin :debugging, :doofus, :git, :isolate
10
10
 
11
- Hoe.spec 'racc' do
11
+ hoe = Hoe.spec 'racc' do
12
12
  developer 'Aaron Patterson', 'aaron@tenderlovemaking.com'
13
+ license "MIT"
13
14
 
14
15
  self.extra_rdoc_files = Dir['*.rdoc']
15
16
  self.history_file = 'ChangeLog'
16
17
  self.readme_file = 'README.rdoc'
17
- self.testlib = :testunit
18
18
 
19
- extra_dev_deps << ['rake-compiler', '>= 0.4.1']
19
+ dependency 'rake-compiler', '>= 0.4.1', :developer
20
+ dependency 'minitest', '~> 4.7', :developer # stick to stdlib's version
20
21
 
21
22
  if RUBY_PLATFORM =~ /java/
22
- self.spec_extras = { :platform => 'java' }
23
+ self.spec_extras[:platform] = 'java'
23
24
  else
24
- self.spec_extras = {
25
- :extensions => ["ext/racc/extconf.rb"]
26
- }
25
+ self.spec_extras[:extensions] = %w[ext/racc/extconf.rb]
27
26
  end
28
27
 
28
+ clean_globs << "lib/#{self.name}/*.{so,bundle,dll}" # from hoe/compiler
29
+
29
30
  Rake::ExtensionTask.new "cparse", spec do |ext|
30
31
  ext.lib_dir = File.join 'lib', 'racc'
31
32
  ext.ext_dir = File.join 'ext', 'racc'
@@ -46,6 +47,8 @@ end
46
47
  }
47
48
  end
48
49
 
50
+ task :test => :compile
51
+
49
52
  Hoe.add_include_dirs('.:lib/racc')
50
53
 
51
54
  task :compile => 'lib/racc/parser-text.rb'
@@ -17,7 +17,7 @@
17
17
  Important Constants
18
18
  ----------------------------------------------------------------------- */
19
19
 
20
- #define RACC_VERSION "1.4.10"
20
+ #define RACC_VERSION "1.4.11"
21
21
 
22
22
  #define DEFAULT_TOKEN -1
23
23
  #define ERROR_TOKEN 1
@@ -65,6 +65,10 @@ static ID id_d_e_pop;
65
65
  # define LONG2NUM(i) INT2NUM(i)
66
66
  #endif
67
67
 
68
+ #ifndef HAVE_RB_ARY_SUBSEQ
69
+ # define rb_ary_subseq(ary, beg, len) rb_ary_new4(len, RARRAY_PTR(ary) + beg)
70
+ #endif
71
+
68
72
  static ID value_to_id _((VALUE v));
69
73
  static inline long num_to_long _((VALUE n));
70
74
 
@@ -1,5 +1,7 @@
1
- # $Id: 7151daa60cd95ecbb70f5e5a8db13142d1fe2d7c $
1
+ # $Id: 1e30abedf4eea155815d1efa5500ec817b10a2ab $
2
2
 
3
3
  require 'mkmf'
4
4
 
5
+ have_func('rb_ary_subseq')
6
+
5
7
  create_makefile 'racc/cparse'
@@ -1,5 +1,5 @@
1
1
  #
2
- # $Id: b40c10cc1a30073bf591fef553277971e3c4cd75 $
2
+ # $Id: 14fa1118eb3a23e85265e4f7afe2d5a297d69f9c $
3
3
  #
4
4
  # Copyright (c) 1999-2006 Minero Aoki
5
5
  #
@@ -21,14 +21,6 @@ unless Object.method_defined?(:__send!)
21
21
  end
22
22
  end
23
23
 
24
- unless String.method_defined?(:to_a)
25
- class String
26
- def to_a
27
- lines.to_a
28
- end
29
- end
30
- end
31
-
32
24
  unless Array.method_defined?(:map!)
33
25
  class Array
34
26
  if Array.method_defined?(:collect!)
@@ -1,5 +1,5 @@
1
1
  #
2
- # $Id: 3f7136294dbfbc25783f216ca3168a37c671960b $
2
+ # $Id: 5e1871defa15d288d2252e6a76bb2c4cf2119ed3 $
3
3
  #
4
4
  # Copyright (c) 1999-2006 Minero Aoki
5
5
  #
@@ -258,7 +258,7 @@ module Racc
258
258
  line = @scanner.lineno
259
259
  _, *blocks = *@scanner.epilogue.split(/^----/)
260
260
  blocks.each do |block|
261
- header, *body = block.to_a
261
+ header, *body = block.lines.to_a
262
262
  label0, pathes = *header.sub(/\A-+/, '').split('=', 2)
263
263
  label = canonical_label(label0)
264
264
  (pathes ? pathes.strip.split(' ') : []).each do |path|
@@ -1,5 +1,5 @@
1
1
  #
2
- # $Id: cacd3e912323889e11ca8e960512b4f2186a9d1a $
2
+ # $Id: 90afb43b1438ad2bb681a529146d1cb5cd7e45ac $
3
3
  #
4
4
  # Copyright (c) 1999-2006 Minero Aoki
5
5
  #
@@ -10,7 +10,7 @@
10
10
  #
11
11
 
12
12
  module Racc
13
- VERSION = '1.4.10'
13
+ VERSION = '1.4.11'
14
14
  Version = VERSION
15
15
  Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
16
16
  end
@@ -1,5 +1,5 @@
1
1
  #
2
- # $Id: 75aee0ac3cd6429e28eac511d78a717614123a89 $
2
+ # $Id: f2d2788af2323ada1913f1dad5fea8aae4cc6830 $
3
3
  #
4
4
  # Copyright (c) 1999-2006 Minero Aoki
5
5
  #
@@ -478,7 +478,7 @@ module Racc
478
478
  end
479
479
 
480
480
  def unindent_auto(str)
481
- lines = str.to_a
481
+ lines = str.lines.to_a
482
482
  n = minimum_indent(lines)
483
483
  lines.map {|line| detab(line).sub(indent_re(n), '').rstrip + "\n" }.join('')
484
484
  end
@@ -1,11 +1,11 @@
1
1
  $VERBOSE = true
2
- require 'test/unit'
2
+ require 'minitest/autorun'
3
3
  require 'racc/static'
4
4
  require 'fileutils'
5
5
  require 'tempfile'
6
6
 
7
7
  module Racc
8
- class TestCase < Test::Unit::TestCase
8
+ class TestCase < MiniTest::Unit::TestCase
9
9
  PROJECT_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..'))
10
10
 
11
11
  TEST_DIR = File.join(PROJECT_DIR, 'test')
@@ -22,10 +22,6 @@ module Racc
22
22
  File.join(PROJECT_DIR, 'ext'),
23
23
  ].join(':')
24
24
 
25
- unless RUBY_VERSION >= '1.9'
26
- undef :default_test
27
- end
28
-
29
25
  def setup
30
26
  [OUT_DIR, TAB_DIR, LOG_DIR, ERR_DIR].each do |dir|
31
27
  FileUtils.mkdir_p(dir)
metadata CHANGED
@@ -1,14 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.10
4
+ version: 1.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2013-10-16 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
14
+ YWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDc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25Egql1t
30
+ KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
31
+ wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
32
+ -----END CERTIFICATE-----
33
+ date: 2014-01-08 00:00:00.000000000 Z
12
34
  dependencies:
13
35
  - !ruby/object:Gem::Dependency
14
36
  name: rdoc
@@ -38,20 +60,34 @@ dependencies:
38
60
  - - ">="
39
61
  - !ruby/object:Gem::Version
40
62
  version: 0.4.1
63
+ - !ruby/object:Gem::Dependency
64
+ name: minitest
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '4.7'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '4.7'
41
77
  - !ruby/object:Gem::Dependency
42
78
  name: hoe
43
79
  requirement: !ruby/object:Gem::Requirement
44
80
  requirements:
45
81
  - - "~>"
46
82
  - !ruby/object:Gem::Version
47
- version: '3.6'
83
+ version: '3.7'
48
84
  type: :development
49
85
  prerelease: false
50
86
  version_requirements: !ruby/object:Gem::Requirement
51
87
  requirements:
52
88
  - - "~>"
53
89
  - !ruby/object:Gem::Version
54
- version: '3.6'
90
+ version: '3.7'
55
91
  description: |-
56
92
  Racc is a LALR(1) parser generator.
57
93
  It is written in Ruby itself, and generates Ruby program.
@@ -78,6 +114,7 @@ extra_rdoc_files:
78
114
  - rdoc/ja/grammar.ja.rdoc
79
115
  - rdoc/ja/parser.ja.rdoc
80
116
  files:
117
+ - ".gemtest"
81
118
  - COPYING
82
119
  - ChangeLog
83
120
  - DEPENDS
@@ -178,9 +215,9 @@ files:
178
215
  - test/testscanner.rb
179
216
  - web/racc.en.rhtml
180
217
  - web/racc.ja.rhtml
181
- - ".gemtest"
182
218
  homepage: http://i.loveruby.net/en/projects/racc/
183
- licenses: []
219
+ licenses:
220
+ - MIT
184
221
  metadata: {}
185
222
  post_install_message:
186
223
  rdoc_options:
@@ -200,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
237
  version: '0'
201
238
  requirements: []
202
239
  rubyforge_project: racc
203
- rubygems_version: 2.0.2
240
+ rubygems_version: 2.2.1
204
241
  signing_key:
205
242
  specification_version: 4
206
243
  summary: Racc is a LALR(1) parser generator
Binary file