lymbix 0.3.1 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +3 -0
- data/lib/lymbix.rb +1 -1
- data/lib/lymbix/configuration.rb +17 -0
- data/lib/lymbix/request.rb +1 -7
- metadata +4 -3
data/Changelog
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
v.0.3.4 - fixed issue when setting host it still kept default host instead
|
2
|
+
v.0.3.3 - gem now uses configuration class to set host properties for gyrus
|
3
|
+
v.0.3.2 - made incorrect changes to gem
|
1
4
|
v0.3.1 - rechanged dominant_words to use dominant_words on gyrus
|
2
5
|
v0.3.0 - changed dominant_words to post to dominants in gyrus instead of dominant_words, removed dominant_words_limit, removed promote method since we won't use it
|
3
6
|
v0.2.9 - fix response to_s
|
data/lib/lymbix.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
2
2
|
|
3
|
+
require 'lymbix/configuration'
|
3
4
|
require 'lymbix/user'
|
4
5
|
require 'lymbix/request'
|
5
6
|
require 'lymbix/response'
|
@@ -9,7 +10,6 @@ require 'lymbix/connotative_category'
|
|
9
10
|
require 'lymbix/tweet'
|
10
11
|
require 'lymbix/data_point'
|
11
12
|
|
12
|
-
|
13
13
|
# require 'rest_client'
|
14
14
|
# require 'json'
|
15
15
|
# require 'benchmark'
|
data/lib/lymbix/request.rb
CHANGED
@@ -3,17 +3,12 @@ require 'json'
|
|
3
3
|
|
4
4
|
module Lymbix
|
5
5
|
class Request
|
6
|
-
# GYRUS_URL = ENV["RAILS_ENV"] == "production" ? "http://rack-gyrus.lymbix.com" : "http://localhost:4567"
|
7
|
-
GYRUS_URL = "https://gyrus.lymbix.com"
|
8
|
-
# GYRUS_URL = "http://localhost:4567"
|
9
|
-
# GYRUS_URL = "http://74.205.17.185"
|
10
|
-
# GYRUS_URL = "http://gyrus-staging.lymbix.com"
|
11
6
|
|
12
7
|
attr_accessor :url, :http_method, :response, :method, :object, :header_hash
|
13
8
|
|
14
9
|
def initialize(http_method, method, header_hash, object = nil) #:nodoc:
|
15
10
|
self.http_method = http_method
|
16
|
-
self.url =
|
11
|
+
self.url = Lymbix::Configuration.host
|
17
12
|
self.method = method
|
18
13
|
self.object = object
|
19
14
|
self.header_hash = header_hash
|
@@ -52,6 +47,5 @@ module Lymbix
|
|
52
47
|
end
|
53
48
|
Response.new(self.response)
|
54
49
|
end
|
55
|
-
|
56
50
|
end
|
57
51
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 4
|
9
|
+
version: 0.3.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Patrick Roy
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-08-18 00:00:00 -03:00
|
21
21
|
default_executable:
|
22
22
|
dependencies: []
|
23
23
|
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- README
|
34
34
|
- Changelog
|
35
35
|
- LICENSE
|
36
|
+
- lib/lymbix/configuration.rb
|
36
37
|
- lib/lymbix.rb
|
37
38
|
- lib/lymbix/base.rb
|
38
39
|
- lib/lymbix/connotative_category.rb
|