torquespec 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/torquespec/daemon.rb +8 -0
- data/lib/torquespec/version.rb +1 -1
- metadata +4 -4
data/lib/torquespec/daemon.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'torquespec'
|
2
2
|
require 'rspec/core'
|
3
3
|
require 'drb'
|
4
|
+
require 'jruby'
|
4
5
|
require 'torquebox-core'
|
5
6
|
|
6
7
|
module TorqueSpec
|
@@ -137,6 +138,13 @@ class Proc
|
|
137
138
|
end
|
138
139
|
end
|
139
140
|
|
141
|
+
# Fix the same serialization of Proc objects as above, but for JRuby 1.7
|
142
|
+
if JRUBY_VERSION > '1.6.8'
|
143
|
+
JRuby.reference(Proc).allocator = lambda { |runtime, klass|
|
144
|
+
Proc.new {}
|
145
|
+
}
|
146
|
+
end
|
147
|
+
|
140
148
|
# We want exceptions tossed in the container to be passed back to the
|
141
149
|
# client, but there's no guarantee the type of Exception in the
|
142
150
|
# container will be available on the client's classpath, so we turn
|
data/lib/torquespec/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torquespec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 6
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Crossley
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
19
|
+
date: 2012-09-25 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|