paralleldots 1.0.4 → 1.0.7

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/paralleldots.rb +10 -10
  3. metadata +13 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15ccb0000d818f8fb5759187e0dab41da08406c2
4
- data.tar.gz: 8e3b56263e1b55d76d32879e9646aba9664e27ea
3
+ metadata.gz: 423003de6d17e3ac0bbe59527095b3976ac5a8e2
4
+ data.tar.gz: 82c62f97b653ddb42a993b846ea76d313b2b704f
5
5
  SHA512:
6
- metadata.gz: db35a27058b135c81549f9fe721d88fb30b8e30a10fb688fe04da20ab9c10c29af308eb9a3bd92385954a4b8e68d59ce9b722df8fb972cd8abc4636642c8b43d
7
- data.tar.gz: 807dee19761376c5f5b0ccb5df0c8de99d1a2d8a8f767f450a6d20c3ce06c0015d13a5d74b1ec3bbf8e38b3fc53e576932e834ad608da52ddbe7350fddfedb39
6
+ metadata.gz: 7cc08cc31fceca0cbfe2208fa70bf8254fb5c87820cc31cf8b2a1eed8f14bcce1d90b340469e3ba3e02bb87b30332589a8f7c42e756fdf7470fd17235bde82d4
7
+ data.tar.gz: 4149207875116a4f36fd55741fc13dd202148fa7daf9640e6e6787ac8050304557e7270a714e24661a88fb0753e5eba1d34f36114933dba2694d02eb2c793cab
data/lib/paralleldots.rb CHANGED
@@ -21,7 +21,7 @@ def sentiment( text )
21
21
  if valid != true then
22
22
  return valid
23
23
  end
24
- response = RestClient.post "http://35.202.76.177/v2/sentiment", { api_key: api_key, text: text }
24
+ response = RestClient.post "http://apis.paralleldots.com/v2/sentiment", { api_key: api_key, text: text }
25
25
  response = JSON.parse( response )
26
26
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
27
27
  return response
@@ -33,7 +33,7 @@ def ner( text )
33
33
  if valid != true then
34
34
  return valid
35
35
  end
36
- response = RestClient.post "http://35.202.76.177/v2/ner", { api_key: api_key, text: text }
36
+ response = RestClient.post "http://apis.paralleldots.com/v2/ner", { api_key: api_key, text: text }
37
37
  response = JSON.parse( response )
38
38
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
39
39
  return response
@@ -45,7 +45,7 @@ def keywords( text )
45
45
  if valid != true then
46
46
  return valid
47
47
  end
48
- response = RestClient.post "http://35.202.76.177/v2/keywords", { api_key: api_key, text: text }
48
+ response = RestClient.post "http://apis.paralleldots.com/v2/keywords", { api_key: api_key, text: text }
49
49
  response = JSON.parse( response )
50
50
  response = { "keywords": response, "usage": "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions" }
51
51
  return response
@@ -57,7 +57,7 @@ def intent( text )
57
57
  if valid != true then
58
58
  return valid
59
59
  end
60
- response = RestClient.post "http://35.202.76.177/v2/intent", { api_key: api_key, text: text }
60
+ response = RestClient.post "http://apis.paralleldots.com/v2/intent", { api_key: api_key, text: text }
61
61
  response = JSON.parse( response )
62
62
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
63
63
  return response
@@ -69,7 +69,7 @@ def emotion( text )
69
69
  if valid != true then
70
70
  return valid
71
71
  end
72
- response = RestClient.post "http://35.202.76.177/v2/emotion", { api_key: api_key, text: text }
72
+ response = RestClient.post "http://apis.paralleldots.com/v2/emotion", { api_key: api_key, text: text }
73
73
  response = JSON.parse( response )
74
74
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
75
75
  return response
@@ -81,7 +81,7 @@ def abuse( text )
81
81
  if valid != true then
82
82
  return valid
83
83
  end
84
- response = RestClient.post "http://35.202.76.177/v2/abuse", { api_key: api_key, text: text }
84
+ response = RestClient.post "http://apis.paralleldots.com/v2/abuse", { api_key: api_key, text: text }
85
85
  response = JSON.parse( response )
86
86
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
87
87
  return response
@@ -93,7 +93,7 @@ def taxonomy( text )
93
93
  if valid != true then
94
94
  return valid
95
95
  end
96
- response = RestClient.post "http://35.202.76.177/v2/taxonomy", { api_key: api_key, text: text }
96
+ response = RestClient.post "http://apis.paralleldots.com/v2/taxonomy", { api_key: api_key, text: text }
97
97
  response = JSON.parse( response )
98
98
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
99
99
  return response
@@ -106,7 +106,7 @@ def similarity( text_1, text_2 )
106
106
  if valid_1 != true or valid_2 != true then
107
107
  return { "text_1": valid_1, "text_2": valid_2 }
108
108
  end
109
- response = RestClient.post "http://35.202.76.177/v2/semanticsimilarity", { api_key: api_key, text_1: text_1, text_2: text_2 }
109
+ response = RestClient.post "http://apis.paralleldots.com/v2/semanticsimilarity", { api_key: api_key, text_1: text_1, text_2: text_2 }
110
110
  response = JSON.parse( response )
111
111
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
112
112
  return response
@@ -119,7 +119,7 @@ def multilang_sentiment( text, lang )
119
119
  if valid_1 != true or valid_2 != true then
120
120
  return { "text": valid_1, "lang": valid_2 }
121
121
  end
122
- response = RestClient.post "http://35.202.76.177/v2/multilang_sentiment", { api_key: api_key, text: text, lang: lang }
122
+ response = RestClient.post "http://apis.paralleldots.com/v2/multilang_sentiment", { api_key: api_key, text: text, lang: lang }
123
123
  response = JSON.parse( response )
124
124
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
125
125
  return response
@@ -130,7 +130,7 @@ def usage()
130
130
  if api_key == nil or api_key == "" then
131
131
  return { "error": "API Key cannot be nil or an empty String." }
132
132
  end
133
- response = RestClient.post "http://35.202.76.177/usage", { api_key: api_key }
133
+ response = RestClient.post "http://apis.paralleldots.com/usage", { api_key: api_key }
134
134
  response = JSON.parse( response )
135
135
  response[ "usage" ] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions"
136
136
  return response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paralleldots
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meghdeep Ray
@@ -15,6 +15,9 @@ dependencies:
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 1.8.0
20
23
  type: :runtime
@@ -22,6 +25,9 @@ dependencies:
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.8'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 1.8.0
27
33
  - !ruby/object:Gem::Dependency
@@ -29,6 +35,9 @@ dependencies:
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.0'
40
+ - - ">="
32
41
  - !ruby/object:Gem::Version
33
42
  version: 1.0.8
34
43
  type: :runtime
@@ -36,6 +45,9 @@ dependencies:
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.0'
50
+ - - ">="
39
51
  - !ruby/object:Gem::Version
40
52
  version: 1.0.8
41
53
  description: Ruby Wrapper for ParallelDots APIs