redirector 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/redirect_rule.rb +1 -1
- data/lib/redirector/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb675c9f26d61cfd4fc34c34067e6771b452b7bf415ef4075f64380317790533
|
4
|
+
data.tar.gz: '088cfeca2a7c2a03107bbad9a27c85c381fc3fc8a55307a081d05883125bd5e3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95d4eb6bb94972d2eb6ec5c40e7410c90c04f2005e06516313bab55ecefeb09ba532a96da4ae490bc844916a07adee9ac35b38551a093d8b84c2b18a9f79bd80
|
7
|
+
data.tar.gz: 82c3ff1359ca15d9bc57caa64d317344180bf8a3596fe496f6dc87916e9f67819c9aeb3ce5ee395ca041fa776bc745ebb53128bd8266bf90334f77b9295bb1ef
|
data/app/models/redirect_rule.rb
CHANGED
@@ -24,7 +24,7 @@ class RedirectRule < ActiveRecord::Base
|
|
24
24
|
|
25
25
|
def self.regex_expression
|
26
26
|
if connection_mysql?
|
27
|
-
'(redirect_rules.source_is_case_sensitive = :true AND :source REGEXP BINARY redirect_rules.source) OR '+
|
27
|
+
'(redirect_rules.source_is_case_sensitive = :true AND CAST(:source AS BINARY) REGEXP BINARY redirect_rules.source) OR '+
|
28
28
|
'(redirect_rules.source_is_case_sensitive = :false AND :source REGEXP redirect_rules.source)'
|
29
29
|
elsif connection_sqlite?
|
30
30
|
'(redirect_rules.source_is_case_sensitive = :true AND :source REGEXP redirect_rules.source COLLATE BINARY) OR '+
|
data/lib/redirector/version.rb
CHANGED
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Landau
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -243,7 +243,7 @@ files:
|
|
243
243
|
homepage: https://github.com/vigetlabs/redirector
|
244
244
|
licenses: []
|
245
245
|
metadata: {}
|
246
|
-
post_install_message:
|
246
|
+
post_install_message:
|
247
247
|
rdoc_options: []
|
248
248
|
require_paths:
|
249
249
|
- lib
|
@@ -258,8 +258,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
258
258
|
- !ruby/object:Gem::Version
|
259
259
|
version: '0'
|
260
260
|
requirements: []
|
261
|
-
rubygems_version: 3.
|
262
|
-
signing_key:
|
261
|
+
rubygems_version: 3.1.4
|
262
|
+
signing_key:
|
263
263
|
specification_version: 4
|
264
264
|
summary: A Rails engine that adds a piece of middleware to the top of your middleware
|
265
265
|
stack that looks for redirect rules stored in your database and redirects you accordingly.
|