esendex 0.3.1 → 0.3.2
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.
- checksums.yaml +15 -0
- data/lib/esendex/version.rb +1 -1
- data/lib/tasks/esendex.rake +2 -3
- data/spec/dummy/log/development.log +83 -0
- data/spec/dummy/log/test.log +14 -0
- data/spec/dummy/script/rails +0 -0
- metadata +7 -11
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjA2MmZkN2M3ODUzNDEwMGJlOGFlMDE1Njc2ZjdiZjhiMjBjMTZhYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YmY1NTZlMTY2ZjY2MzA0ZmY4NTM4NzI3MTk2YmJlMzNlNTVlYWI1Yg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
M2I2ZDkyODUwMDY3NWRkNDhhYjUwOTMzZGI4OThiNzk5MWY4Njk4MzgwYTRj
|
10
|
+
OGRiYTkzZjg5Y2Y5MDgzNDAxOWI1OTlkNGNhMmQ1NGFkZWFmZGM4MmFjZDJl
|
11
|
+
NTkwZGQ4MWY4MjJiOTViNTE3Yjc1YTRiMDdiYzY0MjkzNjhjYWU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjNlYjFjZTY0NzdhNjhjNDgyYTBhM2QzNmFiNjM5MTM2NDIyNmU0NWY4N2Ji
|
14
|
+
NjI3NDRiYWMxZWRmNGRkNWYwMDg2ZDU5YTBmMGNkN2JmMGI4YzIyMWNmMGVh
|
15
|
+
Yzk0NzViZjE0YTFiMDRlOTI0MjgxMmE0NjRmMzZhMGYxNzIzZTA=
|
data/lib/esendex/version.rb
CHANGED
data/lib/tasks/esendex.rake
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require_relative '../esendex'
|
2
|
-
include Esendex
|
3
2
|
|
4
3
|
namespace :esendex do
|
5
4
|
desc "Validates whether credentials are correct and returns message credit balance"
|
@@ -10,7 +9,7 @@ namespace :esendex do
|
|
10
9
|
config.password = args.password
|
11
10
|
config.account_reference = args.account_reference
|
12
11
|
end
|
13
|
-
account = Account.new
|
12
|
+
account = Esendex::Account.new
|
14
13
|
messages_remaining = account.messages_remaining
|
15
14
|
puts "Validated user #{Esendex.username} on account #{account.reference}. #{messages_remaining} messages remaining"
|
16
15
|
rescue => e
|
@@ -21,7 +20,7 @@ namespace :esendex do
|
|
21
20
|
desc "Sends a message using the credentials specifed in the environment"
|
22
21
|
task :send_message, [:to, :body, :from] do |t, args|
|
23
22
|
begin
|
24
|
-
account = Account.new
|
23
|
+
account = Esendex::Account.new
|
25
24
|
batch_id = account.send_message(args)
|
26
25
|
puts "Message sent to #{args.to}. Batch ID: #{batch_id}"
|
27
26
|
rescue => e
|
@@ -0,0 +1,83 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Started GET "/esendex/message_delivered_events" for 127.0.0.1 at 2013-02-26 09:20:04 +0000
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
|
6
|
+
ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished):
|
7
|
+
activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
|
8
|
+
activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
|
9
|
+
activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
|
10
|
+
activerecord (3.2.12) lib/active_record/query_cache.rb:67:in `rescue in call'
|
11
|
+
activerecord (3.2.12) lib/active_record/query_cache.rb:61:in `call'
|
12
|
+
activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
13
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
14
|
+
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `_run__3535235831481479337__call__1320289842362401676__callbacks'
|
15
|
+
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `__run_callback'
|
16
|
+
activesupport (3.2.12) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
17
|
+
activesupport (3.2.12) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
18
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
19
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/reloader.rb:65:in `call'
|
20
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
21
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
22
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
23
|
+
railties (3.2.12) lib/rails/rack/logger.rb:32:in `call_app'
|
24
|
+
railties (3.2.12) lib/rails/rack/logger.rb:16:in `block in call'
|
25
|
+
activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:in `tagged'
|
26
|
+
railties (3.2.12) lib/rails/rack/logger.rb:16:in `call'
|
27
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
28
|
+
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
|
29
|
+
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
|
30
|
+
activesupport (3.2.12) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
31
|
+
rack (1.4.5) lib/rack/lock.rb:15:in `call'
|
32
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/static.rb:62:in `call'
|
33
|
+
railties (3.2.12) lib/rails/engine.rb:479:in `call'
|
34
|
+
railties (3.2.12) lib/rails/application.rb:223:in `call'
|
35
|
+
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
|
36
|
+
railties (3.2.12) lib/rails/rack/log_tailer.rb:17:in `call'
|
37
|
+
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
|
38
|
+
/Users/adambird/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
39
|
+
/Users/adambird/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
40
|
+
/Users/adambird/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
41
|
+
|
42
|
+
|
43
|
+
Rendered /Users/adambird/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.12/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
|
44
|
+
Rendered /Users/adambird/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.12/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.3ms)
|
45
|
+
Rendered /Users/adambird/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.12/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.7ms)
|
46
|
+
|
47
|
+
|
48
|
+
Started GET "/esendex/message_delivered_events" for 127.0.0.1 at 2013-02-26 09:23:48 +0000
|
49
|
+
|
50
|
+
ActionController::RoutingError (No route matches [GET] "/esendex/message_delivered_events"):
|
51
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
52
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
53
|
+
railties (3.2.12) lib/rails/rack/logger.rb:32:in `call_app'
|
54
|
+
railties (3.2.12) lib/rails/rack/logger.rb:16:in `block in call'
|
55
|
+
activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:in `tagged'
|
56
|
+
railties (3.2.12) lib/rails/rack/logger.rb:16:in `call'
|
57
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
58
|
+
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
|
59
|
+
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
|
60
|
+
activesupport (3.2.12) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
61
|
+
rack (1.4.5) lib/rack/lock.rb:15:in `call'
|
62
|
+
actionpack (3.2.12) lib/action_dispatch/middleware/static.rb:62:in `call'
|
63
|
+
railties (3.2.12) lib/rails/engine.rb:479:in `call'
|
64
|
+
railties (3.2.12) lib/rails/application.rb:223:in `call'
|
65
|
+
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
|
66
|
+
railties (3.2.12) lib/rails/rack/log_tailer.rb:17:in `call'
|
67
|
+
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
|
68
|
+
/Users/adambird/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
69
|
+
/Users/adambird/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
70
|
+
/Users/adambird/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
71
|
+
|
72
|
+
|
73
|
+
Rendered /Users/adambird/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.12/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.7ms)
|
74
|
+
|
75
|
+
|
76
|
+
Started POST "/esendex/message_delivered_events" for 127.0.0.1 at 2013-02-26 09:24:19 +0000
|
77
|
+
Processing by Esendex::MessageDeliveredEventsController#create as */*
|
78
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
79
|
+
|
80
|
+
|
81
|
+
Started POST "/esendex/message_delivered_events" for 127.0.0.1 at 2013-02-26 09:43:03 +0000
|
82
|
+
Processing by Esendex::MessageDeliveredEventsController#create as */*
|
83
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
data/spec/dummy/log/test.log
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
Processing by Esendex::MessageDeliveredEventsController#create as HTML
|
2
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
3
|
+
Processing by Esendex::MessageDeliveredEventsController#create as HTML
|
4
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
5
|
+
Processing by Esendex::MessageDeliveredEventsController#create as HTML
|
6
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
7
|
+
Processing by Esendex::MessageDeliveredEventsController#create as HTML
|
8
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
9
|
+
Processing by Esendex::MessageDeliveredEventsController#create as HTML
|
10
|
+
Completed 200 OK in 0ms (Views: 0.1ms)
|
11
|
+
Received MessageDeliveredEvent but no handler configured
|
12
|
+
Rendered text template (0.0ms)
|
13
|
+
Received MessageDeliveredEvent but no handler configured
|
14
|
+
Rendered text template (0.0ms)
|
data/spec/dummy/script/rails
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esendex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Adam Bird
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: nestful
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: nokogiri
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -98,6 +93,7 @@ files:
|
|
98
93
|
- spec/dummy/config/locales/en.yml
|
99
94
|
- spec/dummy/config/routes.rb
|
100
95
|
- spec/dummy/config.ru
|
96
|
+
- spec/dummy/log/development.log
|
101
97
|
- spec/dummy/log/test.log
|
102
98
|
- spec/dummy/public/404.html
|
103
99
|
- spec/dummy/public/422.html
|
@@ -115,27 +111,26 @@ files:
|
|
115
111
|
- spec/spec_helper.rb
|
116
112
|
homepage: http://developers.esendex.com
|
117
113
|
licenses: []
|
114
|
+
metadata: {}
|
118
115
|
post_install_message:
|
119
116
|
rdoc_options: []
|
120
117
|
require_paths:
|
121
118
|
- lib
|
122
119
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
120
|
requirements:
|
125
121
|
- - ! '>='
|
126
122
|
- !ruby/object:Gem::Version
|
127
123
|
version: '0'
|
128
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
125
|
requirements:
|
131
126
|
- - ! '>='
|
132
127
|
- !ruby/object:Gem::Version
|
133
128
|
version: '0'
|
134
129
|
requirements: []
|
135
130
|
rubyforge_project:
|
136
|
-
rubygems_version:
|
131
|
+
rubygems_version: 2.0.3
|
137
132
|
signing_key:
|
138
|
-
specification_version:
|
133
|
+
specification_version: 4
|
139
134
|
summary: Gem for interacting with the Esendex API
|
140
135
|
test_files:
|
141
136
|
- spec/account_spec.rb
|
@@ -162,6 +157,7 @@ test_files:
|
|
162
157
|
- spec/dummy/config/locales/en.yml
|
163
158
|
- spec/dummy/config/routes.rb
|
164
159
|
- spec/dummy/config.ru
|
160
|
+
- spec/dummy/log/development.log
|
165
161
|
- spec/dummy/log/test.log
|
166
162
|
- spec/dummy/public/404.html
|
167
163
|
- spec/dummy/public/422.html
|