acts_as_nested_interval 0.1.1 → 0.2.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/lib/acts_as_nested_interval.rb +42 -41
  3. data/lib/acts_as_nested_interval/callbacks.rb +42 -0
  4. data/lib/acts_as_nested_interval/class_methods.rb +2 -2
  5. data/lib/acts_as_nested_interval/instance_methods.rb +13 -33
  6. data/lib/acts_as_nested_interval/version.rb +1 -1
  7. data/test/dummy/README.rdoc +15 -248
  8. data/test/dummy/Rakefile +1 -2
  9. data/test/dummy/app/assets/javascripts/application.js +3 -5
  10. data/test/dummy/app/assets/stylesheets/application.css +6 -4
  11. data/test/dummy/app/controllers/application_controller.rb +3 -1
  12. data/test/dummy/app/models/region.rb +2 -0
  13. data/test/dummy/app/views/layouts/application.html.erb +2 -2
  14. data/test/dummy/bin/bundle +3 -0
  15. data/test/dummy/bin/rails +4 -0
  16. data/test/dummy/bin/rake +4 -0
  17. data/test/dummy/config.ru +1 -1
  18. data/test/dummy/config/application.rb +1 -34
  19. data/test/dummy/config/boot.rb +4 -9
  20. data/test/dummy/config/database.yml +1 -1
  21. data/test/dummy/config/environment.rb +3 -3
  22. data/test/dummy/config/environments/development.rb +19 -19
  23. data/test/dummy/config/environments/production.rb +44 -28
  24. data/test/dummy/config/environments/test.rb +17 -15
  25. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  26. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  27. data/test/dummy/config/initializers/inflections.rb +6 -5
  28. data/test/dummy/config/initializers/mime_types.rb +0 -1
  29. data/test/dummy/config/initializers/session_store.rb +1 -6
  30. data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
  31. data/test/dummy/config/locales/en.yml +20 -2
  32. data/test/dummy/config/routes.rb +23 -25
  33. data/test/dummy/config/secrets.yml +22 -0
  34. data/test/dummy/db/schema.rb +14 -11
  35. data/test/dummy/log/development.log +17 -0
  36. data/test/dummy/log/test.log +2833 -0
  37. data/test/dummy/public/404.html +54 -13
  38. data/test/dummy/public/422.html +54 -13
  39. data/test/dummy/public/500.html +53 -12
  40. data/test/dummy_bak/Gemfile +4 -0
  41. data/test/dummy_bak/Gemfile.lock +92 -0
  42. data/test/dummy_bak/README.rdoc +261 -0
  43. data/test/dummy_bak/Rakefile +7 -0
  44. data/test/dummy_bak/app/assets/javascripts/application.js +15 -0
  45. data/test/dummy_bak/app/assets/stylesheets/application.css +13 -0
  46. data/test/dummy_bak/app/controllers/application_controller.rb +3 -0
  47. data/test/dummy_bak/app/helpers/application_helper.rb +2 -0
  48. data/test/dummy_bak/app/models/region.rb +5 -0
  49. data/test/dummy_bak/app/views/layouts/application.html.erb +14 -0
  50. data/test/dummy_bak/bin/bundle +3 -0
  51. data/test/dummy_bak/bin/rails +4 -0
  52. data/test/dummy_bak/bin/rake +4 -0
  53. data/test/dummy_bak/config.ru +4 -0
  54. data/test/dummy_bak/config/application.rb +23 -0
  55. data/test/dummy_bak/config/boot.rb +4 -0
  56. data/test/dummy_bak/config/database.yml +31 -0
  57. data/test/dummy_bak/config/environment.rb +5 -0
  58. data/test/dummy_bak/config/environments/development.rb +37 -0
  59. data/test/dummy_bak/config/environments/production.rb +83 -0
  60. data/test/dummy_bak/config/environments/test.rb +39 -0
  61. data/test/dummy_bak/config/initializers/backtrace_silencers.rb +7 -0
  62. data/test/dummy_bak/config/initializers/cookies_serializer.rb +3 -0
  63. data/test/dummy_bak/config/initializers/filter_parameter_logging.rb +4 -0
  64. data/test/dummy_bak/config/initializers/inflections.rb +16 -0
  65. data/test/dummy_bak/config/initializers/mime_types.rb +4 -0
  66. data/test/{dummy → dummy_bak}/config/initializers/secret_token.rb +0 -0
  67. data/test/dummy_bak/config/initializers/session_store.rb +3 -0
  68. data/test/dummy_bak/config/initializers/wrap_parameters.rb +14 -0
  69. data/test/dummy_bak/config/locales/en.yml +23 -0
  70. data/test/dummy_bak/config/routes.rb +56 -0
  71. data/test/dummy_bak/config/secrets.yml +22 -0
  72. data/test/dummy_bak/db/development.sqlite3 +0 -0
  73. data/test/dummy_bak/db/migrate/20120302143528_create_regions.rb +15 -0
  74. data/test/dummy_bak/db/migrate/20121004204252_change_interval_precision.rb +6 -0
  75. data/test/dummy_bak/db/schema.rb +28 -0
  76. data/test/dummy_bak/log/development.log +229 -0
  77. data/test/dummy_bak/log/test.log +0 -0
  78. data/test/dummy_bak/public/404.html +26 -0
  79. data/test/dummy_bak/public/422.html +26 -0
  80. data/test/dummy_bak/public/500.html +25 -0
  81. data/test/dummy_bak/public/favicon.ico +0 -0
  82. data/test/{dummy → dummy_bak}/script/rails +0 -0
  83. data/test/{dummy → dummy_bak}/test/fixtures/regions.yml +0 -0
  84. data/test/{dummy → dummy_bak}/test/unit/region_test.rb +0 -0
  85. data/test/test_helper.rb +5 -0
  86. metadata +112 -55
