gorilla_patch 6.0.0 → 6.1.0

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: 5c9a322f4f8cd48f78e5520aa91b5b5c24a92152a79968cc0b911ce2ca3f3285
4
- data.tar.gz: 792a20d4a77fa579a837de052731bb07696088c52dec07fdea2ba83ea312fb40
3
+ metadata.gz: 040bcbe963be649a245220a6d17553c721f08dfea2d433a71a92bfc639a2d065
4
+ data.tar.gz: 4b6bf07509f111784802a1a9352ef0e238e1acc2b06d915ea7774f8fc57a7d57
5
5
  SHA512:
6
- metadata.gz: 88cf6bc3394dc20460364fda93ebcf9862a48fc52c6873f379ced7071e740492e04eec4cc8bd525bb5564f98d076020ec6c1cba6e5f93ab65eb5f3dabae46db2
7
- data.tar.gz: b67a94f5c017b40629819a1388117374072e17936974fb1df6c7d19dc9003621c353ac4b9c14526bb9b8cd26f679ae1846b80f0ef6cfd1b6e447850f845307b4
6
+ metadata.gz: 639b916c1e4621dfc37e118a66caacb663b768c89cf85026e7b7872767f877f5f9e8740e0f9ceccb6e0d0b2a684b160542a8566a519b93792aedee7817065536
7
+ data.tar.gz: a709509f6ceeb142b879bb7878d8ed67b86b5a3c7b735151ef4d28b41042cf182582d33389af362fd31b84f29ba493f632814ca1b7a3f13bb31c971d8625fdf2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 6.1.0 (2026-08-16)
6
+
7
+ * Add `#present?` for `Blank` refinement.
8
+ * Update development dependencies.
9
+ * Switch from Cirrus CI to GitHub Actions.
10
+ * Fix badges in README.
11
+
5
12
  ## 6.0.0 (2026-02-08)
6
13
 
7
14
  * Drop Ruby 3.0 and 3.1 support.
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Gorilla Patch
2
2
 
3
- [![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/gorilla_patch?style=flat-square)](https://cirrus-ci.com/github/AlexWayfer/gorilla_patch)
3
+ [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/AlexWayfer/gorilla_patch/ci.yml?style=flat-square)](https://github.com/AlexWayfer/gorilla_patch/actions)
4
4
  [![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/gorilla_patch/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/gorilla_patch)
5
- [![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/gorilla_patch.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/gorilla_patch)
6
5
  [![Depfu](https://img.shields.io/depfu/AlexWayfer/gorilla_patch?style=flat-square)](https://depfu.com/repos/github/AlexWayfer/gorilla_patch)
7
6
  [![Inline docs](https://inch-ci.org/github/AlexWayfer/gorilla_patch.svg?branch=main)](https://inch-ci.org/github/AlexWayfer/gorilla_patch)
8
7
  [![license](https://img.shields.io/github/license/AlexWayfer/gorilla_patch.svg?style=flat-square)](https://github.com/AlexWayfer/gorilla_patch/blob/main/LICENSE.txt)
@@ -58,10 +57,13 @@ Before custom method declaration there is a check for current Ruby version.
58
57
 
59
58
  * **Blank**
60
59
 
61
- * **`String`**, **`NilClass`**
60
+ * **`String`**, **`NilClass`**, **`Object`** (relies on `#empty?` method),
61
+ **`Module`**, **`Class`**
62
62
 
63
63
  * `#blank?`
64
64
 
65
+ * `#present?`
66
+
65
67
  * **`Array`**, **`Hash`**
66
68
 
67
69
  * `#reject_blank_strings`
@@ -21,6 +21,10 @@ module GorillaPatch
21
21
  def blank?
22
22
  respond_to?(:empty?) ? empty? : !self
23
23
  end
24
+
25
+ def present?
26
+ !blank?
27
+ end
24
28
  end
25
29
 
26
30
  ## Also affects `Class`, including `Sequel::Model` with `.empty?`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GorillaPatch
4
- VERSION = '6.0.0'
4
+ VERSION = '6.1.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorilla_patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
@@ -37,8 +37,8 @@ licenses:
37
37
  - MIT
38
38
  metadata:
39
39
  bug_tracker_uri: https://github.com/AlexWayfer/gorilla_patch/issues
40
- changelog_uri: https://github.com/AlexWayfer/gorilla_patch/blob/v6.0.0/CHANGELOG.md
41
- documentation_uri: http://www.rubydoc.info/gems/gorilla_patch/6.0.0
40
+ changelog_uri: https://github.com/AlexWayfer/gorilla_patch/blob/v6.1.0/CHANGELOG.md
41
+ documentation_uri: http://www.rubydoc.info/gems/gorilla_patch/6.1.0
42
42
  homepage_uri: https://github.com/AlexWayfer/gorilla_patch
43
43
  rubygems_mfa_required: 'true'
44
44
  source_code_uri: https://github.com/AlexWayfer/gorilla_patch
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  requirements: []
63
- rubygems_version: 4.0.3
63
+ rubygems_version: 4.0.16
64
64
  specification_version: 4
65
65
  summary: Refining core classes
66
66
  test_files: []