octokit 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/.rspec +3 -0
  2. data/Rakefile +3 -10
  3. data/changelog.markdown +3 -0
  4. data/lib/octokit/client.rb +1 -2
  5. data/lib/octokit/client/authentication.rb +4 -0
  6. data/lib/octokit/client/commits.rb +1 -1
  7. data/lib/octokit/client/connection.rb +4 -2
  8. data/lib/octokit/client/issues.rb +8 -8
  9. data/lib/octokit/client/network.rb +3 -3
  10. data/lib/octokit/client/objects.rb +1 -1
  11. data/lib/octokit/client/organizations.rb +3 -2
  12. data/lib/octokit/client/pulls.rb +9 -3
  13. data/lib/octokit/client/repositories.rb +23 -10
  14. data/lib/octokit/client/request.rb +10 -10
  15. data/lib/octokit/client/timelines.rb +11 -9
  16. data/lib/octokit/configuration.rb +21 -19
  17. data/lib/octokit/version.rb +1 -1
  18. data/octokit.gemspec +4 -6
  19. data/spec/faraday/response_spec.rb +33 -0
  20. data/spec/fixtures/blob.json +1 -0
  21. data/spec/fixtures/blob_metadata.json +1 -0
  22. data/spec/fixtures/blobs.json +1 -0
  23. data/spec/fixtures/branches.json +1 -0
  24. data/spec/fixtures/collaborators.json +1 -0
  25. data/spec/fixtures/comment.json +1 -0
  26. data/spec/fixtures/comments.json +1 -0
  27. data/spec/fixtures/commit.json +1 -0
  28. data/spec/fixtures/commits.json +1 -0
  29. data/spec/fixtures/contributors.json +1 -0
  30. data/spec/fixtures/delete_token.json +1 -0
  31. data/spec/fixtures/emails.json +1 -0
  32. data/spec/fixtures/followers.json +1 -0
  33. data/spec/fixtures/following.json +1 -0
  34. data/spec/fixtures/issue.json +1 -0
  35. data/spec/fixtures/issues.json +1 -0
  36. data/spec/fixtures/labels.json +1 -0
  37. data/spec/fixtures/languages.json +1 -0
  38. data/spec/fixtures/network.json +1 -0
  39. data/spec/fixtures/network_data.json +1 -0
  40. data/spec/fixtures/network_meta.json +1 -0
  41. data/spec/fixtures/organization.json +1 -0
  42. data/spec/fixtures/organizations.json +1 -0
  43. data/spec/fixtures/public_keys.json +1 -0
  44. data/spec/fixtures/pull.json +1 -0
  45. data/spec/fixtures/pulls.json +1 -0
  46. data/spec/fixtures/raw.txt +7 -0
  47. data/spec/fixtures/repositories.json +1 -0
  48. data/spec/fixtures/repository.json +1 -0
  49. data/spec/fixtures/tags.json +1 -0
  50. data/spec/fixtures/team.json +1 -0
  51. data/spec/fixtures/teams.json +1 -0
  52. data/spec/fixtures/timeline.json +1237 -0
  53. data/spec/fixtures/tree.json +1 -0
  54. data/spec/fixtures/tree_metadata.json +1 -0
  55. data/spec/fixtures/user.json +1 -0
  56. data/spec/fixtures/users.json +1 -0
  57. data/spec/fixtures/watchers.json +1 -0
  58. data/spec/helper.rb +66 -0
  59. data/spec/octokit/client/commits_spec.rb +31 -0
  60. data/spec/octokit/client/issues_spec.rb +155 -0
  61. data/spec/octokit/client/network_spec.rb +31 -0
  62. data/spec/octokit/client/objects_spec.rb +75 -0
  63. data/spec/octokit/client/organizations_spec.rb +233 -0
  64. data/spec/octokit/client/pulls_spec.rb +43 -0
  65. data/spec/octokit/client/repositories_spec.rb +330 -0
  66. data/spec/octokit/client/timelines_spec.rb +41 -0
  67. data/spec/octokit/client/users_spec.rb +273 -0
  68. data/spec/octokit/client_spec.rb +12 -0
  69. data/spec/octokit_spec.rb +14 -0
  70. data/spec/repository_spec.rb +53 -0
  71. data/test/helper.rb +2 -0
  72. data/test/octokit_test.rb +14 -2
  73. metadata +147 -89
  74. data/lib/octokit/event.rb +0 -76
@@ -0,0 +1 @@
1
+ {"tree":[{"name":".gitignore","size":null,"sha":"5efe0eb47a773fa6ea84a0bf190ee218b6a31ead","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":".rspec","size":null,"sha":"f5a48e7ea5d8c1068efbb2b5b39471447a892dd5","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":".yardopts","size":null,"sha":"80b49ec64346a5575f355af14a2616a83cdbf7e3","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"Gemfile","size":null,"sha":"676ca26fae4277be5d2da7e1e223a4dd36370479","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"LICENSE.mkd","size":null,"sha":"0420edbdb00ab6055455d62f2cd2db404d35a147","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"README.mkd","size":null,"sha":"94616fa57520ac8147522c7cf9f03d555595c5ea","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"Rakefile","size":null,"sha":"82c041b5a84f9d0221c2695379956cbc8c2a3cbd","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app","size":null,"sha":"d1f573e5ab942f6dba18657da75c3fa240a6addd","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"config","size":null,"sha":"dfc59dbf0fa9c307be4faf7b26737f287cdf942a","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib","size":null,"sha":"6a8973e60a20ada810b50c1000b81520fc0169f0","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public","size":null,"sha":"27dd7613678914755666b72458174873504ac102","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"rails_admin.gemspec","size":null,"sha":"8a9a951fe90455905f4545a89629a4451d36bda6","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"screenshots","size":null,"sha":"d807eed21b21c9116ac7cf67423edd14355acdd5","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec","size":null,"sha":"e4e79d3099d4cd3b4930800ae644ed614b756e00","mode":"040000","mime_type":"text/plain","type":"tree"}]}
@@ -0,0 +1 @@
1
+ {"tree":[{"name":".gitignore","size":279,"sha":"5efe0eb47a773fa6ea84a0bf190ee218b6a31ead","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":".rspec","size":46,"sha":"f5a48e7ea5d8c1068efbb2b5b39471447a892dd5","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":".yardopts","size":57,"sha":"80b49ec64346a5575f355af14a2616a83cdbf7e3","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"Gemfile","size":927,"sha":"676ca26fae4277be5d2da7e1e223a4dd36370479","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"LICENSE.mkd","size":1062,"sha":"0420edbdb00ab6055455d62f2cd2db404d35a147","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"README.mkd","size":25325,"sha":"94616fa57520ac8147522c7cf9f03d555595c5ea","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"Rakefile","size":567,"sha":"82c041b5a84f9d0221c2695379956cbc8c2a3cbd","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app","size":0,"sha":"d1f573e5ab942f6dba18657da75c3fa240a6addd","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/controllers","size":0,"sha":"d3b66017730fb307b75e7c0779b3d1990fd9329a","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/controllers/rails_admin","size":0,"sha":"6754a22eab156ec8db77c5eb22c7e1c425bb75ac","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/controllers/rails_admin/application_controller.rb","size":1248,"sha":"2247b418ad5d89ae7c4c7fd8be04098c90111fb2","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/controllers/rails_admin/history_controller.rb","size":1547,"sha":"11de53eed701b5c92635aa2f8d9c84150d746dd0","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/controllers/rails_admin/main_controller.rb","size":11019,"sha":"76b116a526af516163b108d25df959f685032b53","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/helpers","size":0,"sha":"3c6172f7542e7eaa2bb4d144268323b67b73fefe","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/helpers/rails_admin","size":0,"sha":"4c20679ba46c9d6048e31f7a5c1a9faddde00ca5","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/helpers/rails_admin/application_helper.rb","size":4299,"sha":"08657b55a2c5fea6e0b2fb0d248409024ddc5c69","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/helpers/rails_admin/main_helper.rb","size":2615,"sha":"fce052c16be425e6caed6dde01a80aaf400beab4","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/models","size":0,"sha":"039f796992e42f4045e4da258d3369fbb2edb1d7","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/models/rails_admin","size":0,"sha":"beeaaa3a4ec9f6927bf773974a8d91badca9e55f","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/models/rails_admin/blank_history.rb","size":369,"sha":"f3f72c82a83be64a167dd07ef62087cc8c6f23dd","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/models/rails_admin/history.rb","size":1770,"sha":"c872970da7c7d27f94e6821ee6c70b4dad416db9","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views","size":0,"sha":"fa8103594fa4e47e28275a184cabc9e3e1f23324","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/views/layouts","size":0,"sha":"cf2690b0345ad19a283281344f216f22010265dd","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/views/layouts/rails_admin","size":0,"sha":"3a92b5b73bb92c68d15f720b4760962d266d40d7","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/views/layouts/rails_admin/_flash.html.erb","size":244,"sha":"8032f5e79d25bbe167babc40dae54ff41b04d9cb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/layouts/rails_admin/dashboard.html.erb","size":1522,"sha":"cccadb1e1100613ac077ab9bdb6e28ac792a063c","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/layouts/rails_admin/delete.html.erb","size":1548,"sha":"d4b367dba38f92f26d7a51308d326a6fabacdb21","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/layouts/rails_admin/form.html.erb","size":3426,"sha":"1336ada45f839b771c81c31a0a4069e814bf9b94","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/layouts/rails_admin/list.html.erb","size":2137,"sha":"7262a6679c852b6dc5e0caed7fe35807e482a295","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin","size":0,"sha":"cb115379f2069a98a344d357c550b5115f71f000","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/views/rails_admin/history","size":0,"sha":"1efb33f48b652c0fefdb1ad8301bee74239188d7","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/views/rails_admin/history/show.html.erb","size":4778,"sha":"3bd75ba005ee5e9f90436d37f4becff6c35b9c60","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main","size":0,"sha":"85aaf83ae1f5b3e602d8909c3a70679952b9ccdd","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"app/views/rails_admin/main/_belongs_to_association.html.erb","size":581,"sha":"0713e0de9c3cc04637ac96b3afd20c7bdb96e6b5","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_boolean.html.erb","size":284,"sha":"bb82baf047fb41d47435aa6804356cef426fe040","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_date.html.erb","size":278,"sha":"824885a8338cb4768876ec171d3cfe09472d9016","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_datetime.html.erb","size":278,"sha":"824885a8338cb4768876ec171d3cfe09472d9016","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_delete_notice.html.erb","size":1297,"sha":"92cb92c95845f45833562d0cdf9395d4f6e8fb20","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_edit_submit_buttons.html.erb","size":465,"sha":"709d899fe55ebc859feed0586d9e0eb7df76bc7f","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_field.html.erb","size":329,"sha":"e1973e42297c09188c98271954da5da25fce0d29","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_float.html.erb","size":294,"sha":"eafc7377f15065ffbdff18c3ace69e67f6b721bd","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_form_section.html.erb","size":269,"sha":"0b5eb800004937f2acbb1a9c67648fea48e4f7fc","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_has_and_belongs_to_many_association.html.erb","size":2972,"sha":"52231d450dcb9d4435f8b45896eb546f24778d42","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_has_many_association.html.erb","size":2972,"sha":"52231d450dcb9d4435f8b45896eb546f24778d42","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_has_one_association.html.erb","size":628,"sha":"9176b1bf7c4ba36c7ab0c5350a50d888eeabaa47","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_history.html.erb","size":403,"sha":"8b83e7aff02ae7558532103140fb14d9050e586e","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_integer.html.erb","size":292,"sha":"58094896648abcb79a14e5b3c943607479c3e9ed","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_navigation.html.erb","size":1061,"sha":"f78e8792164c099eb577b8512ff37cd7ddf4e6fb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_new_submit_buttons.html.erb","size":627,"sha":"f1c9071628862d36412811cd4892ec3448adb570","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_paperclip_file.html.erb","size":626,"sha":"5b4f681cb4f2f302b35ce4c6f5acdb48047a43bb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_password.html.erb","size":278,"sha":"666bcdad51fdfa82722cb54eecbb5d1f0dd82967","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_string.html.erb","size":329,"sha":"aed755ae88630e546baeaf29e8b89ad95f12d7be","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_text.html.erb","size":735,"sha":"6bec339d644c3d881c0665df6f767ffe10b0f348","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_time.html.erb","size":306,"sha":"32b432eb8bae70cf276da9e538edb5662a152e59","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_timestamp.html.erb","size":273,"sha":"4a9a6c15c46d50f19aec96fd086c1916c78123c5","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/_user_info.html.erb","size":415,"sha":"30a07b91e75ab814c2a39020215b8e5196e77daf","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/authentication_not_setup.html.erb","size":112,"sha":"42fffd887374e59d0fe182d31f8ae9e6c1027843","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/bulk_delete.html.erb","size":1024,"sha":"884f0b1d6f16aa60b88fd75db95882822bf8a0a4","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/delete.html.erb","size":1155,"sha":"a01631046cf9c9d3174df4b68a27f08775cafb67","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/edit.html.erb","size":1157,"sha":"f93400f209a178eeb25b51ade4f32146672b5244","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/file_upload.html.erb","size":245,"sha":"ba7f3181e212e3455e317242970d5fa234a829e7","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/general_history.html.erb","size":0,"sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/history.html.erb","size":152,"sha":"8301f82a08ff159fee611d441425715066736d54","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/index.html.erb","size":3534,"sha":"f788dbce503d1fdf129cfc71919483457319a1c4","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/list.html.erb","size":5312,"sha":"da909989f6e2a7a5eddabb82711346f408893335","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"app/views/rails_admin/main/new.html.erb","size":498,"sha":"d2af861301a7c51ffbf45d3ca4828c042c9f3af6","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"config","size":0,"sha":"dfc59dbf0fa9c307be4faf7b26737f287cdf942a","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"config/initializers","size":0,"sha":"510ea664428b7597a5039bf7f8e7d92f12ea0a18","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"config/initializers/devise_patch.rb","size":184,"sha":"5bf86e90280e62c61318eb213dec9012d7bd7b45","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"config/locales","size":0,"sha":"d6c5b426ca0354a87520c31873c2b5048695bacb","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"config/locales/devise.bg.yml","size":2451,"sha":"21749c15b17a10d8e8269dcf158bb3cc21501a50","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.de.yml","size":1955,"sha":"cfbf6569710a53fbe203af319595274237232f0d","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.en.yml","size":1850,"sha":"5e4e433215c5b3b571cf5034dad1781c64304457","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.es.yml","size":1960,"sha":"39177a314947599d417d77e1fa8c09c7ef317423","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.fi.yml","size":1811,"sha":"75d0a4abb59fe4534cbc4dedfcbea762c36b6e3e","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.pt-BR.yml","size":1892,"sha":"eef22c8cb922836ae4ee2f7d6eedadf87ba9ea47","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.pt-PT.yml","size":2008,"sha":"5ef7cee8598b242aa4f6f63cf8d82d449eda0d53","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.ru.yml","size":3205,"sha":"278a447bda28a10867aecd06e57bc9855407c6cb","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.tr.yml","size":1984,"sha":"e2e75922ca01631650f95f376af2eaaa5c39f890","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/devise.uk.yml","size":2740,"sha":"c715ddf74da8fd270831d1bdf75508cb1ea94b4f","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.bg.yml","size":2124,"sha":"41b224c48801c58faf3a5df7dfe3c1e8e49b12f4","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.da.yml","size":1491,"sha":"0fde4ff4f1fdd41ecf01d5a1cdd4a4195b475de3","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.de.yml","size":1847,"sha":"9d2117691d4efe96581955abdea2542dacc57290","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.en.yml","size":1732,"sha":"ac1e8edc08fa1876c19bad19ed3548706b6b64da","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.es.yml","size":1612,"sha":"f34903f17fa76497c40e9656d5d4f55f0f9bbafe","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.fi.yml","size":1586,"sha":"f0b3b0d299f8fb8ca12e77a9636496431c694dc9","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.fr.yml","size":1552,"sha":"ba89f24f4d51671316d0fdf1b4a91ca0cc7dbc38","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.lv.yml","size":1610,"sha":"4119f9ea8c713335af1d5b4e84319e3cce67d284","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.pl.yml","size":1692,"sha":"ff670845123b36b6d27fd4355458f1722b4ce32d","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.pt-BR.yml","size":1852,"sha":"bce91b036b10e07405256f5bbb8b325c882725f4","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.pt-PT.yml","size":1786,"sha":"39540149b0fc8038c1a4cb23cd8e1cb44a7d9baa","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.ru.yml","size":2158,"sha":"461631537035ac95d80e47d47c02a10e34dce645","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.tr.yml","size":1740,"sha":"2a0ed9ead7557f69925cbd97c3aef3c56fbd5612","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/locales/rails_admin.uk.yml","size":2019,"sha":"8c3d8f40513c4c3983cfe635bda853314e186529","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"config/routes.rb","size":1307,"sha":"723f430b92a0eeb040222dfa25560d8d6edfc200","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib","size":0,"sha":"6a8973e60a20ada810b50c1000b81520fc0169f0","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/generators","size":0,"sha":"7eae46c137fb50de9b4d50166d6ee716a08cb565","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/generators/rails_admin","size":0,"sha":"987c89fa4505ceef5d5ba54fcce95c3a2a7d17d2","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/generators/rails_admin/USAGE","size":439,"sha":"5f579b6c15d49630a9b50f4be7325d8f2b5ba559","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/generators/rails_admin/install_admin_generator.rb","size":2515,"sha":"4e5987200cca8f6cd13d04ba25d2d071ed592e00","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/generators/rails_admin/install_migrations_generator.rb","size":685,"sha":"2e82a80ff06d6f7dd140ad8ff79d1fb106a8b383","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/generators/rails_admin/rails_admin_generator.rb","size":568,"sha":"2acca7fca8ea4f2a8f1ff57499f6bb7602051a9d","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/generators/rails_admin/templates","size":0,"sha":"3a9fcbcef9a8571803c38a379eb2d1f91b1ca532","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/generators/rails_admin/templates/migration.rb","size":447,"sha":"7884b5df76385a4dcb866da2c7d09b68ff81a0be","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin","size":0,"sha":"5921c4d705436b0dcae67b3a1504043ea78e4fb9","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin.rb","size":3425,"sha":"d36b4ba90e5fd730a44170894208ae1c881e0371","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/abstract_history.rb","size":5162,"sha":"91a97c8231d63aa73dac8f52c0e33ba77950566b","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/abstract_model.rb","size":1804,"sha":"d894de6edb0a32ec7e69bd0ba737a0322b93f92b","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/adapters","size":0,"sha":"e05d8440c7e420394ea85fdfe42f07f25557a3ff","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin/adapters/active_record.rb","size":4455,"sha":"fdc0c7d91af5497304bb3f611a0150d3bf96d466","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config","size":0,"sha":"803d50fb44b0658464ca3dbd4d3e4c9caa5c14b6","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin/config.rb","size":2836,"sha":"7c3699267d26f4165d68de5a70ece3e080684fb4","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/base.rb","size":3100,"sha":"55b5e932f6459f333ac3caf55dec942e6a281855","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields","size":0,"sha":"8cd83d6eb9714c111b5cf91013820beffa73ae59","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin/config/fields.rb","size":3955,"sha":"df74058f659d7e37b973547bfe4cf3ee85e0081e","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/association.rb","size":2240,"sha":"a47b8131147560a8745678e1257e48e403a11223","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/base.rb","size":6175,"sha":"909d1c2f2ab0361a15d90c6a5eab84ef1e0d19fb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/factories","size":0,"sha":"24714ed7b95d8efd32ef3c3ec08aeb7a8195950a","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin/config/fields/factories/devise.rb","size":1589,"sha":"06056d8c8f54b78709a79276206e783a4f2d086c","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/factories/paperclip.rb","size":1178,"sha":"aeb69a6bec111ff4c9c9190426b8d9e0dd88478e","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/factories/password.rb","size":678,"sha":"a543ade4dc430f4d122d1faf60873580c7a78457","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/group.rb","size":1735,"sha":"83298dd7b8bc9fe97516df83a1dd909c78614780","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/groupable.rb","size":760,"sha":"f0393a93eabe151df1d4b3e94d368d891811b720","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types","size":0,"sha":"3afdf50b280e2ab5d3929f14475b2c3c251faaae","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin/config/fields/types.rb","size":635,"sha":"10e03a8e6e1655cedb7552011001ae809708b308","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/all.rb","size":971,"sha":"d05062f944d990b078e679a6fe7b9cf406da3520","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/belongs_to_association.rb","size":1391,"sha":"3c25ea98278cbfc66c334586b433f40cc2eb4fac","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/boolean.rb","size":879,"sha":"3f308ae98a0a673e3f350e8b23f37780d4348e5b","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/date.rb","size":369,"sha":"39e58fb736813cd564dfa987f2e777a0781b0dc0","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/datetime.rb","size":937,"sha":"a41e91b3fac12b232b47c30fe158597761994887","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/decimal.rb","size":404,"sha":"01e32aaa4464473b373415385e7fd786e49524b4","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/file_upload.rb","size":532,"sha":"71b237aaa9e6afe12533e0477c98dd4fe8799056","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/float.rb","size":319,"sha":"a9559629c5c70c1182a4bc0ad4ff1c887847201a","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/has_and_belongs_to_many_association.rb","size":505,"sha":"d5d3051899d5cb4847c3a78d37a355ec60e79d65","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/has_many_association.rb","size":493,"sha":"59542a7702b2fe38b41b6cbd4d6ad2269873056b","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/has_one_association.rb","size":718,"sha":"f75ed8a02c86ba6c5ab50dabb10a720d6c8fa761","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/integer.rb","size":523,"sha":"f9e5ad8d8e440e646acc84b8ce0394639c476989","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/paperclip_file.rb","size":400,"sha":"c64127484a631c66302180af0c6e1b9a82fa9c85","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/password.rb","size":946,"sha":"141f6fc8f5f90d22375d17671341b717ab7a2e10","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/string.rb","size":785,"sha":"5d276e106d856c5b7c3925718d84b27f3a4427de","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/text.rb","size":782,"sha":"2b570f0f940bff2c16b90c29dff7100e8c6e0f80","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/time.rb","size":656,"sha":"28748c780eb8c78f5d5ec870cf4c75b55b167677","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/timestamp.rb","size":375,"sha":"b2256087a14c350afaff324de51341215ff9d2f0","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/fields/types/virtual.rb","size":1138,"sha":"dbdd4a1474f9d698b6207cefc14828320344a603","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/has_fields.rb","size":2289,"sha":"b19b5d44ccda11df4a90e0ce94e399c35c4a7139","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/has_groups.rb","size":1017,"sha":"4cbd8bed9cf928bc83c521d0dc44a86239fb27cc","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/hideable.rb","size":601,"sha":"0da47d6271002a7b68e721933e01be38c874d43a","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/labelable.rb","size":730,"sha":"2883b9379132020c519996d957f1369fa75ff883","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/model.rb","size":1915,"sha":"bf15125ec5de08d8f21ccc77fe63480b04d97e47","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/sections","size":0,"sha":"fa24e7e2bfc6eaf73e3620db102916608ea88388","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin/config/sections.rb","size":2424,"sha":"677bdb49413f92c7ca7becbbb32c623167a1a6d6","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/sections/create.rb","size":241,"sha":"8cdecc60cefdafd74e0e4b6d42006002a6a4dda6","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/sections/list.rb","size":1201,"sha":"9d046c9fc9138aa9bba3e9948944f5faea6a2f5a","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/sections/navigation.rb","size":949,"sha":"4145cdcf827695e04a66759b7ad250d3d5cefbf7","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/config/sections/update.rb","size":1604,"sha":"04a6a1567a51e03c923586656f416926e0c03462","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/engine.rb","size":349,"sha":"66a143f2def2ba1919b5e7e984770c7bf6f69e4e","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/generic_support.rb","size":258,"sha":"ea049a8eb7c22bf0dee177db1fe7e4ce438b8a1e","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/railties","size":0,"sha":"d4ff4a0ea6e063dec69712005bbe55e7549248ad","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/rails_admin/railties/extratasks.rb","size":1200,"sha":"5dd6820de1339432fc00a441076b6d04006be9fa","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/railties/tasks.rake","size":1884,"sha":"e7111e1a64bc17f4272ed1f7c42f84c3c3a4fb90","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/rails_admin/version.rb","size":42,"sha":"6d9cac886a9ab6115aef7024cecc3d446303eaa1","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/tasks","size":0,"sha":"cba1cc8053ec200e0d39ec3508b223661e8e464d","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"lib/tasks/.gitkeep","size":0,"sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"lib/tasks/download.rake","size":909,"sha":"7b83c1132e432c98eb194329955cdc46d672add3","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public","size":0,"sha":"27dd7613678914755666b72458174873504ac102","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/404.html","size":728,"sha":"9a48320a5f1c025b6cc9819ab539a6d17fcbaf81","mode":"100644","mime_type":"text/html","type":"blob"},{"name":"public/422.html","size":711,"sha":"83660ab1878ba9adc6477ed910333e32bb6b46ce","mode":"100644","mime_type":"text/html","type":"blob"},{"name":"public/500.html","size":728,"sha":"b80307fc1664db7814f02603257704f9873d9e67","mode":"100644","mime_type":"text/html","type":"blob"},{"name":"public/favicon.ico","size":0,"sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","mode":"100644","mime_type":"image/vnd.microsoft.icon","type":"blob"},{"name":"public/images","size":0,"sha":"5da2393b5e4440bbcdad924039ce9ce981f7ab6e","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/images/rails_admin","size":0,"sha":"d6339a6ae18e6cdd67b92df54669f234245fc943","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/images/rails_admin/arrow_left.png","size":1232,"sha":"7dc7ea20f69cbc4b448b2a0fb1fd6568392353d5","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/arrow_right.png","size":1217,"sha":"3b7f1ab0889a562fa4242c7e43040468524106d6","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/background.png","size":215,"sha":"7d4853e8216c603fe939882cb8f068ef5079da95","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/bullet_arrow_down.png","size":201,"sha":"9b23c06d7b4f4689dc8c9fd4e9d4d1f199fe376f","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/bullet_arrow_up.png","size":201,"sha":"24df0f42129c291ddb3dd50c8ba2884dc23a2c43","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/bullet_black.png","size":211,"sha":"57619706d10d9736b1849a83f2c5694fbe09c53b","mode":"100755","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/bullet_white.png","size":201,"sha":"a9af8d44bf3c001adc41e3774f526bd1d1448b1f","mode":"100755","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/calendar.png","size":3344,"sha":"518ca398694ca29d69c16a091a44e8781dc1aafb","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/clock.png","size":3637,"sha":"e02ee97a3081281fb2415b6e086acd13b3cb068c","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/cross.png","size":655,"sha":"1514d51a3cf1b67e1c5b9ada36f1fd474e2d214a","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/fast_btn.png","size":1162,"sha":"35a3330b4dbbd2f6b2c46d10ccacef1713d9ae17","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/handler.png","size":1683,"sha":"f2ad8d6a1f5b802c0e0c2a594dae407431b295e9","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/logo.png","size":2114,"sha":"603b12c3dc483efc72985519065930b6f3498faf","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/magnifier.png","size":615,"sha":"cf3d97f75e9cde9c143980d89272fe61fc2d64ee","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/menu_hover.png","size":196,"sha":"bdeb8e3320c2c0352d60acfac11cd4ec9b145812","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/navigation_more.png","size":50688,"sha":"bdc72f405d41a3089253b26ae76ba6da55396cfc","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"public/images/rails_admin/selector-add.gif","size":606,"sha":"50132d1c439494a0a19e1d280385f03d3ac5599b","mode":"100644","mime_type":"image/gif","type":"blob"},{"name":"public/images/rails_admin/selector-addall.gif","size":358,"sha":"d6e7c639bb2ec270122861f054289845281fae26","mode":"100644","mime_type":"image/gif","type":"blob"},{"name":"public/images/rails_admin/selector-remove.gif","size":398,"sha":"2b9b0a2ac35a2051834bb9a49a7d57aaeebdcb48","mode":"100644","mime_type":"image/gif","type":"blob"},{"name":"public/images/rails_admin/selector-removeall.gif","size":355,"sha":"5a4421926d9c352abcf3b114ccd296197b9c9fdf","mode":"100644","mime_type":"image/gif","type":"blob"},{"name":"public/javascripts","size":0,"sha":"3ad173f99b54a5faba1c02bf86bc40a7d87a2816","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/javascripts/ckeditor","size":0,"sha":"fb4cd8e9ecae18e5c5604e549272415139269ff5","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/javascripts/ckeditor/config.js","size":1143,"sha":"2882a47ef0f3be89d6d5471925643bc6607f5ba4","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin","size":0,"sha":"89a9620dc1c2b92121d3f2abee2b4acb2ef8acee","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/javascripts/rails_admin/application.js","size":149,"sha":"564f862d95b883e167abcce9e21f9e0c60e75219","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/associations.js","size":6163,"sha":"ecd63a860949754b8042ad86a1a7ca57596af652","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/builder.js","size":4744,"sha":"f1f42b9ac6b5073dd5f9b30adc34589f3fc353cb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/controls.js","size":34787,"sha":"7392fb664c08a6350e59eb6ac6bc2013af03428c","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/dashboard.js","size":3200,"sha":"21fbeedd8d25a12284734f926da9d1e5af2c4a39","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/datepicker.js","size":31267,"sha":"bf56a033b4cf5609c336b8b538c296a1175f3fbb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/dragdrop.js","size":31056,"sha":"15c6dbca68ba56e5862fc38d2fd74e29aa699744","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/effects.js","size":38467,"sha":"c81e6c7d5f4bbb060089311f622bac99a41f6b5d","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/prototype-base-extensions.js","size":652,"sha":"9609ccc7cc9f45bc979bec55cbd9219e786c93de","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/prototype-date-extensions.js","size":8342,"sha":"add13b1e58cb6a638d48a3056c924c1bd93f541e","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/prototype.js","size":164713,"sha":"4f22e85c2efd770c2f18811cd2ac4e54a6b5f8eb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/rails.js","size":5850,"sha":"4283ed89824f8493f6834c2d8237e0e3e8e4f80c","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/scriptaculous.js","size":2936,"sha":"6bf437acc4b26a9071ba329c6ecb4e3b79c2c857","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/slider.js","size":10162,"sha":"eb83055824345e1becaec7c6346c6cd0d16db996","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/sound.js","size":2456,"sha":"379a88c123b9066af2c2c8d9f239b383a5ee9714","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/javascripts/rails_admin/unittest.js","size":20120,"sha":"5782f4d9a973cfcb8bf4068fc20d98e265d2c76c","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/robots.txt","size":204,"sha":"085187fa58b1631e955f5d514d895a7721466797","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/stylesheets","size":0,"sha":"57618a2fb5e17d4c95a3dcaa7aa873c68589bafa","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/stylesheets/.gitkeep","size":0,"sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"public/stylesheets/rails_admin","size":0,"sha":"d2339fdfe87fc0269c579e4b60c483f29c2be60d","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"public/stylesheets/rails_admin/base.css","size":4594,"sha":"cb85fc3fb49f59a43bf25e35e6bf2ccf54542f4a","mode":"100644","mime_type":"text/css","type":"blob"},{"name":"public/stylesheets/rails_admin/create.css","size":5992,"sha":"2ee6293218a7d351326eeaf6ce22d5748f7aca5a","mode":"100644","mime_type":"text/css","type":"blob"},{"name":"public/stylesheets/rails_admin/dashboard.css","size":1947,"sha":"e7c376c1013c70d86dd765163c1b77a388c7f05a","mode":"100644","mime_type":"text/css","type":"blob"},{"name":"public/stylesheets/rails_admin/datepicker.css","size":1839,"sha":"36dfeef71a1fbe951d2ad804dce4d20e9680fbf9","mode":"100644","mime_type":"text/css","type":"blob"},{"name":"public/stylesheets/rails_admin/delete.css","size":2165,"sha":"2bd11cef4649db2599b593325dbef3281044fcfe","mode":"100644","mime_type":"text/css","type":"blob"},{"name":"public/stylesheets/rails_admin/list.css","size":2655,"sha":"97c568997b3112c0dfa1e0a028c65911a32bc943","mode":"100644","mime_type":"text/css","type":"blob"},{"name":"rails_admin.gemspec","size":1649,"sha":"8a9a951fe90455905f4545a89629a4451d36bda6","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"screenshots","size":0,"sha":"d807eed21b21c9116ac7cf67423edd14355acdd5","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"screenshots/edit.png","size":44016,"sha":"c724d2b1634f332f64be514e6ff875f6a63c26ba","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"screenshots/list.png","size":124371,"sha":"746d8d2e9d2ed231b952f04381b4a7e2c33caf45","mode":"100644","mime_type":"image/png","type":"blob"},{"name":"spec","size":0,"sha":"e4e79d3099d4cd3b4930800ae644ed614b756e00","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/database_helpers.rb","size":335,"sha":"2122b1abe1cf4cf8397e9aad5107b15fec7a6a4c","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app","size":0,"sha":"9c4e286ad8bb1e5ee216a9bfe5ff3139580da1bf","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/.gitignore","size":40,"sha":"af64fae5e7184715b9a62132e126bf892c116609","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/Gemfile","size":1029,"sha":"390d8b6a7472335179084d1909c6de3f90395dc4","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/Gemfile.lock","size":2020,"sha":"26d5e24790178c199c58555ba466af87841b8fbe","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/Rakefile","size":265,"sha":"9724472e645adf09f849643e300ffe733b1e0dc9","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app","size":0,"sha":"0478d794c2fa0a8625d6e13d55622518e08ac876","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/app/controllers","size":0,"sha":"824f032a3957f4438e9434e12bc3573295dfbb7f","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/app/controllers/application_controller.rb","size":80,"sha":"e8065d9505d7ec6f727021c827de18a0a95737de","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/helpers","size":0,"sha":"55d36c9605bfb2ff4f3fad0b7e6dbb554bc776b3","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/app/helpers/application_helper.rb","size":29,"sha":"de6be7945c6a59798eb0ace177df38b05e98c2f0","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models","size":0,"sha":"7fc4589cd2d3ad04508cd3ed3ba6c67be5055633","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/app/models/division.rb","size":176,"sha":"22e3678b707b8c0d6c35c90f363520625980f0cc","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models/draft.rb","size":413,"sha":"5c5219de964affb4a072bcd15ba009b30eca5157","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models/fan.rb","size":143,"sha":"927da8014f963595f9c6566b8ce014c55df26262","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models/league.rb","size":112,"sha":"3fadf3c1d126d259028a5f03a01fb8dc1f628e21","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models/player.rb","size":323,"sha":"cf638a1b94060fe6f9b24bfdce9c6244f0e6ad70","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models/rel_test.rb","size":167,"sha":"2a4f2ab8ecf3a9bc4d06cbadc01d7425e5e2b701","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models/team.rb","size":662,"sha":"4f0bb6a40e03ee4245e32c29362c1b2691215697","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/models/user.rb","size":559,"sha":"65cd39ea5cf5822e5435b0308dde1487405194f6","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/app/views","size":0,"sha":"bf8642e524a8196488c4d6c70ffe0df15528c691","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/app/views/layouts","size":0,"sha":"76ae33741999072fc5d2c1e9c3e0f16a2a847020","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/app/views/layouts/application.html.erb","size":274,"sha":"2e8707b8270e4d5c108fbefbffda2dc3bd35c0aa","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config","size":0,"sha":"207d617b80a927afdf8706cdc5f56e82a691c742","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/config.ru","size":155,"sha":"1989ed8d0c2eedaa8067e1d7661b64e80324417d","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/application.rb","size":1960,"sha":"f49c9e0b3c224d188308cce105ef911f1a704659","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/boot.rb","size":175,"sha":"d032cb6157e5121ffeba59970f54a3ea8e3985e2","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/database.yml","size":538,"sha":"025d62a8d8102735fade34d52f66f95c3d46e0a6","mode":"100644","mime_type":"text/yaml","type":"blob"},{"name":"spec/dummy_app/config/environment.rb","size":149,"sha":"3da5eb91d0f62ba54131e197561e9b93274d9a04","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/environments","size":0,"sha":"cd22a58b1be93bcbeecce3ef128e836abc450b72","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/config/environments/development.rb","size":985,"sha":"d240ca5c2ef53ff19b58495d866f7dde7b114079","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/environments/production.rb","size":1754,"sha":"f3d745bd822e8e697f05c035f7073f668fac2231","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/environments/test.rb","size":1509,"sha":"beb9043b61bcc70d4290c388ab160ad7cc27009d","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/initializers","size":0,"sha":"c1f97246b292da46a520bdaca2301c3ac375e1f1","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/config/initializers/backtrace_silencers.rb","size":404,"sha":"59385cdf379bd06a8d2326dcd4de6d5cd5d3f5b0","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/initializers/devise.rb","size":6542,"sha":"1bf954fc9baa653df33f1d4044da710954e30fb9","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/initializers/inflections.rb","size":376,"sha":"9e8b0131f8ff7e3d3923697eca0b0ffdc77b19ce","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/initializers/mime_types.rb","size":205,"sha":"72aca7e441e1855f8c7a7ac1f1cbe5d42cd1235b","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/initializers/rails_admin.rb","size":60,"sha":"60ff8f05ee2d86cacfafb0302e7b96bebc783980","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/initializers/secret_token.rb","size":496,"sha":"8fa2d286f0af193b6cbbcbd551ac8a34a17e896f","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/initializers/session_store.rb","size":401,"sha":"0441c9d355125411dd88dfdd4f82f3c6ac72ec40","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/locales","size":24,"sha":"e2515107e6cd18cfe142bbcdfa554c9d8b59d114","mode":"120000","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/config/routes.rb","size":98,"sha":"ff0bff1ab7d0340df74c857c5f4151e8c07cd934","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db","size":0,"sha":"8dc4a7b6c084cbe06ec0bb4de085d535909b1b95","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/db/migrate","size":0,"sha":"61c2927ea5701e054824925abeb3caae6a0e3562","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/db/migrate/00000000000001_create_divisions_migration.rb","size":271,"sha":"8704f61b37261043e1c52471a6862d16da0e51f5","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000002_create_drafts_migration.rb","size":383,"sha":"2f8383fdc64c14b36b41691aa1e33f72d317b3fb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000003_create_leagues_migration.rb","size":237,"sha":"bc9f8f990c13b28d6785dadae4248a7d088de850","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000004_create_players_migration.rb","size":501,"sha":"b2d1d2545fa058efe9be4e24749d90e7b49aae22","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb","size":545,"sha":"153ba3c82107a6ceec551200866741e932b5bff0","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000006_devise_create_users.rb","size":643,"sha":"5ec6b7a5ea0f275ba7c46eac255f8d493eb2ea72","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000007_create_histories_table.rb","size":447,"sha":"7884b5df76385a4dcb866da2c7d09b68ff81a0be","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000008_create_fans_migration.rb","size":229,"sha":"dc9a3f9f28bb0e862d299c640d44b3e2c7ae55fb","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000009_create_fans_teams_migration.rb","size":223,"sha":"70f33952fc33d9dc096fb9ef2e3e7408c0131df7","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000010_add_revenue_to_team_migration.rb","size":213,"sha":"6fd9b3d6cf7380d10b601699e1d03a64eb57c1b8","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000011_add_suspended_to_player_migration.rb","size":213,"sha":"018616a839ebbc0b2bc91e43878b34e30ea7674e","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb","size":526,"sha":"7cf8028583d1a50d0c8d114c7a29642745d41885","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/00000000000013_add_roles_to_user.rb","size":182,"sha":"71eed47aee105c0a561faa734a38372af2ae302f","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/migrate/20101223222233_create_rel_tests.rb","size":282,"sha":"9f560932183f46b680ad8077c003fc30e8c78e3c","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/db/seeds.rb","size":1110,"sha":"82b66e7b205f3988e0f73d6ca324ec75dc4646b3","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/public","size":12,"sha":"9dc090a027c1a7d00071d4f670140d41a8ca27f0","mode":"120000","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/script","size":0,"sha":"9a6d84a35b2adc97e67f9bdcc8eb7f17f49b48d9","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/script/rails","size":295,"sha":"f8da2cffd4de029d658fe2f7b9ec88f28dc34a9a","mode":"100755","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/test","size":0,"sha":"6c67ed205e4c6109bb24fc6f58b6272afa61415e","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/test/performance","size":0,"sha":"ed8d366d14ec3b0e48b47a5bfa2412dd0b87cb1b","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/dummy_app/test/performance/rendering_test.rb","size":829,"sha":"147720dcc787adede23a77153019d3c63ceeb61f","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/dummy_app/test/test_helper.rb","size":454,"sha":"8bf1192ffec252a4562218bdf299891a319b9cb9","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests","size":0,"sha":"105a05b666dcdadbf77f62cd54a33f4732fcf612","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic","size":0,"sha":"eaffdb15fcc9eeb163f08e6bb57fa1b529936ed8","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/bulk_delete","size":0,"sha":"d850396f8f5795a4ad4ededee0c9ca5d79a4c2cb","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/bulk_delete/rails_admin_basic_bulk_delete_spec.rb","size":753,"sha":"83b7a9bc7c676c3f4b6052ccfbfe8a69492de01d","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/bulk_destroy","size":0,"sha":"ad1523fe6a3cbddd055aa043829a49a049cd0ace","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb","size":2498,"sha":"f8607162e2df6352726e212e42525b877e257c4a","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/create","size":0,"sha":"529b0d9abfdb993771cc81816cc49f5012590cff","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/create/rails_admin_basic_create_spec.rb","size":6587,"sha":"648ae6319ed549f3a0dd8dcb9c26afcbf6caefed","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/delete","size":0,"sha":"b7a88dd0b5baee18eaa97ab018d8b95690c7f6b4","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/delete/rails_admin_basic_delete_spec.rb","size":1346,"sha":"82a16f4ae4edf391e8b56dcc9a09396679dcc554","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/destroy","size":0,"sha":"c459429e09062ca3f160b436afe1f7100dcf91c5","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/destroy/rails_admin_basic_destroy_spec.rb","size":1338,"sha":"bc379d1d47bc928d2a85f38eb6a0d906c0efecd2","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/edit","size":0,"sha":"a9478f599e55805b350dcf8a2a39edcea329d5a7","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/edit/rails_admin_basic_edit_spec.rb","size":4586,"sha":"dfb4b426ae2c3b4be0c66653b234c5f7645039c2","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/list","size":0,"sha":"0327c7b68733ca8585ee010672f42cb504a5add1","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/list/rails_admin_basic_list_spec.rb","size":9149,"sha":"1f434be83c3648613382976cde168f291a43f43a","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/new","size":0,"sha":"af37d795dff2aa726062dd6e31579980f12d6f06","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/new/rails_admin_basic_new_spec.rb","size":3300,"sha":"a084bc928baff3b919c35da9a16494b5fdf2f423","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/basic/update","size":0,"sha":"cd6de8cc62b87ef711881af94d0a04b113311f2c","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/basic/update/rails_admin_basic_update_spec.rb","size":8547,"sha":"0ba498b6d0db3582524eab8519e2f7e27c6bc5c9","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/config","size":0,"sha":"15018434ed4ae4419a10482901e923d19d46bd5f","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/config/edit","size":0,"sha":"641a1f9f2cf3e663fd66ba537cf412f0b8df2635","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/config/edit/rails_admin_config_edit_spec.rb","size":15688,"sha":"5b85a0f0ae7ff43a262eaa284ba0f67c6a67a1ec","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/config/list","size":0,"sha":"5466f9cfee8380b6a7108ed8380cd06c1702f69c","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/config/list/rails_admin_config_list_spec.rb","size":16278,"sha":"7d3ad35cb40237a75ef16e3613301c83d7ec7e89","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/config/navigation","size":0,"sha":"a69ba6f393d33e15165eab324f709ab9f5160b90","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/config/navigation/rails_admin_config_navigation_spec.rb","size":3483,"sha":"7a5f15c770285321fdaabce57622f6d22ff57ff2","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/config/rails_admin_config_spec.rb","size":2132,"sha":"a8d0f3bcfc10f5780193718cf1c1ad2611f8bf65","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/history","size":0,"sha":"e7d01d6a43724d6d1db58084389b07f64b7a0039","mode":"040000","mime_type":"text/plain","type":"tree"},{"name":"spec/requests/history/rails_admin_history_spec.rb","size":1458,"sha":"e1dba55d95bf59f5715dc0142478a949bace7187","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/rails_admin_spec.rb","size":670,"sha":"ec9c03b52191a8ff3118ec50a22d1097fb15388b","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/requests/relation_spec.rb","size":703,"sha":"52982541f8e35847eaca5e55a826aedbc76f84c0","mode":"100644","mime_type":"text/plain","type":"blob"},{"name":"spec/spec_helper.rb","size":1918,"sha":"6152e73863dc0d977d4b318c035bb4823e75bf49","mode":"100644","mime_type":"text/plain","type":"blob"}]}
@@ -0,0 +1 @@
1
+ {"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"}}
@@ -0,0 +1 @@
1
+ {"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"}]}
@@ -0,0 +1 @@
1
+ {"watchers":["sferik","reddavis","hurrycane","wycats","Psli","grimen","gigamo","lloydk","stevehodgkiss","drogus","digx","rubyorchard","zhengjia","sr3d","railsjedi","kaapa","eXine","simonomis","brunomalvestuto","galuto","jgv","brainopia","rozaliev","lucasts","slawosz","shanlalit","grigio","tokumine","rafaelfranca","gilbo","myabc","dmitry","plukevdh","sunny36","zmack","hassox","cameronpriest","Bregor","m1k3","hookercookerman","andrew","joshprice","voipscout","stevenringo","joshk","nickpad","rtopitt","RStankov","kivanio","neerajdotname","stan","mrbongiolo","PeterBerkenbosch","lperichon","tavon","raid5","cschiewek","isaacdudek","nickw","webgago","delwyn","abecciu","jotto","jackdempsey","rbazinet","ecleel","doabit","hipertracker","provideal","ctrochalakis","mobilemike","emilford","sumskyi","saberma","andreacampi","mschiller","minikermit","delynn","gmile","carlosmoutinho","bradleypriest","esambo","nathanvda","knoopx","aziz","jdutil","mdeering","wdevaul","jmcervera","oivoodoo","mikz","mangantyr","zipme","benm","fredwu","thestgman","mihaibirsan","igrigorik","meph","spastorino","hubertlepicki","hasimo","gilbertwyw","kristopher","jlecour","godfat","eeabed","nitsujw","uilgenstein","hakanensari","benatkin","mabed","bennettk","dustineichler","edmz","BrianTheCoder","jcastaneyra","fcoury","EmmanuelOga","ozeias","tpitale","mpolakis","evs","khreez","peleteiro","korch","jaigouk","erbmicha","stefanpenner","gcirne","roberto","kvnsmth","dsander","treblestudios","janx","rgaidot","wormwoodmedia","amishyn","dovadi","plang","xinghu","boosty","inasacu","takeover","joelmoss","vesan","zhooul","mulder","mid","markauskas","danielvlopes","daviebf","thiagonego","rafaalves","meskyanichi","jtadeulopes","carlosbrando","osmaralves","caffo","reu","danieldocki","ricardohsd","mauriciozaffari","raphaelcosta","ismaels","seouri","cyruscavalcante","dimascyriaco","megainternet","lucasrenan","diegorv","acarubelli","caironoleto","roadhouse","ricardovaleriano","hugobarauna","leandroo","thelinuxlich","dannluciano","skippy","ttpaiva","anoiaque","emerleite","matheusca","jdsiegel","msgehard","jsl","hgtesta","tembamazingi","laszpio","spectator","terrcin","djtal","cicloid","kron4eg","ScottRadcliff","mks0101","devton","jeffpoulton","joshriney","fellz","crnixon","goynang","viatropos","joshuavial","tcocca","tyx","hoelmer","krmdrms","ap0ught","rofflebuster","Sirupsen","Macrow","attack","tejo","brecke","ryana","zapnap","bcardarella","skeevis","kb","we5","nathankoch","jbwiv","thiagocifani","jheuer","oldumy","igmarin","logicaltext","apalancat","invalidusrname","ivern","fel","fightinjoe","andrehjr","thibaudgg","leralle","luminouscode","robertd","rickbenavidez","mattgrayson","dwillis","luigi","okr","pero-ict","jridgway","javaalley","tysone","Domo","neophiliac","caiotarifa","danivovich","rainchen","cdunn","amaierhofer","greg-ord","feydr","hallelujah","sapun","pilhofer","kraudio","wsylvest","zhongwei","mvidaurre","nunobaldaia","TheBatman","yfeldblum","buzzware","ihower","suchasurge","angantyr","nerdrocket","grantmichaels","eval","marcosanson","josepjaume","pnicolai","vitalie","Arthur","michiels","bkno","speedmax","dirksiemers","josegonzalez","haifeng","lucasdupin","rodzhers","flexd","krists","zbage","gacha","halfhalo","valdis","mariochavez","giacomomacri","loyogo","tithonium","pbougie","simaob","kaylarose","dewski","jakebellacera","tanelj","jalberto","ccabot","sumwai","dianakimball","tiendung","deespater","legiar","adie","rednomad","clyfe","mlzboy","dushan","ak","foca","findchris","ffontouras","detierno","fordguo","ghandal","andrzejkrzywda","shaug","cgansen","pellegrino","bblimke","MrMoins","tyok","activefx","garrydou","caboteria","Locke23rus","BlissOfBeing","rainly","greendog","justsee","wulffeld","lexmag","baldowl","pietia","comboy","kavu","dinhhai","mrc2407","vtr1kf","seangaffney","mhinton","sinetris","cogumm","alissonsales","adamcrown","mlightner","vouldjeff","effkay","asaaki","exquan","ankopainting","apeacox","plabaj","MasterLambaster","tztz","basharabdullah","federomero","mbreit","zackfernandes","jacktang","lxneng","sbusso","blatyo","vshvedov","wtian","mech","tibastral","bensie","gonglexin","buyaka","acadopia","erwanb","base16soft","marcinlerka","xstrz","giuseppearici","et","jeroenvandijk","hecticjeff","bernd","joshnesbitt","sdsykes","nmerouze","noefroidevaux","grlm","devreq","martinciu","kossnocorp","rogercampos","josal","manufaktor","krekoten","soyoh","ldv","fritzek","antonioalegria","charly","lloydpick","alec-c4","bruce","neilmiddleton","dmitry-ilyashevich","mickey","guidefreitas","stjhimy","LeipeLeon","tilsammans","clmntlxndr","wadedog","galetahub","etehtsea","franciscoj","neutrino","kayaman","hernan43","pedroassumpcao","benbruscella","hopeless","kjf","ibrahimcesar","derencius","martinhladil","keokilee","unixmac","amatsuda","ursm","PabloC","rafaelmazza","nsanta","jandudulski","azisaka","datapimp","codykrieger","textgoeshere","laminbarrow","huerlisi","RobRoy","nnc","suhair","shaliko","stanislav","frane","gillesfabio","jbarreneche","maestrelli","rohankini","themgt","webda2l","jweslley","mdarby","divoxx","samnang","kevinansfield","flyerhzm","eduardofiorezi","sandrorib","klaut","zr","fhirzall","sieben","nesquena","reinyjunior","andhapp","leandro","mayoral","bidigo","phsr","Darkling","raydookie","eniolopes","rogerleite","teoulas","mikhailov","marknutter","rh","trydionel","larrywright","ravinggenius","jacobpatton","tomgullo","melchior-b","tomas-stefano","colin","martinstreicher","yannlugrin","sryche","jlmendezbonini","aonic","andersonfreitas","sergiojunior","mps","sauliusg","lfaren","nerdyworm","rougecardinal","epochwolf","mattsears","gnufied","filipeamoreira","clifff","acrookston","cameronyule","doubledare","gaustin","lpj","martymarcelmedia","vlandham","hwatkins","eandersson","mattyoho","samgranieri","rafacv","jpablobr","corck","steveklabnik","amitagrawal","cleonildonm","jcblitz","KarlHerler","gleuch","MunkiPhD","rymai","davefearon","eolo999","vijaydev","pwintermantel","zenom","tsycho","underwhelmed","jugglebird","mharris717","jlcapps","MEHColeman","razerbeans","sanderheilbron","paulyoder","Govan","rpanachi","johnam","skarayan","juliend2","orta","thesp0nge","josiahivey","marcomontes","davidpaquet","dspinosa","chrislerum","robertopedroso","tonyhuynh","caveman","Hendrik","fauxstor","daemon","scottwater","rafaeldx7","gcollazo","rweald","bmthykm","RaVbaker","scheibo","timrosenblatt","bashwork","andrefaria","joshgrenon","zaki","luqman","starbox","chadisfaction","yinhm","desireco","albertoperdomo","vanntastic","cschneid","acidargyle","juhat","jimmycuadra","geku","jfernandez","cillian","petrblaho","derekprior","dandorman","mrjabba","colinyoung","keithnorm","rand","jpfuentes2","ttdonovan","punnie","johnthethird","MattRogish","bhatti","kburkhardt","jasonmelgoza","elliottgoodwin","wfarr","sixfeetover","zporter","amanelis","fdschoeneman","zaa","justinbarry","fabrikagency","technologythree","baskwalla","joelind","marcus","ejdraper","travisttw","robertsosinski","taf2","jerome","janxious","joepestro","caiges","zackgilbert","MaherSaif","linden-deploy","corywright","joshcutler","jkjeldgaard","whittle","bastos","kunalksm","bry4n","mlen","baphled","pkelly","jgrevich","shuber","Jippi","wfleming","beautifulcode","dbreunig","steeleforge","concept47","travisj","bigfolio","francescoagati","madwire","randito","tvaughan","jdeveloper","jtoy","travid","tobym","ahto","alexeypetrushin","mopx","bgentry","blaenk","bbenezech","diegolucena","DanI-S","schleg","jeduan","Edgecrusher7711","briandoll","zentrification","UnityTech","fmmfonseca","sriprasanna","tankow","max-power","namelessnotion","rubystream","DennisLaumen","Tivoli","andrewle","perezd","pusewicz","JeremyGeros","luisbug","skorfmann","jmazzi","morganick","jkassemi","stammy","st33n","tibbon","seven1m","marcusmateus","CodeMonkeyKevin","tparkin","sal","aliang","jarrodtaylor","calvinf","ryanb","grobie","ehutzelman","jjuarez","jherm","lylejohnson","minofare","mlarocque","cpg","kreutz","akitaonrails","franciscosouza","brunoarueira","lfborjas","salicio","jefffederman","lancecarlson","andybluntish","leondewey","zimbatm","Some1Else","bjeanes","micahr","lleger","lenary","billnordwall","nixme","iamjpg","rociiu","altamic","lsemel","eikes","joaovitor","fabioyamate","huacnlee","fabiokr","smoothdvd","gregf","thedelchop","mkineiko","baron","saiten","georgeyacoub","aliix","emachnic","greglazarev","prateekdayal","inem","georgeG","infinityrobot","GarPit","Zedzed","plevel","aklaiber","lkorte","pacoguzman","gaelian","heliostatic","bumi","joerichsen","levifig","vantran","dcrec1","marcinbunsch","Morail","yizzreel","hsume2","dpree","blindgaenger","darkofabijan","michelegera","cnicolaou","ccheaton","mxp","lukashoffmann","gstark","segitty","lgs","georgkreimer","opti","mcansky","andyjeffries","dogweather","fstrozzi","xto","ThiagoReis","mschultz","simonmd","amrnt","jinzhu","TimothyKlim","ciaranlee","marashliev","korin","nebolsin","eregon","vingborg","mindreframer","dcrall","rbq","kaochenlong","sssmoves","bmnick","vincentp","undr","freezzo","flamontagne","marshluca","faebe","bacey","Antti","vodafon","abdul","billsaysthis","liuqiang","markphelps","jamie","juniorz","acallaghan","olivere","filiperocha","ruggedcode","shwing","lobo-tuerto","JamesCotterill","obxdesignworks","voldy","cwsaylor","rriveras","jeekl","chewbranca","delibaltas","youngking","rinaldifonseca","george","r2d2rogers","djsun","aunderwo","jrsmith","mkoentopf","rrrodrigo","elecklider","dudeman","subakva","ysf","rachelober","pedrobrasileiro","zawaideh","byu","nextekcarl","IcidAsset","saks","rduv","elkinsware","splattael","slavix","caferrara","aroop","conradwt","mbriggs","benmills","thefifthcircuit","denimboy","skammer","neonlex","scorpiondi","kektre","midas","scottydelicious","ashleyw","twopointzero","kimptoc","leeh","xenith","bobclewell","dgiunta","dbi","danillos","L42y","ml","stream7","mkirchstein","ebrahim","ozgun","joeyrobert","redbeard0x0a","ionas","hjuskewycz","tikhon","kenzie","romanbsd","jkap","binaryseed","cdwillie76","alexanderdegre","zetter","scotthenley","danigb","zaadjis","toddsampson","m4n","balgarath","Ferdev","daniely","cacciatc","schandra","Erreon","MaxPow4h","cultofmetatron","Epictetus","n3bulous","webnuwan","mengu","sion2k","dkatten","joshfng","baya","rwl4","rdt1","squarism","iand675","ZhangHanDong","cdmwebs","shuhao","ank","firecall","amedeo","fry1026","neokain","nutbits","cngithub","alobato","trekdemo","miyucy","jbigler","skateinmars","episko","camoedo","dizzy42","piotrj","chrisun","maia","szimek","fannar","medihack","simonista","tiagolink","olivoil","siong1987","floChip","10wattmindtrip","Applicat","GordonDiggs","include","lucianopanaro","mankind","jefflaporte","levity","FedyashevNikita","AlexMC","cpherjennings","Bera","grin","tubbo","khaled","hosiukeung","siliconchaos","nikolay","wilmoore","gdagley","aantix","aaronblohowiak","ruanwz","kyriacos","colszowka","eifion","ctcherry","rmetzler","demimismo","thomastraum","julescopeland","kim-toms","sjava","ramigg","Rambominator","ravicious","luikore","elmariofredo","mrdoornbos","rhaamo","grough","fidalgo","regispires","dalexandre","dmitrynix","charlenopires","antoniorosado","haroldthehungry","hansv","douglasjarquin","sapronlee","ballou88","capsize","shtirlic","julionc","pvdev","isuttle","libin","jakemarsh","ChrisInToronto","edwinmoss","anthonyb","drhenner","chadmoone","clete","MSNexploder","chipiga","matrixxx","grk","bagwanpankaj","rgantree","lucassus","cstadach","baianux","khelal","samunplugged","Pticed","chrisbranson","sistrall","mfrost","rapind","enioz","bbrietzke","iawgens","miamiruby","silvanito","JGaudette","rrichards","iwaffles","misfo","rupakg","mmaher","nikosd","nel","natebean","hvirring","BinaryMuse","bf4","darthdeus","cruggles","dgladkov","vladalive","chicomaia","pzhang","sl4m","mazhout","brassdan","rahult","intabulas","bullfight","PlasticLizard","hadees","groesser3","sachse","deepak","mperuch","krumpt","Wonderbread","seufagner","patcoll","timknight","skord","unders","refriedchicken","iamlemur","kewin2010","ejchet","aleksejleonov","michaelbearne","bfeigin","blubox","jlewallen","mytrile","qpB-","cognition","ahoward","myronmarston","aaandre","mt3","mwilson","brupm","switchtrack","fmeyer","tschundeee","fellix","laguiar","guiceolin","danielprojetos","oliverbarnes","juarezpaf","dru","ddengler","vertocardoso","ninadpachpute","sreid","devsigner","zdenal","jpogran","aka47","sprout","yega","Gimi","anrob","markschmidt","mihey","ctroncoso","openback","humanzz","bicherele","apneadiving","stevenhaddox","bradfordcp","Auraelius","latortuga","kimyoutora","mickdelaney","hooobs","jfturcot","diec123","jlwestsr","albus522","shanesveller","godber","msblaze","aurelienfromparis","minch","ikej","holtonma","ogijun","campeterson","kevinrood","moggco","mgrigajtis","kollektiv","supairish","jasonyandell","elle","dsci","michelbrito","lagsalot","apardo","andrewdisley","alno","filipegiusti","arikfr","simonyoung","ggrocco","vamsee","wizztjh","dougjohnston","mmjr","zzip","komzi","Yggdrasil","rosenfeld","chocolateboy","kmwang","alfredodealmeida","joelsouza","rainux","abay280","shell","raphaeldealmeida","bees","SaschaKonietzke","bradgessler","mathieuravaux","oreradio","yorzi","suhaspnehete","sgruhier","nando","milann","lonbaker","rmcafee","janlimpens","ustrajunior","mariojorge","bluewhalelabs","sraguiar","joelbm24","jeffjaco","lucasmazza","Evan-M","karanmg","okiess","ipshow","robinbortlik","htom78","suzzlo","sellittf","macuk","planetmcd","arunagw","agentrock","jonathanb","robKitson","lannon","navseeker","bezelga","danmelton","alderete","ncho","lucasdecastro","jonallured","virtualstaticvoid","noservr","pailoro","slmingol","lankz","sobstel","benlovell","game7","cristiansans","tavancini","diegobrito","chetan","phorsfall","KevinTriplett","Jacke","amasses","nc","aaronchi","jurgis","ayrton","woto","russtrpkovski","matheuslao","andyferra","minhajuddin","daveliu","wuyuntao","akzhan","biow0lf","oruen","kryzhovnik","rbaldwin","mscottford","art-orlov","avsej","delonnewman","naokij","jaqbeu","miry","zemariamm","ScotterC","ozgor","baldrailers","mschoening","smix","walinzi","tholder","ex7","svenyurgensson","prami","albertobarrila","latrommi","jipiboily","versioncontrol","rodrigoscna","araucaria","mtlsofar","muescha","mokevnin","lucassimao","medwezys","kwatson","lpdahito","victorcoder","error400","xpresso","nwp","pierrenel","gexla","dark4eg","rodrigo3n","hector","jfalameda","jbeynon","karlfreeman","goopi","brust","brighton-agency","svmartin","bezugen","joelmahoney","pwigle","patmcnally","twendlan","sanitar","celo","burmjohn","bernardelli","samcea","camilleroux","sflinter","reginaldosousa","capotej","shadowbq","fousa","siemieniec","wightsite","andersjanmyr","stevenjenkins","brivad","jaikoo","hugomaiavieira","lenart","eduardohertz","tdreyno","rafikk","jonconley","bearwithclaws","hoverlover","rgoytacaz","LogicWolfe","admsev","pablojimeno","rgo"]}
data/spec/helper.rb ADDED
@@ -0,0 +1,66 @@
1
+ require 'simplecov'
2
+ SimpleCov.start do
3
+ add_group 'Octokit', 'lib/octokit'
4
+ add_group 'Faraday Middleware', 'lib/faraday'
5
+ add_group 'Specs', 'spec'
6
+ end
7
+
8
+ require File.expand_path('../../lib/octokit', __FILE__)
9
+
10
+ require 'rspec'
11
+ require 'webmock/rspec'
12
+ RSpec.configure do |config|
13
+ config.include WebMock::API
14
+ end
15
+
16
+ def a_delete(url)
17
+ a_request(:delete, github_url(url))
18
+ end
19
+
20
+ def a_get(url)
21
+ a_request(:get, github_url(url))
22
+ end
23
+
24
+ def a_post(url)
25
+ a_request(:post, github_url(url))
26
+ end
27
+
28
+ def a_put(url)
29
+ a_request(:put, github_url(url))
30
+ end
31
+
32
+ def stub_delete(url)
33
+ stub_request(:delete, github_url(url))
34
+ end
35
+
36
+ def stub_get(url)
37
+ stub_request(:get, github_url(url))
38
+ end
39
+
40
+ def stub_post(url)
41
+ stub_request(:post, github_url(url))
42
+ end
43
+
44
+ def stub_put(url)
45
+ stub_request(:put, github_url(url))
46
+ end
47
+
48
+ def fixture_path
49
+ File.expand_path("../fixtures", __FILE__)
50
+ end
51
+
52
+ def fixture(file)
53
+ File.new(fixture_path + '/' + file)
54
+ end
55
+
56
+ def github_url(url)
57
+ if url =~ /^http/
58
+ url
59
+ elsif @client && @client.authenticated?
60
+ "https://pengwynn%2Ftoken:OU812@github.com/api/v#{Octokit.version}/#{Octokit.format}/#{url}"
61
+ elsif @client && @client.oauthed?
62
+ "https://github.com/api/v#{Octokit.version}/#{Octokit.format}/#{url}?access_token=#{@client.oauth_token}"
63
+ else
64
+ "https://github.com/api/v#{Octokit.version}/#{Octokit.format}/#{url}"
65
+ end
66
+ end
@@ -0,0 +1,31 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+
3
+ describe Octokit::Client::Pulls do
4
+
5
+ before do
6
+ @client = Octokit::Client.new(:login => 'sferik')
7
+ end
8
+
9
+ describe ".commits" do
10
+
11
+ it "should return all commits" do
12
+ stub_get("commits/list/sferik/rails_admin/master").
13
+ to_return(:body => fixture("commits.json"))
14
+ commits = @client.commits("sferik/rails_admin")
15
+ commits.first.author.login.should == "caboteria"
16
+ end
17
+
18
+ end
19
+
20
+ describe ".commit" do
21
+
22
+ it "should return a commit" do
23
+ stub_get("commits/show/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd").
24
+ to_return(:body => fixture("commit.json"))
25
+ commit = @client.commit("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
26
+ commit.first.author.login.should == "caboteria"
27
+ end
28
+
29
+ end
30
+
31
+ end
@@ -0,0 +1,155 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+
3
+ describe Octokit::Client::Issues do
4
+
5
+ before do
6
+ @client = Octokit::Client.new(:login => 'sferik')
7
+ end
8
+
9
+ describe ".search_issues" do
10
+
11
+ it "should return matching issues" do
12
+ stub_get("issues/search/sferik/rails_admin/open/activerecord").
13
+ to_return(:body => fixture("issues.json"))
14
+ issues = @client.search_issues("sferik/rails_admin", "activerecord")
15
+ issues.first.number.should == 105
16
+ end
17
+
18
+ end
19
+
20
+ describe ".issues" do
21
+
22
+ it "should return issues" do
23
+ stub_get("issues/list/sferik/rails_admin/open").
24
+ to_return(:body => fixture("issues.json"))
25
+ issues = @client.issues("sferik/rails_admin")
26
+ issues.first.number.should == 105
27
+ end
28
+
29
+ end
30
+
31
+ describe ".issues_labeled" do
32
+
33
+ it "should return issues with a particular label" do
34
+ stub_get("issues/list/sferik/rails_admin/label/bug").
35
+ to_return(:body => fixture("issues.json"))
36
+ issues = @client.issues_labeled("sferik/rails_admin", "bug")
37
+ issues.first.number.should == 105
38
+ end
39
+
40
+ end
41
+
42
+ describe ".issue" do
43
+
44
+ it "should return an issue" do
45
+ stub_get("issues/show/sferik/rails_admin/105").
46
+ to_return(:body => fixture("issue.json"))
47
+ issue = @client.issue("sferik/rails_admin", 105)
48
+ issue.number.should == 105
49
+ end
50
+
51
+ end
52
+
53
+ describe ".issue_comments" do
54
+
55
+ it "should return comments for an issue" do
56
+ stub_get("issues/comments/sferik/rails_admin/105").
57
+ to_return(:body => fixture("comments.json"))
58
+ comments = @client.issue_comments("sferik/rails_admin", 105)
59
+ comments.first.user.should == "jackdempsey"
60
+ end
61
+
62
+ end
63
+
64
+ describe ".create_issue" do
65
+
66
+ it "should create an issue" do
67
+ stub_post("issues/open/sferik/rails_admin").
68
+ with(:body => {:title => "Use OrmAdapter instead of talking directly to ActiveRecord", :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"}).
69
+ to_return(:body => fixture("issue.json"))
70
+ issue = @client.create_issue("sferik/rails_admin", "Use OrmAdapter instead of talking directly to ActiveRecord", "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")
71
+ issue.number.should == 105
72
+ end
73
+
74
+ end
75
+
76
+ describe ".close_issue" do
77
+
78
+ it "should close an issue" do
79
+ stub_post("issues/close/sferik/rails_admin/105").
80
+ to_return(:body => fixture("issue.json"))
81
+ issue = @client.close_issue("sferik/rails_admin", 105)
82
+ issue.number.should == 105
83
+ end
84
+
85
+ end
86
+
87
+ describe ".reopen_issue" do
88
+
89
+ it "should reopen an issue" do
90
+ stub_post("issues/reopen/sferik/rails_admin/105").
91
+ to_return(:body => fixture("issue.json"))
92
+ issue = @client.reopen_issue("sferik/rails_admin", 105)
93
+ issue.number.should == 105
94
+ end
95
+
96
+ end
97
+
98
+ describe ".update_issue" do
99
+
100
+ it "should update an issue" do
101
+ stub_post("issues/edit/sferik/rails_admin/105").
102
+ with(:body => {:title => "Use OrmAdapter instead of talking directly to ActiveRecord", :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"}).
103
+ to_return(:body => fixture("issue.json"))
104
+ issue = @client.update_issue("sferik/rails_admin", 105, "Use OrmAdapter instead of talking directly to ActiveRecord", "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")
105
+ issue.number.should == 105
106
+ end
107
+
108
+ end
109
+
110
+ describe ".labels" do
111
+
112
+ it "should return labels" do
113
+ stub_get("issues/labels/sferik/rails_admin").
114
+ to_return(:body => fixture("labels.json"))
115
+ labels = @client.labels("sferik/rails_admin")
116
+ labels.first.should == "bug"
117
+ end
118
+
119
+ end
120
+
121
+ describe ".add_label" do
122
+
123
+ it "should add a label" do
124
+ stub_post("issues/label/add/sferik/rails_admin/bug").
125
+ to_return(:body => fixture("labels.json"))
126
+ labels = @client.add_label("sferik/rails_admin", "bug")
127
+ labels.first.should == "bug"
128
+ end
129
+
130
+ end
131
+
132
+ describe ".remove_label" do
133
+
134
+ it "should remove a label" do
135
+ stub_post("issues/label/remove/sferik/rails_admin/bug").
136
+ to_return(:body => fixture("labels.json"))
137
+ labels = @client.remove_label("sferik/rails_admin", "bug")
138
+ labels.first.should == "bug"
139
+ end
140
+
141
+ end
142
+
143
+ describe ".add_comment" do
144
+
145
+ it "should add a comment" do
146
+ stub_post("issues/comment/sferik/rails_admin/105").
147
+ with(:comment => "I don't think I'd like it in a CSV for a variety of reasons, but I do agree that it doesn't have to be AR. I would imagine if there was a patch and work done towards allowing a pluggable History model, it'd be at least considered. I don't have the time at the moment to do this, but I'd imagine you could start with abstracting out the calls to read/write History, ultimately allowing for a drop in of any storage structure. \r\n\r\nIn fact, it might be interesting to leverage wycats moneta towards this end: http://github.com/wycats/moneta").
148
+ to_return(:body => fixture("comment.json"))
149
+ comment = @client.add_comment("sferik/rails_admin", 105, "I don't think I'd like it in a CSV for a variety of reasons, but I do agree that it doesn't have to be AR. I would imagine if there was a patch and work done towards allowing a pluggable History model, it'd be at least considered. I don't have the time at the moment to do this, but I'd imagine you could start with abstracting out the calls to read/write History, ultimately allowing for a drop in of any storage structure. \r\n\r\nIn fact, it might be interesting to leverage wycats moneta towards this end: http://github.com/wycats/moneta")
150
+ comment.user.should == "jackdempsey"
151
+ end
152
+
153
+ end
154
+
155
+ end
@@ -0,0 +1,31 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+
3
+ describe Octokit::Client::Network do
4
+
5
+ before do
6
+ @client = Octokit::Client.new(:login => 'sferik')
7
+ end
8
+
9
+ describe ".network_meta" do
10
+
11
+ it "should return network meta" do
12
+ stub_get("https://github.com/sferik/rails_admin/network_meta").
13
+ to_return(:body => fixture("network_meta.json"))
14
+ network_meta = @client.network_meta("sferik/rails_admin")
15
+ network_meta.blocks.first.name.should == "sferik"
16
+ end
17
+
18
+ end
19
+
20
+ describe ".network_data" do
21
+
22
+ it "should return network data" do
23
+ stub_get("https://github.com/sferik/rails_admin/network_data_chunk").
24
+ to_return(:body => fixture("network_data.json"))
25
+ network_data = @client.network_data("sferik/rails_admin")
26
+ network_data.first.login.should == "rosenfeld"
27
+ end
28
+
29
+ end
30
+
31
+ end
@@ -0,0 +1,75 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+
3
+ describe Octokit::Client::Objects do
4
+
5
+ before do
6
+ @client = Octokit::Client.new(:login => 'sferik')
7
+ end
8
+
9
+ describe ".tree" do
10
+
11
+ it "should return a tree" do
12
+ stub_get("tree/show/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd").
13
+ to_return(:body => fixture("tree.json"))
14
+ tree = @client.tree("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
15
+ tree.first.name.should == ".gitignore"
16
+ end
17
+
18
+ end
19
+
20
+ describe ".blob" do
21
+
22
+ it "should return a blob" do
23
+ stub_get("blob/show/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd/README.mkd").
24
+ to_return(:body => fixture("blob.json"))
25
+ blob = @client.blob("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd", "README.mkd")
26
+ blob.name.should == "README.mkd"
27
+ end
28
+
29
+ end
30
+
31
+ describe ".blobs" do
32
+
33
+ it "should return blobs" do
34
+ stub_get("blob/all/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd").
35
+ to_return(:body => fixture("blobs.json"))
36
+ blobs = @client.blobs("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
37
+ blobs.first.first.should == "spec/dummy_app/public"
38
+ end
39
+
40
+ end
41
+
42
+ describe ".blob_metadata" do
43
+
44
+ it "should return blob metadata" do
45
+ stub_get("blob/full/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd").
46
+ to_return(:body => fixture("blob_metadata.json"))
47
+ blob_metadata = @client.blob_metadata("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
48
+ blob_metadata.first.name.should == ".gitignore"
49
+ end
50
+
51
+ end
52
+
53
+ describe ".tree_metadata" do
54
+
55
+ it "should return tree metadata" do
56
+ stub_get("tree/full/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd").
57
+ to_return(:body => fixture("tree_metadata.json"))
58
+ tree_metadata = @client.tree_metadata("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
59
+ tree_metadata.first.name.should == ".gitignore"
60
+ end
61
+
62
+ end
63
+
64
+ describe ".raw" do
65
+
66
+ it "should return raw data" do
67
+ pending "TODO: This shouldn't get parsed as JSON"
68
+ stub_get("blob/show/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd").
69
+ to_return(:body => fixture("raw.txt"))
70
+ raw = @client.raw("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
71
+ end
72
+
73
+ end
74
+
75
+ end
@@ -0,0 +1,233 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+
3
+ describe Octokit::Client::Organizations do
4
+
5
+ before do
6
+ @client = Octokit::Client.new(:login => 'sferik')
7
+ end
8
+
9
+ describe ".organization" do
10
+
11
+ it "should return an organization" do
12
+ stub_get("organizations/codeforamerica").
13
+ to_return(:body => fixture("organization.json"))
14
+ organization = @client.organization("codeforamerica")
15
+ organization.name.should == "Code For America"
16
+ end
17
+
18
+ end
19
+
20
+ describe ".update_organization" do
21
+
22
+ it "should update an organization" do
23
+ stub_put("organizations/codeforamerica").
24
+ with(:name => "Code For America").
25
+ to_return(:body => fixture("organization.json"))
26
+ organization = @client.update_organization("codeforamerica", {:name => "Code For America"})
27
+ organization.name.should == "Code For America"
28
+ end
29
+
30
+ end
31
+
32
+ describe ".organizations" do
33
+
34
+ context "with an org passed" do
35
+
36
+ it "should return all organizations for a user" do
37
+ stub_get("user/show/sferik/organizations").
38
+ to_return(:body => fixture("organizations.json"))
39
+ organizations = @client.organizations("sferik")
40
+ organizations.first.name.should == "Hubcap"
41
+ end
42
+
43
+ end
44
+
45
+ context "without an org passed" do
46
+
47
+ it "should return all organizations for a user" do
48
+ stub_get("organizations").
49
+ to_return(:body => fixture("organizations.json"))
50
+ organizations = @client.organizations
51
+ organizations.first.name.should == "Hubcap"
52
+ end
53
+
54
+ end
55
+
56
+ end
57
+
58
+ describe ".organization_repositories" do
59
+
60
+ context "with an org passed" do
61
+
62
+ it "should return all public repositories for an organization" do
63
+ stub_get("organizations/codeforamerica/public_repositories").
64
+ to_return(:body => fixture("repositories.json"))
65
+ repositories = @client.organization_repositories("codeforamerica")
66
+ repositories.first.name.should == "One40Proof"
67
+ end
68
+
69
+ end
70
+
71
+ context "without an org passed" do
72
+
73
+ it "should return all organization repositories for a user" do
74
+ stub_get("organizations/repositories").
75
+ to_return(:body => fixture("repositories.json"))
76
+ repositories = @client.organization_repositories
77
+ repositories.first.name.should == "One40Proof"
78
+ end
79
+
80
+ end
81
+
82
+ end
83
+
84
+ describe ".organization_members" do
85
+
86
+ it "should return all public members of an organization" do
87
+ stub_get("organizations/codeforamerica/public_members").
88
+ to_return(:body => fixture("users.json"))
89
+ users = @client.organization_members("codeforamerica")
90
+ users.first.name.should == "Erik Michaels-Ober"
91
+ end
92
+
93
+ end
94
+
95
+ describe ".organization_teams" do
96
+
97
+ it "should return all teams for an organization" do
98
+ stub_get("organizations/codeforamerica/teams").
99
+ to_return(:body => fixture("teams.json"))
100
+ teams = @client.organization_teams("codeforamerica")
101
+ teams.first.name.should == "Fellows"
102
+ end
103
+
104
+ end
105
+
106
+ describe ".create_team" do
107
+
108
+ it "should create a team" do
109
+ stub_post("organizations/codeforamerica/teams").
110
+ with(:name => "Fellows").
111
+ to_return(:body => fixture("team.json"))
112
+ team = @client.create_team("codeforamerica", {:name => "Fellows"})
113
+ team.first.last.should == "Fellows"
114
+ end
115
+
116
+ end
117
+
118
+ describe ".team" do
119
+
120
+ it "should return a team" do
121
+ stub_get("teams/32598").
122
+ to_return(:body => fixture("team.json"))
123
+ team = @client.team(32598)
124
+ team.first.last.should == "Fellows"
125
+ end
126
+
127
+ end
128
+
129
+ describe ".update_team" do
130
+
131
+ it "should update a team" do
132
+ stub_put("teams/32598").
133
+ with(:name => "Fellows").
134
+ to_return(:body => fixture("team.json"))
135
+ team = @client.update_team(32598, :name => "Fellows")
136
+ team.first.last.should == "Fellows"
137
+ end
138
+
139
+ end
140
+
141
+ describe ".delete_team" do
142
+
143
+ it "should delete a team" do
144
+ stub_delete("teams/32598").
145
+ to_return(:body => fixture("team.json"))
146
+ team = @client.delete_team(32598)
147
+ team.first.last.should == "Fellows"
148
+ end
149
+
150
+ end
151
+
152
+ describe ".delete_team" do
153
+
154
+ it "should delete a team" do
155
+ stub_delete("teams/32598").
156
+ to_return(:body => fixture("team.json"))
157
+ team = @client.delete_team(32598)
158
+ team.first.last.should == "Fellows"
159
+ end
160
+
161
+ end
162
+
163
+ describe ".team_members" do
164
+
165
+ it "should return team members" do
166
+ stub_get("teams/32598/members").
167
+ to_return(:body => fixture("users.json"))
168
+ users = @client.team_members(32598)
169
+ users.first.name.should == "Erik Michaels-Ober"
170
+ end
171
+
172
+ end
173
+
174
+ describe ".add_team_member" do
175
+
176
+ it "should add a team member" do
177
+ stub_post("teams/32598/members").
178
+ with(:name => "sferik").
179
+ to_return(:body => fixture("user.json"))
180
+ user = @client.add_team_member(32598, "sferik")
181
+ user.name.should == "Erik Michaels-Ober"
182
+ end
183
+
184
+ end
185
+
186
+ describe ".remove_team_member" do
187
+
188
+ it "should remove a team member" do
189
+ stub_delete("teams/32598/members").
190
+ with(:query => {:name => "sferik"}).
191
+ to_return(:body => fixture("user.json"))
192
+ user = @client.remove_team_member(32598, "sferik")
193
+ user.name.should == "Erik Michaels-Ober"
194
+ end
195
+
196
+ end
197
+
198
+ describe ".team_repositories" do
199
+
200
+ it "should return team repositories" do
201
+ stub_get("teams/32598/repositories").
202
+ to_return(:body => fixture("repositories.json"))
203
+ repositories = @client.team_repositories(32598)
204
+ repositories.first.name.should == "One40Proof"
205
+ end
206
+
207
+ end
208
+
209
+ describe ".add_team_repository" do
210
+
211
+ it "should add a team repository" do
212
+ stub_post("teams/32598/repositories").
213
+ with(:name => "reddavis/One40Proof").
214
+ to_return(:body => fixture("repositories.json"))
215
+ repositories = @client.add_team_repository(32598, "reddavis/One40Proof")
216
+ repositories.first.name.should == "One40Proof"
217
+ end
218
+
219
+ end
220
+
221
+ describe ".remove_team_repository" do
222
+
223
+ it "should remove a team repository" do
224
+ stub_delete("teams/32598/repositories").
225
+ with(:query => {:name => "reddavis/One40Proof"}).
226
+ to_return(:body => fixture("repositories.json"))
227
+ repositories = @client.remove_team_repository(32598, "reddavis/One40Proof")
228
+ repositories.first.name.should == "One40Proof"
229
+ end
230
+
231
+ end
232
+
233
+ end