markdown-helpers 0.1.0 → 0.1.01

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d195ce1a339bdbd1d82427afd58d0634bd9af51
4
- data.tar.gz: 35b15149f335408471568967cdbc2a178a814690
3
+ metadata.gz: 10e7e329e51b912205238a8ebde4f654c7f809e2
4
+ data.tar.gz: 5d0dd4ea4d57074b378e509531128d76c3000853
5
5
  SHA512:
6
- metadata.gz: 6af36d716dc6b80b54ff3b0742a51a0034750f913c1e08f8ab9feef2fd17cb234f9fde2d5317a46f988ec738224a873c1c41eb9aa22412f54f652c9f81951368
7
- data.tar.gz: 74b256a38c0a59e61ac6b9cba1905d386ef84451a0f30555689da285f7d519371a6d221b448040e7649af79ad7b8c29bbe441eee5c0b19e31a9dad36e2656d6a
6
+ metadata.gz: 4de8b319b2ef724ce512dbefb73ad92061836c4b805640b42131200ed25d7f6a0fb2db9805276b7dfe72633393775b80f9cde4e5e224de22f6ee4a38bdc05f3d
7
+ data.tar.gz: 891022f0b8cf004ec0a86da326da43e6c745db7954953ef563ad7e3959c0729f5f2f5a310255cfa61a0cd30d9f09816ad588cbfa4d2b884564000a03728479d4
@@ -110,10 +110,10 @@ class LinkChecker
110
110
  end
111
111
 
112
112
  def check_github_link(link)
113
- repo = link.match(%r{github\.com/([^/]*/[^/]*)/.*})[1]
114
- path = link.match(%r{github\.com/.*/.*/blob/[^/]*/(.*)})[1]
113
+ repo = link.match(%r{github\.com/([^/]*/[^/]*)(/.*)?})[1]
114
+ path_match = link.match(%r{github\.com/.*/.*/blob/[^/]*/(.*)})
115
+ path = path_match ? path_match[1] : '/'
115
116
  begin
116
- @github_client.rate_limit
117
117
  @github_client.contents(repo, path: path)
118
118
  rescue Octokit::NotFound
119
119
  return false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.01
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike