bcupgrade 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f6ea276e941fdf9a1c046ad95626ac191844e53
4
- data.tar.gz: 7349da2bbac7d1e40dc3decafa74b3cd1bdf40f4
3
+ metadata.gz: b50d6bb545ca44376d057ba6c1d57bfdbc1b7e36
4
+ data.tar.gz: ea0b379665d7d0cce94e6fccd6b8d5eda3b55cd7
5
5
  SHA512:
6
- metadata.gz: ed4987fcaf4b95556df4e7f76c4fe2d27869191270fcea4a758c018445ff1f124530d3376e3b4950c21ad1a17ae6c60730fab1241181f2839d2e69b30e124100
7
- data.tar.gz: 59291b4a0da5330bc6022fa72f0b17fc2fb28e72e02ccff7f6b3d0481ba95bb950d2a14376facd138c0f31ea24a3bcc8684a0852885bc40115a4f09266935b01
6
+ metadata.gz: a4fd7e86e5b2b8e6b7c850b16812f73ded363ff88dc41e930a76f0aec8f62340ab91bb2de77903ae58a9b6901e5b6f7121041d2702fd149ae051f6c04c78e7bf
7
+ data.tar.gz: b57410f2c15a6459059c8a42ad470b40cff0b12b6cde5ebf752a209a0a252ba6b495b9c8897782104e6a4b5ad1bb907b03d55a1dc2bf838ec6415cbff0858a62
data/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  Upgrade all installed brew casks.
6
6
 
7
+
8
+
9
+
7
10
  ## Requirement
8
11
 
9
12
  - [Homebrew Cask](https://caskroom.github.io/) v0.60.1+
@@ -27,24 +30,23 @@ Atom.app (app)
27
30
  /Applications/Atom.app/Contents/Resources/app/atom.sh (binary)
28
31
  ```
29
32
 
30
- ## Installation
31
33
 
32
- % gem install bcupgrade
33
34
 
34
- ## Usage
35
+
36
+ ## Installation
35
37
 
36
38
  ```
37
- % bcupgrade --help
38
- Usage: bcupgrade [options]
39
- -d, --dry-run Show output without running
40
- -r, --remove Remove previous version casks with installing
41
- -y, --yes Install cask without prompt
42
- -v, --version Show version number
39
+ % gem install bcupgrade
43
40
  ```
44
41
 
42
+
43
+
44
+
45
+ ## Usage
46
+
45
47
  `bcupgrade` with no arguments to check & upgrade all casks.
46
48
 
47
- - displays a confirmation prompt `[y/n]` when it attempts to re-install.
49
+ - Displays a confirmation prompt `[y/n]` when it attempts to re-install.
48
50
  - Install latest version. (`brew cask install --force #{cask}`)
49
51
 
50
52
  ```
@@ -81,7 +83,19 @@ complete
81
83
  ```
82
84
 
83
85
 
84
- ## Configuration File
86
+ ### Options
87
+
88
+ ```
89
+ % bcupgrade --help
90
+ Usage: bcupgrade [options] [cask1 cask2 ...]
91
+ -d, --dry-run Check version without installing
92
+ -r, --remove Remove previous version with installing
93
+ -y, --yes Install cask without prompt
94
+ -v, --version Show version number
95
+ ```
96
+
97
+
98
+ ### Configuration File
85
99
 
86
100
  If you want to ignore upgrade casks, you can add settings in the user's `~/.bcupgrade` (YAML syntax).
87
101
 
@@ -92,12 +106,16 @@ ignore:
92
106
  ```
93
107
 
94
108
 
109
+
110
+
95
111
  ## Contributing
96
112
 
97
113
  Bug reports and pull requests are welcome on GitHub at https://github.com/DriftwoodJP/bcupgrade.
98
114
  This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
99
115
 
100
116
 
117
+
118
+
101
119
  ## License
102
120
 
103
121
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/exe/bcupgrade CHANGED
@@ -6,11 +6,14 @@ require 'readline'
6
6
 
7
7
  OptionParser.new do |opt|
8
8
  begin
9
+ opt.program_name = File.basename($PROGRAM_NAME)
10
+ opt.banner = "Usage: #{opt.program_name} [options] [cask1 cask2 ...]"
11
+
9
12
  options = {}
10
- opt.on('-d', '--dry-run', 'Show output without running') do |v|
13
+ opt.on('-d', '--dry-run', 'Check version without installing') do |v|
11
14
  options[:dry_run] = v
12
15
  end
13
- opt.on('-r', '--remove', 'Remove previous version casks with installing') do |v|
16
+ opt.on('-r', '--remove', 'Remove previous version with installing') do |v|
14
17
  options[:remove] = v
15
18
  end
16
19
  opt.on('-y', '--yes', 'Install cask without prompt') do |v|
@@ -25,7 +28,7 @@ OptionParser.new do |opt|
25
28
 
26
29
  Bcupgrade.run(options, args)
27
30
  rescue => e
28
- puts e.to_s
31
+ puts "Error: #{e}.\nSee #{opt}"
29
32
  exit
30
33
  end
31
34
  end
@@ -1,3 +1,3 @@
1
1
  module Bcupgrade
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcupgrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DriftwoodJP
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler