action_smser 1.2.1 → 2.0.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.
- data/README.md +6 -1
- data/app/views/action_smser/delivery_reports/index.html.erb +10 -3
- data/lib/action_smser/base.rb +5 -3
- data/lib/action_smser/delivery_methods/simple_http.rb +0 -1
- data/lib/action_smser/version.rb +1 -1
- data/test/dummy/log/development.log +205 -0
- data/test/dummy/log/test.log +2220 -0
- data/test/unit/action_smser/base_test.rb +3 -0
- metadata +78 -86
data/README.md
CHANGED
@@ -228,12 +228,17 @@ end
|
|
228
228
|
|
229
229
|
# Requirements
|
230
230
|
|
231
|
-
Gem has been tested with ruby 1.
|
231
|
+
Gem has been tested with ruby 1.9.2 and Rails 3.1.
|
232
232
|
|
233
233
|
[<img src="https://secure.travis-ci.org/holli/action_smser.png" />](http://travis-ci.org/holli/action_smser)
|
234
234
|
|
235
235
|
http://travis-ci.org/#!/holli/action_smser
|
236
236
|
|
237
|
+
### Changes
|
238
|
+
|
239
|
+
Version 2.0 dropped support for ruby 1.8.7. Versions below 2.0 were tested also with ruby 1.8.7
|
240
|
+
|
241
|
+
|
237
242
|
# Support
|
238
243
|
|
239
244
|
Submit suggestions or feature requests as a GitHub Issue or Pull Request. Remember to update tests. Tests are quite extensive.
|
@@ -6,8 +6,14 @@
|
|
6
6
|
time_span = case params['time_span'].to_s.downcase
|
7
7
|
when 'week before that'
|
8
8
|
2.weeks.ago..1.week.ago
|
9
|
-
when 'last
|
10
|
-
|
9
|
+
when 'last 30 days'
|
10
|
+
30.days.ago..10.minutes.ago
|
11
|
+
when 'this month'
|
12
|
+
Time.now.at_beginning_of_month..10.minutes.ago
|
13
|
+
when '1 month ago'
|
14
|
+
1.month.ago.at_beginning_of_month..1.month.ago.at_end_of_month
|
15
|
+
when '2 months ago'
|
16
|
+
2.month.ago.at_beginning_of_month..2.month.ago.at_end_of_month
|
11
17
|
when 'last 24 hours'
|
12
18
|
1.day.ago..10.minutes.ago
|
13
19
|
when /^(\d\d)-(\d\d) hours/
|
@@ -40,7 +46,8 @@
|
|
40
46
|
|
41
47
|
<p class="selection_links">
|
42
48
|
<strong>Show summary:</strong>
|
43
|
-
<% ['Last 24 hours', '48-24
|
49
|
+
<% ['Last 24 hours', '48-24 hous', '72-48 hours', '96-72 hours ago', 'Last week', 'Week before that',
|
50
|
+
'Last 30 days', 'This month', '1 month ago', '2 months ago'].each do |key| %>
|
44
51
|
<%= link_to key, dr_summary_url(:time_span => key), :class => (key == params['time_span'] ? 'selected' : 'not_selected') %>
|
45
52
|
<% end %>
|
46
53
|
</p>
|
data/lib/action_smser/base.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'cgi'
|
3
|
-
require 'iconv'
|
4
3
|
|
5
4
|
class ActionSmser::Base
|
6
5
|
|
@@ -98,9 +97,12 @@ class ActionSmser::Base
|
|
98
97
|
|
99
98
|
# Most of the gateways want escaped and ISO encoded messages
|
100
99
|
# Also make sure that its max 500 chars long
|
101
|
-
def body_encoded_escaped(to = 'ISO-8859-15
|
100
|
+
def body_encoded_escaped(to = 'ISO-8859-15')
|
102
101
|
msg = body.first(500)
|
103
|
-
|
102
|
+
|
103
|
+
# This could use better translittering with fallback param, see http://blog.segment7.net/2010/12/17/from-iconv-iconv-to-string-encode
|
104
|
+
msg_encoded = msg.encode(to, :invalid => :replace, :undef => :replace, :replace => '_')
|
105
|
+
CGI.escape(msg_encoded)
|
104
106
|
end
|
105
107
|
|
106
108
|
def body_escaped
|
data/lib/action_smser/version.rb
CHANGED
@@ -582,3 +582,208 @@ ActionSmser: Sending sms (Sms HelloSmser.hello_olli - From: "ActionSmser", To: "
|
|
582
582
|
ActionSmser: Delivering sms by https
|
583
583
|
ActionSmser: SimpleHttp delivery ||| /sms/json?username=75378256&password=db051153&from=ActionSmser&to=358407573855&text=Hello+from+action+smser%2C+encode+%C3%A4%C3%A4kk%C3%B6set%21%23 ||| #<Net::HTTPOK 200 OK readbody=true>
|
584
584
|
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778F8AE","remaining-balance":"1.60000000"}]}
|
585
|
+
|
586
|
+
|
587
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:38:49 +1000
|
588
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
589
|
+
Rendered text template (0.0ms)
|
590
|
+
Completed 403 Forbidden in 28ms (Views: 27.8ms | ActiveRecord: 0.0ms)
|
591
|
+
|
592
|
+
|
593
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:39:09 +1000
|
594
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
595
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:09.765361' AND '2013-03-05 04:29:09.769600')[0m
|
596
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:09.765361' AND '2013-03-05 04:29:09.769600') GROUP BY gateway
|
597
|
+
SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:09.765361' AND '2013-03-05 04:29:09.769600') GROUP BY gateway
|
598
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (35.8ms)
|
599
|
+
Completed 500 Internal Server Error in 54ms
|
600
|
+
|
601
|
+
ActionView::Template::Error (SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:09.765361' AND '2013-03-05 04:29:09.769600') GROUP BY gateway):
|
602
|
+
72:
|
603
|
+
73: (you can select only gateways that have messages in this period)
|
604
|
+
74: </li>
|
605
|
+
75: <% ar_redeliveries.group(:gateway).count.each do |key, val| %>
|
606
|
+
76: <li class="<%= (key == params['gateway'] ? 'selected' : 'not_selected') -%>">
|
607
|
+
77: <%= link_to(key, dr_summary_url(:gateway => key) ) %>
|
608
|
+
78:
|
609
|
+
|
610
|
+
|
611
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
612
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
|
613
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.6ms)
|
614
|
+
|
615
|
+
|
616
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:39:19 +1000
|
617
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
618
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (1.8ms)
|
619
|
+
Completed 500 Internal Server Error in 5ms
|
620
|
+
|
621
|
+
ActionView::Template::Error (undefined method `pry' for #<Binding:0x00000004457b18>):
|
622
|
+
1:
|
623
|
+
2: <%
|
624
|
+
3: binding.pry
|
625
|
+
4: params['time_span'] ||= 'Last week'
|
626
|
+
5: params['redeliveries'] ||= 'Include normally'
|
627
|
+
6:
|
628
|
+
|
629
|
+
|
630
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
|
631
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
|
632
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.3ms)
|
633
|
+
|
634
|
+
|
635
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:39:23 +1000
|
636
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
637
|
+
|
638
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
639
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:23.471806' AND '2013-03-05 04:29:23.471959')[0m
|
640
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:23.471806' AND '2013-03-05 04:29:23.471959') GROUP BY gateway
|
641
|
+
SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:23.471806' AND '2013-03-05 04:29:23.471959') GROUP BY gateway
|
642
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (8.9ms)
|
643
|
+
Completed 500 Internal Server Error in 12ms
|
644
|
+
|
645
|
+
ActionView::Template::Error (SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:23.471806' AND '2013-03-05 04:29:23.471959') GROUP BY gateway):
|
646
|
+
72:
|
647
|
+
73: (you can select only gateways that have messages in this period)
|
648
|
+
74: </li>
|
649
|
+
75: <% ar_redeliveries.group(:gateway).count.each do |key, val| %>
|
650
|
+
76: <li class="<%= (key == params['gateway'] ? 'selected' : 'not_selected') -%>">
|
651
|
+
77: <%= link_to(key, dr_summary_url(:gateway => key) ) %>
|
652
|
+
78:
|
653
|
+
|
654
|
+
|
655
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
|
656
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (16.1ms)
|
657
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (19.1ms)
|
658
|
+
|
659
|
+
|
660
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:39:44 +1000
|
661
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
662
|
+
|
663
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
664
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:44.346770' AND '2013-03-05 04:29:44.346923')[0m
|
665
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:44.346770' AND '2013-03-05 04:29:44.346923') GROUP BY gateway
|
666
|
+
SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:44.346770' AND '2013-03-05 04:29:44.346923') GROUP BY gateway
|
667
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (9.2ms)
|
668
|
+
Completed 500 Internal Server Error in 13ms
|
669
|
+
|
670
|
+
ActionView::Template::Error (SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:39:44.346770' AND '2013-03-05 04:29:44.346923') GROUP BY gateway):
|
671
|
+
73:
|
672
|
+
74: (you can select only gateways that have messages in this period)
|
673
|
+
75: </li>
|
674
|
+
76: <% ar_redeliveries.group(:gateway).count.each do |key, val| %>
|
675
|
+
77: <li class="<%= (key == params['gateway'] ? 'selected' : 'not_selected') -%>">
|
676
|
+
78: <%= link_to(key, dr_summary_url(:gateway => key) ) %>
|
677
|
+
79:
|
678
|
+
|
679
|
+
|
680
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
|
681
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
|
682
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.8ms)
|
683
|
+
|
684
|
+
|
685
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:40:05 +1000
|
686
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
687
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (1.9ms)
|
688
|
+
Completed 500 Internal Server Error in 6ms
|
689
|
+
|
690
|
+
ActionView::Template::Error (wrong number of arguments (0 for 1)):
|
691
|
+
1:
|
692
|
+
2: <%
|
693
|
+
3: dr_summary_url
|
694
|
+
4: params['time_span'] ||= 'Last week'
|
695
|
+
5: params['redeliveries'] ||= 'Include normally'
|
696
|
+
6:
|
697
|
+
|
698
|
+
|
699
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
|
700
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
|
701
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.4ms)
|
702
|
+
|
703
|
+
|
704
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:40:34 +1000
|
705
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
706
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (2.2ms)
|
707
|
+
Completed 500 Internal Server Error in 5ms
|
708
|
+
|
709
|
+
ActionView::Template::Error (can't convert Range into Hash):
|
710
|
+
1:
|
711
|
+
2: <%
|
712
|
+
3: dr_summary_url(1.weeks.ago..10.seconds.ago)
|
713
|
+
4: params['time_span'] ||= 'Last week'
|
714
|
+
5: params['redeliveries'] ||= 'Include normally'
|
715
|
+
6:
|
716
|
+
|
717
|
+
|
718
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
|
719
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
|
720
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.4ms)
|
721
|
+
|
722
|
+
|
723
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:40:42 +1000
|
724
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
725
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:42.125664' AND '2013-03-05 04:30:42.125714')[0m
|
726
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:42.125664' AND '2013-03-05 04:30:42.125714') GROUP BY gateway
|
727
|
+
SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:42.125664' AND '2013-03-05 04:30:42.125714') GROUP BY gateway
|
728
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (8.4ms)
|
729
|
+
Completed 500 Internal Server Error in 12ms
|
730
|
+
|
731
|
+
ActionView::Template::Error (SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:42.125664' AND '2013-03-05 04:30:42.125714') GROUP BY gateway):
|
732
|
+
72:
|
733
|
+
73: (you can select only gateways that have messages in this period)
|
734
|
+
74: </li>
|
735
|
+
75: <% ar_redeliveries.group(:gateway).count.each do |key, val| %>
|
736
|
+
76: <li class="<%= (key == params['gateway'] ? 'selected' : 'not_selected') -%>">
|
737
|
+
77: <%= link_to(key, dr_summary_url(:gateway => key) ) %>
|
738
|
+
78:
|
739
|
+
|
740
|
+
|
741
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
|
742
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
|
743
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.7ms)
|
744
|
+
|
745
|
+
|
746
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:40:46 +1000
|
747
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
748
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:46.730624' AND '2013-03-05 04:30:46.730734')[0m
|
749
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:46.730624' AND '2013-03-05 04:30:46.730734') GROUP BY gateway
|
750
|
+
SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:46.730624' AND '2013-03-05 04:30:46.730734') GROUP BY gateway
|
751
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (27.5ms)
|
752
|
+
Completed 500 Internal Server Error in 32ms
|
753
|
+
|
754
|
+
ActionView::Template::Error (SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:46.730624' AND '2013-03-05 04:30:46.730734') GROUP BY gateway):
|
755
|
+
72:
|
756
|
+
73: (you can select only gateways that have messages in this period)
|
757
|
+
74: </li>
|
758
|
+
75: <% ar_redeliveries.group(:gateway).count.each do |key, val| %>
|
759
|
+
76: <li class="<%= (key == params['gateway'] ? 'selected' : 'not_selected') -%>">
|
760
|
+
77: <%= link_to(key, dr_summary_url(:gateway => key) ) %>
|
761
|
+
78:
|
762
|
+
|
763
|
+
|
764
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
|
765
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
|
766
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.8ms)
|
767
|
+
|
768
|
+
|
769
|
+
Started GET "/action_smser/delivery_reports" for 127.0.0.1 at 2013-03-05 14:40:57 +1000
|
770
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
771
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:57.753814' AND '2013-03-05 04:30:57.753870')[0m
|
772
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:57.753814' AND '2013-03-05 04:30:57.753870') GROUP BY gateway
|
773
|
+
SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:57.753814' AND '2013-03-05 04:30:57.753870') GROUP BY gateway
|
774
|
+
Rendered /home/ohu/koodi/gems/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (6.9ms)
|
775
|
+
Completed 500 Internal Server Error in 10ms
|
776
|
+
|
777
|
+
ActionView::Template::Error (SQLite3::SQLException: no such column: gateway: SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-02-26 04:40:57.753814' AND '2013-03-05 04:30:57.753870') GROUP BY gateway):
|
778
|
+
72:
|
779
|
+
73: (you can select only gateways that have messages in this period)
|
780
|
+
74: </li>
|
781
|
+
75: <% ar_redeliveries.group(:gateway).count.each do |key, val| %>
|
782
|
+
76: <li class="<%= (key == params['gateway'] ? 'selected' : 'not_selected') -%>">
|
783
|
+
77: <%= link_to(key, dr_summary_url(:gateway => key) ) %>
|
784
|
+
78:
|
785
|
+
|
786
|
+
|
787
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
|
788
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
|
789
|
+
Rendered /home/ohu/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.4ms)
|