Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: wire2air/wire2air
base: 1bd236dba6
...
head fork: wire2air/wire2air
compare: 0b569d6c5c
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 3 deletions.
  1. +1 −1  VERSION
  2. +9 −1 lib/wire2air.rb
  3. +1 −1  wire2air.gemspec
View
2  VERSION
@@ -1 +1 @@
-0.3.4
+0.3.5
View
10 lib/wire2air.rb
@@ -13,18 +13,26 @@
class Wire2Air
+ # Raised when the username or password is wrong
class FailedAuthenticationError < StandardError; end
+ # Raised when there is insufficient credits to perform the action
class NotEnoughCreditsError < StandardError; end
+ # Raised when a keyword being registered is already taken
class KeywordIsTakenError < StandardError; end
+ # Raised when a service error occurred during account update
class AccountUpdateError < StandardError; end
+ # Raised when the credit card details were declined for purchase of additional credits
class CreditCardDeclinedError < StandardError; end
+ # Stores details on a send sms job
class JobId
+ # creates a job for the given mobile_number and sms_id
def initialize(mobile_number, sms_id)
@mobile_number, @sms_id = mobile_number, sms_id
end
attr_reader :mobile_number, :sms_id
+ # parses a JobId out of the return response from the wire2air http api
def self.from_s(str)
matches = str.match /^JOBID: (\d+):(\d+)/
JobId.new(matches[1], matches[2])
@@ -38,7 +46,7 @@ def self.from_s(str)
# @option opts [String] :username The user name to connect as
# @option opts [String] :password The password (in plain text) for connecting
# @option opts [Integer] :profile_id The id of the profile
- # @options opts [Integer] :vasid The vasid of the account
+ # @option opts [Integer] :vasid The vasid of the account
def initialize(opts)
valid_keys =[:username, :password, :profile_id, :vasid]
if opts.keys.sort != valid_keys.sort
View
2  wire2air.gemspec
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{wire2air}
- s.version = "0.3.4"
+ s.version = "0.3.5"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Wire2Air}]

No commit comments for this range

Something went wrong with that request. Please try again.