bcupgrade 0.3.2 → 0.3.3

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: ecc8420e067e8a775c7fb527b88ae0591ef8924a
4
- data.tar.gz: b025716bb2b2cb05bf26d89a15c0507de2c20894
3
+ metadata.gz: f16017250384e03e43d32e8f1147e419d31d1e75
4
+ data.tar.gz: 996c9955284477afb25d6f1076c4d0b05847128f
5
5
  SHA512:
6
- metadata.gz: daf26740f7ef36df6e3c4fbfba71cd96262aba125904b1945c9461ace6615a091e8247ea1375379331165f82198d7cff1d3c98c1b406fb6771967dd0b4570868
7
- data.tar.gz: 63e960f95d7feefbf65bd98430f9a1cc269d5800c532801a7c8da500806272cc671f437c85ff3988a6991d7c5dba9ec48bc17cb38ef54f6e823c177ce6288fb6
6
+ metadata.gz: b531380cf613b3e47677bdd1ac3279b4fa3538582ef3d14056594666538d60c112174528065d42ccb21c9ae1b96019fef79c7875a3d747fdf95f5891246a8c67
7
+ data.tar.gz: 56de324764d6193cf139308c6648a68012d5d7a6b7866f967fb6249d48d787ce9d356c4b09c324135b255e8555f83786a035db0757147016ff9cc878dec578dc
data/.rubocop.yml CHANGED
@@ -2,6 +2,7 @@ require: rubocop-rspec
2
2
  inherit_from: .rubocop_todo.yml
3
3
 
4
4
  AllCops:
5
+ TargetRubyVersion: 2.0
5
6
  DisplayCopNames: true
6
7
 
7
8
  LineLength:
data/.rubocop_todo.yml CHANGED
@@ -1,19 +1,15 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-03-29 17:12:14 +0900 using RuboCop version 0.47.1.
3
+ # on 2017-04-18 20:35:19 +0900 using RuboCop version 0.48.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
10
- Metrics/AbcSize:
11
- Max: 16
12
-
13
- # Offense count: 2
9
+ # Offense count: 3
14
10
  # Configuration parameters: CountComments.
15
11
  Metrics/MethodLength:
16
- Max: 17
12
+ Max: 15
17
13
 
18
14
  # Offense count: 3
19
15
  Style/Documentation:
data/README.md CHANGED
@@ -2,33 +2,7 @@
2
2
 
3
3
  # Bcupgrade - brew cask upgrade
4
4
 
