yard_rideliner 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
  SHA1:
3
- metadata.gz: 17a8a5b9f9cdf787c1ed27ae4b6752e497053dd9
4
- data.tar.gz: c62c4923780cc08e0543c303ace6f6e15b4ed659
3
+ metadata.gz: 37553e6d403062aae1ce7ea07aacac2e96063a34
4
+ data.tar.gz: 4400016899f5c7f9613c806c63e237bcfb53a8d8
5
5
  SHA512:
6
- metadata.gz: 9104cbd7bc304abf3d5c21a1f6aae09253fef2784ce78273c558acb00b47f6837478019642a2459dd5c8998d06a534d3f93af0aa23f3b1c4a02028f273731874
7
- data.tar.gz: 45cb234b3adf0c4960adf4740c8dcfe86ede286d127a61a2a820e6cba088d788e525c7e5f826db60fb3e81343016ed1423bb8399b8cccea23240c9d347fe2a03
6
+ metadata.gz: 72cdf49cdb55a625c2220620fdeafecc99d65901ef46fac91572e2a460c36320e30336b89e3008ae8d1fde03cc0692dfce94a0d1bb4f8da3c006a9f31f9218d8
7
+ data.tar.gz: 762971e3fbab692a6bf4371dda736473c06fbc223f60497129bf38b744f3665d5f301e45c502aeae14b84891c5d3107f328c30e0474464f507f27a695c4611d3
@@ -3,6 +3,6 @@
3
3
 
4
4
  module YARD
5
5
  module Dizby
6
- VERSION = '0.2.0'.freeze
6
+ VERSION = '0.2.1'.freeze
7
7
  end
8
8
  end
@@ -4,7 +4,7 @@
4
4
  // Modified from https://github.com/docmeta/rubydoc.info
5
5
 
6
6
  function createGithubLinks() {
7
- if (match = window.location.pathname.match(/(?:branch|tag)\/([^\/]+)\/([^\/]+)\//) {
7
+ if (match = window.location.pathname.match(/([^\/]+)(?:\/doc)?\/(?:branch|tag)\/([^\/]+)\//)) {
8
8
  var github_project = match[1];
9
9
  var github_marker = match[2];
10
10
 
@@ -13,9 +13,10 @@ function createGithubLinks() {
13
13
  var file = match[1];
14
14
  var line = match[2];
15
15
 
16
- var url = "https://github.com/rideliner/blob/" + github_marker + "/" + file + "#L" + line;
16
+ var url = "https://github.com/rideliner/" + github_project + "/blob/" + github_marker + "/" + file + "#L" + line;
17
+ var href = '<a target="_blank" href="' + url + '">View on Github</a>';
17
18
 
18
- $(this).before(' [<a target="_new" href="' + url + '">View on Github</a>]');
19
+ $(this).before(' <span class="showSource">[' + href + ']</span>');
19
20
  }
20
21
  });
21
22
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard_rideliner
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
  - Nathan Currier