smster 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +2 -1
- data/lib/smster/version.rb +1 -1
- data/test/dummy/log/test.log +172 -0
- data/test/smster_test.rb +0 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af96cedecd26b65e0a292285c08f7519f4be9cef
|
4
|
+
data.tar.gz: 81b09997cbfb167341efbb4c9c82f92799521fef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44cc304142539838405736b46ee1391cdd061442fa8df7efb90a49e2e0ff663e4c9242173efb3936f8694705f0d214dc6d2e77a688430d223b237a64b073926f
|
7
|
+
data.tar.gz: ef8a83566cd523670ccd7b6c2c537d969f363f71874583f53650647c1929050c87e4ce58ae442b049047e0d91be93a8375a574528c58eb197798062050217e06
|
data/README.rdoc
CHANGED
@@ -11,6 +11,7 @@ Add gem:
|
|
11
11
|
|
12
12
|
Install:
|
13
13
|
rails g smster:install
|
14
|
+
rake db:migrate
|
14
15
|
|
15
16
|
== Sending message
|
16
17
|
Add config of your provider into config/initializers/smster.rb.
|
@@ -20,7 +21,7 @@ And let's start!
|
|
20
21
|
Sms::Clickatell.create(text: 'sms text', to: phone_number)
|
21
22
|
|
22
23
|
== Callbacks
|
23
|
-
Add to routes, setup
|
24
|
+
Add to routes, setup provider callbacks and get sms statuses:
|
24
25
|
post 'smster/$provider_name/callback'
|
25
26
|
|
26
27
|
== Feedback
|
data/lib/smster/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -1916,3 +1916,175 @@ Mode: test. To: 2682634, text: simple+text
|
|
1916
1916
|
[1m[36mSQL (0.2ms)[0m [1mUPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ?[0m [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+2682634"], ["created_at", "2015-03-31 04:03:26.979410"], ["updated_at", "2015-03-31 04:03:26.979410"], ["id", 1], ["code", "1"], ["id", 1]]
|
1917
1917
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1918
1918
|
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1919
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1920
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1921
|
+
------------------------------------------
|
1922
|
+
Smster::NexmoControllerTest: test_callback
|
1923
|
+
------------------------------------------
|
1924
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1925
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "3755135"], ["created_at", "2015-03-31 06:10:50.864612"], ["updated_at", "2015-03-31 06:10:50.864612"]]
|
1926
|
+
Mode: test. To: 3755135, text: simple+text
|
1927
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ?[0m [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "3755135"], ["created_at", "2015-03-31 06:10:50.864612"], ["updated_at", "2015-03-31 06:10:50.864612"], ["id", 1], ["code", "1"], ["id", 1]]
|
1928
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1929
|
+
Processing by Smster::NexmoController#callback as HTML
|
1930
|
+
Parameters: {"messageId"=>"1", "status"=>"delivered"}
|
1931
|
+
[1m[36mSms::Nexmo Load (0.2ms)[0m [1mSELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1[0m [["code", "1"]]
|
1932
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1933
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ?[0m [["status_message", "delivered"], ["updated_at", "2015-03-31 06:10:50.886017"], ["id", 1]]
|
1934
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1935
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1936
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-03-31 06:10:50.887319"], ["id", 1]]
|
1937
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1938
|
+
Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
1939
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1940
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1941
|
+
--------------------------------
|
1942
|
+
Sms::ClickatellTest: test_create
|
1943
|
+
--------------------------------
|
1944
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1945
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "5824187"], ["created_at", "2015-03-31 06:10:50.896381"], ["updated_at", "2015-03-31 06:10:50.896381"]]
|
1946
|
+
Mode: test. To: 5824187, text: simple+text
|
1947
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "5824187"], ["created_at", "2015-03-31 06:10:50.896381"], ["updated_at", "2015-03-31 06:10:50.896381"], ["id", 1], ["code", "1"], ["id", 1]]
|
1948
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1949
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1950
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1951
|
+
-----------------------------------
|
1952
|
+
Sms::ClickatellTest: test_format_to
|
1953
|
+
-----------------------------------
|
1954
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1955
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+8842669"], ["created_at", "2015-03-31 06:10:50.900290"], ["updated_at", "2015-03-31 06:10:50.900290"]]
|
1956
|
+
Mode: test. To: 8842669, text: simple+text
|
1957
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+8842669"], ["created_at", "2015-03-31 06:10:50.900290"], ["updated_at", "2015-03-31 06:10:50.900290"], ["id", 1], ["code", "1"], ["id", 1]]
|
1958
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1959
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1960
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1961
|
+
-------------------------------
|
1962
|
+
SmsterTest: test_confirguration
|
1963
|
+
-------------------------------
|
1964
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1965
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1966
|
+
------------------------------
|
1967
|
+
Sms::NexmoTest: test_format_to
|
1968
|
+
------------------------------
|
1969
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1970
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+2218274"], ["created_at", "2015-03-31 06:10:50.924613"], ["updated_at", "2015-03-31 06:10:50.924613"]]
|
1971
|
+
Mode: test. To: 2218274, text: simple+text
|
1972
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+2218274"], ["created_at", "2015-03-31 06:10:50.924613"], ["updated_at", "2015-03-31 06:10:50.924613"], ["id", 1], ["code", "1"], ["id", 1]]
|
1973
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1974
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1975
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1976
|
+
---------------------------
|
1977
|
+
Sms::NexmoTest: test_create
|
1978
|
+
---------------------------
|
1979
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1980
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "8228657"], ["created_at", "2015-03-31 06:10:50.929683"], ["updated_at", "2015-03-31 06:10:50.929683"]]
|
1981
|
+
Mode: test. To: 8228657, text: simple+text
|
1982
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "8228657"], ["created_at", "2015-03-31 06:10:50.929683"], ["updated_at", "2015-03-31 06:10:50.929683"], ["id", 1], ["code", "1"], ["id", 1]]
|
1983
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1984
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1985
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1986
|
+
-----------------------------------------------
|
1987
|
+
Smster::ClickatellControllerTest: test_callback
|
1988
|
+
-----------------------------------------------
|
1989
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1990
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "9295915"], ["created_at", "2015-03-31 06:10:50.938932"], ["updated_at", "2015-03-31 06:10:50.938932"]]
|
1991
|
+
Mode: test. To: 9295915, text: simple+text
|
1992
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "9295915"], ["created_at", "2015-03-31 06:10:50.938932"], ["updated_at", "2015-03-31 06:10:50.938932"], ["id", 1], ["code", "1"], ["id", 1]]
|
1993
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1994
|
+
Processing by Smster::ClickatellController#callback as HTML
|
1995
|
+
Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
|
1996
|
+
[1m[35mSms::Clickatell Load (0.1ms)[0m SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
|
1997
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1998
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "Received by recipient"], ["updated_at", "2015-03-31 06:10:50.946344"], ["id", 1]]
|
1999
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2000
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2001
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ?[0m [["status", 2], ["updated_at", "2015-03-31 06:10:50.947687"], ["id", 1]]
|
2002
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2003
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms)
|
2004
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2005
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2006
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2007
|
+
-----------------------------------------------
|
2008
|
+
Smster::ClickatellControllerTest: test_callback
|
2009
|
+
-----------------------------------------------
|
2010
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2011
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "7856958"], ["created_at", "2015-03-31 06:12:21.547557"], ["updated_at", "2015-03-31 06:12:21.547557"]]
|
2012
|
+
Mode: test. To: 7856958, text: simple+text
|
2013
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ?[0m [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "7856958"], ["created_at", "2015-03-31 06:12:21.547557"], ["updated_at", "2015-03-31 06:12:21.547557"], ["id", 1], ["code", "1"], ["id", 1]]
|
2014
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2015
|
+
Processing by Smster::ClickatellController#callback as HTML
|
2016
|
+
Parameters: {"data"=>{"charge"=>"1.5", "messageStatus"=>"3", "description"=>"Received by recipient", "apiMessageId"=>"1"}}
|
2017
|
+
[1m[36mSms::Clickatell Load (0.2ms)[0m [1mSELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Clickatell') AND "smsters"."code" = ? LIMIT 1[0m [["code", "1"]]
|
2018
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2019
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ?[0m [["status_message", "Received by recipient"], ["updated_at", "2015-03-31 06:12:21.560628"], ["id", 1]]
|
2020
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2021
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2022
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status", 2], ["updated_at", "2015-03-31 06:12:21.562990"], ["id", 1]]
|
2023
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2024
|
+
Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
2025
|
+
[1m[35m (2.1ms)[0m rollback transaction
|
2026
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2027
|
+
---------------------------
|
2028
|
+
Sms::NexmoTest: test_create
|
2029
|
+
---------------------------
|
2030
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2031
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "3942964"], ["created_at", "2015-03-31 06:12:21.576813"], ["updated_at", "2015-03-31 06:12:21.576813"]]
|
2032
|
+
Mode: test. To: 3942964, text: simple+text
|
2033
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "3942964"], ["created_at", "2015-03-31 06:12:21.576813"], ["updated_at", "2015-03-31 06:12:21.576813"], ["id", 1], ["code", "1"], ["id", 1]]
|
2034
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2035
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2036
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2037
|
+
------------------------------
|
2038
|
+
Sms::NexmoTest: test_format_to
|
2039
|
+
------------------------------
|
2040
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2041
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "+7539246"], ["created_at", "2015-03-31 06:12:21.581011"], ["updated_at", "2015-03-31 06:12:21.581011"]]
|
2042
|
+
Mode: test. To: 7539246, text: simple+text
|
2043
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "+7539246"], ["created_at", "2015-03-31 06:12:21.581011"], ["updated_at", "2015-03-31 06:12:21.581011"], ["id", 1], ["code", "1"], ["id", 1]]
|
2044
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2045
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2046
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2047
|
+
-------------------------------
|
2048
|
+
SmsterTest: test_confirguration
|
2049
|
+
-------------------------------
|
2050
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2051
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2052
|
+
------------------------------------------
|
2053
|
+
Smster::NexmoControllerTest: test_callback
|
2054
|
+
------------------------------------------
|
2055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2056
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["type", "Sms::Nexmo"], ["status", 0], ["text", "simple text"], ["to", "8857183"], ["created_at", "2015-03-31 06:12:21.587973"], ["updated_at", "2015-03-31 06:12:21.587973"]]
|
2057
|
+
Mode: test. To: 8857183, text: simple+text
|
2058
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ? [["type", "Sms::Nexmo"], ["status", 1], ["text", "simple text"], ["to", "8857183"], ["created_at", "2015-03-31 06:12:21.587973"], ["updated_at", "2015-03-31 06:12:21.587973"], ["id", 1], ["code", "1"], ["id", 1]]
|
2059
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2060
|
+
Processing by Smster::NexmoController#callback as HTML
|
2061
|
+
Parameters: {"messageId"=>"1", "status"=>"delivered"}
|
2062
|
+
[1m[35mSms::Nexmo Load (0.1ms)[0m SELECT "smsters".* FROM "smsters" WHERE "smsters"."type" IN ('Sms::Nexmo') AND "smsters"."code" = ? LIMIT 1 [["code", "1"]]
|
2063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2064
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "smsters" SET "status_message" = ?, "updated_at" = ? WHERE "smsters"."id" = ? [["status_message", "delivered"], ["updated_at", "2015-03-31 06:12:21.592852"], ["id", 1]]
|
2065
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2066
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2067
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "smsters" SET "status" = ?, "updated_at" = ? WHERE "smsters"."id" = ?[0m [["status", 2], ["updated_at", "2015-03-31 06:12:21.593902"], ["id", 1]]
|
2068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2069
|
+
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
|
2070
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2072
|
+
--------------------------------
|
2073
|
+
Sms::ClickatellTest: test_create
|
2074
|
+
--------------------------------
|
2075
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2076
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "3668545"], ["created_at", "2015-03-31 06:12:21.597118"], ["updated_at", "2015-03-31 06:12:21.597118"]]
|
2077
|
+
Mode: test. To: 3668545, text: simple+text
|
2078
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ?[0m [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "3668545"], ["created_at", "2015-03-31 06:12:21.597118"], ["updated_at", "2015-03-31 06:12:21.597118"], ["id", 1], ["code", "1"], ["id", 1]]
|
2079
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2080
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2081
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2082
|
+
-----------------------------------
|
2083
|
+
Sms::ClickatellTest: test_format_to
|
2084
|
+
-----------------------------------
|
2085
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2086
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "smsters" ("type", "status", "text", "to", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "Sms::Clickatell"], ["status", 0], ["text", "simple text"], ["to", "+1439722"], ["created_at", "2015-03-31 06:12:21.601045"], ["updated_at", "2015-03-31 06:12:21.601045"]]
|
2087
|
+
Mode: test. To: 1439722, text: simple+text
|
2088
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "smsters" SET "type" = ?, "status" = ?, "text" = ?, "to" = ?, "created_at" = ?, "updated_at" = ?, "id" = ?, "code" = ? WHERE "smsters"."id" = ?[0m [["type", "Sms::Clickatell"], ["status", 1], ["text", "simple text"], ["to", "+1439722"], ["created_at", "2015-03-31 06:12:21.601045"], ["updated_at", "2015-03-31 06:12:21.601045"], ["id", 1], ["code", "1"], ["id", 1]]
|
2089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2090
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
data/test/smster_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doniv
|
@@ -38,7 +38,21 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.8'
|
41
|
-
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: SMS sending service through different providers with maximum convenience.
|
42
56
|
email:
|
43
57
|
- donivrecord@gmail.com
|
44
58
|
executables: []
|