thinkingtank 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/thinkingtank/init.rb +2 -1
- metadata +3 -3
data/lib/thinkingtank/init.rb
CHANGED
|
@@ -31,7 +31,8 @@ module ThinkingTank
|
|
|
31
31
|
return unless File.exists?(path)
|
|
32
32
|
|
|
33
33
|
conf = YAML::load(ERB.new(IO.read(path)).result)[environment]
|
|
34
|
-
|
|
34
|
+
api_url = ENV['HEROKUTANK_API_URL'] || conf['api_url']
|
|
35
|
+
self.client = IndexTank::ApiClient.new(api_url).get_index(conf['index_name'])
|
|
35
36
|
end
|
|
36
37
|
def environment
|
|
37
38
|
if defined?(Merb)
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 4
|
|
9
|
+
version: 0.0.4
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Flaptor
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-07-
|
|
17
|
+
date: 2010-07-27 00:00:00 -07:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|