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.
- data/lib/esendex/railtie.rb +1 -1
- data/lib/esendex/version.rb +1 -1
- data/{tasks → lib/tasks}/esendex.rake +3 -1
- metadata +4 -4
data/lib/esendex/railtie.rb
CHANGED
data/lib/esendex/version.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
require_relative '../
|
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.
|
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-
|
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
|
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
|