nlpcloud 1.0.32 → 1.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nlpcloud.rb +5 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea136747ee1261849ff8b2d88e600eb77d2abc7b26403dd8bfcd00ae090ef023
4
- data.tar.gz: f703208b4178296fdb158272e63fbbcd213a0c199c69feb2caf657dbf7c756fe
3
+ metadata.gz: fdf1a28fd5357476cb8cd7b70b63701b50e1a6aa14b6d002080bf3848d3d1462
4
+ data.tar.gz: c72d91f976757479436786e5f27107801a6dae500988b529c7ace5e43f5f6513
5
5
  SHA512:
6
- metadata.gz: 2190fcca487d4987040b4be0a97bd28e713c018b04d603e91dd11973d4cee29c04e6e93e08c22868277e99fedad3a66815cf2953f8a5f83609e69babb8bbd7f0
7
- data.tar.gz: b491d82840b0bd4a7b958f4317912fd610ce80331a25bf6488d1330782d52bb4c6d8893e5ce5886affe09aefacb65b976edbb5c62d1d599375fc0dc3998ca121
6
+ metadata.gz: dfe44997f247f8f1407d210dd2acf4e94bc2e0d65114eafd2af94532874907204871e1b5b7743dd9f873295b3d26b0b8c88c756c74f8c32360ba426c80d941df
7
+ data.tar.gz: a33a340d13786beb04269bb2dfd43e0427cb2b0622732952782e34446ec83e3e2b93c7922d913e4317b0c0080635d0612fa6ac62c4d0ed2c53e1a1a08c52b2fb
data/lib/nlpcloud.rb CHANGED
@@ -26,14 +26,14 @@ module NLPCloud
26
26
  @root_url += "gpu/"
27
27
  end
28
28
 
29
- if lang
30
- @root_url += lang + "/"
31
- end
32
-
33
29
  if asynchronous
34
30
  @root_url += "async/"
35
31
  end
36
32
 
33
+ if lang
34
+ @root_url += lang + "/"
35
+ end
36
+
37
37
  @root_url += model
38
38
 
39
39
  end
@@ -63,7 +63,7 @@ module NLPCloud
63
63
  end
64
64
 
65
65
  def async_result(url)
66
- response = RestClient.get(@root_url, @headers)
66
+ response = RestClient.get(url, @headers)
67
67
  JSON.parse(response.body)
68
68
  end
69
69
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nlpcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.32
4
+ version: 1.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Salinas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-28 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client