opqr 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5e8b312818a0a13342dd553757d78f2a34e3d8bf3b2174f2b098f11e8f71169
4
- data.tar.gz: '092ca822092032a6655d4465fb89c032cc476adb992d362bb50111d8db3490b4'
3
+ metadata.gz: ba5b69063dbe0f858c408ecba30b536cd7c40e63a46175b468b3a53e016d65e6
4
+ data.tar.gz: 49c6eb80347d14ce18b9f957602490a7acfea5183beb149f441752c3a2b89ffe
5
5
  SHA512:
6
- metadata.gz: f4a43a39f4a94c53e3304d018695149ac3beb0f7fee88baf00e53452a1da299f61e104bf0fc93af557ea8318864cf5316b754784bde76e8432096a70ac605544
7
- data.tar.gz: ca92e33a7b2c24ac68c00e03956a6868d1094f7295c6dd2a5daa45f771e961b1d2f0d57af2241d6eb1c9790eeef480fac9e0ce61f844186e1b9192297acb95c7
6
+ metadata.gz: 12724d9fd21ab3461bd3e498df190afd560a4cdc0fbc9f6c86c03c1bc763967557689b0f9fff4fe7104786e8115c48cd35372db973cadd25568253477271d906
7
+ data.tar.gz: e168568ec77982709911d0d9924ba58e82d7e85c4e45605a19c1dc714a9d5085f8d5e362f21fbfdd2831dc799f7e3c43b28909c8088788d73a1b48c1737498ed
data/.idea/opqr.iml CHANGED
@@ -13,32 +13,35 @@
13
13
  <orderEntry type="sourceFolder" forTests="false" />
14
14
  <orderEntry type="library" scope="PROVIDED" name="bundler (v2.4.10, ruby-3.2.2-p53) [gem]" level="application" />
15
15
  <orderEntry type="library" scope="PROVIDED" name="eventmachine (v1.2.7, ruby-3.2.2-p53) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="faye-websocket (v0.11.2, ruby-3.2.2-p53) [gem]" level="application" />
16
17
  <orderEntry type="library" scope="PROVIDED" name="minitest (v5.17.0, ruby-3.2.2-p53) [gem]" level="application" />
17
18
  <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, ruby-3.2.2-p53) [gem]" level="application" />
18
19
  <orderEntry type="library" scope="PROVIDED" name="websocket (v1.2.9, ruby-3.2.2-p53) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.7.5, ruby-3.2.2-p53) [gem]" level="application" />
19
21
  <orderEntry type="library" scope="PROVIDED" name="websocket-eventmachine-base (v1.2.0, ruby-3.2.2-p53) [gem]" level="application" />
20
22
  <orderEntry type="library" scope="PROVIDED" name="websocket-eventmachine-server (v1.0.1, ruby-3.2.2-p53) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.5, ruby-3.2.2-p53) [gem]" level="application" />
21
24
  <orderEntry type="library" scope="PROVIDED" name="websocket-native (v1.0.0, ruby-3.2.2-p53) [gem]" level="application" />
22
25
  </component>
23
26
  <component name="RakeTasksCache">
24
27
  <option name="myRootTask">
25
28
  <RakeTaskImpl id="rake">
26
29
  <subtasks>
27
- <RakeTaskImpl description="Build opqr-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
30
+ <RakeTaskImpl description="Build opqr-0.1.3.gem into the pkg directory" fullCommand="build" id="build" />
28
31
  <RakeTaskImpl id="build">
29
32
  <subtasks>
30
- <RakeTaskImpl description="Generate SHA512 checksum if opqr-0.1.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
33
+ <RakeTaskImpl description="Generate SHA512 checksum if opqr-0.1.3.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
31
34
  </subtasks>
32
35
  </RakeTaskImpl>
33
36
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
34
37
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
35
- <RakeTaskImpl description="Build and install opqr-0.1.0.gem into system gems" fullCommand="install" id="install" />
38
+ <RakeTaskImpl description="Build and install opqr-0.1.3.gem into system gems" fullCommand="install" id="install" />
36
39
  <RakeTaskImpl id="install">
37
40
  <subtasks>
38
- <RakeTaskImpl description="Build and install opqr-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
41
+ <RakeTaskImpl description="Build and install opqr-0.1.3.gem into system gems without network access" fullCommand="install:local" id="local" />
39
42
  </subtasks>
40
43
  </RakeTaskImpl>
41
- <RakeTaskImpl description="Create tag v0.1.0 and build and push opqr-0.1.0.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
44
+ <RakeTaskImpl description="Create tag v0.1.3 and build and push opqr-0.1.3.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
42
45
  <RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
43
46
  <RakeTaskImpl description="" fullCommand="default" id="default" />
44
47
  <RakeTaskImpl description="" fullCommand="release" id="release" />
data/Gemfile CHANGED
@@ -11,3 +11,4 @@ gem "minitest", "~> 5.0"
11
11
 
12
12
  gem 'websocket-eventmachine-server', '~> 1.0'
13
13
 
14
+ gem 'faye-websocket', '~> 0.11.2'
data/Gemfile.lock CHANGED
@@ -1,28 +1,35 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opqr (0.1.0)
5
- websocket-eventmachine-server (~> 1.0)
4
+ opqr (0.1.3)
5
+ faye-websocket (~> 0.11.2)
6
6
 
7
7
  GEM
8
8
  remote: https://gems.ruby-china.com/
9
9
  specs:
10
10
  eventmachine (1.2.7)
11
+ faye-websocket (0.11.2)
12
+ eventmachine (>= 0.12.0)
13
+ websocket-driver (>= 0.5.1)
11
14
  minitest (5.17.0)
12
15
  rake (13.0.6)
13
16
  websocket (1.2.9)
17
+ websocket-driver (0.7.5)
18
+ websocket-extensions (>= 0.1.0)
14
19
  websocket-eventmachine-base (1.2.0)
15
20
  eventmachine (~> 1.0)
16
21
  websocket (~> 1.0)
17
22
  websocket-native (~> 1.0)
18
23
  websocket-eventmachine-server (1.0.1)
19
24
  websocket-eventmachine-base (~> 1.0)
25
+ websocket-extensions (0.1.5)
20
26
  websocket-native (1.0.0)
21
27
 
22
28
  PLATFORMS
23
29
  x64-mingw-ucrt
24
30
 
25
31
  DEPENDENCIES
32
+ faye-websocket (~> 0.11.2)
26
33
  minitest (~> 5.0)
27
34
  opqr!
28
35
  rake (~> 13.0)
data/lib/opqr/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Opqr
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.5"
6
6
  end
data/lib/opqr/wsserver.rb CHANGED
@@ -10,7 +10,7 @@ module OPQ
10
10
  end
11
11
  def start
12
12
  EM.run {
13
- ws = Faye::WebSocket::Client.new('ws://'+$api_url+':'+$http_port+'/ws')
13
+ ws = Faye::WebSocket::Client.new('ws://'+$api_url.to_s+':'+$http_port.to_s+'/ws')
14
14
  ws.on :open do |event|
15
15
  puts "[WS] 连接已建立"
16
16
  end
data/opqr.gemspec CHANGED
@@ -29,8 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ["lib"]
30
30
 
31
31
  # Uncomment to register a new dependency of your gem
32
- spec.add_dependency "websocket-eventmachine-server", '~> 1.0'
33
-
32
+ spec.add_dependency 'faye-websocket', '~> 0.11.2'
34
33
  # For more information and examples about making a new gem, check out our
35
34
  # guide at: https://bundler.io/guides/creating_gem.html
36
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opqr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - intchensc
@@ -11,19 +11,19 @@ cert_chain: []
11
11
  date: 2023-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: websocket-eventmachine-server
14
+ name: faye-websocket
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: 0.11.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: 0.11.2
27
27
  description:
28
28
  email:
29
29
  - intchensc@qq.com