action_smser 3.3.0 → 3.4.0
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 +4 -4
- data/README.md +1 -1
- data/app/models/action_smser/delivery_report.rb +1 -1
- data/app/views/action_smser/delivery_reports/index.html.erb +1 -1
- data/lib/action_smser/delivery_methods/nexmo.rb +1 -1
- data/lib/action_smser/version.rb +1 -1
- data/test/dummy/log/test.log +5701 -52820
- data/test/test_helper.rb +2 -1
- data/test/unit/action_smser/delivery_methods/nexmo_test.rb +1 -1
- metadata +11 -15
- data/test/dummy/log/development.log +0 -37
- data/test/dummy/log/production.log +0 -0
data/test/test_helper.rb
CHANGED
@@ -5,10 +5,11 @@ ENV["RAILS_ENV"] = "test"
|
|
5
5
|
|
6
6
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
7
7
|
require "rails/test_help"
|
8
|
+
# require "minitest/autorun"
|
8
9
|
require 'minitest/mock'
|
9
|
-
# require "mocha/setup"
|
10
10
|
require 'mocha/minitest'
|
11
11
|
|
12
|
+
|
12
13
|
Rails.backtrace_cleaner.remove_silencers!
|
13
14
|
|
14
15
|
# Load support files
|
@@ -61,7 +61,7 @@ class ActionSmser::NexmoTest < ActiveSupport::TestCase
|
|
61
61
|
test "gateway process_delivery_report(request)" do
|
62
62
|
@msg_id = "msg_id_asdf"
|
63
63
|
|
64
|
-
request_mock =
|
64
|
+
request_mock = ::Minitest::Mock.new
|
65
65
|
request_mock.expect(:params, {"messageId" => @msg_id, "status" => "EXPIRED"})
|
66
66
|
result_array = ActionSmser::DeliveryMethods::Nexmo.process_delivery_report(request_mock)
|
67
67
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_smser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olli Huotari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: mocha
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.7'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,8 +177,6 @@ files:
|
|
177
177
|
- test/dummy/db/production.sqlite3
|
178
178
|
- test/dummy/db/schema.rb
|
179
179
|
- test/dummy/db/test.sqlite3
|
180
|
-
- test/dummy/log/development.log
|
181
|
-
- test/dummy/log/production.log
|
182
180
|
- test/dummy/log/test.log
|
183
181
|
- test/dummy/public/404.html
|
184
182
|
- test/dummy/public/422.html
|
@@ -207,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
205
|
requirements:
|
208
206
|
- - ">="
|
209
207
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
208
|
+
version: 3.0.0
|
211
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
210
|
requirements:
|
213
211
|
- - ">="
|
@@ -254,8 +252,6 @@ test_files:
|
|
254
252
|
- test/dummy/db/production.sqlite3
|
255
253
|
- test/dummy/db/schema.rb
|
256
254
|
- test/dummy/db/test.sqlite3
|
257
|
-
- test/dummy/log/development.log
|
258
|
-
- test/dummy/log/production.log
|
259
255
|
- test/dummy/log/test.log
|
260
256
|
- test/dummy/public/404.html
|
261
257
|
- test/dummy/public/422.html
|
@@ -1,37 +0,0 @@
|
|
1
|
-
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /home/ohu/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138)
|
2
|
-
|
3
|
-
|
4
|
-
Started GET "/" for 127.0.0.1 at 2014-02-07 13:22:36 +0200
|
5
|
-
Processing by Rails::WelcomeController#index as HTML
|
6
|
-
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p484/gems/railties-4.0.2/lib/rails/templates/rails/welcome/index.html.erb (6.1ms)
|
7
|
-
Completed 200 OK in 63ms (Views: 62.5ms | ActiveRecord: 0.0ms)
|
8
|
-
|
9
|
-
|
10
|
-
Started GET "/" for 127.0.0.1 at 2014-02-07 13:22:38 +0200
|
11
|
-
Processing by Rails::WelcomeController#index as HTML
|
12
|
-
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p484/gems/railties-4.0.2/lib/rails/templates/rails/welcome/index.html.erb (0.1ms)
|
13
|
-
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
14
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
16
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
18
|
-
[1m[36m (42.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
19
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
20
|
-
[1m[36m (42.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
21
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
22
|
-
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
23
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
24
|
-
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/ohu/koodi/own_gems_programs/action_smser/db/migrate/20120102215215_create_action_smser_delivery_reports.rb:18)
|
25
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar, "status" varchar, "status_updated_at" datetime, "sms_type" varchar, "log" text, "to" varchar, "from" varchar, "body" varchar, "gateway" varchar, "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
|
26
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")[0m
|
27
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120102215215"]]
|
28
|
-
[1m[36m (43.9ms)[0m [1mcommit transaction[0m
|
29
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
31
|
-
FROM sqlite_master
|
32
|
-
WHERE name='index_action_smser_delivery_reports_on_msg_id' AND type='index'
|
33
|
-
UNION ALL
|
34
|
-
SELECT sql
|
35
|
-
FROM sqlite_temp_master
|
36
|
-
WHERE name='index_action_smser_delivery_reports_on_msg_id' AND type='index'
|
37
|
-
[0m
|
File without changes
|