rubyfox-client 0.4.0-java → 0.5.0-java

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
- SHA1:
3
- metadata.gz: 3c30eed27445c08c9c37b18343e0ee2d13fd35f0
4
- data.tar.gz: f55a58f4fbc6b2a28db4b390be6a6c8aef58e1d9
2
+ SHA256:
3
+ metadata.gz: bf3dce0260d267805db79f778bb21c81d14d4b36c5ca96abfb38c6d524a60ea7
4
+ data.tar.gz: c149047bb713e1d914931bc239f22569c91494aa2623ec6738a53ecae0709b20
5
5
  SHA512:
6
- metadata.gz: e932cf55dfccc12611adf9280136d48257d7fc678575590b6b76ca1b03114fb9fb1e76d6455c090a72c79621b40c84c56d6d0fe44cc79671871393ddf1ac9c28
7
- data.tar.gz: bbdbc792ca65afb3a99e3ac747a42402f6ef06578e7929db142556741206b740560fac2d576deb17e48bc098932f55409bdd8972c61b99725ccc184839b006e5
6
+ metadata.gz: b5423b09fb14f2e72cc7a79b23cc398ae004a3fb09daa5d50ac215e6be5998f8d43cdca365330f0528235f9801831cabf8f2088117785a29bf1b46a408ea6d0c
7
+ data.tar.gz: 0714e9401478c16653111b0bbd0fb4515ca958f8943fcc955fbcb2ba810f72817cd26c2be84a90fdac92a699e23d2ccfdbe3702e1f8871423358aa121382cab0
@@ -17,15 +17,16 @@ module Rubyfox
17
17
  @options[:debug] || false
18
18
  end
19
19
 
20
- def udp?
21
- false
20
+ def http_port
21
+ @options[:http_port] || 8080
22
22
  end
23
23
 
24
- def bluebox?
25
- false
24
+ def https_port
25
+ @options[:https_port] || 8443
26
26
  end
27
27
 
28
- def bluebox_port
28
+ def zone
29
+ @options[:zone] || ""
29
30
  end
30
31
  end
31
32
  end
@@ -7,6 +7,7 @@ module Rubyfox
7
7
  Request = ::Java.sfs2x.client.requests
8
8
  SFSEvent = ::Java.sfs2x.client.core.SFSEvent
9
9
  System = ::Java.java.lang.System
10
+ ConfigData = ::Java::sfs2x.client.util.ConfigData
10
11
  end
11
12
  end
12
13
  end
@@ -21,7 +21,15 @@ module Rubyfox
21
21
  def connect
22
22
  @event_handler.register
23
23
  @extension_handler.register
24
- @smartfox.connect(@config.host, @config.port)
24
+
25
+ config_data = Java::ConfigData.new
26
+ config_data.host = @config.host
27
+ config_data.port = @config.port
28
+ config_data.http_port = @config.http_port
29
+ config_data.https_port = @config.https_port
30
+ config_data.zone = @config.zone
31
+
32
+ @smartfox.connect(config_data)
25
33
  sleep 0.1
26
34
  end
27
35
 
@@ -64,6 +72,10 @@ module Rubyfox
64
72
  def remove_event(*names)
65
73
  @event_handler.remove(*names)
66
74
  end
75
+
76
+ def init_crypto
77
+ @smartfox.init_crypto
78
+ end
67
79
  end
68
80
  end
69
81
  end
@@ -1,5 +1,5 @@
1
1
  module Rubyfox
2
2
  module Client
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ require 'rubyfox/client/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "rubyfox-client"
8
8
  gem.version = Rubyfox::Client::VERSION
9
- gem.platform = Gem::Platform::JAVA
9
+ gem.platform = "java"
10
10
  gem.authors = ["Peter Leitzen", "Jakob Holderbaum"]
11
11
  gem.email = ["pl@neopoly.de", "jh@neopoly.de"]
12
12
  gem.description = %q{Ruby bindings for SmartFox's client.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyfox-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: java
6
6
  authors:
7
7
  - Peter Leitzen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-12 00:00:00.000000000 Z
12
+ date: 2018-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.6.14.1
122
+ rubygems_version: 2.7.7
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: ''