ominous 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/ominous/application_helper.rb +9 -9
- data/app/helpers/ominous/warnings_helper.rb +6 -6
- data/app/views/ominous/warnings/_list.html.erb +2 -2
- data/lib/ominous/version.rb +8 -1
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +236 -0
- data/test/dummy/log/test.log +1633 -0
- data/test/unit/helpers/ominous/warnings_helper_test.rb +18 -0
- metadata +2 -2
@@ -2,12 +2,12 @@ module Ominous
|
|
2
2
|
module ApplicationHelper
|
3
3
|
def ominous_warnings
|
4
4
|
process_ominous_warnings
|
5
|
-
if
|
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 =>
|
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
|
-
|
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
|
24
|
-
|
23
|
+
def ominous_warnings_to_show?
|
24
|
+
ominous_session_store.values.include? :show
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
27
|
+
def ominous_session_store
|
28
28
|
session[:ominous_warnings] ||= {}
|
29
29
|
end
|
30
30
|
|
31
|
-
def
|
32
|
-
warnings =
|
33
|
-
Warning.find_by_name(name) if
|
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
|
3
|
+
def ominous_classes_for(closer)
|
4
4
|
classes = ['closer']
|
5
|
-
classes <<
|
5
|
+
classes << ominous_visibility(closer.start_hidden?)
|
6
6
|
classes.join(' ')
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def ominous_visibility(truth)
|
10
10
|
truth ? 'start_hidden' : 'start_visible'
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def ominous_closer_link_to(warning, closer)
|
14
14
|
text = closer.link_text
|
15
15
|
link_class = closer.closure_method
|
16
|
-
url =
|
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
|
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="<%=
|
11
|
+
<div class="<%= ominous_classes_for(closer) %>">
|
12
12
|
<p><%= sanitize closer.message %></p>
|
13
13
|
<p>
|
14
|
-
<%=
|
14
|
+
<%= ominous_closer_link_to(warning, closer) %>
|
15
15
|
</p>
|
16
16
|
</div>
|
17
17
|
<% end %>
|
data/lib/ominous/version.rb
CHANGED
@@ -1,10 +1,17 @@
|
|
1
1
|
module Ominous
|
2
|
-
VERSION = "0.0
|
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.
|
data/test/dummy/config/routes.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
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
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" [0m
|
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
|
+
[1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
|
7740
|
+
[1m[36mOminous::Warning Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
|
7741
|
+
[1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
|
7742
|
+
[1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT 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[0m
|
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
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
7752
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
7753
|
+
[1m[36m (115.6ms)[0m [1mCREATE 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) [0m
|
7754
|
+
[1m[35m (98.7ms)[0m 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
|
+
[1m[36m (128.2ms)[0m [1mCREATE 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) [0m
|
7756
|
+
[1m[35m (315.9ms)[0m 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
|
+
[1m[36m (149.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7758
|
+
[1m[35m (173.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7759
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7760
|
+
[1m[35m (149.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
|
7761
|
+
[1m[36m (140.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134023')[0m
|
7762
|
+
[1m[35m (193.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
|
7763
|
+
[1m[36m (315.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134020')[0m
|
7764
|
+
[1m[35m (281.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
|
7765
|
+
[1m[36m (384.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134022')[0m
|
7766
|
+
Connecting to database specified by database.yml
|
7767
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
7768
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
7769
|
+
[1m[36m (256.0ms)[0m [1mCREATE 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) [0m
|
7770
|
+
[1m[35m (142.4ms)[0m 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
|
+
[1m[36m (121.9ms)[0m [1mCREATE 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) [0m
|
7772
|
+
[1m[35m (146.5ms)[0m 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
|
+
[1m[36m (132.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7774
|
+
[1m[35m (124.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7775
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7776
|
+
[1m[35m (122.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
|
7777
|
+
[1m[36m (99.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134023')[0m
|
7778
|
+
[1m[35m (99.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
|
7779
|
+
[1m[36m (140.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134020')[0m
|
7780
|
+
[1m[35m (208.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
|
7781
|
+
[1m[36m (300.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134022')[0m
|
7782
|
+
Connecting to database specified by database.yml
|
7783
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
7784
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
7785
|
+
[1m[36m (176.0ms)[0m [1mCREATE 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) [0m
|
7786
|
+
[1m[35m (123.2ms)[0m 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
|
+
[1m[36m (120.9ms)[0m [1mCREATE 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) [0m
|
7788
|
+
[1m[35m (129.0ms)[0m 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
|
+
[1m[36m (115.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7790
|
+
[1m[35m (98.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7791
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7792
|
+
[1m[35m (88.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
|
7793
|
+
[1m[36m (91.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134023')[0m
|
7794
|
+
[1m[35m (100.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
|
7795
|
+
[1m[36m (131.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134020')[0m
|
7796
|
+
[1m[35m (141.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
|
7797
|
+
[1m[36m (133.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134022')[0m
|
7798
|
+
Connecting to database specified by database.yml
|
7799
|
+
[1m[36m (0.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
7800
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
7801
|
+
[1m[36m (207.4ms)[0m [1mCREATE 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) [0m
|
7802
|
+
[1m[35m (129.3ms)[0m 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
|
+
[1m[36m (129.7ms)[0m [1mCREATE 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) [0m
|
7804
|
+
[1m[35m (132.8ms)[0m 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
|
+
[1m[36m (116.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7806
|
+
[1m[35m (100.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7807
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7808
|
+
[1m[35m (111.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
|
7809
|
+
[1m[36m (132.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134023')[0m
|
7810
|
+
[1m[35m (125.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
|
7811
|
+
[1m[36m (124.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134020')[0m
|
7812
|
+
[1m[35m (132.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
|
7813
|
+
[1m[36m (267.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134022')[0m
|
7814
|
+
Connecting to database specified by database.yml
|
7815
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
7816
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
7817
|
+
[1m[36m (130.0ms)[0m [1mCREATE 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) [0m
|
7818
|
+
[1m[35m (97.8ms)[0m 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
|
+
[1m[36m (132.1ms)[0m [1mCREATE 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) [0m
|
7820
|
+
[1m[35m (156.8ms)[0m 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
|
+
[1m[36m (157.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7822
|
+
[1m[35m (116.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7823
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7824
|
+
[1m[35m (112.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134024')
|
7825
|
+
[1m[36m (108.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134023')[0m
|
7826
|
+
[1m[35m (142.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131134021')
|
7827
|
+
[1m[36m (106.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134020')[0m
|
7828
|
+
[1m[35m (98.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
|
7829
|
+
[1m[36m (201.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131134022')[0m
|
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
|
+
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" [0m
|
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
|
+
[1m[35mThing Load (0.5ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
|
7880
|
+
[1m[36mOminous::Warning Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
|
7881
|
+
[1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
|
7882
|
+
[1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT 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[0m
|
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
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m 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)
|