verify_redirects 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/verify_redirects/cli.rb +1 -1
- data/lib/verify_redirects/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbf2dae38737d61a8b93bd6d30ad92bb0cd5de39e8cce4d6075f49b1caf24660
|
4
|
+
data.tar.gz: d06ddc7a4c91c5e82cc3f927f3d84a3f24db2a9c880ab976461e53f4906abdbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bed1ac85c0b010d463630f5347dd7f849af7838218081a7eedb237fd9b81730298453ab796e0f96c85c5b5a0778f8b1faddb55922509165e56db63a8d75f78c2
|
7
|
+
data.tar.gz: 27780b1fe8b82ff4f34f5beb415a646b1ef27ef8ec50fd20f5fd466e147ed79f743b89aa802e8d00658dc3d8fe238db535300cc89df8494ccafe38fc827048fe
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
```
|
24
24
|
Usage: verify_redirects --help
|
25
|
-
--input=val0 CSV file path (required) - must be a file with two columns: from_url, to_url
|
25
|
+
--input=val0 CSV file path (required) - must be a file with two columns: from_url, to_url (order doesn't matter)
|
26
26
|
--output=val0 CSV output path (optional)
|
27
27
|
--[no-]debug Print debug output (default: false)
|
28
28
|
-h, --help How to use
|
@@ -54,6 +54,7 @@ verifier.results.length # => 1
|
|
54
54
|
From CSV-files
|
55
55
|
|
56
56
|
```ruby
|
57
|
+
# input_path - must be a CSV file with two columns: from_url, to_url (order doesn't matter)
|
57
58
|
VerifyRedirects.from_csv(input_path: input_path, output_path: output_path) do |result|
|
58
59
|
unless result.success
|
59
60
|
puts "Failed redirect for #{result.start_url}"
|
@@ -73,4 +74,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/buren/
|
|
73
74
|
|
74
75
|
## License
|
75
76
|
|
76
|
-
The gem is available as open source under the terms of the [MIT License](
|
77
|
+
The gem is available as open source under the terms of the [MIT License](LICENSE).
|
data/lib/verify_redirects/cli.rb
CHANGED
@@ -10,7 +10,7 @@ module VerifyRedirects
|
|
10
10
|
parser.banner = "Usage: #{name} --help"
|
11
11
|
parser.default_argv = argv
|
12
12
|
|
13
|
-
parser.on('--input=val0', String,
|
13
|
+
parser.on('--input=val0', String, "CSV file path (required) - must be a file with two columns: from_url, to_url (order doesn't matter)") do |string|
|
14
14
|
options[:input] = string
|
15
15
|
end
|
16
16
|
|