action_smser 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,12 @@ class ActionSmser::NexmoTest < ActiveSupport::TestCase
30
30
  assert_equal 2, @sms_delivery.count
31
31
  end
32
32
 
33
+ test "delivery path should have unicode set when needed" do
34
+ assert !ActionSmser::DeliveryMethods::Nexmo.deliver_path(@sms, @sms.to, @sms.delivery_options[:nexmo]).include?('&type')
35
+ @sms.delivery_options[:nexmo][:type] = 'unicode'
36
+ assert ActionSmser::DeliveryMethods::Nexmo.deliver_path(@sms, @sms.to, @sms.delivery_options[:nexmo]).include?('&type=unicode')
37
+ end
38
+
33
39
  test "with saving delivery_reports" do
34
40
  @sms.delivery_options[:save_delivery_reports] = true
35
41
  @delivery_reports_count = ActionSmser::DeliveryReport.count
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_smser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
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-12-09 00:00:00.000000000 Z
12
+ date: 2014-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -100,80 +100,80 @@ executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files: []
102
102
  files:
103
- - app/helpers/action_smser/application_helper.rb
104
- - app/controllers/action_smser/application_controller.rb
105
103
  - app/controllers/action_smser/delivery_reports_controller.rb
104
+ - app/controllers/action_smser/application_controller.rb
105
+ - app/helpers/action_smser/application_helper.rb
106
+ - app/assets/javascripts/action_smser/delivery_reports.js
107
+ - app/assets/stylesheets/action_smser/delivery_reports.css
108
+ - app/assets/stylesheets/action_smser/application.css
109
+ - app/assets/stylesheets/scaffold.css
106
110
  - app/views/action_smser/delivery_reports/index.html.erb
107
111
  - app/views/action_smser/delivery_reports/list.html.erb
108
112
  - app/views/layouts/action_smser/delivery_reports.html.erb
109
113
  - app/models/action_smser/delivery_report.rb
110
- - app/assets/javascripts/action_smser/delivery_reports.js
111
- - app/assets/stylesheets/scaffold.css
112
- - app/assets/stylesheets/action_smser/delivery_reports.css
113
- - app/assets/stylesheets/action_smser/application.css
114
114
  - config/routes.rb
115
115
  - db/migrate/20120102215215_create_action_smser_delivery_reports.rb
116
+ - lib/action_smser.rb
116
117
  - lib/tasks/action_smser_tasks.rake
117
- - lib/action_smser/engine.rb
118
118
  - lib/action_smser/delivery_methods/simple_http.rb
119
119
  - lib/action_smser/delivery_methods/test_array.rb
120
120
  - lib/action_smser/delivery_methods/delayed_job.rb
121
- - lib/action_smser/delivery_methods/nexmo.rb
122
121
  - lib/action_smser/delivery_methods/smstrade.rb
122
+ - lib/action_smser/delivery_methods/nexmo.rb
123
123
  - lib/action_smser/version.rb
124
124
  - lib/action_smser/base.rb
125
- - lib/action_smser.rb
125
+ - lib/action_smser/engine.rb
126
126
  - MIT-LICENSE
127
127
  - Rakefile
128
128
  - README.md
129
- - test/integration/navigation_test.rb
129
+ - test/unit/action_smser/base_test.rb
130
+ - test/unit/action_smser/delivery_methods/test_array_test.rb
131
+ - test/unit/action_smser/delivery_methods/delayed_job_test.rb
132
+ - test/unit/action_smser/delivery_methods/smstrade_test.rb
133
+ - test/unit/action_smser/delivery_methods/nexmo_test.rb
134
+ - test/unit/action_smser/delivery_methods/simple_http_test.rb
135
+ - test/unit/action_smser/delivery_report_test.rb
130
136
  - test/action_smser_test.rb
137
+ - test/functional/action_smser/delivery_reports_controller_test.rb
138
+ - test/dummy/app/controllers/application_controller.rb
139
+ - test/dummy/app/mailers/hello_smser.rb
140
+ - test/dummy/app/helpers/application_helper.rb
141
+ - test/dummy/app/assets/javascripts/application.js
142
+ - test/dummy/app/assets/stylesheets/application.css
143
+ - test/dummy/app/views/layouts/application.html.erb
144
+ - test/dummy/public/422.html
145
+ - test/dummy/public/500.html
146
+ - test/dummy/public/404.html
147
+ - test/dummy/public/favicon.ico
131
148
  - test/dummy/script/rails
