esendex 0.2.2 → 0.2.3

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.
@@ -1,7 +1,7 @@
1
1
  require 'esendex'
2
2
  require 'rails'
3
3
 
4
- module EsendexPlugin
4
+ module Esendex
5
5
  class Railtie < Rails::Railtie
6
6
  railtie_name :esendex
7
7
 
@@ -1,3 +1,3 @@
1
1
  module Esendex
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,7 +1,8 @@
1
- require_relative '../lib/esendex'
1
+ require_relative '../esendex'
2
2
  include Esendex
3
3
 
4
4
  namespace :esendex do
5
+ desc "Validates whether credentials are correct and returns message credit balance"
5
6
  task :validate, [:username, :password, :account_reference] do |t, args|
6
7
  begin
7
8
  Esendex.configure do |config|
@@ -17,6 +18,7 @@ namespace :esendex do
17
18
  end
18
19
  end
19
20
 
21
+ desc "Sends a message using the credentials specifed in the environment"
20
22
  task :send_message, [:to, :body, :from] do |t, args|
21
23
  begin
22
24
  account = Account.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esendex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-22 00:00:00.000000000 Z
12
+ date: 2013-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nestful
@@ -43,7 +43,7 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: 1.4.4.1
46
- description: Send SMS from you application using the Esendex API
46
+ description: Send SMS from your application using the Esendex API
47
47
  email:
48
48
  - support@esendex.com
49
49
  executables: []
@@ -60,7 +60,7 @@ files:
60
60
  - lib/esendex/railtie.rb
61
61
  - lib/esendex/version.rb
62
62
  - lib/esendex.rb
63
- - tasks/esendex.rake
63
+ - lib/tasks/esendex.rake
64
64
  - LICENSE.txt
65
65
  - readme.md
66
66
  - spec/account_spec.rb