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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cd6dbcaf77cc88aaa1a6f200f15da32c890b7ff012b1e8e4265b2f64e01e36b
4
- data.tar.gz: 7afb181d5b533906fbcaa982a072c2bdcde4452846366b5b0e305c2025b7c8ae
3
+ metadata.gz: cbf2dae38737d61a8b93bd6d30ad92bb0cd5de39e8cce4d6075f49b1caf24660
4
+ data.tar.gz: d06ddc7a4c91c5e82cc3f927f3d84a3f24db2a9c880ab976461e53f4906abdbe
5
5
  SHA512:
6
- metadata.gz: b4812e67fd11324cdd67f5191fd78963d045670265e101fdd4d5b9a3d83758811dad95bd38b772fa04d5a29078cb822a823607744df24def9c7bb68c3a4ed078
7
- data.tar.gz: 54994d633acc0d8289170c33d0fa84d6df72ad3bd94269d5e5fd4b69636b6c6a2786a58b1e769344b2347d6bbc0b913c1d00e117c15ec72235330cbd2d06ca03
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](https://opensource.org/licenses/MIT).
77
+ The gem is available as open source under the terms of the [MIT License](LICENSE).
@@ -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, 'CSV file path (required) - must be a file with two columns: from_url, to_url') do |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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VerifyRedirects
4
- VERSION = '0.2.0'.freeze
4
+ VERSION = '0.2.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verify_redirects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Burenstam