{"id":16935314,"url":"https://github.com/knu/sorted_set","last_synced_at":"2025-03-15T14:30:36.147Z","repository":{"id":44893615,"uuid":"323548291","full_name":"knu/sorted_set","owner":"knu","description":"SortedSet for Ruby","archived":false,"fork":false,"pushed_at":"2023-12-24T06:49:13.000Z","size":15,"stargazers_count":16,"open_issues_count":13,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T05:01:36.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-22T07:02:40.000Z","updated_at":"2025-01-05T17:06:31.000Z","dependencies_parsed_at":"2024-06-18T18:24:45.693Z","dependency_job_id":"6df2d972-4cfc-4f53-bf99-5f79d4aab9f9","html_url":"https://github.com/knu/sorted_set","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"3be5eb2c1a33cb78603abbfe423d188d355a240a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fsorted_set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fsorted_set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fsorted_set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fsorted_set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/sorted_set/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701408,"owners_count":20333630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:54:13.292Z","updated_at":"2025-03-15T14:30:36.113Z","avatar_url":"https://github.com/knu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SortedSet\n\nSortedSet implements a Set whose elements are sorted in ascending\norder (according to the return values of their `\u003c=\u003e` methods) when\niterating over them.\n\nEvery element in SortedSet must be *mutually comparable* to every\nother: comparison with `\u003c=\u003e` must not return nil for any pair of\nelements.  Otherwise ArgumentError will be raised.\n\nCurrently this library does nothing for JRuby, as it has its own\nversion of Set and SortedSet.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'sorted_set'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install sorted_set\n\n## Usage\n\n```ruby\nrequire \"sorted_set\"\n\nset = SortedSet.new([2, 1, 5, 6, 4, 5, 3, 3, 3])\nary = []\n\nset.each do |obj|\n  ary \u003c\u003c obj\nend\n\np ary # =\u003e [1, 2, 3, 4, 5, 6]\n\nset2 = SortedSet.new([1, 2, \"3\"])\nset2.each { |obj| } # =\u003e raises ArgumentError: comparison of Fixnum with String failed\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/knu/sorted_set.\n\n## License\n\nThe gem is available as open source under either the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fsorted_set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Fsorted_set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fsorted_set/lists"}