rebuild 0.4.1 → 0.4.2

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: 77c752f09ba00332ea160046681a9b460797e975
4
- data.tar.gz: 44c882bd562e8ab7ba2e1938a0363ffa9515f55d
3
+ metadata.gz: e4136940bdf93abef19c6a1e0bebfcf468dab97b
4
+ data.tar.gz: f5ba90fa461f4f4572eeb06b085ad49f9dc007d3
5
5
  SHA512:
6
- metadata.gz: f869f41437137f6c497da9e30ec0bf3a4bae2e6d4125b32150fce9acbd7952c4dd2b174065e92060398a4e1fa96dd5aa766ed5228b88d5778e3c29d269500cd6
7
- data.tar.gz: 836714f053063f89f0429ca9a0f85c505b44864ebbf167ea31d7224630b213ee31aa93833dbf19a2db85d0820101ecd31716896d079e75f76c7b90a7f45eff90
6
+ metadata.gz: bf4c17bc2bfa90ce5a946a46aaeab89a969e459f4d758b7e1f02a8b5bac855c29e6c0b76005c808be21b4da482da46a55005184fa0fd7eef316892b9b0d72aae
7
+ data.tar.gz: 5cdc34c285e344cdddee657ef7ddbc5b37ec76d2633be915bb5e40bd65fc73af3e73e390b3d4e78c8c3b25dedfa526693c107a974833702a84abddd50345e740
data/README.md CHANGED
@@ -31,7 +31,7 @@ Just typing the command allows you to reproduce your development environment.
31
31
 
32
32
  ### Sync multiple environments
33
33
 
34
- ![](http://pic.k0kubun.com/treCcBeBSil20o7.gif)
34
+ ![](http://pic.k0kubun.com/1B8yBClo0bg4W7Q.gif)
35
35
 
36
36
  ```bash
37
37
  # force update repository by `-f`
@@ -63,6 +63,8 @@ EOS
63
63
 
64
64
  ## Config
65
65
 
66
+ ![](http://pic.k0kubun.com/wsrFmSZhBOug1Yj.gif)
67
+
66
68
  You can skip choosing option by ~/.gitconfig
67
69
 
68
70
  ```aconf
data/lib/rebuild/cli.rb CHANGED
@@ -5,6 +5,7 @@ require 'unindent'
5
5
  module Rebuild
6
6
  class CLI
7
7
  DEFAULT_OPTIONS = {
8
+ help: false,
8
9
  update: false,
9
10
  version: false,
10
11
  }
@@ -16,12 +17,14 @@ module Rebuild
16
17
  options = DEFAULT_OPTIONS.merge(@gitconfig.rebuild_config)
17
18
 
18
19
  opt = OptionParser.new
20
+ opt.on('-h', '--help') { |v| options[:help] = true }
19
21
  opt.on('-v', '--version') { |v| options[:version] = true }
20
22
  opt.on('-f', '--force-update') { |v| options[:update] = true }
21
23
  opt.on('-d', '--directory=VAL') { |v| options[:directory] = v }
22
24
  opt.on('-s', '--scriptdir=VAL') { |v| options[:scriptdir] = v }
23
25
 
24
26
  args = opt.parse!(ARGV)
27
+ return show_usage if options[:help]
25
28
  return print_version if options[:version]
26
29
 
27
30
  CommandLineTools.install unless CommandLineTools.installed?
@@ -89,6 +92,7 @@ module Rebuild
89
92
  rebuild config add rebuild config template to ~/.gitconfig
90
93
 
91
94
  Options:
95
+ -h, [--help] Show this
92
96
  -v, [--version] Print version
93
97
  -f, [--force-update] By default, git pull is not executed
94
98
  -d, [--directory=/path/to/clone] Default: /tmp/USER/PROJECT
@@ -1,3 +1,3 @@
1
1
  module Rebuild
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
data/rebuild.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency "unindent", "~> 1.0"
22
- spec.add_runtime_dependency "parseconfig", "~> 1.0.6"
22
+ spec.add_runtime_dependency "parseconfig", "~> 1.0"
23
23
  spec.add_development_dependency "pry", "~> 0.10"
24
24
  spec.add_development_dependency "bundler", "~> 1.7"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rebuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.6
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.6
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement