rb-airgram 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/airgram.rb +3 -4
  2. metadata +2 -2
data/lib/airgram.rb CHANGED
@@ -20,10 +20,12 @@ class Airgram
20
20
  end
21
21
 
22
22
  def send(email, msg, url=nil)
23
+ check_auth_details!
23
24
  request_successful?( post("/send", {:email => email, :msg => msg, :url => url}, @auth) )
24
25
  end
25
26
 
26
27
  def broadcast(msg, url=nil)
28
+ check_auth_details!
27
29
  request_successful?( post("/broadcast", {:msg => msg, :url => url}, @auth) )
28
30
  end
29
31
 
@@ -48,7 +50,4 @@ private
48
50
  raise AuthenticationError, "Calling a method that requires authentication with no Service Key or Service Secret!"
49
51
  end
50
52
  end
51
- end
52
-
53
- client = Airgram.new(:username => "nGv6WIINiU", :password => "dCkFoJ0o9JtffyIsi1jF")
54
- p client.broadcast("Some msg", "http://www.bbc.com")
53
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-airgram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ cert_chain: []
12
12
  date: 2012-03-18 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: rb-airgram provides a convenient wrapper around all of the current AirGram
15
- api methods, including those that require authentication.
15
+ API methods, including those that require authentication.
16
16
  email: contact@mumbodesign.com
17
17
  executables: []
18
18
  extensions: []