iron_oxide 0.0.3 → 0.0.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: c8cc37a56001f57c84184d8fc493ef41297560a71d3e6721b1df9fccca6e4390
4
- data.tar.gz: 359d8b8fe95b6647460b4fded5bf27ed4a63d85f229affb5b225fa9cef312fe7
3
+ metadata.gz: d6aecab4eae1186d62ac9d615a2be8d5c5f7e19b5620c7a309a33e50f7f45083
4
+ data.tar.gz: 85b1bc57f878ae94fc54e90d8685fc1dc134c4610d24f73d8e51de02faeef099
5
5
  SHA512:
6
- metadata.gz: 55304e8bf2b492a6e0acaa59fc64efdafd967aa29068dccc04709bed9bca4c3d4058969c17d872b7041c6cca9e8e65e517389734d260ff8048d53b83e0ec7cd3
7
- data.tar.gz: 6e430deaf2d6ebb0e2e6a107ea5fe0221e16425cfd8ec692bbf8a74a29819dcab49e2a12e526829bbd94d34fa21695fb81b3c3b650e38b79e624ffc498c9db41
6
+ metadata.gz: b44e431d77769020e8d08a1303d4c5bf3a97645059ad2fb8ba840fd51b334d892e4667c87e7c374afc0c0ba5d7c5d4a53763138ea7371333c3aa08061b43deb7
7
+ data.tar.gz: c30a60e17f6050e5934a4a6be8164b2a9eab15c8cdf808fb20945cb1707c30a9720d89d38a7efe0b8ecfeffb34b5598c238ed245cf122f2beabb77a46a0d3f54
data/CHANGELOG.md CHANGED
@@ -11,6 +11,10 @@ Prefix your message with one of the following:
11
11
  - [Security] in case of vulnerabilities.
12
12
  -->
13
13
 
14
+ ## 0.0.4
15
+
16
+ [Changed] Make `Ok`/`Err`'s value optional.
17
+
14
18
  ## 0.0.3
15
19
 
16
20
  [Fixed] Constant override warning.
@@ -11,11 +11,11 @@ module IronOxide
11
11
  Option::Some(value)
12
12
  end
13
13
 
14
- def Ok(value) # rubocop:disable Naming/MethodName
14
+ def Ok(value = nil) # rubocop:disable Naming/MethodName
15
15
  Result::Ok(value)
16
16
  end
17
17
 
18
- def Err(error) # rubocop:disable Naming/MethodName
18
+ def Err(error = nil) # rubocop:disable Naming/MethodName
19
19
  Result::Err(error)
20
20
  end
21
21
  end
@@ -12,7 +12,7 @@ module IronOxide
12
12
  # Deconstructs the instance into an array, so it can be using on
13
13
  # pattern matching.
14
14
  def deconstruct
15
- [value]
15
+ [value].compact
16
16
  end
17
17
 
18
18
  # Deconstructs the instance into a hash, so it can be using on
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IronOxide
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_oxide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-11-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: minitest
@@ -147,11 +146,10 @@ metadata:
147
146
  rubygems_mfa_required: 'true'
148
147
  homepage_uri: https://github.com/fnando/iron_oxide
149
148
  bug_tracker_uri: https://github.com/fnando/iron_oxide/issues
150
- source_code_uri: https://github.com/fnando/iron_oxide/tree/v0.0.3
151
- changelog_uri: https://github.com/fnando/iron_oxide/tree/v0.0.3/CHANGELOG.md
152
- documentation_uri: https://github.com/fnando/iron_oxide/tree/v0.0.3/README.md
153
- license_uri: https://github.com/fnando/iron_oxide/tree/v0.0.3/LICENSE.md
154
- post_install_message:
149
+ source_code_uri: https://github.com/fnando/iron_oxide/tree/v0.0.4
150
+ changelog_uri: https://github.com/fnando/iron_oxide/tree/v0.0.4/CHANGELOG.md
151
+ documentation_uri: https://github.com/fnando/iron_oxide/tree/v0.0.4/README.md
152
+ license_uri: https://github.com/fnando/iron_oxide/tree/v0.0.4/LICENSE.md
155
153
  rdoc_options: []
156
154
  require_paths:
157
155
  - lib
@@ -166,8 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
164
  - !ruby/object:Gem::Version
167
165
  version: '0'
168
166
  requirements: []
169
- rubygems_version: 3.5.22
170
- signing_key:
167
+ rubygems_version: 3.6.8
171
168
  specification_version: 4
172
169
  summary: An experiment that brings some Rust patterns to Ruby.
173
170
  test_files: []