132
- - test/dummy/db/development.sqlite3
133
149
  - test/dummy/db/production.sqlite3
150
+ - test/dummy/db/development.sqlite3
134
151
  - test/dummy/db/test.sqlite3
135
152
  - test/dummy/db/schema.rb
136
- - test/dummy/config/boot.rb
137
- - test/dummy/config/locales/en.yml
138
- - test/dummy/config/initializers/secret_token.rb
139
- - test/dummy/config/initializers/mime_types.rb
140
- - test/dummy/config/initializers/action_smser.rb
141
- - test/dummy/config/initializers/inflections.rb
153
+ - test/dummy/log/production.log
154
+ - test/dummy/log/development.log
155
+ - test/dummy/log/test.log
156
+ - test/dummy/Rakefile
157
+ - test/dummy/config.ru
158
+ - test/dummy/config/initializers/backtrace_silencers.rb
142
159
  - test/dummy/config/initializers/session_store.rb
160
+ - test/dummy/config/initializers/action_smser.rb
161
+ - test/dummy/config/initializers/mime_types.rb
162
+ - test/dummy/config/initializers/secret_token.rb
143
163
  - test/dummy/config/initializers/wrap_parameters.rb
144
- - test/dummy/config/initializers/backtrace_silencers.rb
145
164
  - test/dummy/config/initializers/git_ignored_passwords.rb
165
+ - test/dummy/config/initializers/inflections.rb
166
+ - test/dummy/config/routes.rb
167
+ - test/dummy/config/locales/en.yml
168
+ - test/dummy/config/environment.rb
169
+ - test/dummy/config/application.rb
170
+ - test/dummy/config/boot.rb
146
171
  - test/dummy/config/database.yml
147
172
  - test/dummy/config/environments/production.rb
148
173
  - test/dummy/config/environments/test.rb
149
174
  - test/dummy/config/environments/development.rb
150
- - test/dummy/config/routes.rb
151
- - test/dummy/config/environment.rb
152
- - test/dummy/config/application.rb
153
- - test/dummy/config.ru
154
- - test/dummy/public/500.html
155
- - test/dummy/public/favicon.ico
156
- - test/dummy/public/422.html
157
- - test/dummy/public/404.html
158
- - test/dummy/log/development.log
159
- - test/dummy/log/test.log
160
- - test/dummy/log/production.log
161
- - test/dummy/app/helpers/application_helper.rb
162
- - test/dummy/app/mailers/hello_smser.rb
163
- - test/dummy/app/controllers/application_controller.rb
164
- - test/dummy/app/views/layouts/application.html.erb
165
- - test/dummy/app/assets/javascripts/application.js
166
- - test/dummy/app/assets/stylesheets/application.css
167
- - test/dummy/Rakefile
175
+ - test/integration/navigation_test.rb
168
176
  - test/test_helper.rb
169
- - test/unit/action_smser/delivery_methods/smstrade_test.rb
170
- - test/unit/action_smser/delivery_methods/simple_http_test.rb
171
- - test/unit/action_smser/delivery_methods/test_array_test.rb
172
- - test/unit/action_smser/delivery_methods/delayed_job_test.rb
173
- - test/unit/action_smser/delivery_methods/nexmo_test.rb
174
- - test/unit/action_smser/base_test.rb
175
- - test/unit/action_smser/delivery_report_test.rb
176
- - test/functional/action_smser/delivery_reports_controller_test.rb
177
177
  homepage: https://github.com/holli/action_smser
178
178
  licenses:
179
179
  - MIT
@@ -195,58 +195,58 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  requirements: []
197
197
  rubyforge_project:
198
- rubygems_version: 1.8.25
198
+ rubygems_version: 1.8.23
199
199
  signing_key:
200
200
  specification_version: 3
201
201
  summary: ActionSmser == SMS && ActionMailer. Simple way to use SMS (Short Message
202
202
  Service) in the same way as ActionMailer. Includes also delivery reports and easy
203
203
  way to add custom gateways (simple http and nexmo by default).
204
204
  test_files:
