wialon_api 0.0.3 → 0.0.4
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/wialon_api/version.rb +1 -1
- data/spec/wialon_api/api_spec.rb +2 -2
- data/spec/wialon_api/authorization_spec.rb +1 -1
- data/spec/wialon_api_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d1f2372df434ce1202f05083b2a3606a017f86d
|
|
4
|
+
data.tar.gz: 7a37dc7747a65a15caf5be756e66e9823a80030e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb75849edbbc416f4578cfc1e032ee43a9c763747c1e221948a58d3ab57c7fc9206c428d73e3ec043c2fe7710f78954597c3629a7b073a2132e2d9897bcc3552
|
|
7
|
+
data.tar.gz: 3544eb2e08c42b5aeebf88ada6a6cdf4c73dd24956ab29d979001684d86d4ef539ba465c5c5a89dc2dcac5fe3bb16ebd925710bdb649a25955432d8f47ecf2af
|
data/lib/wialon_api/version.rb
CHANGED
data/spec/wialon_api/api_spec.rb
CHANGED
|
@@ -8,7 +8,7 @@ describe WialonApi::Api do
|
|
|
8
8
|
builder.response :mashify
|
|
9
9
|
builder.response :oj, preserve_raw: true
|
|
10
10
|
builder.adapter :test do |stub|
|
|
11
|
-
stub.post('/
|
|
11
|
+
stub.post('/') do
|
|
12
12
|
[200, {}, Oj.dump(@result)]
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -23,7 +23,7 @@ describe WialonApi::Api do
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
it 'sends a sid if it was passed with parameter' do
|
|
26
|
-
expect(subject).to receive(:connection).with(url: WialonApi.wialon_host
|
|
26
|
+
expect(subject).to receive(:connection).with(url: WialonApi.wialon_host)
|
|
27
27
|
subject.call('core/search_items', { params: :value }, 'sid')
|
|
28
28
|
end
|
|
29
29
|
end
|
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
|
2
2
|
|
|
3
3
|
describe WialonApi::Authorization do
|
|
4
4
|
describe '.authorize' do
|
|
5
|
-
let(:success) { Hashie::Mash.new(
|
|
5
|
+
let(:success) { Hashie::Mash.new(ssid: 'sid') }
|
|
6
6
|
let(:error) { Hashie::Mash.new(error: '8') }
|
|
7
7
|
let(:credentials) { ['user', 'password'] }
|
|
8
8
|
|
data/spec/wialon_api_spec.rb
CHANGED