rake-jekyll 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +23 -5
- data/lib/rake-jekyll/git_deploy_task.rb +3 -3
- data/lib/rake-jekyll/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: 34adea1c4aa6357e8735d2119bc6fc910874f103
|
4
|
+
data.tar.gz: 74368dd9521f0084fcc4bcb6dac9a54825035930
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62acbf2b7d729061c672eb7729799158937a7e2fbe8d38163cff4ba9e033a6de25f83a178c6fde53ced69ca42ae21b058d00a89ebd65fa54b4f4370e6883f215
|
7
|
+
data.tar.gz: 6a3eaaf4fff13b9973448f6f6e9a6ebc8dd6ef48b2f4b2361c690f171ae085c6fe92bca2356ff1dd079b27308cd47255641747e0c9410cf6bd20973c5c6ceb7b
|
data/README.adoc
CHANGED
@@ -104,6 +104,24 @@ Note: All options except `name` and `description` accepts both String and Proc a
|
|
104
104
|
|
105
105
|
==== Setup for GitHub Pages and Travis CI
|
106
106
|
|
107
|
+
You need two branches in your repository:
|
108
|
+
|
109
|
+
* **master**, for markup sources and configuration. This branch can be named anything you choose.
|
110
|
+
* **gh-pages**, for the generated static content produced by Travis CI. This branch will be created automatically for you when the task runs.
|
111
|
+
|
112
|
+
The goal is to configure a Travis CI job to listen for commits on the _master_ branch, automatically run the Jekyll build, and push the generated content to the _gh-pages_ branch.
|
113
|
+
After that, your site will be available at `http(s)://<username>.github.io/<projectname>`.
|
114
|
+
|
115
|
+
. Create or edit file `Gemfile` in your Jekyll repository:
|
116
|
+
+
|
117
|
+
[source, ruby]
|
118
|
+
----
|
119
|
+
source 'https://rubygems.org'
|
120
|
+
|
121
|
+
gem 'jekyll'
|
122
|
+
gem 'rake'
|
123
|
+
gem 'rake-jekyll'
|
124
|
+
----
|
107
125
|
. Create or edit file `Rakefile` in your Jekyll repository:
|
108
126
|
+
|
109
127
|
[source, ruby]
|
@@ -150,11 +168,11 @@ env:
|
|
150
168
|
|
151
169
|
== Contributing
|
152
170
|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
171
|
+
. Fork it.
|
172
|
+
. Create your feature branch (`git checkout -b my-new-feature`).
|
173
|
+
. Commit your changes (`git commit -am 'Add some feature'`).
|
174
|
+
. Push to the branch (`git push origin my-new-feature`).
|
175
|
+
. Create a new Pull Request.
|
158
176
|
|
159
177
|
|
160
178
|
== License
|
@@ -161,13 +161,13 @@ module Rake::Jekyll
|
|
161
161
|
# @!attribute jekyll_build
|
162
162
|
# Defines a function that executes Jekyll to build the site.
|
163
163
|
# Defaults to:
|
164
|
-
# sh "bundle exec jekyll build --destination #{dest_dir}"
|
164
|
+
# Rake.sh "bundle exec jekyll build --destination #{dest_dir}"
|
165
165
|
#
|
166
166
|
# @return [Proc] a Proc that accepts one argument; the destination
|
167
167
|
# directory to generate the site into.
|
168
168
|
#
|
169
169
|
callable_attr :jekyll_build, ->(dest_dir) {
|
170
|
-
|
170
|
+
Rake.sh "bundle exec jekyll build --destination #{dest_dir}"
|
171
171
|
}
|
172
172
|
|
173
173
|
##
|
@@ -191,7 +191,7 @@ module Rake::Jekyll
|
|
191
191
|
##
|
192
192
|
# @!attribute [w] skip_commit
|
193
193
|
# Whether to skip the commit and push phase.
|
194
|
-
# Default is to return +
|
194
|
+
# Default is to return +true+ when env variable +TRAVIS_PULL_REQUEST+
|
195
195
|
# is an integer value greater than 0 or +SKIP_COMMIT+ represents truthy
|
196
196
|
# (i.e. contains yes, y, true, or 1).
|
197
197
|
#
|
data/lib/rake-jekyll/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Jirutka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|