navi_client 1.1.3 → 1.1.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
  SHA256:
3
- metadata.gz: 1282b0cf285364b58187a92348e29425290eb24c948c22f17aa0989b2675d0fb
4
- data.tar.gz: d89b8c14470e158c7304839b817c82422d3665fc923869ebd0ecb7f18ef6dcf4
3
+ metadata.gz: af5cca746ef4c2df5a0c4dc8be5ddc28975c4c585026cb720fa91b276c067b43
4
+ data.tar.gz: 8cdd09a23f5ca63f0d3d2d01ab354dfbc970752ecc2da9cea4cf4801d5fa0ac9
5
5
  SHA512:
6
- metadata.gz: 05e07db107f6c0d991ad61c8f76627673405ee220bc35be53c94e3385e65a1032fc952be26f5ddc2e1695dfce04371f0ebc58015daf1dbead48015f1c7ec166c
7
- data.tar.gz: c5ec4cc4085184b7e46d4dc7d423a3e93b37c4fbd88a6c605cecf719df0778fa9b7e2234d2991626521ff0331fc9ea79f04409ff079785acefd758f27a4406b7
6
+ metadata.gz: 1f5937a7965faaa1b37743e39c3d2a130f401be2ebf5441e4b7e7a969767a539d8657466cdc8f167e698ca7adc725c92966ee2e2bb40c1eec01b43fb12caf624
7
+ data.tar.gz: bc215ad1891e7c2082e53b0d602cb26e9ab5d05ce12ee932b84dbfb531708f71a8b2e4d29a7aae4c8b2ae79d00d3ce812a9fd26622c7450a77ad51b1a3b7d1b2
@@ -1,17 +1,14 @@
1
1
  require "httparty"
2
2
 
3
- GO_SERVER_URL = 'http://localhost:9090/v2/metas'
4
-
5
3
  module HTTPService
6
4
  class NaviAI
7
5
 
8
6
  def self.start(file_path, client_type, token)
9
- if client_type == 'local'
10
- go_url = 'http://localhost:9090'
11
- else
12
- go_url = '34.214.134.104:9090'
7
+ go_url = 'http://localhost:9090/v2/metas'
8
+ if client_type == 'cloud'
9
+ go_url = '34.214.134.104:9090/v2/metas'
13
10
  end
14
- HTTParty.post(GO_SERVER_URL, body: { client_type: client_type, list_meta_path: file_path, token: token }.to_json)
11
+ HTTParty.post(go_url, body: { client_type: client_type, list_meta_path: file_path, token: token }.to_json)
15
12
  end
16
13
  end
17
14
  end
@@ -1,3 +1,3 @@
1
1
  module NaviClient
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surya