redirector 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redirector/middleware.rb +1 -1
- data/lib/redirector/version.rb +1 -1
- data/spec/dummy/log/development.log +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccf7066f0ca506084c083b3d4894af1b402feaef3ea4a9b4da17a3798f54e571
|
4
|
+
data.tar.gz: b8c84d4dc6d118797c29b396d14f8e0aec3f75faac49efd13e5cb3ee007269bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f04ec1dd818575060b493db61aaad7c977072def42e1ec1ba2e3ebfba899cb0badaebdfb5f8057d19a10d9a8992c1bda24fc6e36abababb1ce50dba5940c94c8
|
7
|
+
data.tar.gz: 79385fc940de5d5df569b5ab9467715866cfdd6d9511a5b5e8364b2dd848f479c988ba396cf637d9bafe8e53b4093b1db935ba4e10431523065270ca071ab51b
|
@@ -93,7 +93,7 @@ module Redirector
|
|
93
93
|
uri.scheme ||= request_scheme
|
94
94
|
uri.host ||= request_host
|
95
95
|
uri.port ||= request_port if request_port.present?
|
96
|
-
uri.query ||= env['QUERY_STRING'] if Redirector.preserve_query
|
96
|
+
uri.query ||= env['QUERY_STRING'] if Redirector.preserve_query && env['QUERY_STRING'].present?
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
data/lib/redirector/version.rb
CHANGED
@@ -282,3 +282,8 @@ Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in
|
|
282
282
|
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
283
283
|
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120823163756')[0m
|
284
284
|
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
|
285
|
+
[1m[36m (1.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
286
|
+
[1m[35m (22.3ms)[0m DROP DATABASE IF EXISTS `redirector_dummy_test`
|
287
|
+
[1m[36m (0.4ms)[0m [1mCREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
288
|
+
[1m[35m (0.4ms)[0m CREATE TABLE `redirect_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `source` varchar(255) NOT NULL, `source_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `source_is_case_sensitive` tinyint(1) DEFAULT 0 NOT NULL, `destination` varchar(255) NOT NULL, `active` tinyint(1) DEFAULT 0, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
289
|
+
Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead: CREATE TABLE `redirect_rules` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `source` varchar(255) NOT NULL, `source_is_regex` tinyint(1) DEFAULT 0 NOT NULL, `source_is_case_sensitive` tinyint(1) DEFAULT 0 NOT NULL, `destination` varchar(255) NOT NULL, `active` tinyint(1) DEFAULT 0, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redirector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Landau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|