set 1.1.1 → 1.1.2
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 +4 -4
- data/.github/workflows/push_gem.yml +46 -0
- data/lib/set.rb +9 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5e3ad73d3afccce9f6c298b42b634d06e4b8743c1ddeaaa40adf134a886e8f8
|
4
|
+
data.tar.gz: 60b95b5c217212cb5bcdee19b234169e02ed64c6037e0eb3f838352154df655a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b81c84e4fc585ed98f1508e3b15bd2140cdc097594a309932a9745576e6d4b7e057d94fb65eb96e5602402d2310fd3b8237ece68b6e08d2102150980d03a1546
|
7
|
+
data.tar.gz: 4d0a690e305abf7a6a49615586123214473066ae539385d8db542149af7058365ecdc1d189b463d7af2eda39b98ac73f5c031886e0af9a03d441118c2554edac
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: Publish gem to rubygems.org
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- 'v*'
|
7
|
+
|
8
|
+
permissions:
|
9
|
+
contents: read
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
push:
|
13
|
+
if: github.repository == 'ruby/set'
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
|
16
|
+
environment:
|
17
|
+
name: rubygems.org
|
18
|
+
url: https://rubygems.org/gems/set
|
19
|
+
|
20
|
+
permissions:
|
21
|
+
contents: write
|
22
|
+
id-token: write
|
23
|
+
|
24
|
+
steps:
|
25
|
+
- name: Harden Runner
|
26
|
+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
|
27
|
+
with:
|
28
|
+
egress-policy: audit
|
29
|
+
|
30
|
+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
31
|
+
|
32
|
+
- name: Set up Ruby
|
33
|
+
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
|
34
|
+
with:
|
35
|
+
bundler-cache: true
|
36
|
+
ruby-version: ruby
|
37
|
+
|
38
|
+
- name: Publish to RubyGems
|
39
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
40
|
+
|
41
|
+
- name: Create GitHub release
|
42
|
+
run: |
|
43
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
44
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
45
|
+
env:
|
46
|
+
GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}
|
data/lib/set.rb
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
3
|
+
if RUBY_VERSION >= '3.5'
|
4
|
+
if defined?(Set) && defined?(Set.[]) && Set.method(:[]).source_location.nil?
|
5
|
+
# Remove defined? ... conditional after Ruby 3.5.0-preview2
|
6
|
+
return
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
2
10
|
# :markup: markdown
|
3
11
|
#
|
4
12
|
# set.rb - defines the Set class
|
@@ -216,7 +224,7 @@
|
|
216
224
|
# has been modified while an element in the set.
|
217
225
|
#
|
218
226
|
class Set
|
219
|
-
VERSION = "1.1.
|
227
|
+
VERSION = "1.1.2"
|
220
228
|
|
221
229
|
include Enumerable
|
222
230
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: set
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori MUSHA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides a class to deal with collections of unordered, unique values
|
14
14
|
email:
|
@@ -19,6 +19,7 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- ".github/CODEOWNERS"
|
21
21
|
- ".github/dependabot.yml"
|
22
|
+
- ".github/workflows/push_gem.yml"
|
22
23
|
- ".github/workflows/test.yml"
|
23
24
|
- ".gitignore"
|
24
25
|
- CHANGELOG.md
|
@@ -38,7 +39,7 @@ licenses:
|
|
38
39
|
metadata:
|
39
40
|
homepage_uri: https://github.com/ruby/set
|
40
41
|
source_code_uri: https://github.com/ruby/set
|
41
|
-
changelog_uri: https://github.com/ruby/set/blob/v1.1.
|
42
|
+
changelog_uri: https://github.com/ruby/set/blob/v1.1.2/CHANGELOG.md
|
42
43
|
post_install_message:
|
43
44
|
rdoc_options: []
|
44
45
|
require_paths:
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
- !ruby/object:Gem::Version
|
55
56
|
version: '0'
|
56
57
|
requirements: []
|
57
|
-
rubygems_version: 3.5.
|
58
|
+
rubygems_version: 3.5.11
|
58
59
|
signing_key:
|
59
60
|
specification_version: 4
|
60
61
|
summary: Provides a class to deal with collections of unordered, unique values
|