shortenizer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +23 -0
  4. data/app/assets/javascripts/shortenizer/application.js +28 -0
  5. data/app/assets/stylesheets/shortenizer/application.css +123 -0
  6. data/app/controllers/shortenizer/application_controller.rb +4 -0
  7. data/app/controllers/shortenizer/u_controller.rb +36 -0
  8. data/app/helpers/shortenizer/application_helper.rb +4 -0
  9. data/app/models/shortenizer/url.rb +19 -0
  10. data/app/presenters/shortenizer/url_presenter.rb +23 -0
  11. data/app/views/layouts/shortenizer/application.html.erb +19 -0
  12. data/app/views/shortenizer/u/new.html.erb +4 -0
  13. data/app/views/shortenizer/u/show.html.erb +7 -0
  14. data/config/routes.rb +8 -0
  15. data/db/migrate/20141015221054_add_shortenizer_urls_table.rb +8 -0
  16. data/lib/shortenizer.rb +4 -0
  17. data/lib/shortenizer/engine.rb +26 -0
  18. data/lib/shortenizer/mount_point.rb +13 -0
  19. data/lib/shortenizer/version.rb +3 -0
  20. data/lib/tasks/shortenizer_tasks.rake +4 -0
  21. data/spec/dummy/README.rdoc +28 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  24. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  26. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/bin/bundle +3 -0
  29. data/spec/dummy/bin/rails +4 -0
  30. data/spec/dummy/bin/rake +4 -0
  31. data/spec/dummy/config.ru +4 -0
  32. data/spec/dummy/config/application.rb +29 -0
  33. data/spec/dummy/config/boot.rb +5 -0
  34. data/spec/dummy/config/database.yml +25 -0
  35. data/spec/dummy/config/environment.rb +5 -0
  36. data/spec/dummy/config/environments/development.rb +37 -0
  37. data/spec/dummy/config/environments/production.rb +82 -0
  38. data/spec/dummy/config/environments/test.rb +39 -0
  39. data/spec/dummy/config/initializers/assets.rb +8 -0
  40. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  42. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  43. data/spec/dummy/config/initializers/inflections.rb +16 -0
  44. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  45. data/spec/dummy/config/initializers/session_store.rb +3 -0
  46. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/spec/dummy/config/locales/en.yml +23 -0
  48. data/spec/dummy/config/routes.rb +4 -0
  49. data/spec/dummy/config/secrets.yml +22 -0
  50. data/spec/dummy/db/development.sqlite3 +0 -0
  51. data/spec/dummy/db/schema.rb +21 -0
  52. data/spec/dummy/db/test.sqlite3 +0 -0
  53. data/spec/dummy/log/development.log +37724 -0
  54. data/spec/dummy/log/test.log +280 -0
  55. data/spec/dummy/public/404.html +67 -0
  56. data/spec/dummy/public/422.html +67 -0
  57. data/spec/dummy/public/500.html +66 -0
  58. data/spec/dummy/public/favicon.ico +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/0e145c8d9b7a337921cad6e2ac10daf0 +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/11cd522cee6431afd456e86bf23b3031 +0 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/143ca05c549c1126abdfc78e4d67b8fa +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/20271ea5ca35664532b622e5bb70f88c +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/2729c3a89e31f64cb31d0721f47afa32 +0 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/3b30147cb780a01beca487d79f0d77e2 +0 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/5717abda788abeec36709efb6ba01d38 +0 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/58a64848570974f113ccd648898d8b17 +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/6f127c6d3ff02ab7333529a682402528 +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sprockets/6f7d6444d8ecd290fc66fcd3cd678225 +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sprockets/737a1995fb8c894e2735c7266df2e7a6 +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/80975fe0bf6c19e4c0044b412114b5e2 +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/868252c279d2a5cc2ae71197271a0a9c +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/98afa9eb164be3902512f323968479b4 +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/a0de67fb651755110dd375bfab2c5272 +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/a1ddc0bf2ca692563c4dbfc805d2f617 +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/a483a47ea3543ee94c46303f1b49db5d +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/af1be136c22c7c7a9f6f94b2f78f3b33 +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/c7809fd0d1ecae831459b828e00dbbda +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/dfeb7b1afe25213579cffff6909e285f +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/e8521259ab5ca42adabc9f4e7fee338c +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/e9a511a12490493848aa5023b4946b2f +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/fd187d2066d9a8ad2ee217ea70baa138 +0 -0
  82. data/spec/models/shortenizer/url_spec.rb +23 -0
  83. data/spec/presenters/shortenizer/url_presenter_spec.rb +13 -0
  84. data/spec/rails_helper.rb +47 -0
  85. data/spec/spec_helper.rb +78 -0
  86. metadata +249 -0
