divert 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a6b356e7733eb5fef053ad4a60b3ebf58a31847
4
- data.tar.gz: 07a9684e435a664ffe825062d992ab298e16961e
3
+ metadata.gz: 3cba1c827e07f87856cd4597bb5ec0f45b0153cd
4
+ data.tar.gz: b1e023261ff5c5569d15f81b0cd6fc522e13271e
5
5
  SHA512:
6
- metadata.gz: 427b1fefa5431599cd797d083c5f9a9afc60ed14549ca1577658038d1b8c2a8010c9d925f5df2c0e817d21c89506d0311180560336c28d3f62121800f1252eb2
7
- data.tar.gz: 33e13a6cc622b1a3adc2ad5eec7b556afcae9286013f3e9306e8e974ffa971646ce8590216749f6f43498d175c3e2dafabcf51e0a6d7ae04a299dc6a8a70cb5c
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, :conditions => {:active => true}
24
+ scope :active, -> { where(:active => true) }
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Divert
2
- VERSION = "0.6"
2
+ VERSION = "0.7"
3
3
  end
Binary file
Binary file
@@ -0,0 +1,4 @@
1
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.5ms) select sqlite_version(*)
3
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,69 @@
1
+  (0.1ms) begin transaction
2
+ ----------------------
3
+ DivertTest: test_truth
4
+ ----------------------
5
+  (0.1ms) rollback transaction
6
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
7
+  (0.1ms) select sqlite_version(*)
8
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9
+  (0.2ms) SELECT version FROM "schema_migrations"
10
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (0.3ms) begin transaction
13
+ ----------------------
14
+ DivertTest: test_truth
15
+ ----------------------
16
+  (0.1ms) rollback transaction
17
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
19
+  (0.2ms) select sqlite_version(*)
20
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
21
+  (0.2ms) SELECT version FROM "schema_migrations"
22
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
23
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
26
+  (0.1ms) select sqlite_version(*)
27
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28
+  (0.1ms) SELECT version FROM "schema_migrations"
29
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
30
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
31
+  (0.1ms) begin transaction
32
+ ----------------------
33
+ DivertTest: test_truth
34
+ ----------------------
35
+  (0.0ms) rollback transaction
36
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
37
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
38
+  (0.1ms) select sqlite_version(*)
39
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40
+  (0.2ms) SELECT version FROM "schema_migrations"
41
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
42
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
45
+  (0.1ms) select sqlite_version(*)
46
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
+  (0.1ms) SELECT version FROM "schema_migrations"
48
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
49
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
51
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
52
+  (0.1ms) select sqlite_version(*)
53
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54
+  (0.2ms) SELECT version FROM "schema_migrations"
55
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
56
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
57
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
58
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
59
+  (0.1ms) select sqlite_version(*)
60
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
61
+  (0.2ms) SELECT version FROM "schema_migrations"
62
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
63
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
64
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
69
+ ActiveRecord::SchemaMigration Load (0.1ms) 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.6'
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: 2014-09-18 00:00:00.000000000 Z
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.2.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: