jgd 1.9 → 1.10

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/bash/deploy.sh +3 -2
  4. data/bin/jgd +3 -1
  5. data/jgd.gemspec +1 -1
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdfbd8bf3bcd5ea7fe4294ad94ecc2bd2ab30163
4
- data.tar.gz: '0583594d8379d7cb8b1d1d5d9d6daa8ce78c1e72'
3
+ metadata.gz: 95df31203d32449573c45b3796d1c5457504c956
4
+ data.tar.gz: 81ae47205cd68e142b35343f9197d524f5ea6f39
5
5
  SHA512:
6
- metadata.gz: f2f2664ef647cb684fbd3c75777b51cda28323ae8dd1b6e03ad2d518b47285a0524cd6be905e274a1aca29b612debe925abf903b18fcc4f99a1c2839b7d52839
7
- data.tar.gz: 18367a46d06590099f3d5e80e205c81862fa9e6d52b56d160a6d6608c5956dbe009ec44605aea204b7ad14d8097dbaefe89dd8c9c6d271b430c2eb5ce02cfe62
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
+ ```
@@ -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}")
@@ -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.9'
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.9'
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-05-29 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop