flying-sphinx 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/flying_sphinx/tunnel.rb +3 -3
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
@@ -24,15 +24,15 @@ class FlyingSphinx::Tunnel
24
24
  private
25
25
 
26
26
  def db_host
27
- db_config['host']
27
+ db_config[:host]
28
28
  end
29
29
 
30
30
  def db_port
31
- db_config['port']
31
+ db_config[:port]
32
32
  end
33
33
 
34
34
  def db_config
35
- @db_config ||= YAML.load(File.open(Rails.root.join("heroku_env.yml")))['db']
35
+ @db_config ||= ActiveRecord::Base.connection.instance_variable_get(:@config)
36
36
  end
37
37
 
38
38
  def ssh_options
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flying-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Allan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-04 00:00:00 +11:00
18
+ date: 2011-02-07 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency