bubo 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/bubo.rb +10 -0
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
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-03 00:00:00 +01:00
18
+ date: 2011-01-08 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency