{"id":16062179,"url":"https://github.com/rossta/singly_linked_list.rb","last_synced_at":"2025-02-23T01:14:44.358Z","repository":{"id":66515703,"uuid":"48550847","full_name":"rossta/singly_linked_list.rb","owner":"rossta","description":"A singly linked list exercise in Ruby","archived":false,"fork":false,"pushed_at":"2015-12-29T05:08:24.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T10:57:02.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rossta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-24T16:59:24.000Z","updated_at":"2015-12-24T17:00:30.000Z","dependencies_parsed_at":"2023-02-20T22:30:32.137Z","dependency_job_id":null,"html_url":"https://github.com/rossta/singly_linked_list.rb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fsingly_linked_list.rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fsingly_linked_list.rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fsingly_linked_list.rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fsingly_linked_list.rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rossta","download_url":"https://codeload.github.com/rossta/singly_linked_list.rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254288,"owners_count":19772392,"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-09T04:22:19.176Z","updated_at":"2025-02-23T01:14:44.319Z","avatar_url":"https://github.com/rossta.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LinkedList\n\nA singly linked list exercise in Ruby\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'singly_linked_list'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install singly_linked_list\n\n## Usage\n\nInitialize the list:\n\n```ruby\nlist = LinkedList.new\n```\n\nPush data to the list:\n\n```ruby\nlist \u003c\u003c 1\nlist \u003c\u003c 2\nlist \u003c\u003c 3\n```\n\nRetrieve head, tail nodes from the list\n\n```ruby\nlist.head #=\u003e #\u003cstruct LinkedList::Node value=1, next=#\u003cstruct LinkedList::Node value=2, next=...\u003e\u003e\nlist.tail #=\u003e #\u003cstruct LinkedList::Node value=3, next=nil\u003e\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\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/rossta/singly_linked_list.rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossta%2Fsingly_linked_list.rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frossta%2Fsingly_linked_list.rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossta%2Fsingly_linked_list.rb/lists"}