pusher 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/pusher.rb +6 -2
  3. data/pusher.gemspec +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/lib/pusher.rb CHANGED
@@ -26,8 +26,12 @@ module Pusher
26
26
  end
27
27
  end
28
28
 
29
- self.host = 'api.pusherapp.com'
30
- self.port = 80
29
+ self.app_id = ENV["PUSHER_APP_ID"] if ENV["PUSHER_APP_ID"]
30
+ self.key = ENV["PUSHER_KEY"] if ENV["PUSHER_KEY"]
31
+ self.secret = ENV["PUSHER_SECRET"] if ENV["PUSHER_SECRET"]
32
+ self.host = ENV["PUSHER_API_HOST"] or 'api.pusherapp.com'
33
+ self.port = ENV["PUSHER_API_PORT"] or 80
34
+
31
35
 
32
36
  def self.[](channel_name)
33
37
  raise ArgumentError, 'Missing configuration: please check that Pusher.app_id, Pusher.key, and Pusher.secret are all configured' unless @app_id && @key && @secret
data/pusher.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pusher}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["New Bamboo"]
12
- s.date = %q{2010-04-27}
12
+ s.date = %q{2010-04-30}
13
13
  s.description = %q{Wrapper for pusherapp.com REST api}
14
14
  s.email = %q{support@pusherapp.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - New Bamboo
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-27 00:00:00 +02:00
17
+ date: 2010-04-30 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency