action_smser 3.4.0 → 4.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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/action_smser/version.rb +1 -1
- metadata +25 -120
- data/test/action_smser_test.rb +0 -8
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/config/manifest.js +0 -1
- data/test/dummy/app/assets/javascripts/application.js +0 -7
- data/test/dummy/app/assets/stylesheets/application.css +0 -7
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/mailers/hello_smser.rb +0 -14
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/application.rb +0 -40
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -26
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -32
- data/test/dummy/config/environments/production.rb +0 -60
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/action_smser.rb +0 -11
- data/test/dummy/config/initializers/assets.rb +0 -12
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/git_ignored_passwords.rb +0 -15
- data/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/production.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +0 -34
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -7687
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -26
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/functional/action_smser/delivery_reports_controller_test.rb +0 -148
- data/test/integration/navigation_test.rb +0 -11
- data/test/test_helper.rb +0 -28
- data/test/unit/action_smser/base_test.rb +0 -105
- data/test/unit/action_smser/delivery_methods/delayed_job_test.rb +0 -53
- data/test/unit/action_smser/delivery_methods/nexmo_test.rb +0 -97
- data/test/unit/action_smser/delivery_methods/simple_http_test.rb +0 -48
- data/test/unit/action_smser/delivery_methods/smstrade_test.rb +0 -68
- data/test/unit/action_smser/delivery_methods/test_array_test.rb +0 -42
- data/test/unit/action_smser/delivery_report_test.rb +0 -100
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14ac6da4a2b5978887b298beac7c05f4e21542da3d8dde87a8c0f7e03ed9b647
|
|
4
|
+
data.tar.gz: 511795583e4735cc8d9a9ca29d09dea7385e5f26636f0419c3ff46a63133095e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a9be50179bb03a6bf3243ae9b5a8d23ede3cba3b48c8cf07c4a96f4af4f505a07ff7a4fba600ebb4ff067d9d0c29efa147c40cc900b718c45ac33c488fcc2fe
|
|
7
|
+
data.tar.gz: e46dbacbf9d5ff34336b0b04cdf0de930d71eb18eb340d071d9c2e0aed34de46b5b5f6f16b06ea0d48791cb795ae05cd5b66555d647f7402a1d8a4098a6f5bc4
|
data/README.md
CHANGED
|
@@ -230,8 +230,8 @@ end
|
|
|
230
230
|
Submit suggestions or feature requests as a GitHub Issue or Pull Request. Remember to update tests. Tests are quite extensive.
|
|
231
231
|
|
|
232
232
|
Check github actions for what environments are supported: https://github.com/holli/action_smser/blob/master/.github/workflows/ci.yaml and
|
|
233
|
-
https://github.com/holli/action_smser/actions
|
|
234
|
-
|
|
233
|
+
https://github.com/holli/action_smser/actions . See https://github.com/holli/action_smser/blob/master/CHANGELOG.md for changes and to see what
|
|
234
|
+
version to use with older Rails versions.
|
|
235
235
|
|
|
236
236
|
|
|
237
237
|
### Similar gems
|
data/lib/action_smser/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_smser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Olli Huotari
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: railties
|
|
@@ -16,14 +15,20 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '7.1'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '9'
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
26
|
- - ">="
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
28
|
+
version: '7.1'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '9'
|
|
27
32
|
- !ruby/object:Gem::Dependency
|
|
28
33
|
name: mocha
|
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -42,72 +47,72 @@ dependencies:
|
|
|
42
47
|
name: sqlite3
|
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
|
44
49
|
requirements:
|
|
45
|
-
- - "
|
|
50
|
+
- - ">="
|
|
46
51
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '1.
|
|
52
|
+
version: '1.4'
|
|
48
53
|
type: :development
|
|
49
54
|
prerelease: false
|
|
50
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
56
|
requirements:
|
|
52
|
-
- - "
|
|
57
|
+
- - ">="
|
|
53
58
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.
|
|
59
|
+
version: '1.4'
|
|
55
60
|
- !ruby/object:Gem::Dependency
|
|
56
61
|
name: rails
|
|
57
62
|
requirement: !ruby/object:Gem::Requirement
|
|
58
63
|
requirements:
|
|
59
64
|
- - ">="
|
|
60
65
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
66
|
+
version: '7.1'
|
|
62
67
|
type: :development
|
|
63
68
|
prerelease: false
|
|
64
69
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
70
|
requirements:
|
|
66
71
|
- - ">="
|
|
67
72
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
73
|
+
version: '7.1'
|
|
69
74
|
- !ruby/object:Gem::Dependency
|
|
70
75
|
name: delayed_job
|
|
71
76
|
requirement: !ruby/object:Gem::Requirement
|
|
72
77
|
requirements:
|
|
73
78
|
- - ">="
|
|
74
79
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
80
|
+
version: '4.1'
|
|
76
81
|
type: :development
|
|
77
82
|
prerelease: false
|
|
78
83
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
84
|
requirements:
|
|
80
85
|
- - ">="
|
|
81
86
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
87
|
+
version: '4.1'
|
|
83
88
|
- !ruby/object:Gem::Dependency
|
|
84
89
|
name: rails-controller-testing
|
|
85
90
|
requirement: !ruby/object:Gem::Requirement
|
|
86
91
|
requirements:
|
|
87
92
|
- - ">="
|
|
88
93
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0'
|
|
94
|
+
version: '1.0'
|
|
90
95
|
type: :development
|
|
91
96
|
prerelease: false
|
|
92
97
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
98
|
requirements:
|
|
94
99
|
- - ">="
|
|
95
100
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0'
|
|
101
|
+
version: '1.0'
|
|
97
102
|
- !ruby/object:Gem::Dependency
|
|
98
103
|
name: nokogiri
|
|
99
104
|
requirement: !ruby/object:Gem::Requirement
|
|
100
105
|
requirements:
|
|
101
106
|
- - ">="
|
|
102
107
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
108
|
+
version: '1.10'
|
|
104
109
|
type: :development
|
|
105
110
|
prerelease: false
|
|
106
111
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
112
|
requirements:
|
|
108
113
|
- - ">="
|
|
109
114
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
115
|
+
version: '1.10'
|
|
111
116
|
description: ActionSmser == SMS && ActionMailer. Simple way to use SMS (Short Message
|
|
112
117
|
Service) in the same way as ActionMailer. Includes also delivery reports and easy
|
|
113
118
|
way to add custom gateways (simple http and nexmo by default).
|
|
@@ -144,60 +149,10 @@ files:
|
|
|
144
149
|
- lib/action_smser/engine.rb
|
|
145
150
|
- lib/action_smser/version.rb
|
|
146
151
|
- lib/tasks/action_smser_tasks.rake
|
|
147
|
-
- test/action_smser_test.rb
|
|
148
|
-
- test/dummy/Rakefile
|
|
149
|
-
- test/dummy/app/assets/config/manifest.js
|
|
150
|
-
- test/dummy/app/assets/javascripts/application.js
|
|
151
|
-
- test/dummy/app/assets/stylesheets/application.css
|
|
152
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
153
|
-
- test/dummy/app/helpers/application_helper.rb
|
|
154
|
-
- test/dummy/app/mailers/hello_smser.rb
|
|
155
|
-
- test/dummy/app/views/layouts/application.html.erb
|
|
156
|
-
- test/dummy/config.ru
|
|
157
|
-
- test/dummy/config/application.rb
|
|
158
|
-
- test/dummy/config/boot.rb
|
|
159
|
-
- test/dummy/config/database.yml
|
|
160
|
-
- test/dummy/config/environment.rb
|
|
161
|
-
- test/dummy/config/environments/development.rb
|
|
162
|
-
- test/dummy/config/environments/production.rb
|
|
163
|
-
- test/dummy/config/environments/test.rb
|
|
164
|
-
- test/dummy/config/initializers/action_smser.rb
|
|
165
|
-
- test/dummy/config/initializers/assets.rb
|
|
166
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
167
|
-
- test/dummy/config/initializers/git_ignored_passwords.rb
|
|
168
|
-
- test/dummy/config/initializers/inflections.rb
|
|
169
|
-
- test/dummy/config/initializers/mime_types.rb
|
|
170
|
-
- test/dummy/config/initializers/secret_token.rb
|
|
171
|
-
- test/dummy/config/initializers/session_store.rb
|
|
172
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
173
|
-
- test/dummy/config/locales/en.yml
|
|
174
|
-
- test/dummy/config/routes.rb
|
|
175
|
-
- test/dummy/config/secrets.yml
|
|
176
|
-
- test/dummy/db/development.sqlite3
|
|
177
|
-
- test/dummy/db/production.sqlite3
|
|
178
|
-
- test/dummy/db/schema.rb
|
|
179
|
-
- test/dummy/db/test.sqlite3
|
|
180
|
-
- test/dummy/log/test.log
|
|
181
|
-
- test/dummy/public/404.html
|
|
182
|
-
- test/dummy/public/422.html
|
|
183
|
-
- test/dummy/public/500.html
|
|
184
|
-
- test/dummy/public/favicon.ico
|
|
185
|
-
- test/dummy/script/rails
|
|
186
|
-
- test/functional/action_smser/delivery_reports_controller_test.rb
|
|
187
|
-
- test/integration/navigation_test.rb
|
|
188
|
-
- test/test_helper.rb
|
|
189
|
-
- test/unit/action_smser/base_test.rb
|
|
190
|
-
- test/unit/action_smser/delivery_methods/delayed_job_test.rb
|
|
191
|
-
- test/unit/action_smser/delivery_methods/nexmo_test.rb
|
|
192
|
-
- test/unit/action_smser/delivery_methods/simple_http_test.rb
|
|
193
|
-
- test/unit/action_smser/delivery_methods/smstrade_test.rb
|
|
194
|
-
- test/unit/action_smser/delivery_methods/test_array_test.rb
|
|
195
|
-
- test/unit/action_smser/delivery_report_test.rb
|
|
196
152
|
homepage: https://github.com/holli/action_smser
|
|
197
153
|
licenses:
|
|
198
154
|
- MIT
|
|
199
155
|
metadata: {}
|
|
200
|
-
post_install_message:
|
|
201
156
|
rdoc_options: []
|
|
202
157
|
require_paths:
|
|
203
158
|
- lib
|
|
@@ -205,66 +160,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
205
160
|
requirements:
|
|
206
161
|
- - ">="
|
|
207
162
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: 3.
|
|
163
|
+
version: '3.1'
|
|
209
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
165
|
requirements:
|
|
211
166
|
- - ">="
|
|
212
167
|
- !ruby/object:Gem::Version
|
|
213
168
|
version: '0'
|
|
214
169
|
requirements: []
|
|
215
|
-
rubygems_version:
|
|
216
|
-
signing_key:
|
|
170
|
+
rubygems_version: 4.0.20
|
|
217
171
|
specification_version: 4
|
|
218
172
|
summary: ActionSmser == SMS && ActionMailer. Simple way to use SMS (Short Message
|
|
219
173
|
Service) in the same way as ActionMailer. Includes also delivery reports and easy
|
|
220
174
|
way to add custom gateways (simple http and nexmo by default).
|
|
221
|
-
test_files:
|
|
222
|
-
- test/action_smser_test.rb
|
|
223
|
-
- test/dummy/Rakefile
|
|
224
|
-
- test/dummy/app/assets/config/manifest.js
|
|
225
|
-
- test/dummy/app/assets/javascripts/application.js
|
|
226
|
-
- test/dummy/app/assets/stylesheets/application.css
|
|
227
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
228
|
-
- test/dummy/app/helpers/application_helper.rb
|
|
229
|
-
- test/dummy/app/mailers/hello_smser.rb
|
|
230
|
-
- test/dummy/app/views/layouts/application.html.erb
|
|
231
|
-
- test/dummy/config/application.rb
|
|
232
|
-
- test/dummy/config/boot.rb
|
|
233
|
-
- test/dummy/config/database.yml
|
|
234
|
-
- test/dummy/config/environment.rb
|
|
235
|
-
- test/dummy/config/environments/development.rb
|
|
236
|
-
- test/dummy/config/environments/production.rb
|
|
237
|
-
- test/dummy/config/environments/test.rb
|
|
238
|
-
- test/dummy/config/initializers/action_smser.rb
|
|
239
|
-
- test/dummy/config/initializers/assets.rb
|
|
240
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
241
|
-
- test/dummy/config/initializers/git_ignored_passwords.rb
|
|
242
|
-
- test/dummy/config/initializers/inflections.rb
|
|
243
|
-
- test/dummy/config/initializers/mime_types.rb
|
|
244
|
-
- test/dummy/config/initializers/secret_token.rb
|
|
245
|
-
- test/dummy/config/initializers/session_store.rb
|
|
246
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
247
|
-
- test/dummy/config/locales/en.yml
|
|
248
|
-
- test/dummy/config/routes.rb
|
|
249
|
-
- test/dummy/config/secrets.yml
|
|
250
|
-
- test/dummy/config.ru
|
|
251
|
-
- test/dummy/db/development.sqlite3
|
|
252
|
-
- test/dummy/db/production.sqlite3
|
|
253
|
-
- test/dummy/db/schema.rb
|
|
254
|
-
- test/dummy/db/test.sqlite3
|
|
255
|
-
- test/dummy/log/test.log
|
|
256
|
-
- test/dummy/public/404.html
|
|
257
|
-
- test/dummy/public/422.html
|
|
258
|
-
- test/dummy/public/500.html
|
|
259
|
-
- test/dummy/public/favicon.ico
|
|
260
|
-
- test/dummy/script/rails
|
|
261
|
-
- test/functional/action_smser/delivery_reports_controller_test.rb
|
|
262
|
-
- test/integration/navigation_test.rb
|
|
263
|
-
- test/test_helper.rb
|
|
264
|
-
- test/unit/action_smser/base_test.rb
|
|
265
|
-
- test/unit/action_smser/delivery_methods/delayed_job_test.rb
|
|
266
|
-
- test/unit/action_smser/delivery_methods/nexmo_test.rb
|
|
267
|
-
- test/unit/action_smser/delivery_methods/simple_http_test.rb
|
|
268
|
-
- test/unit/action_smser/delivery_methods/smstrade_test.rb
|
|
269
|
-
- test/unit/action_smser/delivery_methods/test_array_test.rb
|
|
270
|
-
- test/unit/action_smser/delivery_report_test.rb
|
|
175
|
+
test_files: []
|
data/test/action_smser_test.rb
DELETED
data/test/dummy/Rakefile
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env rake
|
|
2
|
-
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
3
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
4
|
-
|
|
5
|
-
require File.expand_path('../config/application', __FILE__)
|
|
6
|
-
|
|
7
|
-
Dummy::Application.load_tasks
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Nothing used
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
|
2
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
|
3
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
|
4
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
5
|
-
// the compiled file.
|
|
6
|
-
//
|
|
7
|
-
//= require_tree .
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
|
3
|
-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
|
5
|
-
*= require_self
|
|
6
|
-
*= require_tree .
|
|
7
|
-
*/
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
class HelloSmser < ActionSmser::Base
|
|
3
|
-
def hello(to, from, body)
|
|
4
|
-
sms(:to => to, :from => from, :body => body)
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
def hello_world()
|
|
8
|
-
sms(:to => "123", :from => '123', :body => 'hello world')
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
def hello_olli()
|
|
12
|
-
sms(:to => '358407573855', :from => 'ActionSmser', :body => 'Hello from action smser, encode ääkköset!#')
|
|
13
|
-
end
|
|
14
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
|
2
|
-
|
|
3
|
-
require 'rails/all'
|
|
4
|
-
|
|
5
|
-
Bundler.require
|
|
6
|
-
require "action_smser"
|
|
7
|
-
|
|
8
|
-
module Dummy
|
|
9
|
-
class Application < Rails::Application
|
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
|
11
|
-
# Application configuration should go into files in config/initializers
|
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
|
13
|
-
|
|
14
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
|
15
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
|
16
|
-
|
|
17
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
|
18
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
|
19
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
|
20
|
-
|
|
21
|
-
# Activate observers that should always be running.
|
|
22
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
|
23
|
-
|
|
24
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
25
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
26
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
|
27
|
-
|
|
28
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
29
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
30
|
-
# config.i18n.default_locale = :de
|
|
31
|
-
|
|
32
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
|
33
|
-
config.encoding = "utf-8"
|
|
34
|
-
|
|
35
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
|
36
|
-
config.filter_parameters += [:password]
|
|
37
|
-
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
data/test/dummy/config/boot.rb
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# SQLite version 3.x
|
|
2
|
-
# gem install sqlite3
|
|
3
|
-
#
|
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
-
# gem 'sqlite3'
|
|
6
|
-
development:
|
|
7
|
-
adapter: sqlite3
|
|
8
|
-
database: db/development.sqlite3
|
|
9
|
-
pool: 5
|
|
10
|
-
timeout: 5000
|
|
11
|
-
|
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
|
13
|
-
# re-generated from your development database when you run "rake".
|
|
14
|
-
# Do not set this db to the same as development or production.
|
|
15
|
-
test:
|
|
16
|
-
adapter: sqlite3
|
|
17
|
-
# database: ":memory:"
|
|
18
|
-
database: db/test.sqlite3
|
|
19
|
-
pool: 5
|
|
20
|
-
timeout: 5000
|
|
21
|
-
|
|
22
|
-
production:
|
|
23
|
-
adapter: sqlite3
|
|
24
|
-
database: db/production.sqlite3
|
|
25
|
-
pool: 5
|
|
26
|
-
timeout: 5000
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
Dummy::Application.configure do
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
|
3
|
-
|
|
4
|
-
# In the development environment your application's code is reloaded on
|
|
5
|
-
# every request. This slows down response time but is perfect for development
|
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
|
7
|
-
config.cache_classes = false
|
|
8
|
-
|
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
|
10
|
-
config.whiny_nils = true
|
|
11
|
-
|
|
12
|
-
# Show full error reports and disable caching
|
|
13
|
-
config.consider_all_requests_local = true
|
|
14
|
-
config.action_controller.perform_caching = false
|
|
15
|
-
|
|
16
|
-
# Don't care if the mailer can't send
|
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
|
18
|
-
|
|
19
|
-
# Print deprecation notices to the Rails logger
|
|
20
|
-
config.active_support.deprecation = :log
|
|
21
|
-
|
|
22
|
-
# Only use best-standards-support built into browsers
|
|
23
|
-
config.action_dispatch.best_standards_support = :builtin
|
|
24
|
-
|
|
25
|
-
# Do not compress assets
|
|
26
|
-
config.assets.compress = false
|
|
27
|
-
|
|
28
|
-
# Expands the lines which load the assets
|
|
29
|
-
config.assets.debug = true
|
|
30
|
-
|
|
31
|
-
config.eager_load = false
|
|
32
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
Dummy::Application.configure do
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
|
3
|
-
|
|
4
|
-
# Code is not reloaded between requests
|
|
5
|
-
config.cache_classes = true
|
|
6
|
-
|
|
7
|
-
# Full error reports are disabled and caching is turned on
|
|
8
|
-
config.consider_all_requests_local = false
|
|
9
|
-
config.action_controller.perform_caching = true
|
|
10
|
-
|
|
11
|
-
# Disable Rails's static asset server (Apache or nginx will already do this)
|
|
12
|
-
config.serve_static_assets = false
|
|
13
|
-
|
|
14
|
-
# Compress JavaScripts and CSS
|
|
15
|
-
config.assets.compress = true
|
|
16
|
-
|
|
17
|
-
# Don't fallback to assets pipeline if a precompiled asset is missed
|
|
18
|
-
config.assets.compile = false
|
|
19
|
-
|
|
20
|
-
# Generate digests for assets URLs
|
|
21
|
-
config.assets.digest = true
|
|
22
|
-
|
|
23
|
-
# Defaults to Rails.root.join("public/assets")
|
|
24
|
-
# config.assets.manifest = YOUR_PATH
|
|
25
|
-
|
|
26
|
-
# Specifies the header that your server uses for sending files
|
|
27
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
|
28
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
|
29
|
-
|
|
30
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
|
31
|
-
# config.force_ssl = true
|
|
32
|
-
|
|
33
|
-
# See everything in the log (default is :info)
|
|
34
|
-
# config.log_level = :debug
|
|
35
|
-
|
|
36
|
-
# Use a different logger for distributed setups
|
|
37
|
-
# config.logger = SyslogLogger.new
|
|
38
|
-
|
|
39
|
-
# Use a different cache store in production
|
|
40
|
-
# config.cache_store = :mem_cache_store
|
|
41
|
-
|
|
42
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
|
43
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
|
44
|
-
|
|
45
|
-
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
|
46
|
-
# config.assets.precompile += %w( search.js )
|
|
47
|
-
|
|
48
|
-
# Disable delivery errors, bad email addresses will be ignored
|
|
49
|
-
# config.action_mailer.raise_delivery_errors = false
|
|
50
|
-
|
|
51
|
-
# Enable threaded mode
|
|
52
|
-
# config.threadsafe!
|
|
53
|
-
|
|
54
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
55
|
-
# the I18n.default_locale when a translation can not be found)
|
|
56
|
-
config.i18n.fallbacks = true
|
|
57
|
-
|
|
58
|
-
# Send deprecation notices to registered listeners
|
|
59
|
-
config.active_support.deprecation = :notify
|
|
60
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
Dummy::Application.configure do
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
|
3
|
-
|
|
4
|
-
# The test environment is used exclusively to run your application's
|
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
|
8
|
-
config.cache_classes = true
|
|
9
|
-
|
|
10
|
-
# Configure static asset server for tests with Cache-Control for performance
|
|
11
|
-
config.public_file_server.enabled = false
|
|
12
|
-
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
|
13
|
-
|
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
|
15
|
-
config.whiny_nils = true
|
|
16
|
-
|
|
17
|
-
# Show full error reports and disable caching
|
|
18
|
-
config.consider_all_requests_local = true
|
|
19
|
-
config.action_controller.perform_caching = false
|
|
20
|
-
|
|
21
|
-
# Raise exceptions instead of rendering exception templates
|
|
22
|
-
config.action_dispatch.show_exceptions = false
|
|
23
|
-
|
|
24
|
-
# Disable request forgery protection in test environment
|
|
25
|
-
config.action_controller.allow_forgery_protection = false
|
|
26
|
-
|
|
27
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
|
28
|
-
# The :test delivery method accumulates sent emails in the
|
|
29
|
-
# ActionMailer::Base.deliveries array.
|
|
30
|
-
config.action_mailer.delivery_method = :test
|
|
31
|
-
|
|
32
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
|
33
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
34
|
-
# like if you have constraints or database-specific column types
|
|
35
|
-
# config.active_record.schema_format = :sql
|
|
36
|
-
|
|
37
|
-
# Print deprecation notices to the stderr
|
|
38
|
-
config.active_support.deprecation = :stderr
|
|
39
|
-
|
|
40
|
-
config.active_support.test_order = :random
|
|
41
|
-
config.eager_load = false
|
|
42
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#if Rails.env.development? || Rails.env.production?
|
|
3
|
-
#
|
|
4
|
-
# ActionSmser.delivery_options[:delivery_method] = :simple_http
|
|
5
|
-
# ActionSmser.delivery_options[:simple_http] = {
|
|
6
|
-
# :server => 'server_to_use', :username => 'username', :password => 'password',
|
|
7
|
-
# :use_ssl => true
|
|
8
|
-
# }
|
|
9
|
-
#
|
|
10
|
-
# # ActionSmser.delivery_options[:save_delivery_reports] = true
|
|
11
|
-
#end
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Version of your assets, change this if you want to expire all your assets.
|
|
4
|
-
# Rails.application.config.assets.version = "1.0"
|
|
5
|
-
|
|
6
|
-
# Add additional assets to the asset load path.
|
|
7
|
-
# Rails.application.config.assets.paths << Emoji.images_path
|
|
8
|
-
|
|
9
|
-
# Precompile additional assets.
|
|
10
|
-
# application.js, application.css, and all non-JS/CSS in the app/assets
|
|
11
|
-
# folder are already added.
|
|
12
|
-
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
|
5
|
-
|
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
if Rails.env.development?
|
|
3
|
-
|
|
4
|
-
ActionSmser.delivery_options[:delivery_method] = :simple_http
|
|
5
|
-
ActionSmser.delivery_options[:simple_http] = {
|
|
6
|
-
:server => 'smsapi1.patidure.net', :username => 'nimenhuuto', :password => 'kusyhf9i8y',
|
|
7
|
-
:use_ssl => true
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
ActionSmser.delivery_options[:delivery_method] = :nexmo
|
|
11
|
-
ActionSmser.delivery_options[:nexmo] = {
|
|
12
|
-
:username => '75378256', :password => "db051153"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
end
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Add new inflection rules using the following format
|
|
4
|
-
# (all these examples are active by default):
|
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
|
8
|
-
# inflect.irregular 'person', 'people'
|
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
|
10
|
-
# end
|