shrew 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +67 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +114 -0
- data/README.md +38 -0
- data/Rakefile +15 -0
- data/app/assets/javascripts/shrew.js +69 -0
- data/app/controllers/shrew/application_controller.rb +4 -0
- data/app/controllers/shrew/page_views_controller.rb +22 -0
- data/app/models/shrew/page_view.rb +19 -0
- data/app/views/shrew/_automatically_track_page_views.html.erb +11 -0
- data/config/routes.rb +9 -0
- data/db/migrate/1_add_shrew_page_view_table.rb +17 -0
- data/lib/generators/shrew/install_generator.rb +31 -0
- data/lib/generators/templates/page_view_migration.rb +17 -0
- data/lib/generators/templates/shrew.rb +4 -0
- data/lib/shrew/engine.rb +14 -0
- data/lib/shrew/tracks_page_views.rb +21 -0
- data/lib/shrew/version.rb +3 -0
- data/shrew.gemspec +26 -0
- data/spec/controllers/page_views_controller_spec.rb +56 -0
- data/spec/controllers/tracks_page_views_spec.rb +34 -0
- data/spec/rails_helper.rb +50 -0
- data/spec/shrew_spec.rb +6 -0
- data/spec/spec_helper.rb +52 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +82 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +30 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/log/development.log +81 -0
- data/test/dummy/log/test.log +1689 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/test_helper.rb +15 -0
- metadata +77 -2
@@ -0,0 +1,81 @@
|
|
1
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to AddShrewPageViewTable (1)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "shrew_page_views" ("user_id" integer)
|
8
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_shrew_page_views_on_user_id" ON "shrew_page_views" ("user_id")[0m
|
9
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
|
10
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
11
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
12
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
13
|
+
FROM sqlite_master
|
14
|
+
WHERE name='index_shrew_page_views_on_user_id' AND type='index'
|
15
|
+
UNION ALL
|
16
|
+
SELECT sql
|
17
|
+
FROM sqlite_temp_master
|
18
|
+
WHERE name='index_shrew_page_views_on_user_id' AND type='index'
|
19
|
+
[0m
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
22
|
+
Migrating to AddShrewPageViewTable (1)
|
23
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
24
|
+
[1m[35m (1.1ms)[0m DROP TABLE "shrew_page_views"
|
25
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '1'[0m
|
26
|
+
[1m[35m (0.6ms)[0m commit transaction
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
+
Migrating to AddShrewPageViewTable (1)
|
30
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33
|
+
Migrating to AddShrewPageViewTable (1)
|
34
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "shrew_page_views" ("user_id" integer, "controller" varchar(255), "status" integer, "view_runtime" float, "db_runtime" float, "sent_time" integer, "js_return_time" integer, "js_tracking_id" blob(16)) [0m
|
36
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
37
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_shrew_page_views_on_user_id" ON "shrew_page_views" ("user_id")[0m
|
38
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
|
39
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
40
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
41
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
42
|
+
FROM sqlite_master
|
43
|
+
WHERE name='index_shrew_page_views_on_user_id' AND type='index'
|
44
|
+
UNION ALL
|
45
|
+
SELECT sql
|
46
|
+
FROM sqlite_temp_master
|
47
|
+
WHERE name='index_shrew_page_views_on_user_id' AND type='index'
|
48
|
+
[0m
|
49
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "shrew_page_views" ("user_id" integer, "controller" varchar(255), "status" integer, "view_runtime" float, "db_runtime" float, "sent_time" integer, "js_return_time" integer, "js_tracking_id" blob(16)) [0m
|
50
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
51
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_shrew_page_views_on_user_id" ON "shrew_page_views" ("user_id")[0m
|
52
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
53
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
54
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
55
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
56
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
57
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
58
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
59
|
+
Migrating to AddAnalyticsPageViewTable (1)
|
60
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
61
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
62
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
63
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
64
|
+
Migrating to AddAnalyticsPageViewTable (1)
|
65
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
66
|
+
Migrating to AddShrewPageViewTable (1)
|
67
|
+
[1m[35m (0.1ms)[0m begin transaction
|
68
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "shrew_page_views" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "controller" varchar(255), "status" integer, "view_runtime" float, "db_runtime" float, "sent_time" integer, "js_return_time" integer, "time_between_sent_and_return" integer, "js_tracking_id" blob(16)) [0m
|
69
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
70
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_shrew_page_views_on_user_id" ON "shrew_page_views" ("user_id")[0m
|
71
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
|
72
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
73
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
74
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
75
|
+
FROM sqlite_master
|
76
|
+
WHERE name='index_shrew_page_views_on_user_id' AND type='index'
|
77
|
+
UNION ALL
|
78
|
+
SELECT sql
|
79
|
+
FROM sqlite_temp_master
|
80
|
+
WHERE name='index_shrew_page_views_on_user_id' AND type='index'
|
81
|
+
[0m
|