QWebChannel 2019.1.4 → 2019.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/QWebChannel.rb +5 -1
- data/lib/QWebChannel/QObject.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 290fe21429e82b3a922b7b7c91c27c4fa3d3ec52
|
|
4
|
+
data.tar.gz: 6a0e7416eb5433445563bdd767801ee2f4f1e0e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaa5b59e646cda353c56c5094583c99d8fd9ace44d17990493eab16afceb07e823f8f431492d9cdf08167ed059501146eba2f3f6dbb97dce810b594f916e8861
|
|
7
|
+
data.tar.gz: 3fbf8267ea64df5e29425197e79c512cbd66a7c3281a4d0f01d383c5e27f631d9213ca5aed7712b8d813209a8cecee517fbcdd8019327516b5f309db8af648fd
|
data/lib/QWebChannel.rb
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
$LOAD_PATH.unshift File.expand_path('../QWebChannel', __FILE__)
|
|
4
4
|
|
|
5
|
-
# require 'Hearch/HearchIndexEntry_pb'
|
|
6
5
|
require 'QWebChannel/QSignal'
|
|
7
6
|
require 'QWebChannel/QObject'
|
|
8
7
|
require 'set'
|
|
@@ -24,6 +23,11 @@ end
|
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
class QWebChannel
|
|
26
|
+
# Communicate with C++ QWebChannel.
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Example:待续,写示例。
|
|
30
|
+
|
|
27
31
|
attr_reader :execId
|
|
28
32
|
attr_writer :execId
|
|
29
33
|
attr_reader :execCallbacks
|
data/lib/QWebChannel/QObject.rb
CHANGED
|
@@ -17,7 +17,7 @@ class QObject
|
|
|
17
17
|
end #if (response.is_a?(Array))
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
if (!response || response.is_a?(Fixnum)
|
|
20
|
+
if (!response || response.is_a?(Fixnum) || response.is_a?(Float) || response.is_a?(TrueClass) || !response["__QObject*__"] || response.id == nil)
|
|
21
21
|
return response
|
|
22
22
|
end
|
|
23
23
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: QWebChannel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2019.1.
|
|
4
|
+
version: 2019.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hxcan Cai
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: websocket-eventmachine-client
|