@@ -0,0 +1,280 @@
1
+  (1.1ms) CREATE TABLE "shortenizer_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shortlink" varchar(255), "target" varchar(255)) 
2
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.4ms) select sqlite_version(*)
4
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT version FROM "schema_migrations"
6
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141015221054')
7
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+  (0.1ms) begin transaction
11
+  (0.1ms) SAVEPOINT active_record_1
12
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '58e1ca01bf7b4d9e' LIMIT 1
13
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "58e1ca01bf7b4d9e"], ["target", "https://yahoo.com"]]
14
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15
+ Shortenizer::Url Load (0.2ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
16
+  (0.6ms) rollback transaction
17
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
+  (0.1ms) begin transaction
19
+  (0.1ms) SAVEPOINT active_record_1
20
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '5f1f5b45e4bcdc66' LIMIT 1
21
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "5f1f5b45e4bcdc66"], ["target", "ile://yahoo.com"]]
22
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23
+ Shortenizer::Url Load (0.1ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
24
+  (7.6ms) rollback transaction
25
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
+  (0.1ms) begin transaction
27
+  (0.1ms) SAVEPOINT active_record_1
28
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'a00738b0c1accd54' LIMIT 1
29
+ SQL (0.5ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "a00738b0c1accd54"], ["target", "https://yahoo.com"]]
30
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31
+ Shortenizer::Url Load (0.2ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
32
+  (0.5ms) rollback transaction
33
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+  (0.1ms) begin transaction
35
+  (0.1ms) SAVEPOINT active_record_1
36
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '514317a387b483b7' LIMIT 1
37
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "514317a387b483b7"], ["target", "https://yahoo.com"]]
38
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39
+ Shortenizer::Url Load (0.1ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
40
+  (0.5ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+  (0.1ms) rollback transaction
43
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+  (0.1ms) begin transaction
45
+  (0.1ms) SAVEPOINT active_record_1
46
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '98b658917d6c3c97' LIMIT 1
47
+ SQL (0.5ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "98b658917d6c3c97"], ["target", "https://yahoo.com"]]
48
+  (0.1ms) RELEASE SAVEPOINT active_record_1
49
+ Shortenizer::Url Load (0.2ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
50
+  (8.5ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+  (0.1ms) SAVEPOINT active_record_1
53
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12345' LIMIT 1
54
+ SQL (0.2ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12345"], ["target", "http://eftimov.net"]]
55
+  (0.0ms) RELEASE SAVEPOINT active_record_1
56
+ Shortenizer::Url Load (0.0ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
57
+  (0.3ms) rollback transaction
58
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
59
+  (0.1ms) begin transaction
60
+  (0.1ms) SAVEPOINT active_record_1
61
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'a36f3399dfbce7df' LIMIT 1
62
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "a36f3399dfbce7df"], ["target", "https://yahoo.com"]]
63
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64
+ Shortenizer::Url Load (0.1ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
65
+  (8.1ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+  (0.1ms) SAVEPOINT active_record_1
68
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12345' LIMIT 1
69
+ SQL (0.2ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12345"], ["target", "http://eftimov.net"]]
70
+  (0.0ms) RELEASE SAVEPOINT active_record_1
71
+ Shortenizer::Url Load (0.0ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
72
+  (0.5ms) rollback transaction
73
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
74
+  (0.1ms) begin transaction
75
+  (0.1ms) SAVEPOINT active_record_1
76
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '8b1d533b1bf65d72' LIMIT 1
77
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "8b1d533b1bf65d72"], ["target", "https://yahoo.com"]]
78
+  (0.1ms) RELEASE SAVEPOINT active_record_1
79
+ Shortenizer::Url Load (0.2ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
80
+  (8.4ms) rollback transaction
81
+  (0.1ms) begin transaction
82
+  (0.1ms) SAVEPOINT active_record_1
83
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12345' LIMIT 1
84
+ SQL (0.2ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12345"], ["target", "http://eftimov.net"]]
85
+  (0.0ms) RELEASE SAVEPOINT active_record_1
86
+ Shortenizer::Url Load (0.0ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
87
+  (0.5ms) rollback transaction
88
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
89
+  (0.1ms) begin transaction
90
+  (0.1ms) SAVEPOINT active_record_1
91
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '0f1845986e79d05b' LIMIT 1
92
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "0f1845986e79d05b"], ["target", "https://yahoo.com"]]
93
+  (0.0ms) RELEASE SAVEPOINT active_record_1
94
+ Shortenizer::Url Load (0.3ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
95
+  (8.4ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+  (0.1ms) SAVEPOINT active_record_1
98
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12345' LIMIT 1
99
+ SQL (0.2ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12345"], ["target", "http://eftimov.net"]]
100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
101
+ Shortenizer::Url Load (0.0ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
102
+  (0.4ms) rollback transaction
103
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
104
+  (0.1ms) begin transaction
105
+  (0.4ms) SAVEPOINT active_record_1
106
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '9e2903e78f68fc8a' LIMIT 1
107
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "9e2903e78f68fc8a"], ["target", "https://yahoo.com"]]
108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109
+  (0.5ms) rollback transaction
110
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
111
+  (0.1ms) begin transaction
112
+  (0.1ms) SAVEPOINT active_record_1
113
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'd4c9d180ae0babf3' LIMIT 1
114
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "d4c9d180ae0babf3"], ["target", "https://yahoo.com"]]
115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
116
+  (7.6ms) rollback transaction
117
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
118
+  (0.1ms) begin transaction
119
+  (0.1ms) SAVEPOINT active_record_1
120
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '71ad496d4a350f4b' LIMIT 1
121
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "71ad496d4a350f4b"], ["target", "https://yahoo.com"]]
122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
123
+  (9.0ms) rollback transaction
124
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
125
+  (0.1ms) begin transaction
126
+  (0.0ms) SAVEPOINT active_record_1
127
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'd0dc75817a0a743b' LIMIT 1
128
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "d0dc75817a0a743b"], ["target", "https://yahoo.com"]]
129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130
+  (8.2ms) rollback transaction
131
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
132
+  (0.1ms) begin transaction
133
+  (0.1ms) SAVEPOINT active_record_1
134
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '035e5c2346d79bd5' LIMIT 1
135
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "035e5c2346d79bd5"], ["target", "https://yahoo.com"]]
136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137
+  (8.9ms) rollback transaction
138
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
139
+  (0.2ms) begin transaction
140
+  (0.1ms) SAVEPOINT active_record_1
141
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '508b081d72feff3d' LIMIT 1
142
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "508b081d72feff3d"], ["target", "https://yahoo.com"]]
143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
144
+ Shortenizer::Url Load (0.1ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
145
+  (7.5ms) rollback transaction
146
+  (0.1ms) begin transaction
147
+  (0.1ms) SAVEPOINT active_record_1
148
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12345' LIMIT 1
149
+ SQL (0.2ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12345"], ["target", "http://eftimov.net"]]
150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
151
+ Shortenizer::Url Load (0.0ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
152
+  (0.4ms) rollback transaction
153
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
154
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
155
+  (0.1ms) begin transaction
156
+  (0.1ms) SAVEPOINT active_record_1
157
+ Shortenizer::Url Exists (0.4ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'd48f0f126d68c897' LIMIT 1
158
+ SQL (0.8ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "d48f0f126d68c897"], ["target", "https://yahoo.com"]]
159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
160
+  (1.2ms) rollback transaction
161
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
162
+  (0.1ms) begin transaction
163
+  (0.1ms) SAVEPOINT active_record_1
164
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '8d1d63c02ffcea38' LIMIT 1
165
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "8d1d63c02ffcea38"], ["target", "https://yahoo.com"]]
166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
167
+  (8.3ms) rollback transaction
168
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
169
+  (0.1ms) begin transaction
170
+  (0.1ms) SAVEPOINT active_record_1
171
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '72ca0c6ba29a4cc6' LIMIT 1
172
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "72ca0c6ba29a4cc6"], ["target", "https://yahoo.com"]]
173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
174
+  (0.4ms) rollback transaction
175
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
176
+  (0.1ms) begin transaction
177
+  (0.1ms) SAVEPOINT active_record_1
178
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'e62eb76872e505d5' LIMIT 1
179
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "e62eb76872e505d5"], ["target", "https://yahoo.com"]]
180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
181
+  (0.7ms) rollback transaction
182
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
183
+  (0.1ms) begin transaction
184
+  (0.1ms) SAVEPOINT active_record_1
185
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '529f9b98dd9ba148' LIMIT 1
186
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "529f9b98dd9ba148"], ["target", "https://yahoo.com"]]
187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
188
+  (8.5ms) rollback transaction
189
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
190
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
191
+  (0.1ms) begin transaction
192
+  (0.1ms) SAVEPOINT active_record_1
193
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'af30608ce5192a9c' LIMIT 1
194
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "af30608ce5192a9c"], ["target", "https://yahoo.com"]]
195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
196
+  (7.5ms) rollback transaction
197
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
198
+  (0.1ms) begin transaction
199
+  (0.1ms) SAVEPOINT active_record_1
200
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '95eb5b8a1a4cce2e' LIMIT 1
201
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "95eb5b8a1a4cce2e"], ["target", "https://yahoo.com"]]
202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
203
+  (8.5ms) rollback transaction
204
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
205
+  (0.1ms) begin transaction
206
+  (0.0ms) SAVEPOINT active_record_1
207
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '4ce65cd9965347fb' LIMIT 1
208
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "4ce65cd9965347fb"], ["target", "https://yahoo.com"]]
209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
210
+  (8.5ms) rollback transaction
211
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
212
+  (0.1ms) begin transaction
213
+  (0.1ms) SAVEPOINT active_record_1
214
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '4c14aef78ae1827c' LIMIT 1
215
+ SQL (0.7ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "4c14aef78ae1827c"], ["target", "https://yahoo.com"]]
216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
217
+  (8.4ms) rollback transaction
218
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
219
+  (0.1ms) begin transaction
220
+  (0.1ms) SAVEPOINT active_record_1
221
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '2efdeb5a91d8857d' LIMIT 1
222
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "2efdeb5a91d8857d"], ["target", "https://yahoo.com"]]
223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
224
+  (8.5ms) rollback transaction
225
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
226
+  (0.1ms) begin transaction
227
+  (0.1ms) SAVEPOINT active_record_1
228
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '86636bb9064907df' LIMIT 1
229
+ SQL (0.4ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "86636bb9064907df"], ["target", "https://yahoo.com"]]
230
+  (0.1ms) RELEASE SAVEPOINT active_record_1
231
+  (8.5ms) rollback transaction
232
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
233
+  (0.1ms) begin transaction
234
+  (0.1ms) SAVEPOINT active_record_1
235
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12978177c99a482f' LIMIT 1
236
+ SQL (0.8ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12978177c99a482f"], ["target", "https://yahoo.com"]]
237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
238
+  (8.8ms) rollback transaction
239
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
240
+  (0.1ms) begin transaction
241
+  (0.0ms) SAVEPOINT active_record_1
242
+ Shortenizer::Url Exists (0.6ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '4f7ddcf5464ed68f' LIMIT 1
243
+ SQL (0.9ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "4f7ddcf5464ed68f"], ["target", "http://yahoo.com"]]
244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
245
+ Shortenizer::Url Load (0.2ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
246
+  (0.5ms) rollback transaction
247
+  (0.1ms) begin transaction
248
+  (0.1ms) SAVEPOINT active_record_1
249
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12345' LIMIT 1
250
+ SQL (0.2ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12345"], ["target", "http://eftimov.net"]]
251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252
+ Shortenizer::Url Load (0.0ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
253
+  (0.4ms) rollback transaction
254
+  (0.1ms) begin transaction
255
+  (0.1ms) SAVEPOINT active_record_1
256
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '0c06349dd31f7738' LIMIT 1
257
+ SQL (0.2ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "0c06349dd31f7738"], ["target", "http://yahoo.com"]]
258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
259
+  (0.4ms) rollback transaction
260
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
261
+  (0.1ms) begin transaction
262
+  (0.1ms) SAVEPOINT active_record_1
263
+ Shortenizer::Url Exists (0.1ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = 'a27de909eaa4c636' LIMIT 1
264
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "a27de909eaa4c636"], ["target", "http://yahoo.com"]]
265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
266
+ Shortenizer::Url Load (0.1ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
267
+  (8.7ms) rollback transaction
268
+  (0.1ms) begin transaction
269
+  (0.1ms) SAVEPOINT active_record_1
270
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '12345' LIMIT 1
271
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "12345"], ["target", "http://eftimov.net"]]
272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
273
+ Shortenizer::Url Load (0.1ms) SELECT "shortenizer_urls".* FROM "shortenizer_urls" WHERE "shortenizer_urls"."id" = ? LIMIT 1 [["id", 1]]
274
+  (0.6ms) rollback transaction
275
+  (0.1ms) begin transaction
276
+  (0.1ms) SAVEPOINT active_record_1
277
+ Shortenizer::Url Exists (0.2ms) SELECT 1 AS one FROM "shortenizer_urls" WHERE "shortenizer_urls"."shortlink" = '468badee9a68ef9c' LIMIT 1
278
+ SQL (0.3ms) INSERT INTO "shortenizer_urls" ("shortlink", "target") VALUES (?, ?) [["shortlink", "468badee9a68ef9c"], ["target", "http://yahoo.com"]]
279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
280
+  (0.6ms) rollback transaction
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>