ominous 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,12 @@ module Ominous
2
2
  module ApplicationHelper
3
3
  def ominous_warnings
4
4
  process_ominous_warnings
5
- if warnings_to_show?
5
+ if ominous_warnings_to_show?
6
6
  content_tag(
7
7
  'div',
8
8
  render(
9
9
  :partial => 'ominous/warnings/list',
10
- :locals => {:warnings => warning_to_display}
10
+ :locals => {:warnings => ominous_warning_to_display}
11
11
  ),
12
12
  :class => 'ominous_warnings')
13
13
  end
@@ -15,22 +15,22 @@ module Ominous
15
15
 
16
16
  def process_ominous_warnings
17
17
  Warning.requests.each do |request|
18
- session_store[request.to_sym] = :show unless session_store[request.to_sym]
18
+ ominous_session_store[request.to_sym] = :show unless ominous_session_store[request.to_sym]
19
19
  end
20
20
  Warning.clear_requests
21
21
  end
22
22
 
23
- def warnings_to_show?
24
- session_store.values.include? :show
23
+ def ominous_warnings_to_show?
24
+ ominous_session_store.values.include? :show
25
25
  end
26
26
 
27
- def session_store
27
+ def ominous_session_store
28
28
  session[:ominous_warnings] ||= {}
29
29
  end
30
30
 
31
- def warning_to_display
32
- warnings = session_store.keys.collect do |name|
33
- Warning.find_by_name(name) if session_store[name] == :show
31
+ def ominous_warning_to_display
32
+ warnings = ominous_session_store.keys.collect do |name|
33
+ Warning.find_by_name(name) if ominous_session_store[name] == :show
34
34
  end
35
35
  return warnings.compact
36
36
  end
@@ -1,23 +1,23 @@
1
1
  module Ominous
2
2
  module WarningsHelper
3
- def classes_for(closer)
3
+ def ominous_classes_for(closer)
4
4
  classes = ['closer']
5
- classes << visibility(closer.start_hidden?)
5
+ classes << ominous_visibility(closer.start_hidden?)
6
6
  classes.join(' ')
7
7
  end
8
8
 
9
- def visibility(truth)
9
+ def ominous_visibility(truth)
10
10
  truth ? 'start_hidden' : 'start_visible'
11
11
  end
12
12
 
13
- def closer_link_to(warning, closer)
13
+ def ominous_closer_link_to(warning, closer)
14
14
  text = closer.link_text
15
15
  link_class = closer.closure_method
16
- url = closer_url(warning, closer)
16
+ url = ominous_closer_url(warning, closer)
17
17
  link_to(text, url, :method => :put, :class => link_class)
18
18
  end
19
19
 
20
- def closer_url(warning, closer)
20
+ def ominous_closer_url(warning, closer)
21
21
  if closer.closure_method == 'close_and_dismiss_warning'
22
22
  ominous.dismiss_warning_path(warning)
23
23
  else
@@ -8,10 +8,10 @@
8
8
  </div>
9
9
  <div class="closers">
10
10
  <% warning.closers.each do |closer| %>
11
- <div class="<%= classes_for(closer) %>">
11
+ <div class="<%= ominous_classes_for(closer) %>">
12
12
  <p><%= sanitize closer.message %></p>
13
13
  <p>
14
- <%= closer_link_to(warning, closer) %>
14
+ <%= ominous_closer_link_to(warning, closer) %>
15
15
  </p>
16
16
  </div>
17
17
  <% end %>
@@ -1,10 +1,17 @@
1
1
  module Ominous
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
7
  #
8
+ # 0.1.0
9
+ # -----
10
+ # Move to beta
11
+ #
12
+ # Rename ominous helper methods to remove likelihood of method classes in
13
+ # host app.
14
+ #
8
15
  # 0.0.5
9
16
  # -----
10
17
  # Moved text decoration of warnings and closers to models.
@@ -1,6 +1,8 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
3
  resources :things
4
+
5
+ root :to => 'things#index'
4
6
 
5
7
  mount Ominous::Engine => "/ominous"
6
8
  end
Binary file
@@ -7659,3 +7659,239 @@ Served asset /things.js - 304 Not Modified (12ms)
7659
7659
 
7660
7660
  Started GET "/assets/ominous/warnings.js?body=1" for 127.0.0.1 at 2013-01-31 14:21:59 +0000
7661
7661
  Served asset /ominous/warnings.js - 304 Not Modified (12ms)
