smolt 0.4.3 → 0.4.4

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
  SHA256:
3
- metadata.gz: 69198bc6387328217f605633bfefaa110274e197b3d8e54a1e0b0fd017bbaca4
4
- data.tar.gz: 5b14fd15d7d8a3129d13a4f55c766cdec58764ed85771c9361f07345a255cfd0
3
+ metadata.gz: ab6dca77e1b9c47173eadfc55dfc42b2382e4e71f5858acc97db8958d29715c2
4
+ data.tar.gz: 13495526cbf5dbcbf4d39c77e1a8814bf33036454f30b5029b4108337dc4898b
5
5
  SHA512:
6
- metadata.gz: 11935fbaf215bb7099a8e00f3f16f63dde097bfb94a325d92f3e187a3b7237d242cb2b45f283bab20f275f7f56d946f527b9e021714392232a92c9a14ca90a78
7
- data.tar.gz: 5027d32ab5f91ffb733945b9b964c63d685ec214193991f4442aaf4324f2523510d5bf431273a49b6ecb789cc7b9ae3f162ed20b8399d11b90dd6ed06852906d
6
+ metadata.gz: 35fb1a8c70a4eaec67d6475060ec0fe918df5fdf1b2e1a1ad370ee1246725118737290c11768da04c12bcef6f7a63cbee268410e01b8d2752943c5eb1ff80aac
7
+ data.tar.gz: d3c55961665d9df36050049f5e49ade9b63cdac70e54173a793bc991038c064f2a45ede47025561e216fda2cfa0353bbf94882ff4f708baf6c2729ce60f1bee2
data/CHANGELOG.md CHANGED
@@ -53,3 +53,11 @@ usage
53
53
  ### Change
54
54
  - path for `require` in lib/smolt.rb
55
55
  - path for `require` in lib/smolt/cli.rb
56
+
57
+ ## [0.4.3] - 2022-05-28
58
+ ### Fixed
59
+ - the error that is shown when the formula is not found
60
+
61
+ ## [0.4.4] - 2022-05-28
62
+ ### Fixed
63
+ - too many lines in `brew_deps`method
data/README.md CHANGED
@@ -26,8 +26,11 @@ Or install it yourself as:
26
26
  $ smolt diff {formula}
27
27
 
28
28
  This will show any additional dependent packages that need to be installed in order to install the package given in the argument.
29
+
29
30
  If you don't need any additional packeges, Smolt returns the message like "{formula} does not require any additional dependencies."
30
31
 
32
+ Smolt returns "{formula} is not found.", when the formula specified as an argumant is not found in homebrew.
33
+
31
34
  ## Development
32
35
 
33
36
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/lib/smolt/cli.rb CHANGED
@@ -29,11 +29,8 @@ module Smolt
29
29
  deps = []
30
30
  begin
31
31
  deps_array.each { |f| deps << f unless installed.include?(f) }
32
- if deps.empty?
33
- "#{formula} does not require any additional dependencies."
34
- else
35
- ":::Differencies of dependencies:::\n#{deps}"
36
- end
32
+ no_deps = "#{formula} does not require any additional dependencies."
33
+ deps.empty? ? no_deps : ":::Differencies of dependencies:::\n#{deps}"
37
34
  rescue NoMethodError
38
35
  "#{formula} is not found."
39
36
  end
data/lib/smolt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Smolt
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoyuki Ishida
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-28 00:00:00.000000000 Z
11
+ date: 2022-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor