divert 0.6 → 0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/divert/redirect.rb +2 -2
- data/lib/divert/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +4 -0
- data/test/dummy/log/test.log +69 -0
- metadata +12 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cba1c827e07f87856cd4597bb5ec0f45b0153cd
|
4
|
+
data.tar.gz: b1e023261ff5c5569d15f81b0cd6fc522e13271e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6160e4e2fda7c543bd283eec79b4130e1b88f69e751b02aa4b89cefa57cbe6da5d24fb3e98c7785b2260d60db49956ba7207eaa54822734b77438893c622fe72
|
7
|
+
data.tar.gz: 7b4f77a96f4ef73b806a317d5ab19a4c2a7284cf32f3ec8212050750f0c8b8c69232e29cd29711163c1c34830a485ee172e9e79e583f130021221e3e29a696c8
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Divert
|
2
2
|
class Redirect < ActiveRecord::Base
|
3
3
|
# Validations
|
4
|
-
validates :hither, presence:true
|
4
|
+
validates :hither, presence:true, uniqueness:true
|
5
5
|
|
6
6
|
# Instance Methods
|
7
7
|
def name
|
@@ -21,6 +21,6 @@ module Divert
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# Scopes
|
24
|
-
scope :active,
|
24
|
+
scope :active, -> { where(:active => true) }
|
25
25
|
end
|
26
26
|
end
|
data/lib/divert/version.rb
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,4 @@
|
|
1
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.7ms)[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"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
----------------------
|
3
|
+
DivertTest: test_truth
|
4
|
+
----------------------
|
5
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
7
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
8
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
9
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
10
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
11
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12
|
+
[1m[35m (0.3ms)[0m begin transaction
|
13
|
+
----------------------
|
14
|
+
DivertTest: test_truth
|
15
|
+
----------------------
|
16
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
19
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
20
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
21
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
22
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
23
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
26
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
27
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
28
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
29
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
30
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
31
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32
|
+
----------------------
|
33
|
+
DivertTest: test_truth
|
34
|
+
----------------------
|
35
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
36
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
38
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
39
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
40
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
41
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
42
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
43
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
45
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
46
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
47
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
48
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
49
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
50
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
51
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
52
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
53
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
54
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
55
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[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[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
59
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
60
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
61
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
62
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
63
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
64
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
66
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
67
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
68
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
69
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: divert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Butler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -78,6 +78,10 @@ files:
|
|
78
78
|
- test/dummy/config/initializers/wrap_parameters.rb
|
79
79
|
- test/dummy/config/locales/en.yml
|
80
80
|
- test/dummy/config/routes.rb
|
81
|
+
- test/dummy/db/development.sqlite3
|
82
|
+
- test/dummy/db/test.sqlite3
|
83
|
+
- test/dummy/log/development.log
|
84
|
+
- test/dummy/log/test.log
|
81
85
|
- test/dummy/public/404.html
|
82
86
|
- test/dummy/public/422.html
|
83
87
|
- test/dummy/public/500.html
|
@@ -108,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
112
|
version: '0'
|
109
113
|
requirements: []
|
110
114
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.4.5
|
112
116
|
signing_key:
|
113
117
|
specification_version: 4
|
114
118
|
summary: Easily handle 404s and redirects with your rails app.
|
@@ -135,6 +139,10 @@ test_files:
|
|
135
139
|
- test/dummy/config/locales/en.yml
|
136
140
|
- test/dummy/config/routes.rb
|
137
141
|
- test/dummy/config.ru
|
142
|
+
- test/dummy/db/development.sqlite3
|
143
|
+
- test/dummy/db/test.sqlite3
|
144
|
+
- test/dummy/log/development.log
|
145
|
+
- test/dummy/log/test.log
|
138
146
|
- test/dummy/public/404.html
|
139
147
|
- test/dummy/public/422.html
|
140
148
|
- test/dummy/public/500.html
|
@@ -148,3 +156,4 @@ test_files:
|
|
148
156
|
- test/test_helper.rb
|
149
157
|
- test/unit/divert/redirect_test.rb
|
150
158
|
- test/unit/helpers/divert/redirects_helper_test.rb
|
159
|
+
has_rdoc:
|