redirectly 0.2.0 → 0.3.0

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: dee36588a0b7625818f348fdaa4afefa27e0f16c1987a5656dd70397114d4989
4
- data.tar.gz: 3e6a9704b9cfd7730d13d84002add38e2d350b6409176833d8861e7e3489f567
3
+ metadata.gz: 63b305a59fc4d5381391df73f884b91f59c815dc970559828cc5712be4df530f
4
+ data.tar.gz: 70bbd12337717b1df14f3ece87f638a0e629e24949b8788b468ca3ab6dbd9387
5
5
  SHA512:
6
- metadata.gz: 205afe31c98f93b7269f95fc6ebac5729c5070107547e5ff8d160ed5de742f67e633c14ab7072bf5328b9bc4968fa73b0bbca7a9e520b747b63d49409c5b2678
7
- data.tar.gz: 7115a8ae99fb4a59b18a198851f10266035504f9473aa06cf85dd8ef26b5fd9723990d957b2263a628405f504a90fff8125a54acfe61b192c0697eba0fdc47b0
6
+ metadata.gz: 290704128855a3587277ba607737f27701860e9ad0760c1c6f6bfed91c44670ed826deff7cad7a6120f3c3b0b1fcd23f2d620edb88f588e8cbb263524f4d8b0e
7
+ data.tar.gz: 8122538c649f2a946ba6b70fbbe5218d8761511c13f7ed0bde8202eb52727bd089650d403588f1d996f9d54bc919c29f4fe6043d1fdf9415713a7c8959b917bc
data/README.md CHANGED
@@ -95,6 +95,7 @@ example.com = https://other-site.com/
95
95
  example.org/* = https://other-site.com/
96
96
  *.old-site.com = !https://permanent.redirect.com
97
97
  :sub.app.localhost/* = http://it-works.com/%{sub}
98
+ (*)old-domain.com/*rest = http://new-domain.com/%{rest}
98
99
  ```
99
100
 
100
101
  For additional server options, see:
@@ -45,7 +45,7 @@ module Redirectly
45
45
  end
46
46
 
47
47
  def ini_read(path)
48
- content = File.readlines(path, chomp: true).reject(&:comment?)
48
+ content = File.readlines(path, chomp: true).reject(&:comment?).reject(&:empty?)
49
49
  content.to_h { |line| line.split(/\s*=\s*/, 2) }
50
50
  end
51
51
 
@@ -72,7 +72,6 @@ module Redirectly
72
72
  if params
73
73
  params.transform_keys!(&:to_sym)
74
74
  params.delete :splat
75
- params.transform_values! { |v| CGI.escape v }
76
75
  end
77
76
 
78
77
  params
@@ -44,6 +44,7 @@ module Redirectly
44
44
  example.org/* = https://other-site.com/
45
45
  *.old-site.com = !https://permanent.redirect.com
46
46
  :sub.app.localhost/* = http://it-works.com/%{sub}
47
+ (*)old-domain.com/*rest = http://new-domain.com/%{rest}
47
48
  TEMPLATE
48
49
  end
49
50
 
@@ -1,3 +1,3 @@
1
1
  module Redirectly
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
data/lib/redirectly.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'byebug' if ENV['BYEBUG']
1
+ require 'debug' if ENV['DEBUGGER']
2
2
 
3
3
  require 'redirectly/refinements'
4
4
  require 'redirectly/version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirectly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-07 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mister_bin