set 1.1.1 → 1.1.3
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/release.yml +4 -0
- data/.github/workflows/push_gem.yml +46 -0
- data/.github/workflows/test.yml +2 -9
- data/lib/set.rb +4 -1
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 272a22e2e2993a09f4123b8e320388a38bed2643fe3bb9eda1cde19a3d37246e
|
|
4
|
+
data.tar.gz: 8854eee80772b4662835036349f84225f513231376da7c2c011cd155a7e6efed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d3dc014d0954b2d973d8cea5cdf790201a47854cff39b2b3b4d9f3d92a3955bf63ee1a9c5805a4b3a700fef0899dc73cecd9c69ffdb724a201da4f653dc6fe4
|
|
7
|
+
data.tar.gz: 3ea872a571e499cd98825ce650415e7db2d5b57905173dad4e4b965f599d28e3b122ae92b9d0f55b1d4761647dc96eedcb660fe6a7e17a2e85d92203efcd4f1e
|
data/.github/release.yml
ADDED
|
@@ -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@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
|
|
27
|
+
with:
|
|
28
|
+
egress-policy: audit
|
|
29
|
+
|
|
30
|
+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
31
|
+
|
|
32
|
+
- name: Set up Ruby
|
|
33
|
+
uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1.238.0
|
|
34
|
+
with:
|
|
35
|
+
bundler-cache: true
|
|
36
|
+
ruby-version: ruby
|
|
37
|
+
|
|
38
|
+
- name: Publish to RubyGems
|
|
39
|
+
uses: rubygems/release-gem@6317d8d1f7e28c24d28f6eff169ea854948bd9f7 # v1.2.0
|
|
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.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -3,22 +3,15 @@ name: test
|
|
|
3
3
|
on: [push, pull_request]
|
|
4
4
|
|
|
5
5
|
jobs:
|
|
6
|
-
ruby-versions:
|
|
7
|
-
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
|
|
8
|
-
with:
|
|
9
|
-
engine: cruby
|
|
10
|
-
min_version: 3.0
|
|
11
|
-
|
|
12
6
|
build:
|
|
13
|
-
needs: ruby-versions
|
|
14
7
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
|
15
8
|
strategy:
|
|
16
9
|
matrix:
|
|
17
|
-
ruby:
|
|
10
|
+
ruby: ["3.0", 3.1, 3.2, 3.3, 3.4]
|
|
18
11
|
os: [ ubuntu-latest, macos-latest ]
|
|
19
12
|
runs-on: ${{ matrix.os }}
|
|
20
13
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v6
|
|
22
15
|
- name: Set up Ruby
|
|
23
16
|
uses: ruby/setup-ruby@v1
|
|
24
17
|
with:
|
data/lib/set.rb
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
return if RUBY_VERSION >= '4'
|
|
4
|
+
|
|
2
5
|
# :markup: markdown
|
|
3
6
|
#
|
|
4
7
|
# set.rb - defines the Set class
|
|
@@ -216,7 +219,7 @@
|
|
|
216
219
|
# has been modified while an element in the set.
|
|
217
220
|
#
|
|
218
221
|
class Set
|
|
219
|
-
VERSION = "1.1.
|
|
222
|
+
VERSION = "1.1.3"
|
|
220
223
|
|
|
221
224
|
include Enumerable
|
|
222
225
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Akinori MUSHA
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: Provides a class to deal with collections of unordered, unique values
|
|
14
13
|
email:
|
|
@@ -19,6 +18,8 @@ extra_rdoc_files: []
|
|
|
19
18
|
files:
|
|
20
19
|
- ".github/CODEOWNERS"
|
|
21
20
|
- ".github/dependabot.yml"
|
|
21
|
+
- ".github/release.yml"
|
|
22
|
+
- ".github/workflows/push_gem.yml"
|
|
22
23
|
- ".github/workflows/test.yml"
|
|
23
24
|
- ".gitignore"
|
|
24
25
|
- CHANGELOG.md
|
|
@@ -38,8 +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
|
-
post_install_message:
|
|
42
|
+
changelog_uri: https://github.com/ruby/set/blob/v1.1.3/CHANGELOG.md
|
|
43
43
|
rdoc_options: []
|
|
44
44
|
require_paths:
|
|
45
45
|
- lib
|
|
@@ -54,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
56
|
requirements: []
|
|
57
|
-
rubygems_version: 3.
|
|
58
|
-
signing_key:
|
|
57
|
+
rubygems_version: 3.6.7
|
|
59
58
|
specification_version: 4
|
|
60
59
|
summary: Provides a class to deal with collections of unordered, unique values
|
|
61
60
|
test_files: []
|