yard_rideliner 0.1.0 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a8a5b9f9cdf787c1ed27ae4b6752e497053dd9
|
4
|
+
data.tar.gz: c62c4923780cc08e0543c303ace6f6e15b4ed659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9104cbd7bc304abf3d5c21a1f6aae09253fef2784ce78273c558acb00b47f6837478019642a2459dd5c8998d06a534d3f93af0aa23f3b1c4a02028f273731874
|
7
|
+
data.tar.gz: 45cb234b3adf0c4960adf4740c8dcfe86ede286d127a61a2a820e6cba088d788e525c7e5f826db60fb3e81343016ed1423bb8399b8cccea23240c9d347fe2a03
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// encoding: utf-8
|
2
|
+
// Copyright (c) 2016 Nathan Currier
|
3
|
+
|
4
|
+
// Modified from https://github.com/docmeta/rubydoc.info
|
5
|
+
|
6
|
+
function createGithubLinks() {
|
7
|
+
if (match = window.location.pathname.match(/(?:branch|tag)\/([^\/]+)\/([^\/]+)\//) {
|
8
|
+
var github_project = match[1];
|
9
|
+
var github_marker = match[2];
|
10
|
+
|
11
|
+
$(".source_code").each(function() {
|
12
|
+
if (match = $(this).find(".info.file").text().match(/^# File '([^']+)', line (\d+)/)) {
|
13
|
+
var file = match[1];
|
14
|
+
var line = match[2];
|
15
|
+
|
16
|
+
var url = "https://github.com/rideliner/blob/" + github_marker + "/" + file + "#L" + line;
|
17
|
+
|
18
|
+
$(this).before(' [<a target="_new" href="' + url + '">View on Github</a>]');
|
19
|
+
}
|
20
|
+
});
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
$(createGithubLinks)
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Currier
|
@@ -38,7 +38,9 @@ files:
|
|
38
38
|
- lib/yard_rideliner.rb
|
39
39
|
- lib/yard_rideliner/template_path.rb
|
40
40
|
- lib/yard_rideliner/version.rb
|
41
|
+
- template/default/fulldoc/html/js/view_on_github.js
|
41
42
|
- template/default/layout/html/footer.erb
|
43
|
+
- template/default/layout/html/setup.rb
|
42
44
|
- yard_rideliner.gemspec
|
43
45
|
homepage: https://github.com/rideliner/yard_rideliner
|
44
46
|
licenses:
|