bubo 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/bubo.rb +10 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/lib/bubo.rb
CHANGED
@@ -5,6 +5,16 @@ require 'json'
|
|
5
5
|
|
6
6
|
|
7
7
|
class Bubo
|
8
|
+
# Create a new Bubo API object.
|
9
|
+
#
|
10
|
+
# This version should be used with the heroku.com add-on.
|
11
|
+
# It will automatically read it's configuration from ENV[:BUBO_LOGIN].
|
12
|
+
def self.from_heroku
|
13
|
+
login_url = URI.parse(ENV["BUBO_LOGIN"])
|
14
|
+
userpass = login_url.query.split(":")
|
15
|
+
Bubo.new(userpass[0], userpass[1], login_url.host, login_url.port)
|
16
|
+
end
|
17
|
+
|
8
18
|
# Create a new Bubo API object.
|
9
19
|
#
|
10
20
|
# You can freely generate API keys on http://api.askbubo.com/users/new
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bubo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Hajo Nils Krabbenh\xC3\xB6ft"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-08 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|