github_pages_rake_tasks 0.1.2 → 0.1.3

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
- SHA1:
3
- metadata.gz: 5642ae6ed4b5706f946490eaa7f0a8bbd071026f
4
- data.tar.gz: c2a14299b7292f34b8b5a7e189fd4900f61bee2a
2
+ SHA256:
3
+ metadata.gz: 6f5181c4939021a22323f28d9a43a510b258022aaddbee9d8964d18761a77861
4
+ data.tar.gz: 9940d4e543957c847f8f3fe17adb4410e948f4de06977c50334e18b5d8512f3c
5
5
  SHA512:
6
- metadata.gz: d9ebd28e31604ae7b739db7674eee4b653f36863edeae6e1b1325aabe3b7ccdabc6526e6a67da873a8f1884d0bae519844614c830d6edaa7e7c5ccc7ad96e03c
7
- data.tar.gz: c81a03adc405ee987018849c0a1249ced1abca78300ac1034c3707b8df20942857667fa2c079d6ece1cbaa781495d36d0d06b1912937584400effdccfcb0146b
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
- - &release_rvm 2.4
6
- - 2.5
7
- - 2.6
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: HA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wyEVcU8Jwm9XNQ7go8l+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
- branch: master
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
  [![Gem Version](https://badge.fury.io/rb/github_pages_rake_tasks.svg)](https://badge.fury.io/rb/github_pages_rake_tasks)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![Build Status](https://travis-ci.com/jcouball/github_pages_rake_tasks.svg?branch=master)](https://travis-ci.com/jcouball/github_pages_rake_tasks)
6
+ [![Documentation](https://img.shields.io/badge/Documentation-OK-green.svg)](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.Tasks.new
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.Tasks.new do |task|
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
@@ -3,5 +3,5 @@
3
3
 
4
4
  module GithubPagesRakeTasks
5
5
  # Version of this module
6
- VERSION = '0.1.2'
6
+ VERSION = '0.1.3'
7
7
  end
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.2
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-29 00:00:00.000000000 Z
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
- rubyforge_project:
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