coap 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -3
- data/coap.gemspec +1 -1
- data/lib/core/coap/version.rb +1 -1
- data/test/test_client.rb +11 -1
- metadata +7 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c7fd4770f804c5a31cdd504dff4dc9385450cdf
|
4
|
+
data.tar.gz: 219d4ab33ebc43ce15e8e79c2b61eba7ca63195f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf7186ada64381b5f2f4ef5ac710fd81da7135dea44251fc0373e1f9d9f4b4b6449ebdba32b9ad10c79e7e7344b174bbb6b9f2b80ca8930dcacf71911b4ecac8
|
7
|
+
data.tar.gz: 28d5c3bc3f54e76414d4e7d8356e303397d40399c18fd6895aec1ebe4dcb62d5ca345a65ba607f058b86529e7eafacae74d33db5e3a5f363419daea2946583f8
|
data/.travis.yml
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
|
+
os:
|
4
|
+
- linux
|
5
|
+
- osx
|
6
|
+
|
3
7
|
rvm:
|
4
|
-
-
|
5
|
-
-
|
8
|
+
- head
|
9
|
+
- 2.3.0
|
10
|
+
- 2.2.4
|
11
|
+
- jruby-9.0.4.0
|
6
12
|
|
7
13
|
matrix:
|
14
|
+
fast_finish: true
|
8
15
|
allow_failures:
|
9
|
-
-
|
16
|
+
- os: osx
|
17
|
+
- rvm: head
|
18
|
+
- rvm: jruby-9.0.4.0
|
10
19
|
|
11
20
|
notifications:
|
12
21
|
email: false
|
data/coap.gemspec
CHANGED
@@ -33,6 +33,6 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_development_dependency 'rake', '~> 10.3'
|
34
34
|
s.add_development_dependency 'rspec', '~> 3.0'
|
35
35
|
|
36
|
-
s.add_dependency 'celluloid-io', '
|
36
|
+
s.add_dependency 'celluloid-io', '~> 0.17.3'
|
37
37
|
s.add_dependency 'resolv-ipv6favor', '~> 0'
|
38
38
|
end
|
data/lib/core/coap/version.rb
CHANGED
data/test/test_client.rb
CHANGED
@@ -16,10 +16,20 @@ class TestClient < Minitest::Test
|
|
16
16
|
assert_equal([2, 5], answer.mcode)
|
17
17
|
assert_equal('world', answer.payload)
|
18
18
|
|
19
|
+
coap_me_ipv4_address = Addrinfo.ip("4.coap.me").ip_address
|
20
|
+
|
19
21
|
client = CoRE::CoAP::Client.new
|
20
|
-
answer = client.get('/hello',
|
22
|
+
answer = client.get('/hello', coap_me_ipv4_address)
|
21
23
|
assert_equal([2, 5], answer.mcode)
|
22
24
|
assert_equal('world', answer.payload)
|
25
|
+
|
26
|
+
# coap_me_ipv6_address = Addrinfo.ip("6.coap.me").ip_address
|
27
|
+
|
28
|
+
# client = CoRE::CoAP::Client.new
|
29
|
+
# answer = client.get('/hello', coap_me_ipv6_address)
|
30
|
+
# assert_equal([2, 5], answer.mcode)
|
31
|
+
# assert_equal('world', answer.payload)
|
32
|
+
|
23
33
|
end
|
24
34
|
|
25
35
|
def test_client_404
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-01-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -100,22 +100,16 @@ dependencies:
|
|
100
100
|
name: celluloid-io
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- - "
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: 0.16.1
|
106
|
-
- - "<"
|
103
|
+
- - "~>"
|
107
104
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
105
|
+
version: 0.17.3
|
109
106
|
type: :runtime
|
110
107
|
prerelease: false
|
111
108
|
version_requirements: !ruby/object:Gem::Requirement
|
112
109
|
requirements:
|
113
|
-
- - "
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: 0.16.1
|
116
|
-
- - "<"
|
110
|
+
- - "~>"
|
117
111
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
112
|
+
version: 0.17.3
|
119
113
|
- !ruby/object:Gem::Dependency
|
120
114
|
name: resolv-ipv6favor
|
121
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
201
|
version: '0'
|
208
202
|
requirements: []
|
209
203
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.5.
|
204
|
+
rubygems_version: 2.5.1
|
211
205
|
signing_key:
|
212
206
|
specification_version: 4
|
213
207
|
summary: Pure Ruby implementation of RFC 7252 (Constrained Application Protocol (CoAP))
|