{"id":13719178,"url":"https://github.com/buren/metrojobb","last_synced_at":"2025-04-09T22:33:37.508Z","repository":{"id":25478491,"uuid":"104107695","full_name":"buren/metrojobb","owner":"buren","description":"Build a feed for Metrojobb with ease.","archived":false,"fork":false,"pushed_at":"2023-11-01T04:41:02.000Z","size":65,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T00:27:22.837Z","etag":null,"topics":["metrojobb","rubygem"],"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/buren.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-09-19T17:43:51.000Z","updated_at":"2022-01-20T13:58:18.000Z","dependencies_parsed_at":"2024-01-06T00:09:33.572Z","dependency_job_id":"8d373c1f-81cb-4513-a044-7a61bac9a4b9","html_url":"https://github.com/buren/metrojobb","commit_stats":{"total_commits":42,"total_committers":4,"mean_commits":10.5,"dds":0.09523809523809523,"last_synced_commit":"7f50dd21239c890f17d023241148a23187e108d1"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fmetrojobb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fmetrojobb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fmetrojobb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Fmetrojobb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buren","download_url":"https://codeload.github.com/buren/metrojobb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248049785,"owners_count":21039272,"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":["metrojobb","rubygem"],"created_at":"2024-08-03T01:00:43.851Z","updated_at":"2025-04-09T22:33:37.483Z","avatar_url":"https://github.com/buren.png","language":"Ruby","funding_links":[],"categories":["Job market"],"sub_categories":[],"readme":"# Metrojobb [![Build Status](https://travis-ci.org/buren/metrojobb.svg?branch=master)](https://travis-ci.org/buren/metrojobb)\n\nBuild a feed for Metrojobb with ease.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'metrojobb'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install metrojobb\n\n## Usage\n\n:information_source: For detailed usage please see the test suite in `spec/`.\n\n__Examples__\n\nCreate full XML-document\n\n```ruby\nads = Metrojobb::Ads.new([ad])\nads.to_xml # Returns the full XML document\n```\n\nSingle model\n\n```ruby\nregion = Metrojobb::Region.new(name: 'Stockholms län')\nregion.valid? # =\u003e true\nregion.errors[:region_id] # =\u003e []\nregion.to_xml # =\u003e '\u003cregion\u003e\u003cid\u003e1\u003c/id\u003e\u003c/region\u003e'\n```\n\nSingle model with errors\n\n```ruby\nregion = Metrojobb::Region.new(id: 'invalid id')\nregion.valid? # =\u003e false\nregion.errors[:region_id] # =\u003e [\"is not included in the list\"]\n```\n\nAd model:\n\n```ruby\nad = Metrojobb::Ad.new(\n  order_number: '\u003c\u003cyour-id\u003e\u003e'\n  external_application: true,\n  heading: '',\n  job_title: '',\n  summary: '',\n  description: '',\n  employer: '',\n  employer_home_page: '',\n  opportunities: '',\n  from_date: '2018-09-01',\n  to_date: '2018-10-01',\n  external_logo_url: 'https://example.com',\n  application_url: 'https://example.com',\n  video_url: 'https://example.com',\n  # relations\n  location: Metrojobb::Location.new(city: 'Stockholm'),\n  contact: Metrojobb::Contact.new(name: 'buren'),\n  employment_type: Metrojobb::EmploymentType.new(id: '1'),\n  category: Metrojobb::Category.new(id: '1'),\n  region: Metrojobb::Region.new(id: '1')\n)\n\nad.to_xml # Returns the ad as an XML-string\n```\n\n## Development\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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Data\n\n:warning: Current data in `data/` folder downloaded 2017-09-19 14:41 UTC.\n\nCategories, regions and employment types implemented on Metrojobb.se\n- Regions:  http://www.metrojobb.se/data/regions.csv\n- Categories:  http://www.metrojobb.se/data/categories.csv\n- Employment types:  http://www.metrojobb.se/data/employmenttypes.csv\n\n__Update data__\n\n```bash\ncd data/\nwget http://www.metrojobb.se/data/regions.csv\nwget http://www.metrojobb.se/data/categories.csv\nwget http://www.metrojobb.se/data/employmenttypes.csv\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/buren/metrojobb.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Fmetrojobb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburen%2Fmetrojobb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Fmetrojobb/lists"}