osc_ruby 0.0.10 → 0.0.11
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/osc_ruby/connect.rb +0 -5
- data/lib/osc_ruby/version.rb +1 -1
- data/spec/core/connect_spec.rb +24 -6
- 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: e9fb65f1ed0c87585e0a348ac30f615a64aea762
|
4
|
+
data.tar.gz: c6f381d187177ff020f116945048d9fb06c1089b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ccf2ca1aa6b781bd5ba932471e76c4a2cccec8a4e1a426d189544ccafb665ba78d0a0cc72108901444efc76be039a5a76f3cb609d76848af48098b0a68b8b57
|
7
|
+
data.tar.gz: 00c85030ccf6b442b0a63050060dde0748e8d43441def1f1bdb71498656d45874619137d86bf33ecc9dd95612b8764e608ace5481a256a77a725b798ec951f33
|
data/lib/osc_ruby/connect.rb
CHANGED
data/lib/osc_ruby/version.rb
CHANGED
data/spec/core/connect_spec.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'core/spec_helper'
|
2
|
+
require 'json'
|
2
3
|
|
3
4
|
describe OSCRuby::Connect do
|
4
5
|
|
@@ -107,6 +108,10 @@ describe OSCRuby::Connect do
|
|
107
108
|
|
108
109
|
end
|
109
110
|
|
111
|
+
let(:test){
|
112
|
+
OSCRuby::Connect.get(client)
|
113
|
+
}
|
114
|
+
|
110
115
|
context '#get' do
|
111
116
|
|
112
117
|
it 'should take at least a config parameter that is an instance of an OSCRuby::Client' do
|
@@ -132,12 +137,25 @@ describe OSCRuby::Connect do
|
|
132
137
|
|
133
138
|
end
|
134
139
|
|
135
|
-
|
136
|
-
|
137
|
-
|
140
|
+
it 'should produce a Net::HTTPResponse' do
|
141
|
+
|
142
|
+
expect(test).to be_an(Net::HTTPResponse)
|
143
|
+
|
144
|
+
end
|
145
|
+
|
146
|
+
it 'should produce a 200 response code' do
|
138
147
|
|
139
|
-
|
140
|
-
|
141
|
-
|
148
|
+
expect(test.code).to eq("200")
|
149
|
+
|
150
|
+
end
|
151
|
+
|
152
|
+
it 'should produce a JSON Response form the response body' do
|
153
|
+
|
154
|
+
expect do
|
155
|
+
test.body.should_be a('String')
|
156
|
+
end
|
157
|
+
|
158
|
+
expect{JSON.parse(test.body)}.not_to raise_error
|
159
|
+
end
|
142
160
|
end
|
143
161
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osc_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajan Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|