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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e66c0d1102d6cd74d964550848f31ed71e066e4a49f714fde5461819c00ebda7
|
4
|
+
data.tar.gz: '0399755e739e2a14cf15b0bb4496c3070374206a9f45ac8c635f643bfc28c1bc'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d8c59909331c885b1ffb077f85eb6e1f3802dfeab4d84325656e41e1ad265e07483bfbbd953a9c97379b10a38975fcf67115613dc1657cefc55b45fc4830ae2
|
7
|
+
data.tar.gz: 3be127c34231716601a69d63251a387adea5a6e22a9d767a91adcaac05d1f3e41c0411013f7c4006de9c073a184ca7043f84826d6c663e0a33851b1ef6de9fd4
|
@@ -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 '-
|
25
|
-
git.push '-f', 'origin',
|
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 = {
|
14
|
+
GhPages.options = {
|
15
|
+
remote: options.remote,
|
16
|
+
branch: options.branch
|
17
|
+
}
|
14
18
|
end
|
15
19
|
end
|
16
20
|
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.
|
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:
|
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.
|
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.
|