antlr3 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/antlr4ruby +5 -14
  2. data/lib/antlr3/version.rb +1 -1
  3. metadata +2 -2
@@ -3,20 +3,11 @@
3
3
 
4
4
  __DIR__ = File.expand_path( File.dirname __FILE__ )
5
5
  project_top = File.dirname __DIR__
6
- load( File.join( project_top, 'lib', 'antlr3', 'version.rb' ) )
7
-
8
- jar_name = "antlr-full-#{ ANTLR_VERSION_STRING }.jar"
9
- jar_path = File.join( project_top, 'java', jar_name )
10
-
11
- unless File.exist?( jar_path )
12
- $stderr.puts(<<-END.strip!.gsub!(/\s+/, ' '))
13
- the ANTLR #{ ANTLR_VERSION_STRING } jar is expected
14
- to be located at #{ jar_path }, but it does not
15
- appear to exist.
16
- END
17
- exit( 1 )
18
- end
6
+ lib = File.join( project_top, 'lib' )
7
+ $:.unshift( lib )
8
+ require 'antlr3'
19
9
 
10
+ jar = ANTLR3.antlr_jar or fail( "cannot find antlr4ruby's customized ANTLR jar" )
20
11
  escape = proc do | a |
21
12
  if a.empty? then "''"
22
13
  else
@@ -25,7 +16,7 @@ escape = proc do | a |
25
16
  end
26
17
  end
27
18
 
28
- command = %w(java -jar) << escape[ antlr_jar ]
19
+ command = %w(java -jar) << escape[ jar ]
29
20
  for arg in ARGV
30
21
  command << escape[ arg ]
31
22
  end
@@ -20,7 +20,7 @@ module ANTLR3
20
20
  #
21
21
  MAJOR_VERSION = 1
22
22
  MINOR_VERSION = 2
23
- PATCH_VERSION = 3
23
+ PATCH_VERSION = 4
24
24
  VERSION = [MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION]
25
25
  VERSION_STRING = VERSION.join('.').freeze
26
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antlr3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Yetter
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-23 00:00:00 -05:00
12
+ date: 2009-12-25 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15