7662
+
7663
+
7664
+ Started GET "/" for 127.0.0.1 at 2013-02-18 10:57:55 +0000
7665
+ Connecting to database specified by database.yml
7666
+
7667
+ ActionController::RoutingError (No route matches [GET] "/"):
7668
+ actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
7669
+ actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
7670
+ railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
7671
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
7672
+ activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
7673
+ railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
7674
+ actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
7675
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
7676
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
7677
+ activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
7678
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
7679
+ actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
7680
+ railties (3.2.9) lib/rails/engine.rb:479:in `call'
7681
+ railties (3.2.9) lib/rails/application.rb:223:in `call'
7682
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
7683
+ railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
7684
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
7685
+ /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
7686
+ /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
7687
+ /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
7688
+
7689
+
7690
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.8ms)
7691
+
7692
+
7693
+ Started GET "/" for 127.0.0.1 at 2013-02-18 10:59:04 +0000
7694
+ Processing by ThingsController#index as HTML
7695
+ Thing Load (0.3ms) SELECT "things".* FROM "things" 
7696
+ Rendered things/index.html.erb within layouts/application (3.2ms)
7697
+ Completed 200 OK in 309ms (Views: 170.8ms | ActiveRecord: 46.2ms)
7698
+
7699
+
7700
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7701
+ Served asset /application.css - 200 OK (23ms)
7702
+
7703
+
7704
+ Started GET "/assets/ominous/warnings.css?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7705
+ Served asset /ominous/warnings.css - 200 OK (10ms)
7706
+
7707
+
7708
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7709
+ Served asset /scaffold.css - 200 OK (25ms)
7710
+
7711
+
7712
+ Started GET "/assets/things.css?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7713
+ Served asset /things.css - 200 OK (1ms)
7714
+
7715
+
7716
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7717
+ Served asset /jquery.js - 200 OK (50ms)
7718
+
7719
+
7720
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7721
+ Served asset /jquery_ujs.js - 200 OK (12ms)
7722
+
7723
+
7724
+ Started GET "/assets/ominous/warnings.js?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7725
+ Served asset /ominous/warnings.js - 304 Not Modified (14ms)
7726
+
7727
+
7728
+ Started GET "/assets/things.js?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7729
+ Served asset /things.js - 200 OK (7ms)
7730
+
7731
+
7732
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-02-18 10:59:05 +0000
7733
+ Served asset /application.js - 200 OK (40ms)
7734
+
7735
+
7736
+ Started GET "/things/1" for 127.0.0.1 at 2013-02-18 10:59:09 +0000
7737
+ Processing by ThingsController#show as HTML
7738
+ Parameters: {"id"=>"1"}
7739
+ Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
7740
+ Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
7741
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
7742
+ 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 ORDER BY position
7743
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (202.6ms)
7744
+ Rendered things/show.html.erb within layouts/application (232.4ms)
7745
+ Completed 200 OK in 490ms (Views: 297.8ms | ActiveRecord: 9.5ms)
7746
+
7747
+
7748
+ Started GET "/assets/ominous/warnings.js?body=1" for 127.0.0.1 at 2013-02-18 10:59:10 +0000
7749
+ Served asset /ominous/warnings.js - 304 Not Modified (0ms)
7750
+ Connecting to database specified by database.yml
7751
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7752
+  (0.2ms) select sqlite_version(*)
7753
+  (115.6ms) CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "link_text" varchar(255), "message" text) 
7754
+  (98.7ms) CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7755
+  (128.2ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "title" varchar(255), "description" text) 
7756
+  (315.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7757
+  (149.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7758
+  (173.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7759
+  (0.1ms) SELECT version FROM "schema_migrations"
7760
+  (149.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
7761
+  (140.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134023')
7762
+  (193.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
7763
+  (315.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134020')
7764
+  (281.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
7765
+  (384.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134022')
7766
+ Connecting to database specified by database.yml
7767
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7768
+  (0.4ms) select sqlite_version(*)
7769
+  (256.0ms) CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "link_text" varchar(255), "message" text) 
7770
+  (142.4ms) CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7771
+  (121.9ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "title" varchar(255), "description" text) 
7772
+  (146.5ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7773
+  (132.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7774
+  (124.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7775
+  (0.3ms) SELECT version FROM "schema_migrations"
7776
+  (122.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
7777
+  (99.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134023')
7778
+  (99.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
7779
+  (140.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134020')
7780
+  (208.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
7781
+  (300.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134022')
7782
+ Connecting to database specified by database.yml
7783
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7784
+  (0.3ms) select sqlite_version(*)
7785
+  (176.0ms) CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "link_text" varchar(255), "message" text) 
7786
+  (123.2ms) CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7787
+  (120.9ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "title" varchar(255), "description" text) 
7788
+  (129.0ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7789
+  (115.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7790
+  (98.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7791
+  (0.2ms) SELECT version FROM "schema_migrations"
7792
+  (88.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
7793
+  (91.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134023')
7794
+  (100.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
7795
+  (131.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134020')
7796
+  (141.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
7797
+  (133.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134022')
7798
+ Connecting to database specified by database.yml
7799
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7800
+  (0.2ms) select sqlite_version(*)
7801
+  (207.4ms) CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "link_text" varchar(255), "message" text) 
7802
+  (129.3ms) CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7803
+  (129.7ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "title" varchar(255), "description" text) 
7804
+  (132.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7805
+  (116.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7806
+  (100.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7807
+  (0.3ms) SELECT version FROM "schema_migrations"
7808
+  (111.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
7809
+  (132.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134023')
7810
+  (125.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
7811
+  (124.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134020')
7812
+  (132.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
7813
+  (267.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134022')
7814
+ Connecting to database specified by database.yml
7815
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
7816
+  (0.1ms) select sqlite_version(*)
7817
+  (130.0ms) CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "link_text" varchar(255), "message" text) 
7818
+  (97.8ms) CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7819
+  (132.1ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "title" varchar(255), "description" text) 
7820
+  (156.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
7821
+  (157.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7822
+  (116.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7823
+  (0.2ms) SELECT version FROM "schema_migrations"
7824
+  (112.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
7825
+  (108.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134023')
7826
+  (142.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
7827
+  (106.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134020')
7828
+  (98.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
7829
+  (201.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131134022')
7830
+
7831
+
7832
+ Started GET "/" for 127.0.0.1 at 2013-05-01 13:54:08 +0100
7833
+ Connecting to database specified by database.yml
7834
+ Processing by ThingsController#index as HTML
7835
+ Thing Load (0.1ms) SELECT "things".* FROM "things" 
7836
+ Rendered things/index.html.erb within layouts/application (5.9ms)
7837
+ Completed 200 OK in 261ms (Views: 184.9ms | ActiveRecord: 5.1ms)
7838
+
7839
+
7840
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7841
+ Served asset /application.css - 200 OK (12ms)
7842
+
7843
+
7844
+ Started GET "/assets/ominous/warnings.css?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7845
+ Served asset /ominous/warnings.css - 200 OK (5ms)
7846
+
7847
+
7848
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7849
+ Served asset /scaffold.css - 200 OK (2ms)
7850
+
7851
+
7852
+ Started GET "/assets/things.css?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7853
+ Served asset /things.css - 200 OK (12ms)
7854
+
7855
+
7856
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7857
+ Served asset /jquery.js - 200 OK (23ms)
7858
+
7859
+
7860
+ Started GET "/assets/ominous/warnings.js?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7861
+ Served asset /ominous/warnings.js - 304 Not Modified (10ms)
7862
+
7863
+
7864
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7865
+ Served asset /jquery_ujs.js - 200 OK (12ms)
7866
+
7867
+
7868
+ Started GET "/assets/things.js?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7869
+ Served asset /things.js - 200 OK (1ms)
7870
+
7871
+
7872
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-05-01 13:54:09 +0100
7873
+ Served asset /application.js - 200 OK (56ms)
7874
+
7875
+
7876
+ Started GET "/things/1" for 127.0.0.1 at 2013-05-01 13:54:17 +0100
7877
+ Processing by ThingsController#show as HTML
7878
+ Parameters: {"id"=>"1"}
7879
+ Thing Load (0.5ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
7880
+ Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
7881
+ Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
7882
+ 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 ORDER BY position
7883
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (134.2ms)
7884
+ Rendered things/show.html.erb within layouts/application (152.2ms)
7885
+ Completed 200 OK in 382ms (Views: 165.5ms | ActiveRecord: 2.6ms)
7886
+
7887
+
7888
+ Started GET "/assets/ominous/warnings.js?body=1" for 127.0.0.1 at 2013-05-01 13:54:17 +0100
7889
+ Served asset /ominous/warnings.js - 304 Not Modified (0ms)
7890
+
7891
+
7892
+ Started PUT "/ominous/warnings/1/dismiss" for 127.0.0.1 at 2013-05-01 13:54:33 +0100
7893
+ Processing by Ominous::WarningsController#dismiss as */*
7894
+ Parameters: {"id"=>"1"}
7895
+ Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]]
7896
+ Rendered text template (0.0ms)
7897
+ Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.3ms)