wialon_api 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: a5a6b38e1d81be5c1c35f057b5d855f3c6c5e9ea
4
- data.tar.gz: 7a40925ef0dbc9b827bbd4c38ae69a950e942cb2
3
+ metadata.gz: 8d1f2372df434ce1202f05083b2a3606a017f86d
4
+ data.tar.gz: 7a37dc7747a65a15caf5be756e66e9823a80030e
5
5
  SHA512:
6
- metadata.gz: 35d6cc4fc8183bdbcc1a3f31e1e270fb48b6f5b804c8938631355b7d7ea0a1092a43938a0f1dcb902b3574f97a7747a1ce4d35b4d3971daa30c0d5fa7cb5f0aa
7
- data.tar.gz: eb31d458639644b009ae43bf975bf4101009505ebd8ac2898059d452f319aa843338f66bb3c002dd7d2a69427dbff82eb4b801851bb1da4342f99213eda93c85
6
+ metadata.gz: bb75849edbbc416f4578cfc1e032ee43a9c763747c1e221948a58d3ab57c7fc9206c428d73e3ec043c2fe7710f78954597c3629a7b073a2132e2d9897bcc3552
7
+ data.tar.gz: 3544eb2e08c42b5aeebf88ada6a6cdf4c73dd24956ab29d979001684d86d4ef539ba465c5c5a89dc2dcac5fe3bb16ebd925710bdb649a25955432d8f47ecf2af
@@ -1,3 +1,3 @@
1
1
  module WialonApi
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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('/wialon/ajax.html') do
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, sid: 'sid')
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(eid: 'sid') }
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
 
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe WialonApi do
4
4
  it 'should return current version' do
5
- expect(WialonApi::VERSION).to eq('0.0.2')
5
+ expect(WialonApi::VERSION).to eq('0.0.3')
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wialon_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arsen Shamkhalov