wialon_api 0.0.2 → 0.0.3

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: 80fd3eebdc3cd4fec7d56d54e62f492a57406461
4
- data.tar.gz: c1da971c54a8b8d87ce407a812f102795d27f105
3
+ metadata.gz: a5a6b38e1d81be5c1c35f057b5d855f3c6c5e9ea
4
+ data.tar.gz: 7a40925ef0dbc9b827bbd4c38ae69a950e942cb2
5
5
  SHA512:
6
- metadata.gz: c4b3e55155076be9b0e1bf9ed3ac87b6dc8b626f15b9e98f1a83ad3d519a86f3597eb8899770c717aec5799a60567e2f1c9589369078167c9c8908de895969dd
7
- data.tar.gz: ddd2d9c2a841d194bf9f34c15163c34c6d9f8b2fb98ba1ef105bdc29b53ce000056bfb032b2a783109633e397f6a414ee3ff3607b55f83d7ba33a650d0452eaa
6
+ metadata.gz: 35d6cc4fc8183bdbcc1a3f31e1e270fb48b6f5b804c8938631355b7d7ea0a1092a43938a0f1dcb902b3574f97a7747a1ce4d35b4d3971daa30c0d5fa7cb5f0aa
7
+ data.tar.gz: eb31d458639644b009ae43bf975bf4101009505ebd8ac2898059d452f319aa843338f66bb3c002dd7d2a69427dbff82eb4b801851bb1da4342f99213eda93c85
@@ -3,8 +3,8 @@ require 'json'
3
3
  module WialonApi
4
4
  module Api
5
5
  def self.call(service_name, args = {}, sid = nil)
6
- parameters = { svc: service_name, params: args.to_json, sid: sid }
7
- connection(url: WialonApi.wialon_host, sid: sid).send(WialonApi.http_verb, WialonApi.wialon_host, parameters).body
6
+ parameters = { svc: service_name, params: args.to_json, ssid: sid }
7
+ connection(url: WialonApi.wialon_host).send(WialonApi.http_verb, nil, parameters).body
8
8
  end
9
9
 
10
10
  def self.connection(options = {})
@@ -3,7 +3,7 @@ module WialonApi
3
3
  def authorize(user, password)
4
4
  response = WialonApi::Api.call('core/login', user: user, password: password)
5
5
  result = WialonApi::Result.process(response)
6
- WialonApi::Client.new(result.eid)
6
+ WialonApi::Client.new(result.ssid)
7
7
  end
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module WialonApi
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.1')
5
+ expect(WialonApi::VERSION).to eq('0.0.2')
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wialon_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arsen Shamkhalov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-15 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake