short_message 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.
- data/MIT-LICENSE +20 -0
- data/README.md +25 -0
- data/Rakefile +27 -0
- data/app/controllers/short_message/application_controller.rb +4 -0
- data/app/helpers/short_message/application_helper.rb +4 -0
- data/app/mailers/short_message/mailer.rb +16 -0
- data/app/models/short_message/message.rb +85 -0
- data/config/locales/de.yml +12 -0
- data/config/locales/en.yml +12 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20130308133457_create_short_message_messages.rb +13 -0
- data/lib/generators/short_message/install_generator.rb +12 -0
- data/lib/generators/short_message/templates/config/initializers/short_message.rb +18 -0
- data/lib/short_message/config.rb +37 -0
- data/lib/short_message/engine.rb +16 -0
- data/lib/short_message/version.rb +3 -0
- data/lib/short_message.rb +5 -0
- data/lib/tasks/short_message_tasks.rake +4 -0
- data/spec/config_helper.rb +15 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.example.yml +42 -0
- data/spec/dummy/config/database.yml +9 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/schema.rb +26 -0
- data/spec/dummy/log/test.log +292 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/factories/short_message_messages.rb +17 -0
- data/spec/mailers/short_message/mailer_spec.rb +64 -0
- data/spec/models/short_message/config_spec.rb +17 -0
- data/spec/models/short_message/message_spec.rb +52 -0
- data/spec/spec_helper.rb +21 -0
- metadata +265 -0
@@ -0,0 +1,292 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
Connecting to database specified by database.yml
|
6
|
+
[1m[36m (139.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
7
|
+
[1m[35m (329.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
8
|
+
[1m[36m (2.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
9
|
+
Migrating to CreateShortMessageMessages (20130308133457)
|
10
|
+
[1m[35m (104.4ms)[0m CREATE TABLE `short_message_messages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `message_key` varchar(255), `sender` varchar(255), `recipient` varchar(255), `status_code` int(11), `text` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
11
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130308133457')[0m
|
12
|
+
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
18
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
19
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
20
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
21
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
22
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
24
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
25
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
26
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32
|
+
Connecting to database specified by database.yml
|
33
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
34
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
35
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
36
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
37
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
38
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
39
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
41
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
42
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
43
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
44
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
45
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
46
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
47
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
48
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
49
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
50
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
51
|
+
Connecting to database specified by database.yml
|
52
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
53
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
54
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
55
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
56
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
57
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
58
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
59
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
60
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
61
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
62
|
+
Connecting to database specified by database.yml
|
63
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
64
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
65
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
66
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
67
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
68
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
69
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
70
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
71
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
72
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
73
|
+
Connecting to database specified by database.yml
|
74
|
+
Connecting to database specified by database.yml
|
75
|
+
Connecting to database specified by database.yml
|
76
|
+
Connecting to database specified by database.yml
|
77
|
+
Connecting to database specified by database.yml
|
78
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
79
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
80
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
81
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
82
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
83
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
84
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
85
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
86
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
87
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
88
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
89
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
90
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
91
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
92
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
93
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
94
|
+
Connecting to database specified by database.yml
|
95
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
96
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
97
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
98
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
99
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
100
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
101
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
102
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
103
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
104
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
105
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
107
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
108
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
109
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
110
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
111
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
112
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
113
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
114
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
115
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
116
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
117
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
118
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
119
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
120
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
121
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
122
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
123
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
124
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
125
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
126
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
127
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
128
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
129
|
+
Connecting to database specified by database.yml
|
130
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
131
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
132
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
133
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
134
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
135
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
136
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
137
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
138
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
139
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
140
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
141
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
142
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
143
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
144
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
145
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
146
|
+
Connecting to database specified by database.yml
|
147
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
148
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
149
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
150
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
151
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
152
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
153
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
154
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
155
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
156
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
157
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
158
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
159
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
160
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
161
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
162
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
163
|
+
Connecting to database specified by database.yml
|
164
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
165
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
166
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
167
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
168
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
169
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
170
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
171
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
172
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
173
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
174
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
175
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
176
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
177
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
178
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
179
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
180
|
+
Connecting to database specified by database.yml
|
181
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
182
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
183
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
184
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
185
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
186
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
187
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
188
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
189
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
190
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
191
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
192
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
193
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
194
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
195
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
196
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
197
|
+
Connecting to database specified by database.yml
|
198
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
199
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
200
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
201
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
202
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
203
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
204
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
205
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
206
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
207
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
208
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
209
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
210
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
211
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
212
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
213
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
214
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
215
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
216
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
217
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
218
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
219
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
220
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
221
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
222
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
223
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
224
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
225
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
226
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
227
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
228
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
229
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
230
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
231
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
232
|
+
Connecting to database specified by database.yml
|
233
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
234
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
235
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
236
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
237
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
238
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
239
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
240
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
241
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
242
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
243
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
244
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
245
|
+
Connecting to database specified by database.yml
|
246
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
247
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
248
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
249
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
250
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
251
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
252
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
253
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
254
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
255
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
256
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
257
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
258
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
259
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
260
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
261
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
262
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
263
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
264
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
265
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
266
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
267
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
268
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
269
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
270
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
271
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
272
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
273
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
274
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
275
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
276
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
277
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
278
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
279
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
280
|
+
Connecting to database specified by database.yml
|
281
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
282
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
283
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
284
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
285
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
286
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
287
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
288
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
289
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
291
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
292
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
@@ -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,17 @@
|
|
1
|
+
# Read about factories at https://github.com/thoughtbot/factory_girl
|
2
|
+
|
3
|
+
FactoryGirl.define do
|
4
|
+
factory :short_message_message, :class => 'Message' do
|
5
|
+
message_key "MyString"
|
6
|
+
sender "MyString"
|
7
|
+
recipient "MyString"
|
8
|
+
status_code 1
|
9
|
+
text "MyText"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
FactoryGirl.define do
|
14
|
+
factory :message, class: ShortMessage::Message do
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
module ShortMessage
|
4
|
+
describe Mailer do
|
5
|
+
describe "reload notification" do
|
6
|
+
ShortMessage.configure do |config|
|
7
|
+
config.reload_notification_email = "webmaster@your-domain.com"
|
8
|
+
config.default_mail_sender = "webmaster@your-domain.com"
|
9
|
+
end
|
10
|
+
|
11
|
+
amount = 20
|
12
|
+
|
13
|
+
let(:mail) { ShortMessage::Mailer.recharge_notification amount }
|
14
|
+
|
15
|
+
it "renders the subject" do
|
16
|
+
mail.subject.should == "SMS credit recharged"
|
17
|
+
end
|
18
|
+
|
19
|
+
it "renders the sender email" do
|
20
|
+
mail.from.should == ["webmaster@your-domain.com"]
|
21
|
+
end
|
22
|
+
|
23
|
+
it "renders the recipient email" do
|
24
|
+
mail.to.should == ["webmaster@your-domain.com"]
|
25
|
+
end
|
26
|
+
|
27
|
+
it "contains the amount in the body" do
|
28
|
+
mail.body.encoded.should match(amount.to_s)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe "voucher notification" do
|
33
|
+
ShortMessage.configure do |config|
|
34
|
+
config.user_id = "123456789abcdefghijklmnopq"
|
35
|
+
config.voucher_notification_email = "give-me-money@your-domain.com"
|
36
|
+
config.default_mail_sender = "webmaster@your-domain.com"
|
37
|
+
end
|
38
|
+
|
39
|
+
amount = 20
|
40
|
+
|
41
|
+
let(:mail) { ShortMessage::Mailer.voucher_notification amount }
|
42
|
+
|
43
|
+
it "renders the subject" do
|
44
|
+
mail.subject.should == "SMS credit recharged, please create a voucher"
|
45
|
+
end
|
46
|
+
|
47
|
+
it "renders the sender email" do
|
48
|
+
mail.from.should == ["webmaster@your-domain.com"]
|
49
|
+
end
|
50
|
+
|
51
|
+
it "renders the recipient email" do
|
52
|
+
mail.to.should == ["give-me-money@your-domain.com"]
|
53
|
+
end
|
54
|
+
|
55
|
+
it "contains the amount in the body" do
|
56
|
+
mail.body.encoded.should match(amount.to_s)
|
57
|
+
end
|
58
|
+
|
59
|
+
it "contains the customer in the body" do
|
60
|
+
mail.body.encoded.should match(amount.to_s)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|