middleman-gh_pages 0.7.0 → 0.8.0

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
- SHA1:
3
- metadata.gz: 0bdc1073568a27d2320574aea50573b2862581eb
4
- data.tar.gz: a9071014a8edd59019a9a51b6108193241fecf86
2
+ SHA256:
3
+ metadata.gz: e66c0d1102d6cd74d964550848f31ed71e066e4a49f714fde5461819c00ebda7
4
+ data.tar.gz: '0399755e739e2a14cf15b0bb4496c3070374206a9f45ac8c635f643bfc28c1bc'
5
5
  SHA512:
6
- metadata.gz: '008885b4e56ae60ec0bab2dbb5abdf9f4cd8b7cf8f2cd6b041f3481f6ee91f533e4d9000372e0d2b420e2c7356c53c0c1f1ee74db806096d7fa47a7ef670495d'
7
- data.tar.gz: 0314b24cfe7ea432b8a45a9726a3ae0d9ca9e00177a3933563533b36032ac2b2142944753e805be3cb60caabf019a0fad160e1a19d910c03270e2391ac3b5e31
6
+ metadata.gz: 3d8c59909331c885b1ffb077f85eb6e1f3802dfeab4d84325656e41e1ad265e07483bfbbd953a9c97379b10a38975fcf67115613dc1657cefc55b45fc4830ae2
7
+ data.tar.gz: 3be127c34231716601a69d63251a387adea5a6e22a9d767a91adcaac05d1f3e41c0411013f7c4006de9c073a184ca7043f84826d6c663e0a33851b1ef6de9fd4
@@ -23,6 +23,7 @@ module Middleman
23
23
  {
24
24
  build_dir: app.config.setting(:build_dir).value,
25
25
  remote: GhPages.options[:remote],
26
+ branch: GhPages.options[:branch],
26
27
  environment: options['environment']
27
28
  }
28
29
  end
@@ -8,6 +8,7 @@ module Middleman
8
8
  def initialize(options = {})
9
9
  @build_dir = options.fetch(:build_dir)
10
10
  @remote = options.fetch(:remote)
11
+ @branch = options.fetch(:branch)
11
12
  @environment = options.fetch(:environment)
12
13
  end
13
14
 
@@ -21,8 +22,8 @@ module Middleman
21
22
  git.remote 'add', 'origin', @remote
22
23
  git.add '.'
23
24
  git.commit '-m', "Deploy on #{Time.now}"
24
- git.checkout '-b', 'gh-pages'
25
- git.push '-f', 'origin', 'gh-pages'
25
+ git.checkout '-B', @branch
26
+ git.push '-f', 'origin', @branch
26
27
  end
27
28
  end
28
29
 
@@ -2,6 +2,7 @@ module Middleman
2
2
  module GhPages
3
3
  class Extension < Middleman::Extension
4
4
  option :remote, nil
5
+ option :branch, 'gh_pages'
5
6
 
6
7
  def initialize(app, options_hash = {}, &block)
7
8
  super
@@ -10,7 +11,10 @@ module Middleman
10
11
  end
11
12
 
12
13
  def after_configuration
13
- GhPages.options = {remote: options.remote}
14
+ GhPages.options = {
15
+ remote: options.remote,
16
+ branch: options.branch
17
+ }
14
18
  end
15
19
  end
16
20
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module GhPages
3
- VERSION = '0.7.0'
3
+ VERSION = '0.8.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-gh_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genadi Samokovarov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-03 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.6.11
83
+ rubygems_version: 2.7.3
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Middleman deploy to GitHub that just works.