redirector 1.1.3 → 1.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c01df6ab772fddc64f62ca400dd1ddfb6625d457456fc1fb4dea51633dcdc2ad
4
- data.tar.gz: '049cb7294b67e386ede684c4edf7e5e519619af2a6bdadba0949643d1897132c'
3
+ metadata.gz: ccf7066f0ca506084c083b3d4894af1b402feaef3ea4a9b4da17a3798f54e571
4
+ data.tar.gz: b8c84d4dc6d118797c29b396d14f8e0aec3f75faac49efd13e5cb3ee007269bf
5
5
  SHA512:
6
- metadata.gz: cfefc3ef450d81d2ccf303dc4012365b4c5d3119686d639ceecbfb2e03bf4cb0b52320020fad9f4568ee0a03d4ee6618d1235698f1086dab2affc0ba05620ba4
7
- data.tar.gz: e5d1e216bae17023780929d9f83f1ea9cb24ca27500751d9307d57f14d6c7407f94462aec1339f656b44fd6d1272a21de842f5cf3c55a0d98a38f20165796d3f
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
 
@@ -1,3 +1,3 @@
1
1
  module Redirector
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -282,3 +282,8 @@ Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in
282
282
   (0.2ms) SELECT version FROM `schema_migrations`
283
283
   (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120823163756')
284
284
   (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120815212612')
285
+  (1.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
286
+  (22.3ms) DROP DATABASE IF EXISTS `redirector_dummy_test`
287
+  (0.4ms) CREATE DATABASE `redirector_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
288
+  (0.4ms) 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.3
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-01-15 00:00:00.000000000 Z
11
+ date: 2019-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails