rideliner 0.2.0 → 0.3.0
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 +4 -4
- data/.gitignore +1 -0
- data/lib/rideliner/tasks.rb +0 -2
- data/lib/rideliner/version.rb +1 -1
- data/rideliner.gemspec +0 -3
- metadata +2 -52
- data/lib/rideliner/task/ghpages_deploy_yard.rb +0 -61
- data/lib/rideliner/task/yard.rb +0 -26
- data/lib/yard_rideliner.rb +0 -8
- data/template/default/fulldoc/html/full_list_version.erb +0 -49
- data/template/default/fulldoc/html/js/view_on_github.js +0 -25
- data/template/default/fulldoc/html/setup.rb +0 -7
- data/template/default/layout/html/footer.erb +0 -3
- data/template/default/layout/html/setup.rb +0 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9238310e55a30e2367d43c702a71266cca487ae
|
|
4
|
+
data.tar.gz: 0ce52431a6959c4e1d477bae54983b3d788dfe3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d262919a6e67353e4aae12c35003a3448f35227e99af3dbd787080ad6a110346a131bde1b758849bb90f98d0536a0232c00e698b2b4adda69a642537feb7dc4
|
|
7
|
+
data.tar.gz: 8355a2ed8e4b40e527fa60676fa78824daedd0179ed012c4e804ac54a1b532c2ef84573bfaee0b25007ad68e4a9724807d3a82d565a8804e2272f237e9829081
|
data/lib/rideliner/tasks.rb
CHANGED
|
@@ -10,9 +10,7 @@ require 'rubygems'
|
|
|
10
10
|
require 'bundler/gem_tasks'
|
|
11
11
|
|
|
12
12
|
require 'rideliner/task/test'
|
|
13
|
-
require 'rideliner/task/yard'
|
|
14
13
|
require 'rideliner/task/rubocop'
|
|
15
|
-
require 'rideliner/task/ghpages_deploy_yard'
|
|
16
14
|
|
|
17
15
|
task default: %i(rubocop test)
|
|
18
16
|
task ci: 'test:coverage'
|
data/lib/rideliner/version.rb
CHANGED
data/rideliner.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rideliner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Currier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
prerelease: false
|
|
@@ -94,48 +94,6 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
prerelease: false
|
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :runtime
|
|
105
|
-
name: kramdown
|
|
106
|
-
requirement: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
prerelease: false
|
|
113
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :runtime
|
|
119
|
-
name: yard
|
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
prerelease: false
|
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :runtime
|
|
133
|
-
name: ghpages_deploy
|
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
139
97
|
description: Rideliner's Ruby development
|
|
140
98
|
email:
|
|
141
99
|
- nathan.currier@gmail.com
|
|
@@ -147,19 +105,11 @@ files:
|
|
|
147
105
|
- ".rubocop.yml"
|
|
148
106
|
- Gemfile
|
|
149
107
|
- Rakefile
|
|
150
|
-
- lib/rideliner/task/ghpages_deploy_yard.rb
|
|
151
108
|
- lib/rideliner/task/rubocop.rb
|
|
152
109
|
- lib/rideliner/task/test.rb
|
|
153
|
-
- lib/rideliner/task/yard.rb
|
|
154
110
|
- lib/rideliner/tasks.rb
|
|
155
111
|
- lib/rideliner/version.rb
|
|
156
|
-
- lib/yard_rideliner.rb
|
|
157
112
|
- rideliner.gemspec
|
|
158
|
-
- template/default/fulldoc/html/full_list_version.erb
|
|
159
|
-
- template/default/fulldoc/html/js/view_on_github.js
|
|
160
|
-
- template/default/fulldoc/html/setup.rb
|
|
161
|
-
- template/default/layout/html/footer.erb
|
|
162
|
-
- template/default/layout/html/setup.rb
|
|
163
113
|
homepage: https://github.com/rideliner/rideliner_dev_gem
|
|
164
114
|
licenses:
|
|
165
115
|
- MPL-2.0
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
# Copyright (c) 2016 Nathan Currier
|
|
3
|
-
|
|
4
|
-
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
-
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
-
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
7
|
-
|
|
8
|
-
def get_current_gemspec
|
|
9
|
-
root = `git rev-parse --show-toplevel`.strip
|
|
10
|
-
$? || abort('Only git repositories are supported')
|
|
11
|
-
|
|
12
|
-
gemspecs = Dir["#{root}/*.gemspec"]
|
|
13
|
-
abort "No gemspec found in #{root}" if gemspecs.empty?
|
|
14
|
-
if gemspecs.length > 1
|
|
15
|
-
$stderr.puts "Warning: only using the first gemspec found (#{gemspecs.first})."
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
Gem::Specification.load(gemspecs.first)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
if ENV['TRAVIS'] && ENV['DOCS']
|
|
22
|
-
namespace :yard do
|
|
23
|
-
if ENV['TRAVIS_PULL_REQUEST'] == 'false'
|
|
24
|
-
require 'ghpages_deploy/rake_task'
|
|
25
|
-
|
|
26
|
-
desc 'Deploy documentation to Github Pages'
|
|
27
|
-
GithubPages::DeployTask.new(deploy: [:yard]) do |t|
|
|
28
|
-
t.remote = 'website'
|
|
29
|
-
t.repo = 'https://github.com/rideliner/rideliner.github.io.git'
|
|
30
|
-
t.source = '_yardoc'
|
|
31
|
-
|
|
32
|
-
tag = ENV['TRAVIS_TAG']
|
|
33
|
-
branch = ENV['TRAVIS_BRANCH']
|
|
34
|
-
|
|
35
|
-
project = PROJECT_NAME || get_current_gemspec.name
|
|
36
|
-
project_root = "project/#{project}"
|
|
37
|
-
doc_root = "#{project_root}/doc"
|
|
38
|
-
|
|
39
|
-
if !tag.empty?
|
|
40
|
-
t.destination = "#{doc_root}/tag/#{tag}"
|
|
41
|
-
t.message = "Deploying documentation for #{project}, tag #{tag}."
|
|
42
|
-
elsif !branch.empty?
|
|
43
|
-
t.destination = "#{doc_root}/branch/#{branch}"
|
|
44
|
-
t.message = "Deploying documentation for #{project}, branch #{branch}."
|
|
45
|
-
else
|
|
46
|
-
abort 'No tag or branch specified'
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
t.json_sitemap(
|
|
50
|
-
directory: doc_root,
|
|
51
|
-
whitelist: ['**/_index.html', '**/index_html'],
|
|
52
|
-
output: "#{project_root}/documentation.json"
|
|
53
|
-
)
|
|
54
|
-
end
|
|
55
|
-
else
|
|
56
|
-
task :deploy do
|
|
57
|
-
puts 'Documentation not generated for pull requests.'
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
data/lib/rideliner/task/yard.rb
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
# Copyright (c) 2016 Nathan Currier
|
|
3
|
-
|
|
4
|
-
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
-
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
-
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
7
|
-
|
|
8
|
-
require 'yard'
|
|
9
|
-
require 'yard/rake/yardoc_task'
|
|
10
|
-
|
|
11
|
-
require 'rake/clean'
|
|
12
|
-
|
|
13
|
-
YARD::Rake::YardocTask.new(:yard) do |t|
|
|
14
|
-
t.files = ['lib/**/*.rb', '-', 'doc/*.md', 'LICENSE.md']
|
|
15
|
-
t.options = [
|
|
16
|
-
'--charset utf-8', '--readme README.md',
|
|
17
|
-
'--markup markdown', '--markup-provider kramdown',
|
|
18
|
-
'--output-dir _yardoc',
|
|
19
|
-
'--protected', '--private',
|
|
20
|
-
"--default-return ''",
|
|
21
|
-
'--plugin yard_rideliner'
|
|
22
|
-
]
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
CLEAN.include '.yardoc'
|
|
26
|
-
CLOBBER.include '_yardoc'
|
data/lib/yard_rideliner.rb
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<script type="text/javascript">
|
|
2
|
-
if (match = parent.window.location.pathname.match(/^(.+?)(?:branch|tag)\/[^\/]+\/(.+)/)) {
|
|
3
|
-
var project_root_url = match[1];
|
|
4
|
-
var relative_url = match[2];
|
|
5
|
-
|
|
6
|
-
var jsonData = $.getJSON(project_root_url + 'sitemap.json', function(json) {
|
|
7
|
-
var branches = json.branch ? Object.keys(json.branch) : [];
|
|
8
|
-
var tags = json.tag ? Object.keys(json.tag) : [];
|
|
9
|
-
var list = $('ul.version#full_list');
|
|
10
|
-
|
|
11
|
-
var createItem = function(version, index, type) {
|
|
12
|
-
var base_url = project_root_url + type + '/' + version + '/';
|
|
13
|
-
var url = base_url;
|
|
14
|
-
url += (window.location === parent.window.location ? index : relative_url);
|
|
15
|
-
|
|
16
|
-
list.append(
|
|
17
|
-
'<li><div class="item"><span class="object_link">' +
|
|
18
|
-
'<a href="' + url + '" title="' + version + ' (' + type + ')">' +
|
|
19
|
-
version + '</a> <small>' + type + '</small></span></div></li>');
|
|
20
|
-
|
|
21
|
-
$.ajax({
|
|
22
|
-
url: url,
|
|
23
|
-
statusCode: { 404: function() {
|
|
24
|
-
item = $('ul.version#full_list li').filter(function() {
|
|
25
|
-
return $(this).find('a').attr('href') === url;
|
|
26
|
-
});
|
|
27
|
-
// mark the version as deprecated (missing the current page)
|
|
28
|
-
// redirect to the index page found in sitemap.json
|
|
29
|
-
item.addClass('deprecated');
|
|
30
|
-
item.find('a').attr('href', base_url + index);
|
|
31
|
-
}}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
for (var i = 0; i < branches.length; i++) {
|
|
36
|
-
createItem(branches[i], json.branch[branches[i]], 'branch');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
for (var i = 0; i < tags.length; i++) {
|
|
40
|
-
createItem(tags[i], json.tag[tags[i]], 'tag');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
highlight();
|
|
44
|
-
$(fullListSearch);
|
|
45
|
-
$(linkList);
|
|
46
|
-
$(collapse);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
</script>
|
|
@@ -1,25 +0,0 @@
|
|
|
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(/([^\/]+)(?:\/doc)?\/(?: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/" + github_project + "/blob/" + github_marker + "/" + file + "#L" + line;
|
|
17
|
-
var href = '<a target="_blank" href="' + url + '">View on Github</a>';
|
|
18
|
-
|
|
19
|
-
$(this).before(' <span class="showSource">[' + href + ']</span>');
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
$(createGithubLinks)
|