webkit_remote 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/webkit_remote/client/runtime.rb +8 -0
- data/test/webkit_remote/client/runtime_test.rb +5 -0
- data/webkit_remote.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 416d67a2b6d35035f958ba12d78f6df811c8d3da
|
4
|
+
data.tar.gz: e84f8431c006987ed00bc6820d735ebd32007b33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab633fc32026f9550a550ecfc24630a6256cd17b6253020dac5428f3810ab008dc2d982e2014d6ce75f57c50e6f75b164cc7fd74746ce0fc3236c5826261682a
|
7
|
+
data.tar.gz: 175f76e8c8fe401d7f3dd0285eb1019cb5a36da172dbb8d2c1646c940adcbfc1c80117bdbe6c618fd447c187d95670597326619bb45bf60d610739ce4ceb2855
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
@@ -127,6 +127,14 @@ class UndefinedClass
|
|
127
127
|
def inspect
|
128
128
|
'JavaScript undefined'
|
129
129
|
end
|
130
|
+
|
131
|
+
def release
|
132
|
+
self
|
133
|
+
end
|
134
|
+
|
135
|
+
def released?
|
136
|
+
true
|
137
|
+
end
|
130
138
|
end # class WebkitRemote::Client::UndefinedClass
|
131
139
|
|
132
140
|
Undefined = UndefinedClass.new
|
@@ -83,6 +83,11 @@ describe WebkitRemote::Client::Runtime do
|
|
83
83
|
it 'is idempotent' do
|
84
84
|
@undefined.must_equal @client.remote_eval('(function(){})()')
|
85
85
|
end
|
86
|
+
|
87
|
+
it 'returns a JSObject-like object' do
|
88
|
+
@undefined.released?.must_equal true
|
89
|
+
@undefined.release.must_equal @undefined
|
90
|
+
end
|
86
91
|
end
|
87
92
|
|
88
93
|
describe 'for an object created via new' do
|
data/webkit_remote.gemspec
CHANGED