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: a23cde3467edabc492e8d6140dfad32409955ca7
4
- data.tar.gz: c1f34d57565175f21713b7bcfefa8ba8b9639229
3
+ metadata.gz: 17a8a5b9f9cdf787c1ed27ae4b6752e497053dd9
4
+ data.tar.gz: c62c4923780cc08e0543c303ace6f6e15b4ed659
5
5
  SHA512:
6
- metadata.gz: ed2e695bd2420996ee4ec0e0744dccdbf77cc1ac0d78d9a27cb33d08fa33786154a665251c64b3bdebcb7efa852a7408942ca25afcb7b58fc4fc86188d2ec8d3
7
- data.tar.gz: ac3404f90bff7e34828d0959463e96fec43c32e7b27896cf8dbd2c18ebba5cb02cb53b70d418147ee317f248f9258594d42de27a2dbcdc2184976e0ae915a408
6
+ metadata.gz: 9104cbd7bc304abf3d5c21a1f6aae09253fef2784ce78273c558acb00b47f6837478019642a2459dd5c8998d06a534d3f93af0aa23f3b1c4a02028f273731874
7
+ data.tar.gz: 45cb234b3adf0c4960adf4740c8dcfe86ede286d127a61a2a820e6cba088d788e525c7e5f826db60fb3e81343016ed1423bb8399b8cccea23240c9d347fe2a03
@@ -3,6 +3,6 @@
3
3
 
4
4
  module YARD
5
5
  module Dizby
6
- VERSION = '0.1.0'.freeze
6
+ VERSION = '0.2.0'.freeze
7
7
  end
8
8
  end
@@ -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)
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) 2016 Nathan Currier
3
+
4
+ def javascripts
5
+ super + %w(js/view_on_github.js)
6
+ end
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.1.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: