robocall 0.0.1

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.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +26 -0
  4. data/Rakefile +37 -0
  5. data/app/controllers/robocall/application_controller.rb +4 -0
  6. data/app/controllers/robocall/robocalls_controller.rb +87 -0
  7. data/app/helpers/robocall/application_helper.rb +4 -0
  8. data/app/models/robocall/robocall.rb +13 -0
  9. data/app/views/layouts/robocall/application.html.erb +14 -0
  10. data/app/views/robocall/robocalls/render.xml.erb +0 -0
  11. data/config/routes.rb +5 -0
  12. data/db/migrate/20130807225623_create_robocall_robocalls.rb +10 -0
  13. data/lib/robocall.rb +58 -0
  14. data/lib/robocall/engine.rb +12 -0
  15. data/lib/robocall/version.rb +3 -0
  16. data/lib/tasks/robocall_tasks.rake +4 -0
  17. data/spec/controllers/robocall/robocalls_controller_spec.rb +45 -0
  18. data/spec/dummy/README.rdoc +261 -0
  19. data/spec/dummy/Rakefile +7 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  21. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  22. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  23. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  24. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  25. data/spec/dummy/bin/bundle +3 -0
  26. data/spec/dummy/bin/rails +4 -0
  27. data/spec/dummy/bin/rake +4 -0
  28. data/spec/dummy/config.ru +4 -0
  29. data/spec/dummy/config/application.rb +59 -0
  30. data/spec/dummy/config/boot.rb +10 -0
  31. data/spec/dummy/config/database.yml +25 -0
  32. data/spec/dummy/config/environment.rb +5 -0
  33. data/spec/dummy/config/environments/development.rb +37 -0
  34. data/spec/dummy/config/environments/production.rb +67 -0
  35. data/spec/dummy/config/environments/test.rb +37 -0
  36. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  38. data/spec/dummy/config/initializers/inflections.rb +15 -0
  39. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  40. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  41. data/spec/dummy/config/initializers/session_store.rb +8 -0
  42. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/spec/dummy/config/locales/en.yml +5 -0
  44. data/spec/dummy/config/routes.rb +4 -0
  45. data/spec/dummy/db/development.sqlite3 +0 -0
  46. data/spec/dummy/db/schema.rb +23 -0
  47. data/spec/dummy/db/test.sqlite3 +0 -0
  48. data/spec/dummy/log/development.log +112 -0
  49. data/spec/dummy/log/test.log +455 -0
  50. data/spec/dummy/public/404.html +26 -0
  51. data/spec/dummy/public/422.html +26 -0
  52. data/spec/dummy/public/500.html +25 -0
  53. data/spec/dummy/public/favicon.ico +0 -0
  54. data/spec/dummy/script/rails +6 -0
  55. data/spec/factories/robocall_robocalls.rb +8 -0
  56. data/spec/lib/robocall.spec +10 -0
  57. data/spec/models/robocall/robocall_spec.rb +7 -0
  58. data/spec/routing/robocall/robocalls_routing_spec.rb +13 -0
  59. data/spec/spec_helper.rb +14 -0
  60. metadata +214 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,8 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :robocall_robocall, :class => 'Robocall' do
5
+ token "MyString"
6
+ xml "MyText"
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'robocall' do
4
+
5
+ it 'should be cool' do
6
+ end
7
+
8
+ end
9
+
10
+
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ module Robocall
4
+ describe Robocall do
5
+ pending "add some examples to (or delete) #{__FILE__}"
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ module Robocall
4
+ describe RobocallsController do
5
+ describe 'routing' do
6
+
7
+ it 'routes to #post' do
8
+ post('/robocalls/1/123a').should route_to('robocalls#update', :id => '1', :token => '123a')
9
+ end
10
+
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
3
+ require 'rspec/rails'
4
+ require 'rspec/autorun'
5
+ require 'factory_girl_rails'
6
+ Rails.backtrace_cleaner.remove_silencers!
7
+ # Load support files
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
9
+ RSpec.configure do |config|
10
+ config.mock_with :rspec
11
+ config.use_transactional_fixtures = true
12
+ config.infer_base_class_for_anonymous_controllers = false
13
+ config.order = "random"
14
+ end
metadata ADDED
@@ -0,0 +1,214 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: robocall
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Reto Stamm
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.13
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.13
27
+ - !ruby/object:Gem::Dependency
28
+ name: twilio-ruby
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
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
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: factory_girl_rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Provides all the infrastructure to send synthesized robocalls with Twilio.
84
+ email:
85
+ - reto.stamm@originate.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - app/controllers/robocall/application_controller.rb
91
+ - app/controllers/robocall/robocalls_controller.rb
92
+ - app/helpers/robocall/application_helper.rb
93
+ - app/models/robocall/robocall.rb
94
+ - app/views/layouts/robocall/application.html.erb
95
+ - app/views/robocall/robocalls/render.xml.erb
96
+ - config/routes.rb
97
+ - db/migrate/20130807225623_create_robocall_robocalls.rb
98
+ - lib/robocall/engine.rb
99
+ - lib/robocall/version.rb
100
+ - lib/robocall.rb
101
+ - lib/tasks/robocall_tasks.rake
102
+ - MIT-LICENSE
103
+ - Rakefile
104
+ - README.md
105
+ - spec/controllers/robocall/robocalls_controller_spec.rb
106
+ - spec/dummy/app/assets/javascripts/application.js
107
+ - spec/dummy/app/assets/stylesheets/application.css
108
+ - spec/dummy/app/controllers/application_controller.rb
109
+ - spec/dummy/app/helpers/application_helper.rb
110
+ - spec/dummy/app/views/layouts/application.html.erb
111
+ - spec/dummy/bin/bundle
112
+ - spec/dummy/bin/rails
113
+ - spec/dummy/bin/rake
114
+ - spec/dummy/config/application.rb
115
+ - spec/dummy/config/boot.rb
116
+ - spec/dummy/config/database.yml
117
+ - spec/dummy/config/environment.rb
118
+ - spec/dummy/config/environments/development.rb
119
+ - spec/dummy/config/environments/production.rb
120
+ - spec/dummy/config/environments/test.rb
121
+ - spec/dummy/config/initializers/backtrace_silencers.rb
122
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
123
+ - spec/dummy/config/initializers/inflections.rb
124
+ - spec/dummy/config/initializers/mime_types.rb
125
+ - spec/dummy/config/initializers/secret_token.rb
126
+ - spec/dummy/config/initializers/session_store.rb
127
+ - spec/dummy/config/initializers/wrap_parameters.rb
128
+ - spec/dummy/config/locales/en.yml
129
+ - spec/dummy/config/routes.rb
130
+ - spec/dummy/config.ru
131
+ - spec/dummy/db/development.sqlite3
132
+ - spec/dummy/db/schema.rb
133
+ - spec/dummy/db/test.sqlite3
134
+ - spec/dummy/log/development.log
135
+ - spec/dummy/log/test.log
136
+ - spec/dummy/public/404.html
137
+ - spec/dummy/public/422.html
138
+ - spec/dummy/public/500.html
139
+ - spec/dummy/public/favicon.ico
140
+ - spec/dummy/Rakefile
141
+ - spec/dummy/README.rdoc
142
+ - spec/dummy/script/rails
143
+ - spec/factories/robocall_robocalls.rb
144
+ - spec/lib/robocall.spec
145
+ - spec/models/robocall/robocall_spec.rb
146
+ - spec/routing/robocall/robocalls_routing_spec.rb
147
+ - spec/spec_helper.rb
148
+ homepage: https://github.com/Originate/robocall
149
+ licenses: []
150
+ metadata: {}
151
+ post_install_message:
152
+ rdoc_options: []
153
+ require_paths:
154
+ - lib
155
+ required_ruby_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ requirements: []
166
+ rubyforge_project:
167
+ rubygems_version: 2.0.3
168
+ signing_key:
169
+ specification_version: 4
170
+ summary: Easy way to send robocalls with Rails and Twilio.
171
+ test_files:
172
+ - spec/controllers/robocall/robocalls_controller_spec.rb
173
+ - spec/dummy/app/assets/javascripts/application.js
174
+ - spec/dummy/app/assets/stylesheets/application.css
175
+ - spec/dummy/app/controllers/application_controller.rb
176
+ - spec/dummy/app/helpers/application_helper.rb
177
+ - spec/dummy/app/views/layouts/application.html.erb
178
+ - spec/dummy/bin/bundle
179
+ - spec/dummy/bin/rails
180
+ - spec/dummy/bin/rake
181
+ - spec/dummy/config/application.rb
182
+ - spec/dummy/config/boot.rb
183
+ - spec/dummy/config/database.yml
184
+ - spec/dummy/config/environment.rb
185
+ - spec/dummy/config/environments/development.rb
186
+ - spec/dummy/config/environments/production.rb
187
+ - spec/dummy/config/environments/test.rb
188
+ - spec/dummy/config/initializers/backtrace_silencers.rb
189
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
190
+ - spec/dummy/config/initializers/inflections.rb
191
+ - spec/dummy/config/initializers/mime_types.rb
192
+ - spec/dummy/config/initializers/secret_token.rb
193
+ - spec/dummy/config/initializers/session_store.rb
194
+ - spec/dummy/config/initializers/wrap_parameters.rb
195
+ - spec/dummy/config/locales/en.yml
196
+ - spec/dummy/config/routes.rb
197
+ - spec/dummy/config.ru
198
+ - spec/dummy/db/development.sqlite3
199
+ - spec/dummy/db/schema.rb
200
+ - spec/dummy/db/test.sqlite3
201
+ - spec/dummy/log/development.log
202
+ - spec/dummy/log/test.log
203
+ - spec/dummy/public/404.html
204
+ - spec/dummy/public/422.html
205
+ - spec/dummy/public/500.html
206
+ - spec/dummy/public/favicon.ico
207
+ - spec/dummy/Rakefile
208
+ - spec/dummy/README.rdoc
209
+ - spec/dummy/script/rails
210
+ - spec/factories/robocall_robocalls.rb
211
+ - spec/lib/robocall.spec
212
+ - spec/models/robocall/robocall_spec.rb
213
+ - spec/routing/robocall/robocalls_routing_spec.rb
214
+ - spec/spec_helper.rb