lymbix 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +1 -0
- data/LICENSE +0 -0
- data/README +0 -0
- data/lib/lymbix.rb +0 -0
- data/lib/lymbix/base.rb +1 -2
- data/lib/lymbix/configuration.rb +0 -0
- data/lib/lymbix/request.rb +2 -2
- data/lib/lymbix/response.rb +0 -0
- metadata +6 -6
data/Changelog
CHANGED
data/LICENSE
CHANGED
File without changes
|
data/README
CHANGED
File without changes
|
data/lib/lymbix.rb
CHANGED
File without changes
|
data/lib/lymbix/base.rb
CHANGED
@@ -15,7 +15,7 @@ To begin using the base class, you must get your authentication key provided fro
|
|
15
15
|
|
16
16
|
def initialize(auth_key)
|
17
17
|
@auth_key = auth_key
|
18
|
-
@api_version = 2.
|
18
|
+
@api_version = 2.3
|
19
19
|
end
|
20
20
|
|
21
21
|
# Tonalizes text using version 2.1,2.2 of ToneAPI
|
@@ -28,7 +28,6 @@ To begin using the base class, you must get your authentication key provided fro
|
|
28
28
|
|
29
29
|
# Tonalizes text using version 2.0 of ToneAPI
|
30
30
|
def tonalize_article(article, accept_type = "application/json")
|
31
|
-
@api_version = 2.0
|
32
31
|
response = request(:post, 'tonalize_article',{:article => article}, {:accept => accept_type}).data
|
33
32
|
end
|
34
33
|
|
data/lib/lymbix/configuration.rb
CHANGED
File without changes
|
data/lib/lymbix/request.rb
CHANGED
@@ -15,8 +15,8 @@ module Lymbix
|
|
15
15
|
|
16
16
|
def connection
|
17
17
|
options = {}
|
18
|
-
options[:timeout] =
|
19
|
-
options[:headers] = {:USER_AGENT => "Lymbix Gem - 0.4.
|
18
|
+
options[:timeout] = 60
|
19
|
+
options[:headers] = {:USER_AGENT => "Lymbix Gem - 0.4.5", :accept => self.header_hash[:accept_type], :AUTHENTICATION => self.header_hash[:auth_key], :VERSION => self.header_hash[:version]}
|
20
20
|
RestClient::Resource.new(self.url, options)
|
21
21
|
end
|
22
22
|
|
data/lib/lymbix/response.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lymbix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 5
|
10
|
+
version: 0.4.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Patrick Roy
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date:
|
22
|
+
date: 2012-04-23 00:00:00 -03:00
|
23
23
|
default_executable:
|
24
24
|
dependencies: []
|
25
25
|
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements: []
|
71
71
|
|
72
72
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.3.7
|
74
74
|
signing_key:
|
75
75
|
specification_version: 3
|
76
76
|
summary: The Lymbix gem provides an interface to gyrus (connotative logic and database).
|