5
- Upgrade all installed brew casks.
6
-
7
-
8
-
9
-
10
- ## Requirement
11
-
12
- - [Homebrew Cask](https://caskroom.github.io/) v0.60.1+
13
-
14
-
15
- This script uses `brew cask info` result.
16
-
17
- ```
18
- % brew cask info atom
19
- atom: 1.10.2
20
- https://atom.io/
21
- /usr/local/Caskroom/atom/1.7.3 (does not exist)
22
- /usr/local/Caskroom/atom/1.8.0 (68B)
23
- /usr/local/Caskroom/atom/1.9.0 (2,546 files, 224.9M)
24
- From: https://github.com/caskroom/homebrew-cask/blob/master/Casks/atom.rb
25
- ==> Name
26
- Github Atom
27
- ==> Artifacts
28
- Atom.app (app)
29
- /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm (binary)
30
- /Applications/Atom.app/Contents/Resources/app/atom.sh (binary)
31
- ```
5
+ Awesome `brew cask upgrade` command.
32
6
 
33
7
 
34
8
 
@@ -56,13 +30,14 @@ Atom.app (app)
56
30
  ["1password", "alfred", "atom", "bartender"]
57
31
 
58
32
  ==> Check 'brew cask info' for the latest available version...
59
- 1password / 6.3.2
60
- atom / 1.10.2
33
+ 1password (6.3.2)
34
+ atom (1.10.2)
61
35
 
62
36
  Upgrade 1password? [y/n] n
63
37
 
64
38
  Upgrade atom? [y/n] y
65
- install atom
39
+
40
+ ==> Install atom
66
41
  ==> Satisfying dependencies
67
42
  complete
68
43
  ==> Downloading https://github.com/atom/atom/releases/download/v1.10.2/atom-mac.zip
@@ -101,8 +76,34 @@ If you want to ignore upgrade casks, you can add settings in the user's `~/.bcup
101
76
 
102
77
  ```
103
78
  ignore:
104
- - omniplan
105
- - sublime-text2
79
+ - iterm2
80
+ - sketch
81
+ ```
82
+
83
+
84
+
85
+
86
+ ## Requirement
87
+
88
+ - [Homebrew Cask](https://caskroom.github.io/) v0.60.1+
89
+
90
+
91
+ This script uses `brew cask info` result.
92
+
93
+ ```
94
+ % brew cask info atom
95
+ atom: 1.10.2
96
+ https://atom.io/
97
+ /usr/local/Caskroom/atom/1.7.3 (does not exist)
98
+ /usr/local/Caskroom/atom/1.8.0 (68B)
99
+ /usr/local/Caskroom/atom/1.9.0 (2,546 files, 224.9M)
100
+ From: https://github.com/caskroom/homebrew-cask/blob/master/Casks/atom.rb
101
+ ==> Name
102
+ Github Atom
103
+ ==> Artifacts
104
+ Atom.app (app)
105
+ /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm (binary)
106
+ /Applications/Atom.app/Contents/Resources/app/atom.sh (binary)
106
107
  ```
107
108
 
108
109
 
data/Rakefile CHANGED
@@ -5,4 +5,4 @@ require 'rubocop/rake_task'
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
- task default: [:rubocop, :spec]
8
+ task default: %i[rubocop spec]
data/bcupgrade.gemspec CHANGED
@@ -1,18 +1,20 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'bcupgrade/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = 'bcupgrade'
8
- spec.version = Bcupgrade::VERSION
9
- spec.authors = ['DriftwoodJP']
10
- spec.email = ['DriftwoodJP@users.noreply.github.com']
8
+ spec.name = 'bcupgrade'
9
+ spec.version = Bcupgrade::VERSION
10
+ spec.authors = ['DriftwoodJP']
11
+ spec.email = ['DriftwoodJP@users.noreply.github.com']
11
12
 
12
- spec.summary = 'Upgrade all installed brew casks.'
13
- spec.description = 'Upgrade all installed brew casks.'
14
- spec.homepage = 'https://github.com/DriftwoodJP/bcupgrade'
15
- spec.license = 'MIT'
13
+ spec.summary = 'Upgrade all installed brew casks.'
14
+ spec.description = 'Upgrade all installed brew casks.'
15
+ spec.homepage = 'https://github.com/DriftwoodJP/bcupgrade'
16
+ spec.license = 'MIT'
17
+ spec.required_ruby_version = '>= 2.0.0.648'
16
18
 
17
19
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
20
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -23,12 +25,12 @@ Gem::Specification.new do |spec|
23
25
  # "public gem pushes."
24
26
  # end
25
27
 
26
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
28
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
29
  f.match(%r{^(test|spec|features)/})
28
30
  end
29
- spec.bindir = 'exe'
30
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
- spec.require_paths = ['lib']
31
+ spec.bindir = 'exe'
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ['lib']
32
34
 
33
35
  spec.add_development_dependency 'bundler', '~> 1.14.6'
34
36
  spec.add_development_dependency 'rake', '~> 12.0.0'
@@ -24,7 +24,7 @@ module Bcupgrade
24
24
  latest_version = cask_info.include?(string) ? nil : version_number
25
25
 
26
26
  if latest_version
27
- puts "#{name} / #{latest_version}"
27
+ puts "#{name} (#{latest_version})"
28
28
  update_casks.push(name)
29
29
  end
30
30
  end
@@ -44,11 +44,11 @@ module Bcupgrade
44
44
  next unless input == 'y'
45
45
 
46
46
  if @options[:remove]
47
- puts "remove #{cask}"
47
+ puts "\n==> Remove #{cask}"
48
48
  BrewCask.remove(cask)
49
49
  end
50
50
 
51
- puts "install #{cask}"
51
+ puts "\n==> Install #{cask}"
52
52
  BrewCask.install(cask)
53
53
  end
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module Bcupgrade
2
- VERSION = '0.3.2'.freeze
2
+ VERSION = '0.3.3'.freeze
3
3
  end
data/lib/bcupgrade.rb CHANGED
@@ -18,8 +18,7 @@ module Bcupgrade
18
18
  end
19
19
 
20
20
  # Check cask version
21
- puts "\n==> Check 'brew cask info' for the latest available version...\n"
22
-
21
+ puts "\n==> Check 'brew cask info'...\n"
23
22
  update_casks = cask.check_version
24
23
 
25
24
  # Upgrade cask
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.2
4
+ version: 0.3.3
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-09 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: '0'
149
+ version: 2.0.0.648
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.5.2
157
+ rubygems_version: 2.6.13
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Upgrade all installed brew casks.