acts_as_nested_interval 0.2.0.pre2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/acts_as_nested_interval/instance_methods.rb +19 -50
  3. data/lib/acts_as_nested_interval/version.rb +1 -1
  4. data/test/acts_as_nested_interval_test.rb +1 -0
  5. data/test/dummy/db/schema.rb +3 -0
  6. data/test/dummy/log/development.log +137 -29
  7. data/test/dummy/log/test.log +6457 -11507
  8. metadata +40 -123
  9. data/test/dummy_bak/Gemfile +0 -4
  10. data/test/dummy_bak/Gemfile.lock +0 -92
  11. data/test/dummy_bak/README.rdoc +0 -261
  12. data/test/dummy_bak/Rakefile +0 -7
  13. data/test/dummy_bak/app/assets/javascripts/application.js +0 -15
  14. data/test/dummy_bak/app/assets/stylesheets/application.css +0 -13
  15. data/test/dummy_bak/app/controllers/application_controller.rb +0 -3
  16. data/test/dummy_bak/app/helpers/application_helper.rb +0 -2
  17. data/test/dummy_bak/app/models/region.rb +0 -5
  18. data/test/dummy_bak/app/views/layouts/application.html.erb +0 -14
  19. data/test/dummy_bak/bin/bundle +0 -3
  20. data/test/dummy_bak/bin/rails +0 -4
  21. data/test/dummy_bak/bin/rake +0 -4
  22. data/test/dummy_bak/config.ru +0 -4
  23. data/test/dummy_bak/config/application.rb +0 -23
  24. data/test/dummy_bak/config/boot.rb +0 -4
  25. data/test/dummy_bak/config/database.yml +0 -31
  26. data/test/dummy_bak/config/environment.rb +0 -5
  27. data/test/dummy_bak/config/environments/development.rb +0 -37
  28. data/test/dummy_bak/config/environments/production.rb +0 -83
  29. data/test/dummy_bak/config/environments/test.rb +0 -39
  30. data/test/dummy_bak/config/initializers/backtrace_silencers.rb +0 -7
  31. data/test/dummy_bak/config/initializers/cookies_serializer.rb +0 -3
  32. data/test/dummy_bak/config/initializers/filter_parameter_logging.rb +0 -4
  33. data/test/dummy_bak/config/initializers/inflections.rb +0 -16
  34. data/test/dummy_bak/config/initializers/mime_types.rb +0 -4
  35. data/test/dummy_bak/config/initializers/secret_token.rb +0 -7
  36. data/test/dummy_bak/config/initializers/session_store.rb +0 -3
  37. data/test/dummy_bak/config/initializers/wrap_parameters.rb +0 -14
  38. data/test/dummy_bak/config/locales/en.yml +0 -23
  39. data/test/dummy_bak/config/routes.rb +0 -56
  40. data/test/dummy_bak/config/secrets.yml +0 -22
  41. data/test/dummy_bak/db/development.sqlite3 +0 -0
  42. data/test/dummy_bak/db/migrate/20120302143528_create_regions.rb +0 -15
  43. data/test/dummy_bak/db/migrate/20121004204252_change_interval_precision.rb +0 -6
  44. data/test/dummy_bak/db/schema.rb +0 -28
  45. data/test/dummy_bak/log/development.log +0 -229
  46. data/test/dummy_bak/log/test.log +0 -0
  47. data/test/dummy_bak/public/404.html +0 -26
  48. data/test/dummy_bak/public/422.html +0 -26
  49. data/test/dummy_bak/public/500.html +0 -25
  50. data/test/dummy_bak/public/favicon.ico +0 -0
  51. data/test/dummy_bak/script/rails +0 -6
  52. data/test/dummy_bak/test/fixtures/regions.yml +0 -7
  53. data/test/dummy_bak/test/unit/region_test.rb +0 -7
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 2655021b08a7ce24851286df6c3a3afcf8ed31f142363fc19d5d3f97089d7eec1fe37bc7ff8fe67c1a99ecfe9e6a50c66783586a8bb6d24babd3ce5649cfd5a8
15
-
16
- test:
17
- secret_key_base: ceaadd64fa2c3c066a2a3ebd5dff743dcd0ab0d2d893916ff870f0a3a8da9260abee22925bb8f4319d7dc7e9b392b17abb0cca6cff28c65f235cfb558cf58a94
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,15 +0,0 @@
1
- class CreateRegions < ActiveRecord::Migration
2
- def change
3
- create_table :regions do |t|
4
- t.boolean :fiction, :null => false, :default => false
5
- t.integer :region_id
6
- t.integer :lftp, :null => false
7
- t.integer :lftq, :null => false
8
- t.integer :rgtp, :null => false
9
- t.integer :rgtq, :null => false
10
- t.float :lft, :null => false
11
- t.float :rgt, :null => false
12
- t.string :name, :null => false
13
- end
14
- end
15
- end
@@ -1,6 +0,0 @@
1
- class ChangeIntervalPrecision < ActiveRecord::Migration
2
- def change
3
- change_column :regions, :lft, :decimal, precision: 31, scale: 30, null: false
4
- change_column :regions, :rgt, :decimal, precision: 31, scale: 30, null: false
5
- end
6
- end
@@ -1,28 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20121004204252) do
15
-
16
- create_table "regions", force: true do |t|
17
- t.boolean "fiction", default: false, null: false
18
- t.integer "region_id"
19
- t.integer "lftp", null: false
20
- t.integer "lftq", null: false
21
- t.integer "rgtp", null: false
22
- t.integer "rgtq", null: false
23
- t.decimal "lft", precision: 31, scale: 30, null: false
24
- t.decimal "rgt", precision: 31, scale: 30, null: false
25
- t.string "name", null: false
26
- end
27
-
28
- end
@@ -1,229 +0,0 @@
1
-  (150.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.4ms) select sqlite_version(*)
3
-  (120.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateRegions (20120302143528)
6
-  (0.3ms) begin transaction
7
-  (1.4ms) CREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
8
- SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120302143528"]]
9
-  (109.5ms) commit transaction
10
- Migrating to ChangeIntervalPrecision (20121004204252)
11
-  (0.3ms) begin transaction
12
-  (1.4ms) CREATE TEMPORARY TABLE "aregions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
13
-  (0.4ms) SELECT * FROM "regions"
14
-  (0.8ms) DROP TABLE "regions"
15
-  (0.9ms) CREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL) 
16
-  (0.5ms) SELECT * FROM "aregions"
17
-  (0.8ms) DROP TABLE "aregions"
18
-  (1.0ms) CREATE TEMPORARY TABLE "aregions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" float NOT NULL, "name" varchar(255) NOT NULL)
19
-  (0.5ms) SELECT * FROM "regions"
20
-  (0.9ms) DROP TABLE "regions"
21
-  (0.7ms) CREATE TABLE "regions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" decimal(31,30) NOT NULL, "rgt" decimal(31,30) NOT NULL, "name" varchar(255) NOT NULL) 
22
-  (0.4ms) SELECT * FROM "aregions"
23
-  (0.7ms) DROP TABLE "aregions"
24
- SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20121004204252"]]
25
-  (99.0ms) commit transaction
26
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
- Region Load (0.5ms) SELECT "regions".* FROM "regions"
29
- Region Load (0.8ms) SELECT "regions".* FROM "regions"
30
-  (0.5ms) begin transaction
31
- SQL (1.3ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?) [["lft", 0.0], ["lftp", 0], ["lftq", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
32
- SQLite3::ConstraintException: NOT NULL constraint failed: regions.name: INSERT INTO "regions" ("lft", "lftp", "lftq", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?)
33
-  (0.5ms) rollback transaction
34
-  (0.4ms) begin transaction
35
- SQL (1.6ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?) [["lft", 0.0], ["lftp", 0], ["lftq", 1], ["name", "Hello"], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
36
-  (658.8ms) commit transaction
37
-  (0.3ms) begin transaction
38
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
39
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
40
- Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 1]]
41
- SQL (0.8ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.5], ["lftp", 1], ["lftq", 2], ["name", "a"], ["region_id", 1], ["rgt", 1.0], ["rgtp", 1], ["rgtq", 1]]
42
-  (155.7ms) commit transaction
43
- Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? [["region_id", 1]]
44
-  (0.4ms) begin transaction
45
- Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
46
- Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
47
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 1]]
48
- SQL (0.6ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.333333333333333], ["lftp", 1], ["lftq", 3], ["name", "a"], ["region_id", 1], ["rgt", 0.5], ["rgtp", 1], ["rgtq", 2]]
49
-  (127.8ms) commit transaction
50
-  (0.4ms) begin transaction
51
- Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
52
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 1]]
53
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 1]]
54
- SQL (0.8ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.25], ["lftp", 1], ["lftq", 4], ["name", "a"], ["region_id", 1], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
55
-  (142.9ms) commit transaction
56
- Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL ORDER BY "regions"."id" ASC LIMIT 1
57
- Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
58
- Region Load (1.0ms) SELECT "regions".* FROM "regions"
59
-  (0.6ms) SELECT COUNT(*) FROM "regions"
60
- Region Load (0.9ms) SELECT "regions".* FROM "regions"
61
- Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? [["region_id", 1]]
62
- Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
63
- Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)
64
- Region Load (1.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
65
- "regions".lft BETWEEN 0.0 AND 1.0
66
- )
67
-  (0.9ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
68
- "regions".lft BETWEEN 0.0 AND 1.0
69
- )
70
-  (1.0ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft >= 0.0 AND rgt <= 1.0)
71
- Region Load (0.6ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" ASC LIMIT 1
72
-  (0.6ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
73
- Region Load (1.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
74
- "regions".lft BETWEEN 0.0 AND 1.0
75
- )
76
-  (0.9ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
77
- "regions".lft BETWEEN 0.0 AND 1.0
78
- )
79
-  (0.8ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
80
- "regions".lft BETWEEN 0.0 AND 1.0
81
- )
82
-  (1.5ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
83
-  (1.0ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
84
-  (0.8ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
85
-  (0.9ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
86
- "regions".lft BETWEEN 0.0 AND 1.0
87
- )
88
-  (0.8ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
89
- "regions".lft BETWEEN 0.0 AND 1.0
90
- )
91
-  (0.6ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND ( 0 < "regions".lftp AND
92
- "regions".lft BETWEEN 0.0 AND 1.0
93
- )
94
-  (0.8ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
95
-  (0.8ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
96
-  (0.6ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
97
-  (0.7ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
98
-  (0.8ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
99
-  (0.9ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
100
- Region Load (0.9ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
101
- Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
102
- Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
103
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.25)
104
- Region Load (1.0ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
105
- Region Load (1.1ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
106
- Region Load (1.0ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
107
-  (0.4ms) begin transaction
108
- Region Load (0.7ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
109
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 4]]
110
- Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 4]]
111
- SQL (1.2ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.285714285714286], ["lftp", 2], ["lftq", 7], ["name", "X"], ["region_id", 4], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
112
-  (127.4ms) commit transaction
113
- Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
114
-  (0.4ms) begin transaction
115
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
116
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 5]]
117
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 5]]
118
- SQL (0.7ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.3], ["lftp", 3], ["lftq", 10], ["name", "X"], ["region_id", 5], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
119
-  (103.5ms) commit transaction
120
- Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
121
-  (0.3ms) begin transaction
122
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 6]]
123
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 6]]
124
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 6]]
125
- SQL (0.7ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.307692307692308], ["lftp", 4], ["lftq", 13], ["name", "X"], ["region_id", 6], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
126
-  (127.8ms) commit transaction
127
- Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
128
-  (0.4ms) begin transaction
129
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
130
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 7]]
131
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 7]]
132
- SQL (0.8ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.3125], ["lftp", 5], ["lftq", 16], ["name", "X"], ["region_id", 7], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
133
-  (116.9ms) commit transaction
134
- Region Load (0.6ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
135
-  (0.3ms) begin transaction
136
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 8]]
137
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 8]]
138
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 8]]
139
- SQL (0.7ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.315789473684211], ["lftp", 6], ["lftq", 19], ["name", "X"], ["region_id", 8], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
140
-  (111.5ms) commit transaction
141
- Region Load (0.6ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
142
-  (0.3ms) begin transaction
143
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
144
- Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 9]]
145
- Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 9]]
146
- SQL (0.7ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.318181818181818], ["lftp", 7], ["lftq", 22], ["name", "X"], ["region_id", 9], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
147
-  (138.5ms) commit transaction
148
- Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
149
-  (0.5ms) begin transaction
150
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 10]]
151
- Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 10]]
152
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 10]]
153
- SQL (0.8ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.32], ["lftp", 8], ["lftq", 25], ["name", "X"], ["region_id", 10], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
154
-  (138.3ms) commit transaction
155
- Region Load (0.6ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
156
-  (0.3ms) begin transaction
157
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
158
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 11]]
159
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 11]]
160
- SQL (0.6ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.321428571428571], ["lftp", 9], ["lftq", 28], ["name", "X"], ["region_id", 11], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
161
-  (126.4ms) commit transaction
162
- Region Load (0.8ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
163
-  (0.3ms) begin transaction
164
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 12]]
165
- Region Load (0.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 12]]
166
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 12]]
167
- SQL (0.7ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.32258064516129], ["lftp", 10], ["lftq", 31], ["name", "X"], ["region_id", 12], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
168
-  (127.0ms) commit transaction
169
- Region Load (0.8ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
170
-  (0.5ms) begin transaction
171
- Region Load (0.5ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
172
- Region Load (0.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."id" = ? LIMIT 1 [["id", 13]]
173
- Region Load (0.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = ? ORDER BY lftq DESC LIMIT 1 [["region_id", 13]]
174
- SQL (0.7ms) INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["lft", 0.323529411764706], ["lftp", 11], ["lftq", 34], ["name", "X"], ["region_id", 13], ["rgt", 0.333333333333333], ["rgtp", 1], ["rgtq", 3]]
175
-  (127.1ms) commit transaction
176
- Region Load (0.9ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
177
- Region Load (1.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
178
- Region Load (1.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
179
-  (1.3ms) SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
180
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
181
- Region Load (1.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
182
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
183
- Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
184
- Region Load (1.3ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
185
- Region Load (1.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
186
- Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
187
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
188
- Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."lft" = 0.3235294117647059
189
- Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."lft" = 0.3235294117647059
190
- Region Load (1.4ms) SELECT "regions".* FROM "regions" WHERE (lft < 0.3235294117647059)
191
-  (0.7ms) SELECT COUNT(*) FROM "regions" WHERE (lft < 0.3235294117647059)
192
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE (lft < 0.3235294117647059 AND rgt >= 0.3333333333333333)
193
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE (rgt >= 0.3333333333333333)
194
-  (0.5ms) SELECT COUNT(*) FROM "regions" WHERE (rgt >= 0.3333333333333333)
195
-  (0.7ms) SELECT COUNT(*) FROM "regions" WHERE (rgtp / rgtq >= 0.3333333333333333)
196
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE (rgtp / rgtq >= 0.3333333333333333)
197
- Region Load (1.0ms) SELECT "regions".* FROM "regions" WHERE (rgtp / rgtq >= 0.3333333333333333)
198
-  (0.9ms) SELECT "regions"."rgt" FROM "regions"
199
-  (1.1ms) SELECT "regions"."rgtq" FROM "regions"
200
-  (0.9ms) SELECT rgtp / rgtq FROM "regions"
201
-  (0.9ms) SELECT CAST(rgtp AS FLOAT) / rgtq FROM "regions"
202
-  (0.9ms) SELECT CAST(rgtp AS FLOAT) / CAST(rgtq AS FLOAT) FROM "regions"
203
-  (0.9ms) SELECT rgtp, rgtq FROM "regions"
204
-  (0.9ms) SELECT lftp, lftq FROM "regions"
205
-  (1.0ms) SELECT lftp / lftq FROM "regions"
206
-  (1.1ms) SELECT CAST(lftp AS FLOAT) / lftq FROM "regions"
207
- Region Load (0.6ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
208
-  (0.7ms) SELECT "regions"."lft" FROM "regions"
209
-  (0.8ms) SELECT "regions"."lft" FROM "regions"
210
-  (1.1ms) SELECT "regions"."lft" FROM "regions"
211
- Region Load (0.6ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
212
-  (0.9ms) SELECT "regions"."lft" FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
213
- Region Load (0.9ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
214
- Region Load (1.4ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
215
- Region Load (0.9ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
216
- Region Load (0.8ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
217
- Region Load (1.2ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= 0.3333333333333333 AND lft < 0.3235294117647059)
218
- Region Load (1.0ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
219
-  (1.2ms) SELECT "regions"."rgt" FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
220
- Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
221
- Region Load (1.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
222
- Region Load (0.9ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
223
- Region Load (0.8ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (CAST(rgt as float) >= 0.3333333333333333 AND lft < 0.3235294117647059)
224
- Region Load (0.6ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
225
- Region Load (1.1ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 31 AND lftp = 10 OR lftq = 28 AND lftp = 9 OR lftq = 25 AND lftp = 8 OR lftq = 22 AND lftp = 7 OR lftq = 19 AND lftp = 6 OR lftq = 16 AND lftp = 5 OR lftq = 13 AND lftp = 4 OR lftq = 10 AND lftp = 3 OR lftq = 7 AND lftp = 2 OR lftq = 4 AND lftp = 1 OR lftq = 1 AND lftp = 0)
226
- Region Load (0.9ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
227
- Region Load (0.9ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (rgt >= CAST(0.3333333333333333 AS FLOAT) AND lft < CAST(0.3235294117647059 AS FLOAT))
228
- Region Load (0.7ms) SELECT "regions".* FROM "regions" ORDER BY "regions"."id" DESC LIMIT 1
229
- Region Load (1.0ms) SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f'
File without changes
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,7 +0,0 @@
1
- # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
-
3
- one:
4
- region_id: 1
5
-
6
- two:
7
- region_id: 1
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class RegionTest < ActiveSupport::TestCase
4
- # test "the truth" do
5
- # assert true
6
- # end
7
- end