rebuild 0.5.2 → 0.6.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: 23da9bc1ca1c0d7c3e3c722a523aae8338727e7b
4
- data.tar.gz: 161c5d792532a2510d53dcd3f72a1ed7ca3c6760
3
+ metadata.gz: c9f159a981a0cc4eef0e291f3ed52f69125731f0
4
+ data.tar.gz: 43b615e1ee1fc0316fd2d282c17cb3f9cc289ea9
5
5
  SHA512:
6
- metadata.gz: 999827f9507aed6c03ef74f76d5ca95554eed755cc649a7e4cf8a733dffd43e45fd19373495bb1e4338b250bb71ba37eab640a4814ab5a17d702f3fb852c3eb7
7
- data.tar.gz: 2bf8bae7129342b9f4144d3f986569aebfcea031723020d69e25c6830fb90d62e5712e6d23d1618d76598f60018136c924a7265eb470efb194d0ae72b7c4135c
6
+ metadata.gz: 9abb2d1ca4067b5f484bb4f18a77535450ca68798252e82da590390ef967d799e314bb1caea91e96cecc25728fe72c8c4887271e0827d0e667d68a15a47d7415
7
+ data.tar.gz: 1a05ecc8cad4401d44bfcf01495342ed5a115b20c0d85ee2842a134e2fa761908990ae7fb50fcc9176778c4eedcea2ae77e5aebcc81738f7bc3f9c9b0b54c14b
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Development environment bootstrap automation toolkit for OSX
4
4
 
5
+ ![](http://i.gyazo.com/b4e7f4482c96d180d6c09100e8f89ff8.gif)
6
+
5
7
  ## What's this?
6
8
 
7
9
  `rebuild` allows you to achieve mouse-free command line tools installation in OSX Yosemite.
@@ -39,6 +41,17 @@ $ rebuild -f k0kubun/dotfiles
39
41
  If you manage your development environment on GitHub repository,
40
42
  you can use this gem to synchronize multiple environments.
41
43
 
44
+ ### install.sh runner
45
+
46
+ ```bash
47
+ # It will run:
48
+ # https://raw.githubusercontent.com/[username]/dotfiles/master/install.sh"
49
+ $ rebuild [username]
50
+ ```
51
+
52
+ If you have dotfiles repository and install.sh in the root,
53
+ you can execute it with a simple command.
54
+
42
55
  ## Options
43
56
 
44
57
  ```bash
@@ -61,6 +74,8 @@ EOS
61
74
 
62
75
  ## Config
63
76
 
77
+ ![](http://i.gyazo.com/cfd38dfcd8384116dac9677ae638bd56.gif)
78
+
64
79
  You can skip choosing option by ~/.gitconfig
65
80
 
66
81
  ```conf
@@ -74,6 +74,12 @@ module Rebuild
74
74
  when 'config'
75
75
  command_config
76
76
  else
77
+ script = install_sh(command)
78
+ unless script.empty?
79
+ Logger.info("Running #{install_sh_url(command)}...")
80
+ return system(script)
81
+ end
82
+
77
83
  puts "Command #{command} is not found."
78
84
  puts
79
85
  show_usage
@@ -122,6 +128,14 @@ module Rebuild
122
128
  indent = text.split("\n").select {|line| !line.strip.empty? }.map {|line| line.index(/[^\s]/) }.compact.min || 0
123
129
  text.gsub(/^[[:blank:]]{#{indent}}/, '')
124
130
  end
131
+
132
+ def install_sh(name)
133
+ `curl -LSfs #{install_sh_url(name)} 2> /dev/null`
134
+ end
135
+
136
+ def install_sh_url(name)
137
+ "https://raw.githubusercontent.com/#{name}/dotfiles/master/install.sh"
138
+ end
125
139
  end
126
140
  end
127
141
  end
@@ -1,3 +1,3 @@
1
1
  module Rebuild
2
- VERSION = '0.5.2'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rebuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-23 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unindent
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.2.2
136
+ rubygems_version: 2.4.5
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Full-automatic command line tools installer for OSX Yosemite