redirectly 0.2.0 → 0.3.0
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 +4 -4
- data/README.md +1 -0
- data/lib/redirectly/app.rb +1 -2
- data/lib/redirectly/command.rb +1 -0
- data/lib/redirectly/version.rb +1 -1
- data/lib/redirectly.rb +1 -1
- 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: 63b305a59fc4d5381391df73f884b91f59c815dc970559828cc5712be4df530f
|
|
4
|
+
data.tar.gz: 70bbd12337717b1df14f3ece87f638a0e629e24949b8788b468ca3ab6dbd9387
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
data/lib/redirectly/app.rb
CHANGED
|
@@ -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
|
data/lib/redirectly/command.rb
CHANGED
data/lib/redirectly/version.rb
CHANGED
data/lib/redirectly.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mister_bin
|