thinkingtank 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/thinkingtank/init.rb +2 -1
  2. metadata +3 -3
@@ -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
- self.client = IndexTank::ApiClient.new(conf['api_url']).get_index(conf['index_name'])
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
- - 3
9
- version: 0.0.3
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-26 00:00:00 -07:00
17
+ date: 2010-07-27 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20