nps_surveys 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/nps_surveys/response.rb +3 -0
- data/config/initializers/defaults.rb +1 -0
- data/lib/nps_surveys.rb +1 -1
- data/lib/nps_surveys/version.rb +1 -1
- data/spec/controllers/nps_surveys/api_internal/responses_controller_spec.rb +2 -4
- data/spec/dummy/log/development.log +71 -0
- data/spec/dummy/log/test.log +156 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a74cc017e4ee09753961a88290bc25b39014b6c0
|
4
|
+
data.tar.gz: c2eaab839a1b3635c7a4f0a08d7711e4d20c3ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 812cb72b97508afe0dfb248bca38a68ca866f13d033ad1a6a80b7c76958e4dfdc8b44f5787179242b5ea72bb8aab274bb69ac68e23930635a504c75b22384714
|
7
|
+
data.tar.gz: ae1b66cb553863d582fa2a8ceae3bd8029f7e85eb9a20cf222787272dc3cd2ab4ada3478792e9b8efb014a8e833923a6fefe60a83d074e5ee2bfca7d0aaf24c5
|
@@ -3,6 +3,7 @@ NPSSurveys.route_namespace = :api_internal
|
|
3
3
|
NPSSurveys.route_path = 'api/internal'
|
4
4
|
NPSSurveys.route_scope = 'nps_surveys'
|
5
5
|
NPSSurveys.current_user = lambda { |controller| controller.send(:current_user) }
|
6
|
+
NPSSurveys.table_name = 'nps_surveys_responses'
|
6
7
|
|
7
8
|
ActiveSupport::Inflector.inflections do |inflect|
|
8
9
|
inflect.acronym 'NPS'
|
data/lib/nps_surveys.rb
CHANGED
data/lib/nps_surveys/version.rb
CHANGED
@@ -4,9 +4,7 @@ module NPSSurveys
|
|
4
4
|
describe ApiInternal::ResponsesController do
|
5
5
|
before(:each) do
|
6
6
|
user = FactoryGirl.create(:user)
|
7
|
-
NPSSurveys.current_user = lambda
|
8
|
-
user
|
9
|
-
end
|
7
|
+
NPSSurveys.current_user = lambda { |controller| user }
|
10
8
|
end
|
11
9
|
|
12
10
|
routes { Engine.routes }
|
@@ -16,7 +14,7 @@ module NPSSurveys
|
|
16
14
|
%w{ hola1 hola2 hola3 }.map do |s|
|
17
15
|
r = Response.new
|
18
16
|
r.survey = s
|
19
|
-
r.user_id = NPSSurveys.current_user.call.id
|
17
|
+
r.user_id = NPSSurveys.current_user.call(nil).id
|
20
18
|
r.save!
|
21
19
|
r
|
22
20
|
end
|
@@ -1 +1,72 @@
|
|
1
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
|
+
[1m[36m (1.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
5
|
+
[1m[35m (45.5ms)[0m DROP DATABASE IF EXISTS `nps_surveys_test`
|
6
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `nps_surveys_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
7
|
+
[1m[35m (28.5ms)[0m CREATE TABLE `nps_surveys_responses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `survey` varchar(255) NOT NULL, `user_id` int(11) NOT NULL, `score` int(11), `feedback` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
8
|
+
[1m[36m (23.9ms)[0m [1mCREATE INDEX `nps_surveys_responses_user_id_fk` ON `nps_surveys_responses` (`user_id`)[0m
|
9
|
+
[1m[35m (29.2ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
10
|
+
[1m[36m (74.7ms)[0m [1mALTER TABLE `nps_surveys_responses` ADD CONSTRAINT `nps_surveys_responses_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users`(id)[0m
|
11
|
+
[1m[35m (37.6ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
12
|
+
[1m[36m (65.7ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
13
|
+
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
14
|
+
[1m[36m (13.7ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160728080202')[0m
|
15
|
+
[1m[35m (6.9ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20160721092137')
|
16
|
+
[1m[36m (7.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160614145840')[0m
|
17
|
+
Connecting to database specified by database.yml
|
18
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
19
|
+
[1m[35m (42.6ms)[0m DROP DATABASE IF EXISTS `nps_surveys_test`
|
20
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `nps_surveys_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
21
|
+
[1m[35m (28.7ms)[0m CREATE TABLE `nps_surveys_responses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `survey` varchar(255) NOT NULL, `user_id` int(11) NOT NULL, `score` int(11), `feedback` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
22
|
+
[1m[36m (21.1ms)[0m [1mCREATE INDEX `nps_surveys_responses_user_id_fk` ON `nps_surveys_responses` (`user_id`)[0m
|
23
|
+
[1m[35m (27.9ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
24
|
+
[1m[36m (116.1ms)[0m [1mALTER TABLE `nps_surveys_responses` ADD CONSTRAINT `nps_surveys_responses_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users`(id)[0m
|
25
|
+
[1m[35m (47.9ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
26
|
+
[1m[36m (69.7ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
27
|
+
[1m[35m (0.3ms)[0m SELECT version FROM `schema_migrations`
|
28
|
+
[1m[36m (6.0ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160728080202')[0m
|
29
|
+
[1m[35m (6.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20160721092137')
|
30
|
+
[1m[36m (5.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160614145840')[0m
|
31
|
+
Connecting to database specified by database.yml
|
32
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
33
|
+
[1m[35m (44.2ms)[0m DROP DATABASE IF EXISTS `nps_surveys_test`
|
34
|
+
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `nps_surveys_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
35
|
+
[1m[35m (30.3ms)[0m CREATE TABLE `nps_surveys_responses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `survey` varchar(255) NOT NULL, `user_id` int(11) NOT NULL, `score` int(11), `feedback` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
36
|
+
[1m[36m (20.6ms)[0m [1mCREATE INDEX `nps_surveys_responses_user_id_fk` ON `nps_surveys_responses` (`user_id`)[0m
|
37
|
+
[1m[35m (30.7ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
38
|
+
[1m[36m (76.8ms)[0m [1mALTER TABLE `nps_surveys_responses` ADD CONSTRAINT `nps_surveys_responses_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users`(id)[0m
|
39
|
+
[1m[35m (29.2ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
40
|
+
[1m[36m (41.0ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
41
|
+
[1m[35m (0.1ms)[0m SELECT version FROM `schema_migrations`
|
42
|
+
[1m[36m (3.8ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160728080202')[0m
|
43
|
+
[1m[35m (3.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20160721092137')
|
44
|
+
[1m[36m (4.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160614145840')[0m
|
45
|
+
Connecting to database specified by database.yml
|
46
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
47
|
+
[1m[35m (41.0ms)[0m DROP DATABASE IF EXISTS `nps_surveys_test`
|
48
|
+
[1m[36m (0.2ms)[0m [1mCREATE DATABASE `nps_surveys_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
49
|
+
[1m[35m (28.9ms)[0m CREATE TABLE `nps_surveys_responses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `survey` varchar(255) NOT NULL, `user_id` int(11) NOT NULL, `score` int(11), `feedback` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
50
|
+
[1m[36m (20.8ms)[0m [1mCREATE INDEX `nps_surveys_responses_user_id_fk` ON `nps_surveys_responses` (`user_id`)[0m
|
51
|
+
[1m[35m (29.7ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
52
|
+
[1m[36m (97.3ms)[0m [1mALTER TABLE `nps_surveys_responses` ADD CONSTRAINT `nps_surveys_responses_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users`(id)[0m
|
53
|
+
[1m[35m (46.4ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
54
|
+
[1m[36m (74.2ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
55
|
+
[1m[35m (0.4ms)[0m SELECT version FROM `schema_migrations`
|
56
|
+
[1m[36m (6.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160728080202')[0m
|
57
|
+
[1m[35m (5.1ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20160721092137')
|
58
|
+
[1m[36m (6.9ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160614145840')[0m
|
59
|
+
Connecting to database specified by database.yml
|
60
|
+
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
61
|
+
[1m[35m (153.4ms)[0m DROP DATABASE IF EXISTS `nps_surveys_test`
|
62
|
+
[1m[36m (0.5ms)[0m [1mCREATE DATABASE `nps_surveys_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
63
|
+
[1m[35m (34.1ms)[0m CREATE TABLE `nps_surveys_responses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `survey` varchar(255) NOT NULL, `user_id` int(11) NOT NULL, `score` int(11), `feedback` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
64
|
+
[1m[36m (23.4ms)[0m [1mCREATE INDEX `nps_surveys_responses_user_id_fk` ON `nps_surveys_responses` (`user_id`)[0m
|
65
|
+
[1m[35m (32.5ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255), `password` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
66
|
+
[1m[36m (78.7ms)[0m [1mALTER TABLE `nps_surveys_responses` ADD CONSTRAINT `nps_surveys_responses_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users`(id)[0m
|
67
|
+
[1m[35m (32.3ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
68
|
+
[1m[36m (46.3ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
69
|
+
[1m[35m (0.4ms)[0m SELECT version FROM `schema_migrations`
|
70
|
+
[1m[36m (7.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160728080202')[0m
|
71
|
+
[1m[35m (8.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20160721092137')
|
72
|
+
[1m[36m (10.0ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160614145840')[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -182,3 +182,159 @@ Completed 200 OK in 11.1ms (Views: 0.3ms | ActiveRecord: 8.5ms)
|
|
182
182
|
Processing by NPSSurveys::ApiInternal::ResponsesController#index as HTML
|
183
183
|
[1m[35mNPSSurveys::Response Load (0.3ms)[0m SELECT `nps_surveys_responses`.* FROM `nps_surveys_responses` WHERE `nps_surveys_responses`.`user_id` = 4
|
184
184
|
Completed 200 OK in 4.0ms (Views: 0.1ms | ActiveRecord: 0.3ms)
|
185
|
+
Connecting to database specified by database.yml
|
186
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
187
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:08:23', 'gandhi_1', 'dragons22', '2016-08-22 10:08:23')
|
188
|
+
[1m[36m (4.4ms)[0m [1mCOMMIT[0m
|
189
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
190
|
+
Parameters: {"score"=>"4"}
|
191
|
+
Completed 500 Internal Server Error in 6.4ms
|
192
|
+
[1m[35m (0.1ms)[0m BEGIN
|
193
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:08:23', 'gandhi_2', 'dragons22', '2016-08-22 10:08:23')[0m
|
194
|
+
[1m[35m (4.5ms)[0m COMMIT
|
195
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
196
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
197
|
+
Completed 500 Internal Server Error in 0.3ms
|
198
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
199
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:08:23', 'gandhi_3', 'dragons22', '2016-08-22 10:08:23')
|
200
|
+
[1m[36m (4.1ms)[0m [1mCOMMIT[0m
|
201
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
202
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
203
|
+
Completed 500 Internal Server Error in 0.7ms
|
204
|
+
[1m[35m (0.1ms)[0m BEGIN
|
205
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:08:23', 'gandhi_4', 'dragons22', '2016-08-22 10:08:23')[0m
|
206
|
+
[1m[35m (4.0ms)[0m COMMIT
|
207
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
208
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:08:23', NULL, NULL, 'hola1', '2016-08-22 10:08:23', 4)
|
209
|
+
[1m[36m (3.9ms)[0m [1mCOMMIT[0m
|
210
|
+
[1m[35m (0.1ms)[0m BEGIN
|
211
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:08:23', NULL, NULL, 'hola2', '2016-08-22 10:08:23', 4)[0m
|
212
|
+
[1m[35m (7.7ms)[0m COMMIT
|
213
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
214
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:08:23', NULL, NULL, 'hola3', '2016-08-22 10:08:23', 4)
|
215
|
+
[1m[36m (4.0ms)[0m [1mCOMMIT[0m
|
216
|
+
[1m[35m (0.1ms)[0m BEGIN
|
217
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:08:23', 'gandhi_5', 'dragons22', '2016-08-22 10:08:23')[0m
|
218
|
+
[1m[35m (4.4ms)[0m COMMIT
|
219
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
220
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:08:23', NULL, NULL, 'hola4', '2016-08-22 10:08:23', 5)
|
221
|
+
[1m[36m (3.9ms)[0m [1mCOMMIT[0m
|
222
|
+
[1m[35m (0.1ms)[0m BEGIN
|
223
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:08:23', 'gandhi_6', 'dragons22', '2016-08-22 10:08:23')[0m
|
224
|
+
[1m[35m (4.0ms)[0m COMMIT
|
225
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#index as HTML
|
226
|
+
Completed 500 Internal Server Error in 0.8ms
|
227
|
+
Connecting to database specified by database.yml
|
228
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
229
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:08', 'gandhi_1', 'dragons22', '2016-08-22 10:09:08')
|
230
|
+
[1m[36m (9.4ms)[0m [1mCOMMIT[0m
|
231
|
+
[1m[35m (0.1ms)[0m BEGIN
|
232
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:08', 'gandhi_2', 'dragons22', '2016-08-22 10:09:08')[0m
|
233
|
+
[1m[35m (7.2ms)[0m COMMIT
|
234
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
235
|
+
Parameters: {"score"=>"4"}
|
236
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
237
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
238
|
+
Completed 422 Unprocessable Entity in 11.3ms (Views: 0.7ms | ActiveRecord: 0.2ms)
|
239
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
240
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:08', 'gandhi_3', 'dragons22', '2016-08-22 10:09:08')
|
241
|
+
[1m[36m (9.3ms)[0m [1mCOMMIT[0m
|
242
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
243
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
244
|
+
[1m[35m (0.1ms)[0m BEGIN
|
245
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:09:08', NULL, 4, 'hola', '2016-08-22 10:09:08', 3)[0m
|
246
|
+
[1m[35m (5.9ms)[0m COMMIT
|
247
|
+
Completed 200 OK in 9.6ms (Views: 0.6ms | ActiveRecord: 6.2ms)
|
248
|
+
[1m[36mNPSSurveys::Response Load (0.3ms)[0m [1mSELECT `nps_surveys_responses`.* FROM `nps_surveys_responses` ORDER BY `nps_surveys_responses`.`id` DESC LIMIT 1[0m
|
249
|
+
[1m[35m (0.1ms)[0m BEGIN
|
250
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:08', 'gandhi_4', 'dragons22', '2016-08-22 10:09:08')[0m
|
251
|
+
[1m[35m (7.2ms)[0m COMMIT
|
252
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
253
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
254
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
255
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:09:08', NULL, 4, 'hola', '2016-08-22 10:09:08', 4)
|
256
|
+
[1m[36m (12.7ms)[0m [1mCOMMIT[0m
|
257
|
+
Completed 200 OK in 15.4ms (Views: 0.6ms | ActiveRecord: 13.0ms)
|
258
|
+
Connecting to database specified by database.yml
|
259
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
260
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:57', 'gandhi_1', 'dragons22', '2016-08-22 10:09:57')
|
261
|
+
[1m[36m (4.2ms)[0m [1mCOMMIT[0m
|
262
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
263
|
+
Parameters: {"score"=>"4"}
|
264
|
+
[1m[35m (0.1ms)[0m BEGIN
|
265
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
266
|
+
Completed 422 Unprocessable Entity in 16.8ms (Views: 0.7ms | ActiveRecord: 1.4ms)
|
267
|
+
[1m[35m (0.1ms)[0m BEGIN
|
268
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:57', 'gandhi_2', 'dragons22', '2016-08-22 10:09:57')[0m
|
269
|
+
[1m[35m (5.1ms)[0m COMMIT
|
270
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
271
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
272
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
273
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:09:57', NULL, 4, 'hola', '2016-08-22 10:09:57', 2)
|
274
|
+
[1m[36m (3.0ms)[0m [1mCOMMIT[0m
|
275
|
+
Completed 200 OK in 7.0ms (Views: 0.8ms | ActiveRecord: 3.4ms)
|
276
|
+
[1m[35mNPSSurveys::Response Load (0.3ms)[0m SELECT `nps_surveys_responses`.* FROM `nps_surveys_responses` ORDER BY `nps_surveys_responses`.`id` DESC LIMIT 1
|
277
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
278
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:57', 'gandhi_3', 'dragons22', '2016-08-22 10:09:57')
|
279
|
+
[1m[36m (5.0ms)[0m [1mCOMMIT[0m
|
280
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
281
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
282
|
+
[1m[35m (0.1ms)[0m BEGIN
|
283
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:09:57', NULL, 4, 'hola', '2016-08-22 10:09:57', 3)[0m
|
284
|
+
[1m[35m (7.8ms)[0m COMMIT
|
285
|
+
Completed 200 OK in 10.8ms (Views: 0.3ms | ActiveRecord: 8.2ms)
|
286
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
287
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:09:57', 'gandhi_4', 'dragons22', '2016-08-22 10:09:57')
|
288
|
+
[1m[36m (5.2ms)[0m [1mCOMMIT[0m
|
289
|
+
Connecting to database specified by database.yml
|
290
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:10:17', 'gandhi_1', 'dragons22', '2016-08-22 10:10:17')
|
292
|
+
[1m[36m (5.2ms)[0m [1mCOMMIT[0m
|
293
|
+
[1m[35m (0.1ms)[0m BEGIN
|
294
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:10:17', NULL, NULL, 'hola1', '2016-08-22 10:10:17', 1)[0m
|
295
|
+
[1m[35m (2.9ms)[0m COMMIT
|
296
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
297
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:10:17', NULL, NULL, 'hola2', '2016-08-22 10:10:17', 1)
|
298
|
+
[1m[36m (5.1ms)[0m [1mCOMMIT[0m
|
299
|
+
[1m[35m (0.1ms)[0m BEGIN
|
300
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:10:17', NULL, NULL, 'hola3', '2016-08-22 10:10:17', 1)[0m
|
301
|
+
[1m[35m (2.9ms)[0m COMMIT
|
302
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
303
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:10:17', 'gandhi_2', 'dragons22', '2016-08-22 10:10:17')
|
304
|
+
[1m[36m (8.3ms)[0m [1mCOMMIT[0m
|
305
|
+
[1m[35m (0.1ms)[0m BEGIN
|
306
|
+
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:10:17', NULL, NULL, 'hola4', '2016-08-22 10:10:17', 2)[0m
|
307
|
+
[1m[35m (2.9ms)[0m COMMIT
|
308
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
309
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:10:17', 'gandhi_3', 'dragons22', '2016-08-22 10:10:17')
|
310
|
+
[1m[36m (5.2ms)[0m [1mCOMMIT[0m
|
311
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#index as HTML
|
312
|
+
[1m[35mNPSSurveys::Response Load (0.4ms)[0m SELECT `nps_surveys_responses`.* FROM `nps_surveys_responses` WHERE `nps_surveys_responses`.`user_id` = 1
|
313
|
+
Completed 200 OK in 10.2ms (Views: 0.1ms | ActiveRecord: 0.4ms)
|
314
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
315
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:10:17', 'gandhi_4', 'dragons22', '2016-08-22 10:10:17')
|
316
|
+
[1m[36m (2.8ms)[0m [1mCOMMIT[0m
|
317
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
318
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
319
|
+
[1m[35m (0.1ms)[0m BEGIN
|
320
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:10:17', NULL, 4, 'hola', '2016-08-22 10:10:17', 4)[0m
|
321
|
+
[1m[35m (5.1ms)[0m COMMIT
|
322
|
+
Completed 200 OK in 8.4ms (Views: 0.5ms | ActiveRecord: 5.5ms)
|
323
|
+
[1m[36mNPSSurveys::Response Load (0.3ms)[0m [1mSELECT `nps_surveys_responses`.* FROM `nps_surveys_responses` ORDER BY `nps_surveys_responses`.`id` DESC LIMIT 1[0m
|
324
|
+
[1m[35m (0.1ms)[0m BEGIN
|
325
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:10:17', 'gandhi_5', 'dragons22', '2016-08-22 10:10:17')[0m
|
326
|
+
[1m[35m (2.6ms)[0m COMMIT
|
327
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
328
|
+
Parameters: {"survey"=>"hola", "score"=>"4"}
|
329
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
330
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `nps_surveys_responses` (`created_at`, `feedback`, `score`, `survey`, `updated_at`, `user_id`) VALUES ('2016-08-22 10:10:17', NULL, 4, 'hola', '2016-08-22 10:10:17', 5)
|
331
|
+
[1m[36m (5.0ms)[0m [1mCOMMIT[0m
|
332
|
+
Completed 200 OK in 9.3ms (Views: 1.7ms | ActiveRecord: 5.4ms)
|
333
|
+
[1m[35m (0.2ms)[0m BEGIN
|
334
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`created_at`, `login`, `password`, `updated_at`) VALUES ('2016-08-22 10:10:17', 'gandhi_6', 'dragons22', '2016-08-22 10:10:17')[0m
|
335
|
+
[1m[35m (3.3ms)[0m COMMIT
|
336
|
+
Processing by NPSSurveys::ApiInternal::ResponsesController#create as HTML
|
337
|
+
Parameters: {"score"=>"4"}
|
338
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
339
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
340
|
+
Completed 422 Unprocessable Entity in 16.4ms (Views: 1.2ms | ActiveRecord: 0.4ms)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nps_surveys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redbooth team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|