Skip to content

Commit 2b34f9d

Browse files
committed
WIP
1 parent 1c38e31 commit 2b34f9d

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

Rakefile

+2-13
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ file EXT_PARSER_SRC => RAGEL_PATH do
5858
end
5959
end
6060

61-
require 'rake/javaextensiontask'
62-
Rake::JavaExtensionTask.new("TDOD") do |ext|
63-
ext.source_version = '1.8'
64-
ext.target_version = '1.8'
65-
ext.ext_dir = 'ext/java'
66-
ext.lib_dir = 'lib/cgi'
67-
68-
task :build => :compile
69-
end
70-
7161
if RUBY_ENGINE == 'ruby'
7262
require 'rake/extensiontask'
7363

@@ -118,7 +108,7 @@ elsif RUBY_ENGINE == 'jruby'
118108
end
119109

120110
desc "Compiling jruby extension"
121-
task :compile => [:ragel] + JAVA_CLASSES
111+
task :compile => [JAVA_PARSER_SRC] + JAVA_CLASSES
122112

123113
desc "Package the jruby gem"
124114
task :jruby_gem => :create_jar do
@@ -128,8 +118,7 @@ elsif RUBY_ENGINE == 'jruby'
128118
end
129119

130120
desc "Testing library (jruby)"
131-
task :test_ext => [ :set_env_ext, :create_jar, :check_env, :do_test_ext ]
132-
task(:set_env_ext) { ENV['JSON'] = 'ext' }
121+
task :"test:ext" => :create_jar
133122

134123
file JRUBY_PARSER_JAR => :compile do
135124
cd 'java/src' do

test/json/json_parser_test.rb

+3
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ def test_parse_error_message_length
511511
error = assert_raise(JSON::ParserError) do
512512
JSON.parse('{"foo": ' + ('A' * 500) + '}')
513513
end
514+
puts '-' * 40
515+
puts error.message
516+
puts '-' * 40
514517
assert_operator 60, :>, error.message.bytesize
515518
end
516519

0 commit comments

Comments
 (0)