{"id":20060707,"url":"https://github.com/xhostcomweb/ruby-log-reader-gem","last_synced_at":"2025-03-02T10:14:31.813Z","repository":{"id":127410448,"uuid":"482560083","full_name":"xhostcomweb/ruby-log-reader-gem","owner":"xhostcomweb","description":"Log Reader or Parser to parse server logs, RSpecced.","archived":false,"fork":false,"pushed_at":"2022-04-19T05:38:57.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T22:14:46.479Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","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/xhostcomweb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-17T15:25:13.000Z","updated_at":"2023-01-04T05:44:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"90b94caf-d96d-41b2-bb07-04dc8c2c83c7","html_url":"https://github.com/xhostcomweb/ruby-log-reader-gem","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/xhostcomweb%2Fruby-log-reader-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhostcomweb%2Fruby-log-reader-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhostcomweb%2Fruby-log-reader-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xhostcomweb%2Fruby-log-reader-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xhostcomweb","download_url":"https://codeload.github.com/xhostcomweb/ruby-log-reader-gem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241488201,"owners_count":19970829,"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":["ruby"],"created_at":"2024-11-13T13:16:26.000Z","updated_at":"2025-03-02T10:14:31.791Z","avatar_url":"https://github.com/xhostcomweb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LogReader\n\nWelcome to Paul Anthony McGowan' Log Reader gem! Ruby code, modules and class libraries for the gem is in the `lib/log_reader folder`. To experiment with that code, run `bin/console` for an interactive prompt.\n\n###### Github Repo \n\n[https://github.com/xhostcomweb/ruby-log-reader-gem.git]\n\n* Gem Description: Server log parser to display paths and IP's by total number of page views and unique views in descending order, RSpec specification files are in spec folder. \n\n##### To run the RSpec tests run from bash terminal in gem root folder:\n\n$ rspec\n\nThe current spec tests should show green passed, 15 at time of writing.\n\n##### To test/view output of the test server.log in irb console, run from system bash or other shell in log_reader gem root folder:\n\n$ bin/console  to open Ruby console,\n \n##### Then run the below console queries:\n\n\u003e read = LogReader::Parser.new(\"server.log\").format    (to read and format the test file, or place own file in root and adjust filename)\n\n\u003e puts read\n\n##### You Can also run the executive from the system bash or other shell in root folder:\n\n$ ./exe/log_reader ./server.log\n\n##### Output from the supplied test server.log should be:\n\nEntries by total views:\n\n/deals 90 views                                  \n/faq 89 views                                    \n/support 82 views                                \n/about 81 views                                  \n/products 80 views                               \n/home 78 views                                   \n                                                 \nEntries by unique views:  \n                       \n/products 23 unique views                        \n/faq 23 unique views                             \n/home 23 unique views                            \n/support 23 unique views                         \n/deals 22 unique views                           \n/about 21 unique views     \n\nMuch bigger log files can be used also, and is set up dependency injection for alteration for other input sources, ie databases etc.\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add log_reader\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install log_reader\n\n## Usage\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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 the created tag, 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/[USERNAME]/log_reader. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/log_reader/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the LogReader project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/log_reader/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhostcomweb%2Fruby-log-reader-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxhostcomweb%2Fruby-log-reader-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxhostcomweb%2Fruby-log-reader-gem/lists"}