medea 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/medea/jasondb.rb CHANGED
@@ -2,11 +2,17 @@ module JasonDB
2
2
  #jason_url here doesn't include the http[s]:// part, but does include the domain and a trailing '/'
3
3
  #( so it's "rest.jasondb.com/<domain>/" )
4
4
  def JasonDB::db_auth_url mode=:secure
5
- config = Rails.configuration.database_configuration[Rails.env]
5
+ if ENV.include? "jason_user"
6
+ config = ENV
7
+ elsif defined? Rails
8
+ config = Rails.configuration.database_configuration[Rails.env]
9
+ else
10
+ raise "No configuration for JasonDB found!"
11
+ end
6
12
 
7
- user = config["user"]
8
- topic = config["topic"]
9
- password = config["password"]
13
+ user = config["jason_user"]
14
+ topic = config["jason_topic"]
15
+ password = config["jason_password"]
10
16
  if config["jason_host"]
11
17
  host = config["jason_host"]
12
18
  else
data/lib/medea/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Medea
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: medea
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Jensen