Permalink
Browse files

fixing JSON fixtures (long lines was breaking Faraday parsing)

  • Loading branch information...
Oshuma committed May 13, 2012
1 parent 5f61fc1 commit 77277cbdc26eca6f356227c396ef9d4c715ff729
Showing with 29,838 additions and 16,998 deletions.
  1. +1,408 −1,237 spec/fixtures/timeline.json
  2. +2,052 −1 spec/fixtures/v2/blob_metadata.json
  3. +260 −1 spec/fixtures/v2/blobs.json
  4. +49 −1 spec/fixtures/v2/issues.json
  5. +3,551 −1 spec/fixtures/v2/network_data.json
  6. +2,530 −1 spec/fixtures/v2/network_meta.json
  7. +173 −1 spec/fixtures/v2/repositories.json
  8. +2,612 −1 spec/fixtures/v2/tree_metadata.json
  9. +19 −1 spec/fixtures/v2/user.json
  10. +24 −1 spec/fixtures/v2/users.json
  11. +5 −5 spec/fixtures/v3/blob.json
  12. +14 −14 spec/fixtures/v3/branches.json
  13. +60 −60 spec/fixtures/v3/collaborators.json
  14. +12 −12 spec/fixtures/v3/comment.json
  15. +41 −41 spec/fixtures/v3/comments.json
  16. +50 −1 spec/fixtures/v3/commit.json
  17. +17 −17 spec/fixtures/v3/commit_comment.json
  18. +76 −76 spec/fixtures/v3/commit_comments.json
  19. +1,414 −1 spec/fixtures/v3/commits.json
  20. +889 −889 spec/fixtures/v3/contributors.json
  21. +9 −9 spec/fixtures/v3/download.json
  22. +33 −33 spec/fixtures/v3/downloads.json
  23. +3 −3 spec/fixtures/v3/emails.json
  24. +210 −210 spec/fixtures/v3/followers.json
  25. +207 −207 spec/fixtures/v3/following.json
  26. +870 −870 spec/fixtures/v3/forks.json
  27. +33 −35 spec/fixtures/v3/issue.json
  28. +34 −36 spec/fixtures/v3/issue_closed.json
  29. +40 −42 spec/fixtures/v3/issue_event.json
  30. +70 −70 spec/fixtures/v3/issue_events.json
  31. +1,559 −1,577 spec/fixtures/v3/issues.json
  32. +3 −3 spec/fixtures/v3/label.json
  33. +15 −15 spec/fixtures/v3/labels.json
  34. +3 −3 spec/fixtures/v3/languages.json
  35. +570 −570 spec/fixtures/v3/list_commit_comments.json
  36. +9 −10 spec/fixtures/v3/milestone.json
  37. +25 −25 spec/fixtures/v3/milestones.json
  38. +1 −1 spec/fixtures/v3/not_found.json
  39. +4,290 −4,290 spec/fixtures/v3/organization-repositories.json
  40. +41 −41 spec/fixtures/v3/organization-repository.json
  41. +16 −16 spec/fixtures/v3/organization.json
  42. +574 −574 spec/fixtures/v3/organization_members.json
  43. +14 −14 spec/fixtures/v3/organization_team_members.json
  44. +60 −60 spec/fixtures/v3/organization_team_repos.json
  45. +42 −42 spec/fixtures/v3/organizations.json
  46. +1,101 −1,107 spec/fixtures/v3/public_events.json
  47. +3 −3 spec/fixtures/v3/public_key.json
  48. +5 −5 spec/fixtures/v3/public_keys.json
  49. +134 −134 spec/fixtures/v3/pull_created.json
  50. +134 −134 spec/fixtures/v3/pull_request.json
  51. +185 −185 spec/fixtures/v3/pull_requests.json
  52. +1,644 −1,660 spec/fixtures/v3/repo_events.json
  53. +127 −133 spec/fixtures/v3/repo_issues_events.json
  54. +871 −871 spec/fixtures/v3/repositories.json
  55. +33 −33 spec/fixtures/v3/repository.json
  56. +171 −171 spec/fixtures/v3/tags.json
  57. +6 −6 spec/fixtures/v3/team.json
  58. +10 −10 spec/fixtures/v3/teams.json
  59. +110 −110 spec/fixtures/v3/tree.json
  60. +18 −18 spec/fixtures/v3/user.json
  61. +99 −100 spec/fixtures/v3/user_events.json
  62. +1,020 −1,020 spec/fixtures/v3/watched.json
  63. +180 −180 spec/fixtures/v3/watchers.json
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1 +1,49 @@
-{"issues":[{"gravatar_id":"9bee19040f2a9c6a901e33426a968135","position":10.0,"number":105,"votes":5,"created_at":"2010/10/03 11:36:43 -0700","comments":14,"body":"Hi,\n\nI just tried to play with this in an app with no ActiveRecord. I was disappointed. It seems the only reason the engine relies on AR is to provide History functionality. I would argue that having the History in a database, and therefore tying the app to AR & SQL, isn't worth it. How about we change it to just dump to a CSV and remove the AR dep?\n\n$0.02","title":"Use OrmAdapter instead of talking directly to ActiveRecord","updated_at":"2011/01/14 11:16:57 -0800","user":"ryana","labels":["@ml","enhancement"],"state":"open"},{"gravatar_id":"07fb1f108e968f7b8573307eefddd66f","position":43.0,"number":220,"votes":1,"created_at":"2011/01/03 05:56:35 -0800","comments":3,"body":"Hi\r\n\r\nI added AbstracObject class to replace direct ActiveRecord calls in the controller. I moved the code for creating, updating and destroying from the controller to this class. AbstractObject should be good place for something like https://github.com/ianwhite/orm_adapter. I think that moving everything related to the history from MainController to AbstracObject is also good idea. ","title":"Abstract object","updated_at":"2011/01/06 07:14:22 -0800","user":"ml","labels":[],"state":"open"},{"gravatar_id":"cf68a0fe4901556a1665e4e154bfe7c8","position":144.0,"number":237,"votes":0,"created_at":"2011/01/10 20:10:15 -0800","comments":0,"body":"RailsAdmin::AbstractModel has a bug in it's \"all\" method. It searches for \"class <blah>\" inside <rails_root>/app/models/**/*.rb. However, some of those discoveries were inside comments/quotes.\r\n\r\nAs such, I've modified it to use the union of those finds and the result of Module.constants.\r\nI also added a bit of \"connascence\" in that I made the self.lookup method accept a true/false flag for determining when to throw an exception -- which it still does by default.\r\n\r\nCheers,\r\nJonathan\r\n\r\np.s.\r\n(I'm new to open-source, so feel free to give me feedback positive/negative.)\r\n","title":"Bug-Fix w/ discovering ActiveRecord models","updated_at":"2011/01/10 20:10:15 -0800","user":"JayTeeSF","labels":[],"state":"open"}]}
+{
+ "issues": [
+ {
+ "body": "Hi,\n\nI just tried to play with this in an app with no ActiveRecord. I was disappointed. It seems the only reason the engine relies on AR is to provide History functionality. I would argue that having the History in a database, and therefore tying the app to AR & SQL, isn't worth it. How about we change it to just dump to a CSV and remove the AR dep?\n\n$0.02",
+ "comments": 14,
+ "created_at": "2010/10/03 11:36:43 -0700",
+ "gravatar_id": "9bee19040f2a9c6a901e33426a968135",
+ "labels": [
+ "@ml",
+ "enhancement"
+ ],
+ "number": 105,
+ "position": 10.0,
+ "state": "open",
+ "title": "Use OrmAdapter instead of talking directly to ActiveRecord",
+ "updated_at": "2011/01/14 11:16:57 -0800",
+ "user": "ryana",
+ "votes": 5
+ },
+ {
+ "body": "Hi\r\n\r\nI added AbstracObject class to replace direct ActiveRecord calls in the controller. I moved the code for creating, updating and destroying from the controller to this class. AbstractObject should be good place for something like https://github.com/ianwhite/orm_adapter. I think that moving everything related to the history from MainController to AbstracObject is also good idea. ",
+ "comments": 3,
+ "created_at": "2011/01/03 05:56:35 -0800",
+ "gravatar_id": "07fb1f108e968f7b8573307eefddd66f",
+ "labels": [],
+ "number": 220,
+ "position": 43.0,
+ "state": "open",
+ "title": "Abstract object",
+ "updated_at": "2011/01/06 07:14:22 -0800",
+ "user": "ml",
+ "votes": 1
+ },
+ {
+ "body": "RailsAdmin::AbstractModel has a bug in it's \"all\" method. It searches for \"class <blah>\" inside <rails_root>/app/models/**/*.rb. However, some of those discoveries were inside comments/quotes.\r\n\r\nAs such, I've modified it to use the union of those finds and the result of Module.constants.\r\nI also added a bit of \"connascence\" in that I made the self.lookup method accept a true/false flag for determining when to throw an exception -- which it still does by default.\r\n\r\nCheers,\r\nJonathan\r\n\r\np.s.\r\n(I'm new to open-source, so feel free to give me feedback positive/negative.)\r\n",
+ "comments": 0,
+ "created_at": "2011/01/10 20:10:15 -0800",
+ "gravatar_id": "cf68a0fe4901556a1665e4e154bfe7c8",
+ "labels": [],
+ "number": 237,
+ "position": 144.0,
+ "state": "open",
+ "title": "Bug-Fix w/ discovering ActiveRecord models",
+ "updated_at": "2011/01/10 20:10:15 -0800",
+ "user": "JayTeeSF",
+ "votes": 0
+ }
+ ]
+}

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1 +1,173 @@
-{"repositories":[{"open_issues":0,"url":"https://github.com/reddavis/One40Proof","homepage":"http://developers.140proof.com/docs/","has_issues":true,"watchers":7,"created_at":"2010/02/17 06:33:05 -0800","fork":false,"has_downloads":true,"forks":2,"size":2420,"private":false,"name":"One40Proof","owner":"reddavis","has_wiki":true,"pushed_at":"2010/06/29 17:55:20 -0700","description":"http://developers.140proof.com/docs/"},{"open_issues":0,"language":"Ruby","url":"https://github.com/jnunemaker/twitter","homepage":"http://rdoc.info/gems/twitter","has_issues":true,"watchers":1015,"created_at":"2008/02/13 18:20:50 -0800","fork":false,"has_downloads":true,"forks":188,"size":1080,"private":false,"name":"twitter","owner":"jnunemaker","has_wiki":true,"pushed_at":"2011/01/16 15:31:56 -0800","description":"A Ruby wrapper for the Twitter REST and Search APIs"},{"open_issues":1,"language":"Ruby","url":"https://github.com/pengwynn/faraday_middleware","homepage":"http://wynnnetherland.com/projects/faraday-middleware","has_issues":true,"watchers":25,"created_at":"2010/06/28 13:13:32 -0700","fork":false,"has_downloads":true,"forks":6,"size":164,"private":false,"name":"faraday_middleware","owner":"pengwynn","has_wiki":true,"pushed_at":"2011/01/11 11:03:53 -0800","description":"Various Faraday middlewares for my Faraday-based API wrappers"},{"open_issues":1,"language":"Ruby","url":"https://github.com/pengwynn/octokit","homepage":"http://wynnnetherland.com/projects/octokit","has_issues":true,"watchers":64,"created_at":"2009/12/10 13:41:49 -0800","fork":false,"has_downloads":true,"forks":17,"size":1324,"private":false,"name":"octokit","owner":"pengwynn","has_wiki":true,"pushed_at":"2011/01/17 09:03:21 -0800","description":"Simple Ruby wrapper for the GitHub v2 API and feeds"},{"open_issues":7,"language":"Ruby","url":"https://github.com/technoweenie/faraday","homepage":"","has_issues":true,"watchers":166,"created_at":"2009/12/10 09:14:55 -0800","fork":false,"has_downloads":true,"forks":20,"size":396,"private":false,"name":"faraday","owner":"technoweenie","has_wiki":true,"pushed_at":"2011/01/15 07:55:20 -0800","description":"Experiments in a rest api lib."},{"open_issues":0,"language":"Ruby","url":"https://github.com/dkubb/yardstick","homepage":"http://wiki.github.com/dkubb/yardstick","has_issues":true,"watchers":41,"created_at":"2009/07/17 15:25:54 -0700","fork":false,"has_downloads":false,"forks":4,"size":3212,"private":false,"name":"yardstick","owner":"dkubb","has_wiki":true,"pushed_at":"2010/11/07 22:00:22 -0800","description":"A tool for verifying YARD documentation coverage"},{"open_issues":0,"url":"https://github.com/laserlemon/simple_oauth","homepage":"http://github.com/laserlemon/simple_oauth","has_issues":true,"watchers":7,"created_at":"2010/10/11 10:44:42 -0700","fork":false,"has_downloads":true,"forks":3,"size":128,"private":false,"name":"simple_oauth","owner":"laserlemon","has_wiki":true,"pushed_at":"2010/12/16 19:11:52 -0800","description":"Simply builds and verifies OAuth headers"},{"open_issues":11,"language":"Ruby","url":"https://github.com/wycats/thor","homepage":"http://www.yehudakatz.com","has_issues":true,"watchers":728,"created_at":"2008/05/07 13:07:31 -0700","fork":false,"has_downloads":true,"forks":72,"size":284,"private":false,"name":"thor","owner":"wycats","has_wiki":true,"pushed_at":"2011/01/12 17:13:33 -0800","description":"A scripting framework that replaces rake and sake"},{"open_issues":0,"language":"Ruby","url":"https://github.com/jnunemaker/twitter-app","homepage":"","has_issues":true,"watchers":139,"created_at":"2009/04/03 23:55:00 -0700","fork":false,"has_downloads":true,"forks":24,"size":948,"private":false,"name":"twitter-app","owner":"jnunemaker","has_wiki":true,"pushed_at":"2011/01/16 17:25:16 -0800","description":"example rails 3 application that uses oauth"}]}
+{
+ "repositories": [
+ {
+ "created_at": "2010/02/17 06:33:05 -0800",
+ "description": "http://developers.140proof.com/docs/",
+ "fork": false,
+ "forks": 2,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "http://developers.140proof.com/docs/",
+ "name": "One40Proof",
+ "open_issues": 0,
+ "owner": "reddavis",
+ "private": false,
+ "pushed_at": "2010/06/29 17:55:20 -0700",
+ "size": 2420,
+ "url": "https://github.com/reddavis/One40Proof",
+ "watchers": 7
+ },
+ {
+ "created_at": "2008/02/13 18:20:50 -0800",
+ "description": "A Ruby wrapper for the Twitter REST and Search APIs",
+ "fork": false,
+ "forks": 188,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "http://rdoc.info/gems/twitter",
+ "language": "Ruby",
+ "name": "twitter",
+ "open_issues": 0,
+ "owner": "jnunemaker",
+ "private": false,
+ "pushed_at": "2011/01/16 15:31:56 -0800",
+ "size": 1080,
+ "url": "https://github.com/jnunemaker/twitter",
+ "watchers": 1015
+ },
+ {
+ "created_at": "2010/06/28 13:13:32 -0700",
+ "description": "Various Faraday middlewares for my Faraday-based API wrappers",
+ "fork": false,
+ "forks": 6,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "http://wynnnetherland.com/projects/faraday-middleware",
+ "language": "Ruby",
+ "name": "faraday_middleware",
+ "open_issues": 1,
+ "owner": "pengwynn",
+ "private": false,
+ "pushed_at": "2011/01/11 11:03:53 -0800",
+ "size": 164,
+ "url": "https://github.com/pengwynn/faraday_middleware",
+ "watchers": 25
+ },
+ {
+ "created_at": "2009/12/10 13:41:49 -0800",
+ "description": "Simple Ruby wrapper for the GitHub v2 API and feeds",
+ "fork": false,
+ "forks": 17,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "http://wynnnetherland.com/projects/octokit",
+ "language": "Ruby",
+ "name": "octokit",
+ "open_issues": 1,
+ "owner": "pengwynn",
+ "private": false,
+ "pushed_at": "2011/01/17 09:03:21 -0800",
+ "size": 1324,
+ "url": "https://github.com/pengwynn/octokit",
+ "watchers": 64
+ },
+ {
+ "created_at": "2009/12/10 09:14:55 -0800",
+ "description": "Experiments in a rest api lib.",
+ "fork": false,
+ "forks": 20,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "",
+ "language": "Ruby",
+ "name": "faraday",
+ "open_issues": 7,
+ "owner": "technoweenie",
+ "private": false,
+ "pushed_at": "2011/01/15 07:55:20 -0800",
+ "size": 396,
+ "url": "https://github.com/technoweenie/faraday",
+ "watchers": 166
+ },
+ {
+ "created_at": "2009/07/17 15:25:54 -0700",
+ "description": "A tool for verifying YARD documentation coverage",
+ "fork": false,
+ "forks": 4,
+ "has_downloads": false,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "http://wiki.github.com/dkubb/yardstick",
+ "language": "Ruby",
+ "name": "yardstick",
+ "open_issues": 0,
+ "owner": "dkubb",
+ "private": false,
+ "pushed_at": "2010/11/07 22:00:22 -0800",
+ "size": 3212,
+ "url": "https://github.com/dkubb/yardstick",
+ "watchers": 41
+ },
+ {
+ "created_at": "2010/10/11 10:44:42 -0700",
+ "description": "Simply builds and verifies OAuth headers",
+ "fork": false,
+ "forks": 3,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "http://github.com/laserlemon/simple_oauth",
+ "name": "simple_oauth",
+ "open_issues": 0,
+ "owner": "laserlemon",
+ "private": false,
+ "pushed_at": "2010/12/16 19:11:52 -0800",
+ "size": 128,
+ "url": "https://github.com/laserlemon/simple_oauth",
+ "watchers": 7
+ },
+ {
+ "created_at": "2008/05/07 13:07:31 -0700",
+ "description": "A scripting framework that replaces rake and sake",
+ "fork": false,
+ "forks": 72,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "http://www.yehudakatz.com",
+ "language": "Ruby",
+ "name": "thor",
+ "open_issues": 11,
+ "owner": "wycats",
+ "private": false,
+ "pushed_at": "2011/01/12 17:13:33 -0800",
+ "size": 284,
+ "url": "https://github.com/wycats/thor",
+ "watchers": 728
+ },
+ {
+ "created_at": "2009/04/03 23:55:00 -0700",
+ "description": "example rails 3 application that uses oauth",
+ "fork": false,
+ "forks": 24,
+ "has_downloads": true,
+ "has_issues": true,
+ "has_wiki": true,
+ "homepage": "",
+ "language": "Ruby",
+ "name": "twitter-app",
+ "open_issues": 0,
+ "owner": "jnunemaker",
+ "private": false,
+ "pushed_at": "2011/01/16 17:25:16 -0800",
+ "size": 948,
+ "url": "https://github.com/jnunemaker/twitter-app",
+ "watchers": 139
+ }
+ ]
+}

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1 +1,19 @@
-{"user":{"gravatar_id":"1f74b13f1e5c6c69cb5d7fbaabb1e2cb","company":"Code for America","name":"Erik Michaels-Ober","created_at":"2008/05/14 13:36:12 -0700","location":"California","public_repo_count":22,"public_gist_count":12,"blog":"http://twitter.com/sferik","following_count":74,"id":10308,"type":"User","permission":null,"followers_count":118,"login":"sferik","email":"sferik@gmail.com"}}
+{
+ "user": {
+ "blog": "http://twitter.com/sferik",
+ "company": "Code for America",
+ "created_at": "2008/05/14 13:36:12 -0700",
+ "email": "sferik@gmail.com",
+ "followers_count": 118,
+ "following_count": 74,
+ "gravatar_id": "1f74b13f1e5c6c69cb5d7fbaabb1e2cb",
+ "id": 10308,
+ "location": "California",
+ "login": "sferik",
+ "name": "Erik Michaels-Ober",
+ "permission": null,
+ "public_gist_count": 12,
+ "public_repo_count": 22,
+ "type": "User"
+ }
+}
@@ -1 +1,24 @@
-{"users":[{"gravatar_id":"1f74b13f1e5c6c69cb5d7fbaabb1e2cb","name":"Erik Michaels-Ober","created_at":"2008-05-14T20:36:12Z","location":"California","public_repo_count":22,"followers":115,"username":"sferik","language":"Ruby","fullname":"Erik Michaels-Ober","id":"user-10308","repos":22,"type":"user","followers_count":115,"pushed":"2011-01-11T19:15:10.53Z","login":"sferik","score":4.4165397,"record":null,"created":"2008-05-14T20:36:12Z"}]}
+{
+ "users": [
+ {
+ "created": "2008-05-14T20:36:12Z",
+ "created_at": "2008-05-14T20:36:12Z",
+ "followers": 115,
+ "followers_count": 115,
+ "fullname": "Erik Michaels-Ober",
+ "gravatar_id": "1f74b13f1e5c6c69cb5d7fbaabb1e2cb",
+ "id": "user-10308",
+ "language": "Ruby",
+ "location": "California",
+ "login": "sferik",
+ "name": "Erik Michaels-Ober",
+ "public_repo_count": 22,
+ "pushed": "2011-01-11T19:15:10.53Z",
+ "record": null,
+ "repos": 22,
+ "score": 4.4165397,
+ "type": "user",
+ "username": "sferik"
+ }
+ ]
+}
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,16 +1,16 @@
[
- {
- "commit": {
- "sha": "473cf978f7b44005cb44917e62831a2cd99eacc8",
- "url": "https://api.github.com/repos/pengwynn/octokit/commits/473cf978f7b44005cb44917e62831a2cd99eacc8"
- },
- "name": "faraday-1.0"
- },
- {
- "commit": {
- "sha": "88553a397f7293b3ba176dc27cd1ab6bb93d5d14",
- "url": "https://api.github.com/repos/pengwynn/octokit/commits/88553a397f7293b3ba176dc27cd1ab6bb93d5d14"
- },
- "name": "master"
- }
+ {
+ "commit": {
+ "sha": "473cf978f7b44005cb44917e62831a2cd99eacc8",
+ "url": "https://api.github.com/repos/pengwynn/octokit/commits/473cf978f7b44005cb44917e62831a2cd99eacc8"
+ },
+ "name": "faraday-1.0"
+ },
+ {
+ "commit": {
+ "sha": "88553a397f7293b3ba176dc27cd1ab6bb93d5d14",
+ "url": "https://api.github.com/repos/pengwynn/octokit/commits/88553a397f7293b3ba176dc27cd1ab6bb93d5d14"
+ },
+ "name": "master"
+ }
]
Oops, something went wrong.

0 comments on commit 77277cb

Please sign in to comment.