205
- - test/integration/navigation_test.rb
205
+ - test/unit/action_smser/base_test.rb
206
+ - test/unit/action_smser/delivery_methods/test_array_test.rb
207
+ - test/unit/action_smser/delivery_methods/delayed_job_test.rb
208
+ - test/unit/action_smser/delivery_methods/smstrade_test.rb
209
+ - test/unit/action_smser/delivery_methods/nexmo_test.rb
210
+ - test/unit/action_smser/delivery_methods/simple_http_test.rb
211
+ - test/unit/action_smser/delivery_report_test.rb
206
212
  - test/action_smser_test.rb
213
+ - test/functional/action_smser/delivery_reports_controller_test.rb
214
+ - test/dummy/app/controllers/application_controller.rb
215
+ - test/dummy/app/mailers/hello_smser.rb
216
+ - test/dummy/app/helpers/application_helper.rb
217
+ - test/dummy/app/assets/javascripts/application.js
218
+ - test/dummy/app/assets/stylesheets/application.css
219
+ - test/dummy/app/views/layouts/application.html.erb
220
+ - test/dummy/public/422.html
221
+ - test/dummy/public/500.html
222
+ - test/dummy/public/404.html
223
+ - test/dummy/public/favicon.ico
207
224
  - test/dummy/script/rails
208
- - test/dummy/db/development.sqlite3
209
225
  - test/dummy/db/production.sqlite3
226
+ - test/dummy/db/development.sqlite3
210
227
  - test/dummy/db/test.sqlite3
211
228
  - test/dummy/db/schema.rb
212
- - test/dummy/config/boot.rb
213
- - test/dummy/config/locales/en.yml
214
- - test/dummy/config/initializers/secret_token.rb
215
- - test/dummy/config/initializers/mime_types.rb
216
- - test/dummy/config/initializers/action_smser.rb
217
- - test/dummy/config/initializers/inflections.rb
229
+ - test/dummy/log/production.log
230
+ - test/dummy/log/development.log
231
+ - test/dummy/log/test.log
232
+ - test/dummy/Rakefile
233
+ - test/dummy/config.ru
234
+ - test/dummy/config/initializers/backtrace_silencers.rb
218
235
  - test/dummy/config/initializers/session_store.rb
236
+ - test/dummy/config/initializers/action_smser.rb
237
+ - test/dummy/config/initializers/mime_types.rb
238
+ - test/dummy/config/initializers/secret_token.rb
219
239
  - test/dummy/config/initializers/wrap_parameters.rb
220
- - test/dummy/config/initializers/backtrace_silencers.rb
221
240
  - test/dummy/config/initializers/git_ignored_passwords.rb
241
+ - test/dummy/config/initializers/inflections.rb
242
+ - test/dummy/config/routes.rb
243
+ - test/dummy/config/locales/en.yml
244
+ - test/dummy/config/environment.rb
245
+ - test/dummy/config/application.rb
246
+ - test/dummy/config/boot.rb
222
247
  - test/dummy/config/database.yml
223
248
  - test/dummy/config/environments/production.rb
224
249
  - test/dummy/config/environments/test.rb
225
250
  - test/dummy/config/environments/development.rb
226
- - test/dummy/config/routes.rb
227
- - test/dummy/config/environment.rb
228
- - test/dummy/config/application.rb
229
- - test/dummy/config.ru
230
- - test/dummy/public/500.html
231
- - test/dummy/public/favicon.ico
232
- - test/dummy/public/422.html
233
- - test/dummy/public/404.html
234
- - test/dummy/log/development.log
235
- - test/dummy/log/test.log
236
- - test/dummy/log/production.log
237
- - test/dummy/app/helpers/application_helper.rb
238
- - test/dummy/app/mailers/hello_smser.rb
239
- - test/dummy/app/controllers/application_controller.rb
240
- - test/dummy/app/views/layouts/application.html.erb
241
- - test/dummy/app/assets/javascripts/application.js
242
- - test/dummy/app/assets/stylesheets/application.css
243
- - test/dummy/Rakefile
251
+ - test/integration/navigation_test.rb
244
252
  - test/test_helper.rb
245
- - test/unit/action_smser/delivery_methods/smstrade_test.rb
246
- - test/unit/action_smser/delivery_methods/simple_http_test.rb
247
- - test/unit/action_smser/delivery_methods/test_array_test.rb
248
- - test/unit/action_smser/delivery_methods/delayed_job_test.rb
249
- - test/unit/action_smser/delivery_methods/nexmo_test.rb
250
- - test/unit/action_smser/base_test.rb
251
- - test/unit/action_smser/delivery_report_test.rb
252
- - test/functional/action_smser/delivery_reports_controller_test.rb