Skip to content

Instantly share code, notes, and snippets.

@catsby
Created January 23, 2014 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catsby/8586170 to your computer and use it in GitHub Desktop.
Save catsby/8586170 to your computer and use it in GitHub Desktop.
rails issues
$ curl -i https://api.github.com/repos/rails/rails/issues\?per_page\=2 ⏎
HTTP/1.1 200 OK
Server: GitHub.com
Date: Thu, 23 Jan 2014 20:29:14 GMT
Content-Type: application/json; charset=utf-8
Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 55
X-RateLimit-Reset: 1390512520
Cache-Control: public, max-age=60, s-maxage=60
ETag: "bb2fe30a0db0e5e02e3bba9b77d3adcf"
Vary: Accept
X-GitHub-Media-Type: github.beta
Link: <https://api.github.com/repositories/8514/issues?per_page=2&page=2>; rel="next", <https://api.github.com/repositories/8514/issues?per_page=2&page=378>; rel="last"
X-Content-Type-Options: nosniff
Content-Length: 5152
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Access-Control-Allow-Origin: *
X-GitHub-Request-Id: 45B3E6C8:77BB:DCFDB2:52E17B9A
Vary: Accept-Encoding
[
{
"url": "https://api.github.com/repos/rails/rails/issues/13816",
"labels_url": "https://api.github.com/repos/rails/rails/issues/13816/labels{/name}",
"comments_url": "https://api.github.com/repos/rails/rails/issues/13816/comments",
"events_url": "https://api.github.com/repos/rails/rails/issues/13816/events",
"html_url": "https://github.com/rails/rails/issues/13816",
"id": 26193153,
"number": 13816,
"title": "Invalid byte sequence UTF-8 error in ruby 1.9.3 rails 4.0",
"user": {
"login": "giladbu",
"id": 255209,
"avatar_url": "https://gravatar.com/avatar/c7cb70e24ae959ddd5b64fb3e494ad31?d=https%3A%2F%2Fidenticons.github.com%2Fce3af72b487b9ebd96aeb5022b43de07.png&r=x",
"gravatar_id": "c7cb70e24ae959ddd5b64fb3e494ad31",
"url": "https://api.github.com/users/giladbu",
"html_url": "https://github.com/giladbu",
"followers_url": "https://api.github.com/users/giladbu/followers",
"following_url": "https://api.github.com/users/giladbu/following{/other_user}",
"gists_url": "https://api.github.com/users/giladbu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/giladbu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giladbu/subscriptions",
"organizations_url": "https://api.github.com/users/giladbu/orgs",
"repos_url": "https://api.github.com/users/giladbu/repos",
"events_url": "https://api.github.com/users/giladbu/events{/privacy}",
"received_events_url": "https://api.github.com/users/giladbu/received_events",
"type": "User",
"site_admin": false
},
"labels": [
{
"url": "https://api.github.com/repos/rails/rails/labels/activesupport",
"name": "activesupport",
"color": "FC9300"
}
],
"state": "open",
"assignee": null,
"milestone": null,
"comments": 0,
"created_at": "2014-01-23T19:52:42Z",
"updated_at": "2014-01-23T20:20:37Z",
"closed_at": null,
"pull_request": {
"html_url": null,
"diff_url": null,
"patch_url": null
},
"body": "I'm experiencing a problem with trying to to force unicode on a string.\r\n\r\n```\r\nLoading development environment (Rails 4.0.2)\r\n1.9.3p484 :001 > name = \"Foo Bar Baz Boing\"\r\n => \"Foo Bar Baz Boing\"\r\n1.9.3p484 :002 > name.mb_chars.downcase.to_s\r\n => \"f\\u0005\\u0001\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\"\r\n1.9.3p484 :003 > name.mb_chars.downcase.to_s\r\n => \"foo bar baz boing\"\r\n```\r\n\r\nFirst try of downcasing the string is invalid and sometime will throw an ArgumentError \"invalid byte sequence in UTF-8\"\r\n\r\nsecond time its returning fine.\r\n\r\nThis came in relation to issue: https://github.com/mbleigh/acts-as-taggable-on/issues/385"
},
{
"url": "https://api.github.com/repos/rails/rails/issues/13815",
"labels_url": "https://api.github.com/repos/rails/rails/issues/13815/labels{/name}",
"comments_url": "https://api.github.com/repos/rails/rails/issues/13815/comments",
"events_url": "https://api.github.com/repos/rails/rails/issues/13815/events",
"html_url": "https://github.com/rails/rails/pull/13815",
"id": 26190816,
"number": 13815,
"title": "Document rendering order used by ActionMailer",
"user": {
"login": "prathamesh-sonpatki",
"id": 621238,
"avatar_url": "https://gravatar.com/avatar/1b0973b64704738dbc8ce24d8382bb1f?d=https%3A%2F%2Fidenticons.github.com%2F10a7864f54092aa82b4a41d2f0ec370c.png&r=x",
"gravatar_id": "1b0973b64704738dbc8ce24d8382bb1f",
"url": "https://api.github.com/users/prathamesh-sonpatki",
"html_url": "https://github.com/prathamesh-sonpatki",
"followers_url": "https://api.github.com/users/prathamesh-sonpatki/followers",
"following_url": "https://api.github.com/users/prathamesh-sonpatki/following{/other_user}",
"gists_url": "https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}",
"starred_url": "https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prathamesh-sonpatki/subscriptions",
"organizations_url": "https://api.github.com/users/prathamesh-sonpatki/orgs",
"repos_url": "https://api.github.com/users/prathamesh-sonpatki/repos",
"events_url": "https://api.github.com/users/prathamesh-sonpatki/events{/privacy}",
"received_events_url": "https://api.github.com/users/prathamesh-sonpatki/received_events",
"type": "User",
"site_admin": false
},
"labels": [
],
"state": "open",
"assignee": null,
"milestone": null,
"comments": 1,
"created_at": "2014-01-23T19:21:47Z",
"updated_at": "2014-01-23T19:23:07Z",
"closed_at": null,
"pull_request": {
"html_url": "https://github.com/rails/rails/pull/13815",
"diff_url": "https://github.com/rails/rails/pull/13815.diff",
"patch_url": "https://github.com/rails/rails/pull/13815.patch"
},
"body": "- Added a test based on the order of rendering"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment