jgd 1.7.1 → 1.8

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
2
  SHA1:
3
- metadata.gz: cd582148b463a9b2ad0e9d91a9f3a299d3cf7df7
4
- data.tar.gz: 6decec82ff46f3f73eb266102975c5653010a95f
3
+ metadata.gz: 25ecdbd1fc492987dce8c1e9cce64ebbb8707816
4
+ data.tar.gz: 3570c8ea77131d5ee99cd47ab0a271eef2b09a3a
5
5
  SHA512:
6
- metadata.gz: 522636877e60e3eaddaf9acc6439be7b97cd606fcd5f5cf37dc81b7e8f95b346985ccd288233cd8fe847783632c5a7cce19055849c3ac7457e732d4aa09ef8da
7
- data.tar.gz: 51e2b7f119d4f6cb700567ccad183ad4e9b4360b5f06640afb79c632099cbc42f1a0ec5472acbe5846ecbdf1c08f506a86af18e384fc29d21ad22edc273c2edf
6
+ metadata.gz: 3dae444e96bdc5d6def375285f042fe29a0e82a07ea1b2fe1f61cbb3ec02c2fd8bc0ed559ca71156c1403d37ea3e5a45a69d7006b5fc865dbd5759f61b44fde3
7
+ data.tar.gz: 4f6aa60be75659643f8c69162e5ceda556fc532032396ea26feb4d6c413f1b731f4abadd6a54aa1a384476823e2b6bd5bab24a1182ce89b4e35bbb0d09880235
data/.rultor.yml CHANGED
@@ -18,6 +18,5 @@ architect:
18
18
  - davvd
19
19
  merge:
20
20
  commanders: []
21
- script: |-
22
- ./test.sh
23
- deploy: {}
21
+ script: ./test.sh
22
+ deploy: {}
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
3
+ - 2.2.2
4
4
  branches:
5
5
  only:
6
6
  - master
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  [![Made By Teamed.io](http://img.teamed.io/btn.svg)](http://www.teamed.io)
2
2
  [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/jekyll-github-deploy)](http://www.rultor.com/p/yegor256/jekyll-github-deploy)
3
+ [![We recommend RubyMine](http://img.teamed.io/rubymine-recommend.svg)](https://www.jetbrains.com/ruby/)
3
4
 
4
5
  [![Build Status](https://travis-ci.org/yegor256/jekyll-github-deploy.svg)](https://travis-ci.org/yegor256/jekyll-github-deploy)
5
6
  [![Gem Version](https://badge.fury.io/rb/jgd.svg)](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/22/jekyll-github-deploy.html).
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.7.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
@@ -14,7 +14,7 @@ git config user.name "Test"
14
14
  git commit -am 'initial commit'
15
15
  cd "${CWD}"
16
16
 
17
- ./bash/deploy.sh "${TMP}" gh-pages
17
+ ./bash/deploy.sh "${TMP}" gh-pages master
18
18
 
19
19
  cd "${TMP}"
20
20
  git checkout gh-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.7.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-01-13 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop