Skip to content

Commit 0a55790

Browse files
authored
Merge pull request #8 from ruby/prepare-release
Prepare for a 1.0.0 release
2 parents 101d285 + 421b618 commit 0a55790

File tree

4 files changed

+62
-3
lines changed

4 files changed

+62
-3
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Set Changelog
2+
3+
## 1.0.0 (Unreleased)
4+
5+
This is the first release of set as a gem. Here lists the changes since the version bundled with Ruby 2.7.
6+
7+
* Breaking Changes
8+
* SortedSet has been removed for dependency and performance reasons. [#2][] ([@knu][])
9+
10+
* Enhancements
11+
* Set#join is added as a shorthand for `.to_a.join`. [#4][] ([@marcandre][])
12+
* Set#<=> is added. [#5][] ([@marcandre][])
13+
14+
[#2]: https://github.com/ruby/set/pull/2
15+
[#4]: https://github.com/ruby/set/pull/4
16+
[#5]: https://github.com/ruby/set/pull/5
17+
18+
[@knu]: https://github.com/knu
19+
[@marcandre]: https://github.com/marcandre

LICENSE.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2002-2020 Akinori MUSHA
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions
7+
are met:
8+
1. Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24+
SUCH DAMAGE.

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ Or install it yourself as:
2222

2323
## Usage
2424

25-
TODO: Write usage instructions here
25+
```ruby
26+
require 'set'
27+
s1 = Set[1, 2] #=> #<Set: {1, 2}>
28+
s2 = [1, 2].to_set #=> #<Set: {1, 2}>
29+
s1 == s2 #=> true
30+
s1.add("foo") #=> #<Set: {1, 2, "foo"}>
31+
s1.merge([2, 6]) #=> #<Set: {1, 2, "foo", 6}>
32+
s1.subset?(s2) #=> false
33+
s2.subset?(s1) #=> true
34+
```
2635

2736
## Development
2837

@@ -32,5 +41,10 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
3241

3342
## Contributing
3443

35-
Bug reports and pull requests are welcome on GitHub at https://github.com/hsbset.
44+
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/set.
45+
46+
Feature requests should also go to https://bugs.ruby-lang.org/ for wider audience and discussion.
47+
48+
## License
3649

50+
The gem is available as open source under either the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause). When bundled with Ruby, you can distribute/modify this program under the same terms of [Ruby](https://www.ruby-lang.org/en/about/license.txt).

set.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
Gem::Specification.new do |spec|
22
spec.name = "set"
3-
spec.version = "0.1.0"
3+
spec.version = "1.0.0"
44
spec.authors = ["Akinori MUSHA"]
55
spec.email = ["knu@idaemons.org"]
66

77
spec.summary = %q{Provides a class to deal with collections of unordered, unique values}
88
spec.description = %q{Provides a class to deal with collections of unordered, unique values}
99
spec.homepage = "https://github.com/ruby/set"
10+
spec.license = "BSD-2-Clause"
1011
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
1112

1213
spec.metadata["homepage_uri"] = spec.homepage
1314
spec.metadata["source_code_uri"] = spec.homepage
15+
spec.metadata["changelog_uri"] = "https://github.com/ruby/set/blob/v#{spec.version}/CHANGELOG.md"
1416

1517
# Specify which files should be added to the gem when it is released.
1618
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.

0 commit comments

Comments
 (0)