jgd 1.9 → 1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/bash/deploy.sh +3 -2
- data/bin/jgd +3 -1
- data/jgd.gemspec +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: 95df31203d32449573c45b3796d1c5457504c956
|
4
|
+
data.tar.gz: 81ae47205cd68e142b35343f9197d524f5ea6f39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5fc86c7dbabb39dc99a59b4ce3dce731e53d4551928c7799a972008fd41708ea0c61a681753ed65c3c0bf4a78381f135e3bb51e14767ab369dba2a0ec84a627
|
7
|
+
data.tar.gz: c98f1aa32878eeb8baa87224348088e744eea64ffab5977f4813b63536d09034bfe1509c34a3883344a71f4e6fefbe679880f357a9832f59f6120473b1b8648f
|
data/README.md
CHANGED
@@ -101,3 +101,11 @@ script:
|
|
101
101
|
```
|
102
102
|
|
103
103
|
Read also [this article](http://www.yegor256.com/2014/06/24/jekyll-github-deploy.html).
|
104
|
+
|
105
|
+
# Building locally
|
106
|
+
In order to build a package locally run below commands.
|
107
|
+
|
108
|
+
```bash
|
109
|
+
gem build jgd.gemspec
|
110
|
+
gem install jgd-<version>.gem
|
111
|
+
```
|
data/bash/deploy.sh
CHANGED
@@ -7,6 +7,7 @@ URL=$1
|
|
7
7
|
BRANCH=$2
|
8
8
|
BRANCH_FROM=$3
|
9
9
|
DEPLOY_CONFIG=$4
|
10
|
+
BUNDLE=$5
|
10
11
|
SRC=$(pwd)
|
11
12
|
TEMP=$(mktemp -d -t jgd-XXX)
|
12
13
|
trap "rm -rf ${TEMP}" EXIT
|
@@ -23,9 +24,9 @@ echo -e "\nBuilding Jekyll site:"
|
|
23
24
|
rm -rf _site
|
24
25
|
|
25
26
|
if [ -r ${DEPLOY_CONFIG} ]; then
|
26
|
-
jekyll build --config _config.yml,${DEPLOY_CONFIG}
|
27
|
+
${BUNDLE} jekyll build --config _config.yml,${DEPLOY_CONFIG}
|
27
28
|
else
|
28
|
-
jekyll build
|
29
|
+
${BUNDLE} jekyll build
|
29
30
|
fi
|
30
31
|
|
31
32
|
if [ ! -e _site ]; then
|
data/bin/jgd
CHANGED
@@ -12,6 +12,7 @@ Usage: jgd [options]
|
|
12
12
|
opt :branch, 'Destination branch', type: String, default: 'gh-pages'
|
13
13
|
opt :branch_from, 'Source branch', type: String, default: 'master'
|
14
14
|
opt :config, 'Deploy Config File', type: String, default: '_config-deploy.yml'
|
15
|
+
opt :bundle, 'Use bundle'
|
15
16
|
end
|
16
17
|
|
17
18
|
branch = opts[:branch]
|
@@ -22,10 +23,11 @@ fail 'branch-from can\'t be empty' if branch_from.empty?
|
|
22
23
|
fail 'config can\'t be empty' if config.empty?
|
23
24
|
url = opts[:url]
|
24
25
|
url = `git config --get remote.origin.url`.strip if url.empty?
|
26
|
+
bundle = opts[:bundle] ? '"bundle exec"' : ''
|
25
27
|
|
26
28
|
spec = Gem::Specification.find_by_name('jgd')
|
27
29
|
root = spec.gem_dir
|
28
30
|
script = File.join(root, 'bash/deploy.sh')
|
29
31
|
|
30
32
|
fail 'deployment failed, see log above' \
|
31
|
-
unless system("#{script} #{url} #{branch} #{branch_from} #{config}")
|
33
|
+
unless system("#{script} #{url} #{branch} #{branch_from} #{config} #{bundle}")
|
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.10'
|
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'
|
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.10'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|