github_pages_rake_tasks 0.1.2 → 0.1.3
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 +5 -5
- data/.travis.yml +13 -18
- data/README.md +4 -3
- data/lib/github_pages_rake_tasks/publish_task.rb +8 -3
- data/lib/github_pages_rake_tasks/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 6f5181c4939021a22323f28d9a43a510b258022aaddbee9d8964d18761a77861
|
|
4
|
+
data.tar.gz: 9940d4e543957c847f8f3fe17adb4410e948f4de06977c50334e18b5d8512f3c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1f66b20a8ec1c0a51d6c8aa5ae4121122b3d3c99a8425293bc8921718e3b1e7dc1c76d93694d8f9c8c78d5d94e3b69f7db8bba02af2aea79772d6dd870e53a8
|
|
7
|
+
data.tar.gz: 3bd71f7b52b01ffcedd1befdd9ece9f9d91540be3a0ac7163ea8bcc589eac38c7bbe1d3924122e6bc40620a4123ebfaa17e0e282743ab85b7b10d0143aed1b88
|
data/.travis.yml
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
---
|
|
2
1
|
language: ruby
|
|
3
|
-
|
|
4
2
|
rvm:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
- 2.4
|
|
4
|
+
- 2.5
|
|
5
|
+
- 2.6
|
|
9
6
|
cache: bundler
|
|
10
|
-
|
|
11
7
|
before_install: gem install bundler -v 2.0.1
|
|
12
|
-
|
|
13
8
|
deploy:
|
|
9
|
+
- provider: pages
|
|
10
|
+
skip_cleanup: true
|
|
11
|
+
github_token: "$GITHUB_TOKEN"
|
|
12
|
+
local_dir: doc
|
|
13
|
+
verbose: true
|
|
14
|
+
on:
|
|
15
|
+
repo: jcouball/github_pages_rake_tasks
|
|
16
|
+
rvm: 2.4
|
|
14
17
|
- provider: rubygems
|
|
15
18
|
api_key:
|
|
16
|
-
secure:
|
|
19
|
+
secure: EMQl5zG98sWV37oH7oKBUDVWp3WYFp41EBsuMr7lE36i1NDJeqSzXDbCOdBCDX5vH0U/2DAZ21D/mF32u+PKXaH/L1OPt8xPdccx2PfJqWvfHmXdPZcqJt9ytEjBJYXDfjnhq9GdElqBUm4A2PwXfzC171kforSDapJ0BFjTbsC6/5DcsLgZWoCnu/b9F4tSs8UFvaPf5PEwo0Y8LPj9RrHDicFQ2V2PAZA0O213Gmv4o2aOn7XejaUROS1ThDeX1rnb99yqgItMlEeRpItCFdVcXoBJrpVIK681742TufG2zFdljOr7egYwLdr/cCFAdhR9H0rk0buNU1RBsiBfmu//nVuCGRpOsrNhx+Ruv7UtR0BHzv5jBzrwyEVcU8Jwm9XNQ7go8l+VsRUD1R/CQfKt8TDKQM8ysx1uvJ0/9gi6tgaSCQlUEcKw1Ra5CtKNppoX328uFTyn4WqffGGK/DXnYLVrSRwXxHn24jmWKA0X+4sMoK+7BYYYvAfvauC+6cBcSF2vBIIjSP2QeVkxBopM1xKLmTrExWGZqflmdiDSevdS0lzoL0lGPvfG9aLP4XTqF+vVnlu5+YASEzGUhSzFK6N/2efTj5YBBrD1O1IsA2v+bwglOfBk+i3Bi9keNpjXzgIu1EEQexrkvQ/D1A5jkm0COorT51ThdG0I49I=
|
|
17
20
|
gem: github_pages_rake_tasks
|
|
18
21
|
on:
|
|
19
22
|
repo: jcouball/github_pages_rake_tasks
|
|
20
|
-
|
|
21
|
-
rvm: *release_rvm
|
|
22
|
-
- provider: pages
|
|
23
|
-
skip_cleanup: true
|
|
24
|
-
github_token: $GITHUB_TOKEN
|
|
25
|
-
keep_history: true
|
|
26
|
-
on:
|
|
27
|
-
branch: master
|
|
28
|
-
rvm: *release_rvm
|
|
23
|
+
rvm: 2.4
|
data/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://badge.fury.io/rb/github_pages_rake_tasks)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
[](https://travis-ci.com/jcouball/github_pages_rake_tasks)
|
|
6
|
+
[](https://jcouball.github.io/github_pages_rake_tasks/)
|
|
6
7
|
|
|
7
8
|
The `github_pages_rake_tasks` gem creates a rake task that pushes the contents
|
|
8
9
|
from a local documentation directory to a remote Git repository branch.
|
|
@@ -35,14 +36,14 @@ Add the `github-pages:publish` task to Rake by adding the following lines in you
|
|
|
35
36
|
|
|
36
37
|
```Ruby
|
|
37
38
|
require 'github_pages_rake_tasks'
|
|
38
|
-
GitHubPagesRakeTasks.
|
|
39
|
+
GitHubPagesRakeTasks::PublishTask.new
|
|
39
40
|
```
|
|
40
41
|
|
|
41
42
|
You can also configure the task by providing a block during initialization:
|
|
42
43
|
|
|
43
44
|
```Ruby
|
|
44
45
|
require 'github_pages_rake_tasks'
|
|
45
|
-
GitHubPagesRakeTasks.
|
|
46
|
+
GitHubPagesRakeTasks::PublishTask.new do |task|
|
|
46
47
|
task.doc_dir = 'documentation'
|
|
47
48
|
task.repo_url = 'https://github.com/jcouball/github_pages_documentation'
|
|
48
49
|
task.branch_name = 'master'
|
|
@@ -66,4 +67,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jcouba
|
|
|
66
67
|
|
|
67
68
|
## Copyright and License
|
|
68
69
|
|
|
69
|
-
Copyright © 2019 James Couball. Free use of this software is granted under the terms of the MIT License. See LICENSE for details.
|
|
70
|
+
Copyright © 2019 James Couball. Free use of this software is granted under the terms of the MIT License. See LICENSE for details.
|
|
@@ -125,11 +125,16 @@ module GithubPagesRakeTasks
|
|
|
125
125
|
end
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
+
def initialize_git
|
|
129
|
+
interface.chdir staging_dir do
|
|
130
|
+
interface.sh('git init')
|
|
131
|
+
interface.sh("git remote add '#{remote_name}' '#{repo_url}'")
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
128
135
|
def initialize_staging_repo
|
|
129
136
|
interface.mkdir_p(staging_dir) unless interface.dir_exist?(staging_dir)
|
|
130
|
-
|
|
131
|
-
interface.sh('git init')
|
|
132
|
-
interface.sh("git remote add '#{remote_name}' '#{repo_url}'")
|
|
137
|
+
initialize_git
|
|
133
138
|
end
|
|
134
139
|
|
|
135
140
|
# Creates `staging_dir` (if needed), clones the remote repository to it, and checks
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github_pages_rake_tasks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Couball
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bump
|
|
@@ -202,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
202
|
- !ruby/object:Gem::Version
|
|
203
203
|
version: '0'
|
|
204
204
|
requirements: []
|
|
205
|
-
|
|
206
|
-
rubygems_version: 2.6.14.4
|
|
205
|
+
rubygems_version: 3.0.3
|
|
207
206
|
signing_key:
|
|
208
207
|
specification_version: 4
|
|
209
208
|
summary: Rake tasks for publishing documentation to GitHub Pages
|