ominous 0.1.0 → 0.1.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.
@@ -40,7 +40,7 @@ module Ominous
40
40
  end
41
41
 
42
42
  def title
43
- super.blank? ? name.humanize : super
43
+ (super.blank? and name?) ? name.humanize : super
44
44
  end
45
45
 
46
46
  private
@@ -1,9 +1,14 @@
1
1
  module Ominous
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
+ #
8
+ # 0.1.1
9
+ # -----
10
+ # Fix bug where trying to humanize the name to create a title cause an error
11
+ # because the name was absent
7
12
  #
8
13
  # 0.1.0
9
14
  # -----
@@ -1,6 +1,6 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
3
+ Dummy::Application.config.session_store(:cookie_store, key: '_dummy_session')
4
4
 
5
5
  # Use the database for sessions instead of the cookie-based default,
6
6
  # which shouldn't be used to store highly confidential information
Binary file
@@ -31115,3 +31115,238 @@ Processing by ThingsController#index as HTML
31115
31115
  Thing Load (0.1ms) SELECT "things".* FROM "things" 
31116
31116
  Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.1ms)
31117
31117
   (0.1ms) rollback transaction
31118
+ Connecting to database specified by database.yml
31119
+  (4.3ms) begin transaction
31120
+ Fixture Delete (2.3ms) DELETE FROM "ominous_warnings"
31121
+ Fixture Insert (0.9ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-07-29 13:33:17', '2013-07-29 13:33:17')
31122
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-07-29 13:33:17', '2013-07-29 13:33:17')
31123
+ Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers"
31124
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-07-29 13:33:17', '2013-07-29 13:33:17', 980190962)
31125
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-07-29 13:33:17', '2013-07-29 13:33:17', 298486374)
31126
+ Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-07-29 13:33:17', '2013-07-29 13:33:17', 113629430)
31127
+ Fixture Delete (0.6ms) DELETE FROM "ominous_closers"
31128
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-07-29 13:33:17', '2013-07-29 13:33:17')
31129
+ Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-07-29 13:33:17', '2013-07-29 13:33:17')
31130
+ Fixture Delete (0.6ms) DELETE FROM "things"
31131
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-07-29 13:33:17', '2013-07-29 13:33:17')
31132
+ Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-07-29 13:33:17', '2013-07-29 13:33:17')
31133
+  (249.1ms) commit transaction
31134
+  (0.2ms) begin transaction
31135
+ Ominous::Warning Load (7.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31136
+ Ominous::Closer Load (0.4ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31137
+  (0.3ms) SAVEPOINT active_record_1
31138
+ Ominous::WarningCloser Exists (1.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
31139
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
31140
+  (0.1ms) rollback transaction
31141
+  (0.0ms) begin transaction
31142
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31143
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31144
+  (0.0ms) SAVEPOINT active_record_1
31145
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
31146
+  (0.0ms) SAVEPOINT active_record_1
31147
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31148
+  (0.0ms) SAVEPOINT active_record_1
31149
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
31150
+  (0.0ms) rollback transaction
31151
+  (0.0ms) begin transaction
31152
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31153
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31154
+  (0.0ms) SAVEPOINT active_record_1
31155
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
31156
+  (0.0ms) rollback transaction
31157
+  (0.0ms) begin transaction
31158
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31159
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31160
+ Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
31161
+  (0.1ms) rollback transaction
31162
+  (0.3ms) begin transaction
31163
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31164
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31165
+  (0.1ms) rollback transaction
31166
+  (0.1ms) begin transaction
31167
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31168
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31169
+ Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1
31170
+  (0.1ms) rollback transaction
31171
+  (0.0ms) begin transaction
31172
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31173
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31174
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31175
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
31176
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
31177
+ Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1
31178
+  (0.0ms) SAVEPOINT active_record_1
31179
+ SQL (1.1ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
31180
+ Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
31181
+  (0.8ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-07-29 13:33:17.556489' WHERE "ominous_warning_closers"."id" = 298486374
31182
+  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
31183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31184
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31185
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
31186
+  (2.7ms) rollback transaction
31187
+  (0.0ms) begin transaction
31188
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31189
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31190
+  (0.1ms) rollback transaction
31191
+  (0.0ms) begin transaction
31192
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31193
+ Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31194
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
31195
+  (0.0ms) rollback transaction
31196
+  (0.1ms) begin transaction
31197
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31198
+ Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
31199
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
31200
+  (0.0ms) rollback transaction
31201
+  (0.0ms) begin transaction
31202
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31203
+ Processing by Ominous::WarningsController#dismiss as HTML
31204
+ Parameters: {"id"=>"1"}
31205
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
31206
+ Rendered text template (0.0ms)
31207
+ Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.1ms)
31208
+  (0.1ms) rollback transaction
31209
+  (0.1ms) begin transaction
31210
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31211
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
31212
+  (0.0ms) SAVEPOINT active_record_1
31213
+  (1.1ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-07-29 13:33:17.643552' WHERE "ominous_closers"."id" = 1
31214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31215
+  (0.7ms) rollback transaction
31216
+  (0.0ms) begin transaction
31217
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31218
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
31219
+  (0.0ms) SAVEPOINT active_record_1
31220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31221
+  (0.2ms) rollback transaction
31222
+  (0.1ms) begin transaction
31223
+  (0.0ms) rollback transaction
31224
+  (0.1ms) begin transaction
31225
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31226
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31227
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31228
+  (0.1ms) SELECT COUNT(*) FROM "things"
31229
+ Processing by ThingsController#create as HTML
31230
+ Parameters: {"thing"=>{"name"=>"Foo"}}
31231
+  (0.1ms) SAVEPOINT active_record_1
31232
+ SQL (1.8ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 29 Jul 2013 13:33:17 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 29 Jul 2013 13:33:17 UTC +00:00]]
31233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31234
+ Redirected to http://test.host/things/3
31235
+ Completed 302 Found in 8ms (ActiveRecord: 1.9ms)
31236
+  (0.1ms) SELECT COUNT(*) FROM "things"
31237
+  (0.9ms) rollback transaction
31238
+  (0.1ms) begin transaction
31239
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31240
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31241
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31242
+  (0.1ms) SELECT COUNT(*) FROM "things"
31243
+ Processing by ThingsController#destroy as HTML
31244
+ Parameters: {"id"=>"1"}
31245
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
31246
+  (0.0ms) SAVEPOINT active_record_1
31247
+ SQL (1.1ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
31248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31249
+ Redirected to http://test.host/things
31250
+ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)
31251
+  (0.1ms) SELECT COUNT(*) FROM "things" 
31252
+  (0.7ms) rollback transaction
31253
+  (0.1ms) begin transaction
31254
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31255
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31256
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31257
+ Processing by ThingsController#edit as HTML
31258
+ Parameters: {"id"=>"1"}
31259
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
31260
+ Rendered things/_form.html.erb (4.3ms)
31261
+ Completed 200 OK in 38ms (Views: 35.4ms | ActiveRecord: 0.1ms)
31262
+  (0.1ms) rollback transaction
31263
+  (0.0ms) begin transaction
31264
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31265
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31266
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31267
+ Processing by ThingsController#index as HTML
31268
+ Thing Load (1.1ms) SELECT "things".* FROM "things" 
31269
+ Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 1.1ms)
31270
+  (0.1ms) rollback transaction
31271
+  (0.0ms) begin transaction
31272
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31273
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31274
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31275
+ Processing by ThingsController#new as HTML
31276
+ Rendered things/_form.html.erb (3.3ms)
31277
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
31278
+  (0.1ms) rollback transaction
31279
+  (0.1ms) begin transaction
31280
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31281
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31282
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31283
+ Processing by ThingsController#show as HTML
31284
+ Parameters: {"id"=>"1"}
31285
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
31286
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
31287
+ Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
31288
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (38.1ms)
31289
+ Completed 200 OK in 47ms (Views: 44.8ms | ActiveRecord: 0.5ms)
31290
+  (0.1ms) rollback transaction
31291
+  (0.0ms) begin transaction
31292
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31293
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31294
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31295
+ Processing by ThingsController#show as HTML
31296
+ Parameters: {"id"=>"1"}
31297
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
31298
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
31299
+  (0.1ms) rollback transaction
31300
+  (0.0ms) begin transaction
31301
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31302
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31303
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31304
+ Processing by ThingsController#show as HTML
31305
+ Parameters: {"id"=>"2"}
31306
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
31307
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
31308
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
31309
+ Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
31310
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.2ms)
31311
+ Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.6ms)
31312
+  (0.1ms) rollback transaction
31313
+  (0.1ms) begin transaction
31314
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31315
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31316
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31317
+ Processing by ThingsController#show as HTML
31318
+ Parameters: {"id"=>"1"}
31319
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
31320
+ Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
31321
+  (0.2ms) rollback transaction
31322
+  (0.1ms) begin transaction
31323
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31324
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31325
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31326
+ Processing by ThingsController#show as HTML
31327
+ Parameters: {"id"=>"2"}
31328
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
31329
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
31330
+ Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.2ms)
31331
+  (0.1ms) rollback transaction
31332
+  (0.1ms) begin transaction
31333
+ Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31334
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31335
+ Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31336
+ Processing by ThingsController#update as HTML
31337
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
31338
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
31339
+  (0.1ms) SAVEPOINT active_record_1
31340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31341
+ Redirected to http://test.host/things/1
31342
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
31343
+  (0.1ms) rollback transaction
31344
+  (0.1ms) begin transaction
31345
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
31346
+ Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
31347
+ Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
31348
+ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
31349
+ Processing by ThingsController#index as HTML
31350
+ Thing Load (0.1ms) SELECT "things".* FROM "things" 
31351
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
31352
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ominous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-01 00:00:00.000000000 Z
12
+ date: 2013-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -242,7 +242,8 @@ files:
242
242
  - test/unit/ominous/warning_test.rb
243
243
  - test/ominous_test.rb
244
244
  homepage: https://github.com/reggieb/ominous
245
- licenses: []
245
+ licenses:
246
+ - MIT-LICENSE
246
247
  post_install_message:
247
248
  rdoc_options: []
248
249
  require_paths:
@@ -261,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
262
  version: '0'
262
263
  requirements: []
263
264
  rubyforge_project:
264
- rubygems_version: 1.8.24
265
+ rubygems_version: 1.8.25
265
266
  signing_key:
266
267
  specification_version: 3
267
268
  summary: A rails warning engine