middleman-gh_pages 0.1.0 → 0.2.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
2
  SHA1:
3
- metadata.gz: 8bf7df5237a02ab8551baa351d7d818a712c45ad
4
- data.tar.gz: 7c3a0ccd10bfd9faebef4f26d6f9987c8899075e
3
+ metadata.gz: 621771c557a71ae4f2d06e983ae5fe9d8bfe5071
4
+ data.tar.gz: 905bb9cd3ac0508095f360f1d0bbff9befb48f8d
5
5
  SHA512:
6
- metadata.gz: 1dd39193d816ad48ceef9c8c94a90a6c81dbc24cb31836e20c5e892f9dba47af268d6557e2f5abfa41a7660317ad8797ed1456f7d3735415800f928619e1490d
7
- data.tar.gz: 97caff2a5f2d388426dbb34a4baa5db21d9d658ed493bce04c4208be9b58eaac26f9b9b949d3529e209947196bcecba724fcc1d7be1dda75c675df38de164d69
6
+ metadata.gz: 7ad36fc66b0ecb9999a8c5f9ce487e031e4d38c641b2a2bc9a7ebfc31f68524ffb2c7f844a9df32ca9cae4c3fdeb0b09fab01b5097381e5ef4cc14f3fa53c5b0
7
+ data.tar.gz: 2cd0f4eabcbafbbbc7f350eae38fa820b815978ca478b7b3401e45ca5c248ed39ff89b64da827e0c43064a96d687df37f2193118c3070ef2b7a6f7b4ed6cf48f
data/README.md CHANGED
@@ -29,9 +29,12 @@ end
29
29
  Adding an absolute remote name is a requirement, so we don't have to infer
30
30
  where to deploy to.
31
31
 
32
- The deploy is always one commit that is forced pushed into the gh-pages branch.
32
+ The deploy is always one commit that is forced pushed into the `gh-pages` branch.
33
33
  You'll never run into merge conflicts, or an unemployable state. You can deploy
34
- anything, as long as you can force push to the `gh-pages` branch.
34
+ anything, as long as you can force push to `gh-pages`.
35
+
36
+ You can also deploy uncommitted changes as a new deploy commit is created on
37
+ every run of:
35
38
 
36
39
  ```
37
40
  $ middleman gh_pages
@@ -16,8 +16,5 @@ module Middleman
16
16
  end
17
17
 
18
18
  Cli::Base.register(GhPages::Cli, 'gh_pages', 'gh_pages [options]', 'Deploy to GitHub')
19
-
20
- Extensions.register(:gh_pages) do
21
- GhPages::Extension
22
- end
19
+ Extensions.register(:gh_pages) { GhPages::Extension }
23
20
  end
@@ -25,7 +25,9 @@ module Middleman
25
25
  end
26
26
 
27
27
  def method_missing(name, *args, &block)
28
- raise Error unless ::Kernel.system(@cmd, name.to_s, *args.map(&:to_s))
28
+ unless ::Kernel.system(@cmd, name.to_s, *args.map(&:to_s))
29
+ ::Kernel.raise Error
30
+ end
29
31
  end
30
32
  end
31
33
  end
@@ -1,5 +1,3 @@
1
- require 'middleman-core'
2
-
3
1
  module Middleman
4
2
  module GhPages
5
3
  class Extension < Middleman::Extension
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module GhPages
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.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.1.0
4
+ version: 0.2.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: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler