matheus 0.7.0 → 0.7.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
  SHA256:
3
- metadata.gz: a5a35e65053e7e649e79f1a2e2fc75b7a03e0cdcbe711374d6dd7f91c18f9316
4
- data.tar.gz: bc5fbdbb8df7b80dcf5fbe64290a4319cbcdc9e4f3dbbb3c8b6a8b06b6caaae2
3
+ metadata.gz: ac93e4b9cc074bcacf3f6a1876bc7b3b64ed327b9311e38e06296bb0865326fd
4
+ data.tar.gz: 1cea1255adfd37b392788346126c47b280e77fbb6efc0e81315e7b136fed3731
5
5
  SHA512:
6
- metadata.gz: af2982cd118538f93f5092dbbd2c1ef0af7716f9a31f94ae44211b91b64f407373cbec566cf465a97ae2cdfc885c2b7f718511f8775d08a68b73d4a62b5cf2f9
7
- data.tar.gz: e87d00e609c751f9330a444cffc131af5784f2be706d831534a8e421c196c517c1e8d0473fef5f4b192d9e2455d28108a4d9e5a2edd34f2ab887f9967271592a
6
+ metadata.gz: 65ffbf0cf5faabd5ca15b6dece5e5f5c4be20b6667bac5d593cb529d85198611d9b3339e29acc3fe3751e93515f6a387317228b473ef62aa6854c0d8e3284930
7
+ data.tar.gz: febd6039248df0aa1c7ec14be94fe5656a16a393646cab3e1e9564aad73a168a5556584e8e14addc95757440cfca49130929e39ff8eb6dde166c9ae973c85e9c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.1]
4
+
5
+ - Update sound playback commands to run in the background with success status
6
+
3
7
  ## [0.7.0]
4
8
 
5
9
  _Released 2025-03-03_
@@ -11,6 +15,7 @@ _Released 2025-03-03_
11
15
  _Released 2025-01-07_
12
16
 
13
17
  - Allow specifying values on `convert-currency` command.
18
+
14
19
  ```sh
15
20
  $ convert-currency 100 usd eur
16
21
  ```
data/Rakefile CHANGED
@@ -46,4 +46,4 @@ end
46
46
  # Ensure the generate_executables task runs before the build task
47
47
  task build: :generate_executables
48
48
  # Ensure tests are run before releasing the gem
49
- task release: :spec
49
+ task build: :spec
@@ -9,9 +9,9 @@ module Matheus
9
9
  # Runs the command and plays a sound based on its success or failure after it finishes.
10
10
  def call(*args)
11
11
  if system(args.join(" ").presence || "true")
12
- system("afplay /System/Library/Sounds/Glass.aiff")
12
+ system("afplay /System/Library/Sounds/Glass.aiff & true")
13
13
  else
14
- system("afplay /System/Library/Sounds/Sosumi.aiff")
14
+ system("afplay /System/Library/Sounds/Sosumi.aiff & false")
15
15
  end
16
16
  rescue => e
17
17
  Failure(e.message)
@@ -1,5 +1,4 @@
1
1
  module Matheus
2
-
3
2
  class QuickCommit < Command
4
3
  # Usage:
5
4
  # $ quick-commit
@@ -9,7 +8,7 @@ module Matheus
9
8
 
10
9
  Q.call(["Please write a good one-line commit message for the following diff. Return only plain-text. Diff:\n#{diff}"], skip_cache: true)
11
10
  .on_success { |msg| confirm("Accept commit message?", return_value: msg) }
12
- .on_success { |commit_message| system(%(git commit -m "#{commit_message}"), :out => :close) }
11
+ .on_success { |commit_message| system(%(git commit -m "#{commit_message}"), out: :close) }
13
12
  end
14
13
 
15
14
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Matheus
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matheus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matheus Richard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-03 00:00:00.000000000 Z
11
+ date: 2025-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk