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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c589eb5330bd847b4d8c3dc01648971ccfba64b7c7e44bdf6fd8e982c7f8f1b2
4
- data.tar.gz: 2c592861e01df2d0e3eab083c808694e01f9edaa649c593dcde4db29acbbc28b
3
+ metadata.gz: b5e3ad73d3afccce9f6c298b42b634d06e4b8743c1ddeaaa40adf134a886e8f8
4
+ data.tar.gz: 60b95b5c217212cb5bcdee19b234169e02ed64c6037e0eb3f838352154df655a
5
5
  SHA512:
6
- metadata.gz: 9d9472b2ab8509ec1772d0c935ae0fc8bfa0df5a6ffd263cefc65b39e24a430aab43863d55393b95df61d83a6dea9943f2a50d1dfa6bafc7b0b672d66f3c4a4b
7
- data.tar.gz: 11b76695b6ac8d0a362c350c7a6575c04ff72159fa9fcb6a4277fc5a9a7437a986cc4f9dcb0c728f500c6e68e6e5e09ed016cd9dbf0ab629d6e10bcddc4b8b37
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.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.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: 2024-11-29 00:00:00.000000000 Z
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.1/CHANGELOG.md
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.23
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