@@ -0,0 +1,22 @@
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"] %>
@@ -0,0 +1,15 @@
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
@@ -0,0 +1,6 @@
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
@@ -0,0 +1,28 @@
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
@@ -0,0 +1,229 @@
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
@@ -0,0 +1,26 @@
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>
@@ -0,0 +1,26 @@
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>
@@ -0,0 +1,25 @@
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
File without changes
File without changes
File without changes
data/test/test_helper.rb CHANGED
@@ -8,3 +8,8 @@ Rails.backtrace_cleaner.remove_silencers!
8
8
 
9
9
  # Load support files
10
10
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_nested_interval
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolae Claudius
@@ -10,10 +10,10 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-15 00:00:00.000000000 Z
13
+ date: 2014-04-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rails
16
+ name: activesupport
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ">="
@@ -32,48 +32,6 @@ dependencies:
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '5'
35
- - !ruby/object:Gem::Dependency
36
- name: sqlite3
37
- requirement: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- type: :development
43
- prerelease: false
44
- version_requirements: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- - !ruby/object:Gem::Dependency
50
- name: mysql2
51
- requirement: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- type: :development
57
- prerelease: false
58
- version_requirements: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- - !ruby/object:Gem::Dependency
64
- name: pg
65
- requirement: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
35
  description: Encode Trees in RDBMS using nested interval method for powerful querying
78
36
  and speedy inserts.
79
37
  email:
@@ -86,6 +44,7 @@ files:
86
44
  - README.md
87
45
  - Rakefile
88
46
  - lib/acts_as_nested_interval.rb
47
+ - lib/acts_as_nested_interval/callbacks.rb
89
48
  - lib/acts_as_nested_interval/class_methods.rb
90
49
  - lib/acts_as_nested_interval/core_ext/integer.rb
91
50
  - lib/acts_as_nested_interval/instance_methods.rb
@@ -100,6 +59,9 @@ files:
100
59
  - test/dummy/app/helpers/application_helper.rb
101
60
  - test/dummy/app/models/region.rb
102
61
  - test/dummy/app/views/layouts/application.html.erb
62
+ - test/dummy/bin/bundle
63
+ - test/dummy/bin/rails
64
+ - test/dummy/bin/rake
103
65
  - test/dummy/config.ru
104
66
  - test/dummy/config/application.rb
105
67
  - test/dummy/config/boot.rb
@@ -109,23 +71,69 @@ files:
109
71
  - test/dummy/config/environments/production.rb
110
72
  - test/dummy/config/environments/test.rb
111
73
  - test/dummy/config/initializers/backtrace_silencers.rb
74
+ - test/dummy/config/initializers/cookies_serializer.rb
75
+ - test/dummy/config/initializers/filter_parameter_logging.rb
112
76
  - test/dummy/config/initializers/inflections.rb
113
77
  - test/dummy/config/initializers/mime_types.rb
114
- - test/dummy/config/initializers/secret_token.rb
115
78
  - test/dummy/config/initializers/session_store.rb
116
79
  - test/dummy/config/initializers/wrap_parameters.rb
117
80
  - test/dummy/config/locales/en.yml
