jgd 1.7.1 → 1.8
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/.rultor.yml +2 -3
- data/.travis.yml +1 -1
- data/README.md +2 -1
- data/bash/deploy.sh +2 -1
- data/bin/jgd +4 -1
- data/jgd.gemspec +1 -1
- data/test.sh +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: 25ecdbd1fc492987dce8c1e9cce64ebbb8707816
|
|
4
|
+
data.tar.gz: 3570c8ea77131d5ee99cd47ab0a271eef2b09a3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3dae444e96bdc5d6def375285f042fe29a0e82a07ea1b2fe1f61cbb3ec02c2fd8bc0ed559ca71156c1403d37ea3e5a45a69d7006b5fc865dbd5759f61b44fde3
|
|
7
|
+
data.tar.gz: 4f6aa60be75659643f8c69162e5ceda556fc532032396ea26feb4d6c413f1b731f4abadd6a54aa1a384476823e2b6bd5bab24a1182ce89b4e35bbb0d09880235
|
data/.rultor.yml
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[](http://www.teamed.io)
|
|
2
2
|
[](http://www.rultor.com/p/yegor256/jekyll-github-deploy)
|
|
3
|
+
[](https://www.jetbrains.com/ruby/)
|
|
3
4
|
|
|
4
5
|
[](https://travis-ci.org/yegor256/jekyll-github-deploy)
|
|
5
6
|
[](http://badge.fury.io/rb/jgd)
|
|
@@ -79,7 +80,7 @@ script:
|
|
|
79
80
|
- jgd -u git@github.com:yegor256/blog.git
|
|
80
81
|
```
|
|
81
82
|
|
|
82
|
-
Read also [this article](http://www.yegor256.com/2014/06/
|
|
83
|
+
Read also [this article](http://www.yegor256.com/2014/06/24/jekyll-github-deploy.html).
|
|
83
84
|
|
|
84
85
|
PS. You can also specify target branch, with is `gh-pages` by default. Use
|
|
85
86
|
`--branch` command line option.
|
data/bash/deploy.sh
CHANGED
|
@@ -5,6 +5,7 @@ set -o pipefail
|
|
|
5
5
|
|
|
6
6
|
URL=$1
|
|
7
7
|
BRANCH=$2
|
|
8
|
+
BRANCH_FROM=$3
|
|
8
9
|
SRC=$(pwd)
|
|
9
10
|
TEMP=$(mktemp -d -t jgd-XXX)
|
|
10
11
|
trap "rm -rf ${TEMP}" EXIT
|
|
@@ -12,7 +13,7 @@ CLONE=${TEMP}/clone
|
|
|
12
13
|
COPY=${TEMP}/copy
|
|
13
14
|
|
|
14
15
|
echo -e "Cloning Github repository:"
|
|
15
|
-
git clone "${URL}" "${CLONE}"
|
|
16
|
+
git clone -b "${BRANCH_FROM}" "${URL}" "${CLONE}"
|
|
16
17
|
cp -R ${CLONE} ${COPY}
|
|
17
18
|
|
|
18
19
|
cd "${CLONE}"
|
data/bin/jgd
CHANGED
|
@@ -10,10 +10,13 @@ Usage: jgd [options]
|
|
|
10
10
|
EOS
|
|
11
11
|
opt :url, 'Github URL', type: String, default: ''
|
|
12
12
|
opt :branch, 'Destination branch', type: String, default: 'gh-pages'
|
|
13
|
+
opt :branch_from, 'Source branch', type: String, default: 'master'
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
branch = opts[:branch]
|
|
17
|
+
branch_from = opts[:branch_from]
|
|
16
18
|
fail 'branch can\'t be empty' if branch.empty?
|
|
19
|
+
fail 'branch-from can\'t be empty' if branch_from.empty?
|
|
17
20
|
url = opts[:url]
|
|
18
21
|
url = `git config --get remote.origin.url`.strip if url.empty?
|
|
19
22
|
|
|
@@ -22,4 +25,4 @@ root = spec.gem_dir
|
|
|
22
25
|
script = File.join(root, 'bash/deploy.sh')
|
|
23
26
|
|
|
24
27
|
fail 'deployment failed, see log above' \
|
|
25
|
-
unless system("#{script} #{url} #{branch}")
|
|
28
|
+
unless system("#{script} #{url} #{branch} #{branch_from}")
|
data/jgd.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
s.rubygems_version = '2.2.2'
|
|
9
9
|
s.required_ruby_version = '>= 1.9.3'
|
|
10
10
|
s.name = 'jgd'
|
|
11
|
-
s.version = '1.
|
|
11
|
+
s.version = '1.8'
|
|
12
12
|
s.license = 'MIT'
|
|
13
13
|
s.summary = 'Jekyll Github Deploy'
|
|
14
14
|
s.description = 'Automated deployment of your Jekyll blog to Github Pages'
|
data/test.sh
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jgd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: '1.8'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yegor Bugayenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: trollop
|