yard_rideliner 0.7.1 → 0.7.2
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/lib/yard_rideliner/task/ghpages_deploy.rb +10 -17
- data/lib/yard_rideliner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 705c4dea26bf75a76ffe75dce8ab9cc859fe8857
|
|
4
|
+
data.tar.gz: 94e70e74a3b83dc2f5d314f0fc4e6207ddbcea9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d211e67b8c88eada00344e9f18f0ce6572f53940616c730542682a3a28f8992ee9b9b02abc227b5add3c20d8ec76a702fb8da2c1ae1c83f812a14d308ac8b19c
|
|
7
|
+
data.tar.gz: 231c7102aaba1a328d76fb5404aa6e718db4cbf6ff7f4db496148d17c71e8ae355c968c9a041d54c3a838690de755cd5b9e7dd5e18df1f3c7f88fa76cd27aca9
|
|
@@ -20,6 +20,8 @@ def current_gemspec
|
|
|
20
20
|
Gem::Specification.load(spec)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
REPOSITORY = 'https://github.com/rideliner/rideliner.github.io.git'
|
|
24
|
+
|
|
23
25
|
namespace :yard do
|
|
24
26
|
if ENV['TRAVIS'] && ENV['DOCS']
|
|
25
27
|
if ENV['TRAVIS_PULL_REQUEST'] == 'false'
|
|
@@ -28,32 +30,23 @@ namespace :yard do
|
|
|
28
30
|
desc 'Deploy documentation to Github Pages'
|
|
29
31
|
GithubPages::DeployTask.new(deploy: [:yard]) do |ghpages|
|
|
30
32
|
ghpages.remote = 'website'
|
|
31
|
-
ghpages.repo =
|
|
33
|
+
ghpages.repo = REPOSITORY
|
|
32
34
|
ghpages.source = '_yardoc'
|
|
33
35
|
|
|
34
|
-
tag = ENV['TRAVIS_TAG']
|
|
35
|
-
branch = ENV['TRAVIS_BRANCH']
|
|
36
|
-
|
|
37
36
|
project = PROJECT_NAME || current_gemspec.name
|
|
38
37
|
project_root = "project/#{project}"
|
|
39
38
|
doc_root = "#{project_root}/doc"
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
[
|
|
44
|
-
"#{doc_root}/#{type}/#{loc}",
|
|
45
|
-
"Deploying documentation for #{project}, #{type} #{loc}."
|
|
46
|
-
]
|
|
47
|
-
end
|
|
40
|
+
tag = ENV['TRAVIS_TAG']
|
|
41
|
+
branch = ENV['TRAVIS_BRANCH']
|
|
48
42
|
|
|
49
43
|
abort 'No tag or branch specified' if tag.empty? && branch.empty?
|
|
50
44
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
end
|
|
45
|
+
type, loc = tag.empty? ? ['branch', branch] : ['tag', tag]
|
|
46
|
+
|
|
47
|
+
ghpages.destination = "#{doc_root}/#{type}/#{loc}"
|
|
48
|
+
ghpages.message =
|
|
49
|
+
"Deploying documentation for #{project}, #{type} '#{loc}'."
|
|
57
50
|
|
|
58
51
|
ghpages.generate_json_sitemap(
|
|
59
52
|
directory: doc_root,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yard_rideliner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
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-08-
|
|
11
|
+
date: 2016-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: kramdown
|