118
81
  - test/dummy/config/routes.rb
82
+ - test/dummy/config/secrets.yml
119
83
  - test/dummy/db/migrate/20120302143528_create_regions.rb
120
84
  - test/dummy/db/migrate/20121004204252_change_interval_precision.rb
121
85
  - test/dummy/db/schema.rb
86
+ - test/dummy/log/development.log
87
+ - test/dummy/log/test.log
122
88
  - test/dummy/public/404.html
123
89
  - test/dummy/public/422.html
124
90
  - test/dummy/public/500.html
125
91
  - test/dummy/public/favicon.ico
126
- - test/dummy/script/rails
127
- - test/dummy/test/fixtures/regions.yml
128
- - test/dummy/test/unit/region_test.rb
92
+ - test/dummy_bak/Gemfile
93
+ - test/dummy_bak/Gemfile.lock
94
+ - test/dummy_bak/README.rdoc
95
+ - test/dummy_bak/Rakefile
96
+ - test/dummy_bak/app/assets/javascripts/application.js
97
+ - test/dummy_bak/app/assets/stylesheets/application.css
98
+ - test/dummy_bak/app/controllers/application_controller.rb
99
+ - test/dummy_bak/app/helpers/application_helper.rb
100
+ - test/dummy_bak/app/models/region.rb
101
+ - test/dummy_bak/app/views/layouts/application.html.erb
102
+ - test/dummy_bak/bin/bundle
103
+ - test/dummy_bak/bin/rails
104
+ - test/dummy_bak/bin/rake
105
+ - test/dummy_bak/config.ru
106
+ - test/dummy_bak/config/application.rb
107
+ - test/dummy_bak/config/boot.rb
108
+ - test/dummy_bak/config/database.yml
109
+ - test/dummy_bak/config/environment.rb
110
+ - test/dummy_bak/config/environments/development.rb
111
+ - test/dummy_bak/config/environments/production.rb
112
+ - test/dummy_bak/config/environments/test.rb
113
+ - test/dummy_bak/config/initializers/backtrace_silencers.rb
114
+ - test/dummy_bak/config/initializers/cookies_serializer.rb
115
+ - test/dummy_bak/config/initializers/filter_parameter_logging.rb
116
+ - test/dummy_bak/config/initializers/inflections.rb
117
+ - test/dummy_bak/config/initializers/mime_types.rb
118
+ - test/dummy_bak/config/initializers/secret_token.rb
119
+ - test/dummy_bak/config/initializers/session_store.rb
120
+ - test/dummy_bak/config/initializers/wrap_parameters.rb
121
+ - test/dummy_bak/config/locales/en.yml
122
+ - test/dummy_bak/config/routes.rb
123
+ - test/dummy_bak/config/secrets.yml
124
+ - test/dummy_bak/db/development.sqlite3
125
+ - test/dummy_bak/db/migrate/20120302143528_create_regions.rb
126
+ - test/dummy_bak/db/migrate/20121004204252_change_interval_precision.rb
127
+ - test/dummy_bak/db/schema.rb
128
+ - test/dummy_bak/log/development.log
129
+ - test/dummy_bak/log/test.log
130
+ - test/dummy_bak/public/404.html
131
+ - test/dummy_bak/public/422.html
132
+ - test/dummy_bak/public/500.html
133
+ - test/dummy_bak/public/favicon.ico
134
+ - test/dummy_bak/script/rails
135
+ - test/dummy_bak/test/fixtures/regions.yml
136
+ - test/dummy_bak/test/unit/region_test.rb
129
137
  - test/test_helper.rb
130
138
  homepage: https://github.com/grzlus/acts_as_nested_interval
131
139
  licenses: []
@@ -141,9 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
149
  version: '0'
142
150
  required_rubygems_version: !ruby/object:Gem::Requirement
143
151
  requirements:
144
- - - ">="
152
+ - - ">"
145
153
  - !ruby/object:Gem::Version
146
- version: '0'
154
+ version: 1.3.1
147
155
  requirements: []
148
156
  rubyforge_project:
149
157
  rubygems_version: 2.2.2
@@ -153,24 +161,25 @@ summary: Encode Trees in RDBMS using nested interval method.
153
161
  test_files:
154
162
  - test/test_helper.rb
155
163
  - test/dummy/config.ru
156
- - test/dummy/script/rails
157
- - test/dummy/test/fixtures/regions.yml
158
- - test/dummy/test/unit/region_test.rb
159
164
  - test/dummy/config/routes.rb
