{"id":25876098,"url":"https://github.com/andrewarrow/bug_jan_14","last_synced_at":"2026-06-10T15:31:17.162Z","repository":{"id":136254872,"uuid":"49685363","full_name":"andrewarrow/bug_jan_14","owner":"andrewarrow","description":"rails project with a weird bug","archived":false,"fork":false,"pushed_at":"2016-01-15T09:32:43.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T10:22:41.908Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewarrow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-15T00:51:15.000Z","updated_at":"2016-01-15T00:55:07.000Z","dependencies_parsed_at":"2023-04-04T16:47:17.453Z","dependency_job_id":null,"html_url":"https://github.com/andrewarrow/bug_jan_14","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewarrow/bug_jan_14","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewarrow%2Fbug_jan_14","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewarrow%2Fbug_jan_14/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewarrow%2Fbug_jan_14/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewarrow%2Fbug_jan_14/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewarrow","download_url":"https://codeload.github.com/andrewarrow/bug_jan_14/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewarrow%2Fbug_jan_14/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34159249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-03-02T10:20:49.607Z","updated_at":"2026-06-10T15:31:17.145Z","avatar_url":"https://github.com/andrewarrow.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Seed the db with:\n\n```\nUser.create(name: 'Robert', display_name: 'Bob')\nThing.create(name: 'Thing1', flavor: 'Ruby', magic_number: 15, user_id: 1)\n```\n\nAnd then run `curl` piped to `jq`:\n\n```\ncurl http://localhost:3000/api/test | jq\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n100   135  100   135    0     0   2055      0 --:--:-- --:--:-- --:--:--  2076\n{\n  \"results\": [\n    {\n      \"created_at\": 1452817066,\n      \"id\": 1,\n      \"display_name\": \"Bob\",\n      \"magic_number\": 15,\n      \"flavor\": \"Ruby\",\n      \"name\": [\n        \"Robert\",\n        \"Bob\",\n        15,\n        \"Ruby\"\n      ]\n    }\n  ]\n}\n```\n\nLook at https://github.com/andrewarrow/bug_jan_14/blob/master/app/models/thing.rb as_json method. Do you see the bug? Why is name an array vs. just \"Robert\"?\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewarrow%2Fbug_jan_14","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewarrow%2Fbug_jan_14","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewarrow%2Fbug_jan_14/lists"}