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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa21f332668f32f6e4c94fc77a04a0612a2cc2783fee4e73422c965b02ae9723
4
- data.tar.gz: b6cb99a8c2927a15f4a135833952472e0cdc9976904118e2a1afcde0b8874d21
3
+ metadata.gz: eb675c9f26d61cfd4fc34c34067e6771b452b7bf415ef4075f64380317790533
4
+ data.tar.gz: '088cfeca2a7c2a03107bbad9a27c85c381fc3fc8a55307a081d05883125bd5e3'
5
5
  SHA512:
6
- metadata.gz: 238d6659729659e1b343a495d041f8c970e21aacaf3e3a0c3f918b225359f57a4ebb67e1908e06e44a07e73b1129eeba1d4b8f1f4f23a271255291d6d32d8d7a
7
- data.tar.gz: 9f56ad8d6cbc77dfa7e3714708fe01d9d651440c9970a36211a97b10264ca7e6eac85c7ad5a390b149568f7f3f5d5225838cf73be1b019275fa359052f882722
6
+ metadata.gz: 95d4eb6bb94972d2eb6ec5c40e7410c90c04f2005e06516313bab55ecefeb09ba532a96da4ae490bc844916a07adee9ac35b38551a093d8b84c2b18a9f79bd80
7
+ data.tar.gz: 82c3ff1359ca15d9bc57caa64d317344180bf8a3596fe496f6dc87916e9f67819c9aeb3ce5ee395ca041fa776bc745ebb53128bd8266bf90334f77b9295bb1ef
@@ -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 '+
@@ -1,3 +1,3 @@
1
1
  module Redirector
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
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.6
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: 2019-12-02 00:00:00.000000000 Z
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.0.4
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.