160
165
  - test/dummy/config/initializers/session_store.rb
161
166
  - test/dummy/config/initializers/mime_types.rb
162
167
  - test/dummy/config/initializers/backtrace_silencers.rb
163
168
  - test/dummy/config/initializers/inflections.rb
169
+ - test/dummy/config/initializers/filter_parameter_logging.rb
170
+ - test/dummy/config/initializers/cookies_serializer.rb
164
171
  - test/dummy/config/initializers/wrap_parameters.rb
165
- - test/dummy/config/initializers/secret_token.rb
166
172
  - test/dummy/config/application.rb
167
173
  - test/dummy/config/environment.rb
168
174
  - test/dummy/config/boot.rb
175
+ - test/dummy/config/secrets.yml
169
176
  - test/dummy/config/environments/production.rb
170
177
  - test/dummy/config/environments/development.rb
171
178
  - test/dummy/config/environments/test.rb
172
179
  - test/dummy/config/locales/en.yml
173
180
  - test/dummy/config/database.yml
181
+ - test/dummy/log/development.log
182
+ - test/dummy/log/test.log
174
183
  - test/dummy/public/500.html
175
184
  - test/dummy/public/404.html
176
185
  - test/dummy/public/favicon.ico
@@ -186,4 +195,52 @@ test_files:
186
195
  - test/dummy/app/helpers/application_helper.rb
187
196
  - test/dummy/app/models/region.rb
188
197
  - test/dummy/app/controllers/application_controller.rb
198
+ - test/dummy/bin/rails
199
+ - test/dummy/bin/rake
200
+ - test/dummy/bin/bundle
189
201
  - test/acts_as_nested_interval_test.rb
202
+ - test/dummy_bak/config.ru
203
+ - test/dummy_bak/script/rails
204
+ - test/dummy_bak/test/fixtures/regions.yml
205
+ - test/dummy_bak/test/unit/region_test.rb
206
+ - test/dummy_bak/config/routes.rb
207
+ - test/dummy_bak/config/initializers/session_store.rb
208
+ - test/dummy_bak/config/initializers/mime_types.rb
209
+ - test/dummy_bak/config/initializers/backtrace_silencers.rb
210
+ - test/dummy_bak/config/initializers/inflections.rb
211
+ - test/dummy_bak/config/initializers/filter_parameter_logging.rb
212
+ - test/dummy_bak/config/initializers/cookies_serializer.rb
213
+ - test/dummy_bak/config/initializers/wrap_parameters.rb
214
+ - test/dummy_bak/config/initializers/secret_token.rb
215
+ - test/dummy_bak/config/application.rb
216
+ - test/dummy_bak/config/environment.rb
217
+ - test/dummy_bak/config/boot.rb
218
+ - test/dummy_bak/config/secrets.yml
219
+ - test/dummy_bak/config/environments/production.rb
220
+ - test/dummy_bak/config/environments/development.rb
221
+ - test/dummy_bak/config/environments/test.rb
222
+ - test/dummy_bak/config/locales/en.yml
223
+ - test/dummy_bak/config/database.yml
224
+ - test/dummy_bak/Gemfile.lock
225
+ - test/dummy_bak/Gemfile
226
+ - test/dummy_bak/log/development.log
227
+ - test/dummy_bak/log/test.log
228
+ - test/dummy_bak/public/500.html
229
+ - test/dummy_bak/public/404.html
230
+ - test/dummy_bak/public/favicon.ico
231
+ - test/dummy_bak/public/422.html
232
+ - test/dummy_bak/db/migrate/20120302143528_create_regions.rb
233
+ - test/dummy_bak/db/migrate/20121004204252_change_interval_precision.rb
234
+ - test/dummy_bak/db/development.sqlite3
235
+ - test/dummy_bak/db/schema.rb
236
+ - test/dummy_bak/README.rdoc
237
+ - test/dummy_bak/Rakefile
238
+ - test/dummy_bak/app/assets/stylesheets/application.css
239
+ - test/dummy_bak/app/assets/javascripts/application.js
240
+ - test/dummy_bak/app/views/layouts/application.html.erb
241
+ - test/dummy_bak/app/helpers/application_helper.rb
242
+ - test/dummy_bak/app/models/region.rb
243
+ - test/dummy_bak/app/controllers/application_controller.rb
244
+ - test/dummy_bak/bin/rails
245
+ - test/dummy_bak/bin/rake
246
+ - test/dummy_bak/bin/bundle