got_fixed 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +21 -0
  5. data/app/assets/javascripts/got_fixed/application.js +15 -0
  6. data/app/assets/javascripts/got_fixed/issues.js +2 -0
  7. data/app/assets/stylesheets/got_fixed/application.css +13 -0
  8. data/app/assets/stylesheets/got_fixed/issues.css +4 -0
  9. data/app/assets/stylesheets/scaffold.css +56 -0
  10. data/app/controllers/got_fixed/application_controller.rb +4 -0
  11. data/app/controllers/got_fixed/issues_controller.rb +84 -0
  12. data/app/helpers/got_fixed/application_helper.rb +4 -0
  13. data/app/helpers/got_fixed/issues_helper.rb +4 -0
  14. data/app/mailers/got_fixed/user_mailer.rb +16 -0
  15. data/app/models/got_fixed/issue.rb +36 -0
  16. data/app/models/got_fixed/user.rb +25 -0
  17. data/app/views/got_fixed/issues/index.html.erb +21 -0
  18. data/app/views/got_fixed/issues/subscribe.js.erb +1 -0
  19. data/app/views/got_fixed/user_mailer/issue_got_fixed_email.text.erb +13 -0
  20. data/app/views/layouts/got_fixed/application.html.erb +14 -0
  21. data/config/initializers/got_fixed.rb +17 -0
  22. data/config/routes.rb +12 -0
  23. data/db/migrate/20130912175851_create_got_fixed_issues.rb +10 -0
  24. data/db/migrate/20130913195152_add_number_to_got_fixed_issue.rb +6 -0
  25. data/db/migrate/20130914085003_add_vendor_to_got_fixed_issue.rb +5 -0
  26. data/db/migrate/20130924121816_create_got_fixed_users.rb +9 -0
  27. data/db/migrate/20130924123004_has_and_belongs_to_many_issues_user.rb +8 -0
  28. data/db/migrate/20130929180909_unique_user_emails.rb +5 -0
  29. data/lib/got_fixed/adapters/github.rb +78 -0
  30. data/lib/got_fixed/engine.rb +12 -0
  31. data/lib/got_fixed/issue_factory.rb +11 -0
  32. data/lib/got_fixed/receivers/github_webhook.rb +21 -0
  33. data/lib/got_fixed/version.rb +3 -0
  34. data/lib/got_fixed.rb +10 -0
  35. data/lib/tasks/auto_annotate_models.rake +34 -0
  36. data/lib/tasks/got_fixed_tasks.rake +56 -0
  37. data/spec/controllers/got_fixed/issues_controller_spec.rb +194 -0
  38. data/spec/dummy/README.rdoc +261 -0
  39. data/spec/dummy/Rakefile +7 -0
  40. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  41. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  42. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  43. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  44. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  45. data/spec/dummy/config/application.rb +65 -0
  46. data/spec/dummy/config/boot.rb +10 -0
  47. data/spec/dummy/config/database.yml +25 -0
  48. data/spec/dummy/config/environment.rb +5 -0
  49. data/spec/dummy/config/environments/development.rb +39 -0
  50. data/spec/dummy/config/environments/production.rb +67 -0
  51. data/spec/dummy/config/environments/test.rb +36 -0
  52. data/spec/dummy/config/got_fixed.yml +15 -0
  53. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  54. data/spec/dummy/config/initializers/inflections.rb +15 -0
  55. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  56. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  57. data/spec/dummy/config/initializers/session_store.rb +8 -0
  58. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  59. data/spec/dummy/config/locales/en.yml +5 -0
  60. data/spec/dummy/config/routes.rb +5 -0
  61. data/spec/dummy/config.ru +4 -0
  62. data/spec/dummy/db/development.sqlite3 +0 -0
  63. data/spec/dummy/db/schema.rb +44 -0
  64. data/spec/dummy/db/test.sqlite3 +0 -0
  65. data/spec/dummy/log/development.log +3113 -0
  66. data/spec/dummy/log/production.log +0 -0
  67. data/spec/dummy/log/test.log +11243 -0
  68. data/spec/dummy/public/404.html +26 -0
  69. data/spec/dummy/public/422.html +26 -0
  70. data/spec/dummy/public/500.html +25 -0
  71. data/spec/dummy/public/favicon.ico +0 -0
  72. data/spec/dummy/script/rails +6 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/0ec0faefe9b37b9024c6fb43e9577379 +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/1ad476961916298df66abf55b6b446de +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/2286292795a62721269b8a751f3ce3de +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/34f9216c794a67fd776c9e8dfe99f905 +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/37a2b058893add5bb1b23726e10e90f1 +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/3d7c2feaa3d73a9b02a2523a2bf8c6c9 +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/41bea58eab5eb570004a03e4c0cb9bfe +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/43e404632c89edec855c1fe4e66bbfe8 +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/52a4f1330e8756eedff2b67442d10802 +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/79b7d2d69028ec9f2efa155d4bf7067a +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/8407d75ea9f26f3effb102acd4b2746d +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/962e8b0955e30143673ce7bf6b31f8d5 +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/98b0301bcea3ebb889faa9d47cbf2419 +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/aaf7d9ec41e452e8a7e8a9b8ee74f1cd +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/b1f9d4de39dbaca4f213e1d9df6bd0bd +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/c12af3e3ef3886081600da84f6d72c52 +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sprockets/db5ae29d7657f4561f01010b7442354a +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sprockets/f310f9446657cf410e5ef48cc74de9d2 +0 -0
  91. data/spec/factories/github/closed.json +222 -0
  92. data/spec/factories/github/hook-issues-event.json +164 -0
  93. data/spec/factories/github/open.json +50 -0
  94. data/spec/factories/got_fixed_issues.rb +10 -0
  95. data/spec/factories/got_fixed_users.rb +9 -0
  96. data/spec/lib/got_fixed/adapters/github_spec.rb +70 -0
  97. data/spec/lib/got_fixed/issue_factory_spec.rb +33 -0
  98. data/spec/lib/got_fixed/receivers/github_webhook_spec.rb +16 -0
  99. data/spec/mailers/got_fixed/user_mailer_spec.rb +20 -0
  100. data/spec/models/got_fixed/issue_spec.rb +52 -0
  101. data/spec/models/got_fixed/user_spec.rb +35 -0
  102. data/spec/routing/got_fixed/issues_routing_spec.rb +15 -0
  103. data/spec/spec_helper.rb +23 -0
  104. metadata +311 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,222 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/repos/applidget/laptop/issues/6",
4
+ "labels_url": "https://api.github.com/repos/applidget/laptop/issues/6/labels{/name}",
5
+ "comments_url": "https://api.github.com/repos/applidget/laptop/issues/6/comments",
6
+ "events_url": "https://api.github.com/repos/applidget/laptop/issues/6/events",
7
+ "html_url": "https://github.com/applidget/laptop/pull/6",
8
+ "id": 9255225,
9
+ "number": 6,
10
+ "title": "Removes ruby-debug",
11
+ "user": {
12
+ "login": "kbok",
13
+ "id": 797707,
14
+ "avatar_url": "https://2.gravatar.com/avatar/072972927ced123af3164764258ec186?d=https%3A%2F%2Fidenticons.github.com%2Fc13a590dfacbd1aca2f996bd1aacdb07.png",
15
+ "gravatar_id": "072972927ced123af3164764258ec186",
16
+ "url": "https://api.github.com/users/kbok",
17
+ "html_url": "https://github.com/kbok",
18
+ "followers_url": "https://api.github.com/users/kbok/followers",
19
+ "following_url": "https://api.github.com/users/kbok/following{/other_user}",
20
+ "gists_url": "https://api.github.com/users/kbok/gists{/gist_id}",
21
+ "starred_url": "https://api.github.com/users/kbok/starred{/owner}{/repo}",
22
+ "subscriptions_url": "https://api.github.com/users/kbok/subscriptions",
23
+ "organizations_url": "https://api.github.com/users/kbok/orgs",
24
+ "repos_url": "https://api.github.com/users/kbok/repos",
25
+ "events_url": "https://api.github.com/users/kbok/events{/privacy}",
26
+ "received_events_url": "https://api.github.com/users/kbok/received_events",
27
+ "type": "User"
28
+ },
29
+ "labels": [
30
+
31
+ ],
32
+ "state": "closed",
33
+ "assignee": null,
34
+ "milestone": null,
35
+ "comments": 2,
36
+ "created_at": "2012-12-13T15:29:19Z",
37
+ "updated_at": "2012-12-13T15:44:00Z",
38
+ "closed_at": "2012-12-13T15:43:14Z",
39
+ "pull_request": {
40
+ "html_url": "https://github.com/applidget/laptop/pull/6",
41
+ "diff_url": "https://github.com/applidget/laptop/pull/6.diff",
42
+ "patch_url": "https://github.com/applidget/laptop/pull/6.patch"
43
+ },
44
+ "body": "Apparently it's useless (ask romain)"
45
+ },
46
+ {
47
+ "url": "https://api.github.com/repos/applidget/laptop/issues/5",
48
+ "labels_url": "https://api.github.com/repos/applidget/laptop/issues/5/labels{/name}",
49
+ "comments_url": "https://api.github.com/repos/applidget/laptop/issues/5/comments",
50
+ "events_url": "https://api.github.com/repos/applidget/laptop/issues/5/events",
51
+ "html_url": "https://github.com/applidget/laptop/pull/5",
52
+ "id": 7657060,
53
+ "number": 5,
54
+ "title": "Laptop with dotfiles",
55
+ "user": {
56
+ "login": "tildedash",
57
+ "id": 937699,
58
+ "avatar_url": "https://1.gravatar.com/avatar/23ae08e6027a82311e20ae09a5d32994?d=https%3A%2F%2Fidenticons.github.com%2F766fee7cee55cd40c28db35b9504fef6.png",
59
+ "gravatar_id": "23ae08e6027a82311e20ae09a5d32994",
60
+ "url": "https://api.github.com/users/tildedash",
61
+ "html_url": "https://github.com/tildedash",
62
+ "followers_url": "https://api.github.com/users/tildedash/followers",
63
+ "following_url": "https://api.github.com/users/tildedash/following{/other_user}",
64
+ "gists_url": "https://api.github.com/users/tildedash/gists{/gist_id}",
65
+ "starred_url": "https://api.github.com/users/tildedash/starred{/owner}{/repo}",
66
+ "subscriptions_url": "https://api.github.com/users/tildedash/subscriptions",
67
+ "organizations_url": "https://api.github.com/users/tildedash/orgs",
68
+ "repos_url": "https://api.github.com/users/tildedash/repos",
69
+ "events_url": "https://api.github.com/users/tildedash/events{/privacy}",
70
+ "received_events_url": "https://api.github.com/users/tildedash/received_events",
71
+ "type": "User"
72
+ },
73
+ "labels": [
74
+
75
+ ],
76
+ "state": "closed",
77
+ "assignee": null,
78
+ "milestone": null,
79
+ "comments": 0,
80
+ "created_at": "2012-10-17T14:17:40Z",
81
+ "updated_at": "2012-10-17T14:52:23Z",
82
+ "closed_at": "2012-10-17T14:52:23Z",
83
+ "pull_request": {
84
+ "html_url": "https://github.com/applidget/laptop/pull/5",
85
+ "diff_url": "https://github.com/applidget/laptop/pull/5.diff",
86
+ "patch_url": "https://github.com/applidget/laptop/pull/5.patch"
87
+ },
88
+ "body": ""
89
+ },
90
+ {
91
+ "url": "https://api.github.com/repos/applidget/laptop/issues/4",
92
+ "labels_url": "https://api.github.com/repos/applidget/laptop/issues/4/labels{/name}",
93
+ "comments_url": "https://api.github.com/repos/applidget/laptop/issues/4/comments",
94
+ "events_url": "https://api.github.com/repos/applidget/laptop/issues/4/events",
95
+ "html_url": "https://github.com/applidget/laptop/pull/4",
96
+ "id": 7616399,
97
+ "number": 4,
98
+ "title": "Laptop with dotfiles",
99
+ "user": {
100
+ "login": "tildedash",
101
+ "id": 937699,
102
+ "avatar_url": "https://1.gravatar.com/avatar/23ae08e6027a82311e20ae09a5d32994?d=https%3A%2F%2Fidenticons.github.com%2F766fee7cee55cd40c28db35b9504fef6.png",
103
+ "gravatar_id": "23ae08e6027a82311e20ae09a5d32994",
104
+ "url": "https://api.github.com/users/tildedash",
105
+ "html_url": "https://github.com/tildedash",
106
+ "followers_url": "https://api.github.com/users/tildedash/followers",
107
+ "following_url": "https://api.github.com/users/tildedash/following{/other_user}",
108
+ "gists_url": "https://api.github.com/users/tildedash/gists{/gist_id}",
109
+ "starred_url": "https://api.github.com/users/tildedash/starred{/owner}{/repo}",
110
+ "subscriptions_url": "https://api.github.com/users/tildedash/subscriptions",
111
+ "organizations_url": "https://api.github.com/users/tildedash/orgs",
112
+ "repos_url": "https://api.github.com/users/tildedash/repos",
113
+ "events_url": "https://api.github.com/users/tildedash/events{/privacy}",
114
+ "received_events_url": "https://api.github.com/users/tildedash/received_events",
115
+ "type": "User"
116
+ },
117
+ "labels": [
118
+
119
+ ],
120
+ "state": "closed",
121
+ "assignee": null,
122
+ "milestone": null,
123
+ "comments": 6,
124
+ "created_at": "2012-10-16T07:53:42Z",
125
+ "updated_at": "2012-10-16T08:20:30Z",
126
+ "closed_at": "2012-10-16T07:55:19Z",
127
+ "pull_request": {
128
+ "html_url": "https://github.com/applidget/laptop/pull/4",
129
+ "diff_url": "https://github.com/applidget/laptop/pull/4.diff",
130
+ "patch_url": "https://github.com/applidget/laptop/pull/4.patch"
131
+ },
132
+ "body": "Discussion only"
133
+ },
134
+ {
135
+ "url": "https://api.github.com/repos/applidget/laptop/issues/3",
136
+ "labels_url": "https://api.github.com/repos/applidget/laptop/issues/3/labels{/name}",
137
+ "comments_url": "https://api.github.com/repos/applidget/laptop/issues/3/comments",
138
+ "events_url": "https://api.github.com/repos/applidget/laptop/issues/3/events",
139
+ "html_url": "https://github.com/applidget/laptop/pull/3",
140
+ "id": 7287722,
141
+ "number": 3,
142
+ "title": "Laptop updated",
143
+ "user": {
144
+ "login": "tildedash",
145
+ "id": 937699,
146
+ "avatar_url": "https://1.gravatar.com/avatar/23ae08e6027a82311e20ae09a5d32994?d=https%3A%2F%2Fidenticons.github.com%2F766fee7cee55cd40c28db35b9504fef6.png",
147
+ "gravatar_id": "23ae08e6027a82311e20ae09a5d32994",
148
+ "url": "https://api.github.com/users/tildedash",
149
+ "html_url": "https://github.com/tildedash",
150
+ "followers_url": "https://api.github.com/users/tildedash/followers",
151
+ "following_url": "https://api.github.com/users/tildedash/following{/other_user}",
152
+ "gists_url": "https://api.github.com/users/tildedash/gists{/gist_id}",
153
+ "starred_url": "https://api.github.com/users/tildedash/starred{/owner}{/repo}",
154
+ "subscriptions_url": "https://api.github.com/users/tildedash/subscriptions",
155
+ "organizations_url": "https://api.github.com/users/tildedash/orgs",
156
+ "repos_url": "https://api.github.com/users/tildedash/repos",
157
+ "events_url": "https://api.github.com/users/tildedash/events{/privacy}",
158
+ "received_events_url": "https://api.github.com/users/tildedash/received_events",
159
+ "type": "User"
160
+ },
161
+ "labels": [
162
+
163
+ ],
164
+ "state": "closed",
165
+ "assignee": null,
166
+ "milestone": null,
167
+ "comments": 1,
168
+ "created_at": "2012-10-02T09:17:07Z",
169
+ "updated_at": "2012-10-02T15:17:06Z",
170
+ "closed_at": "2012-10-02T15:17:06Z",
171
+ "pull_request": {
172
+ "html_url": "https://github.com/applidget/laptop/pull/3",
173
+ "diff_url": "https://github.com/applidget/laptop/pull/3.diff",
174
+ "patch_url": "https://github.com/applidget/laptop/pull/3.patch"
175
+ },
176
+ "body": "Discussion only"
177
+ },
178
+ {
179
+ "url": "https://api.github.com/repos/applidget/laptop/issues/2",
180
+ "labels_url": "https://api.github.com/repos/applidget/laptop/issues/2/labels{/name}",
181
+ "comments_url": "https://api.github.com/repos/applidget/laptop/issues/2/comments",
182
+ "events_url": "https://api.github.com/repos/applidget/laptop/issues/2/events",
183
+ "html_url": "https://github.com/applidget/laptop/pull/2",
184
+ "id": 7266213,
185
+ "number": 2,
186
+ "title": "removed some parts now included in other dotfiles, fixed 404 URL, create...",
187
+ "user": {
188
+ "login": "tildedash",
189
+ "id": 937699,
190
+ "avatar_url": "https://1.gravatar.com/avatar/23ae08e6027a82311e20ae09a5d32994?d=https%3A%2F%2Fidenticons.github.com%2F766fee7cee55cd40c28db35b9504fef6.png",
191
+ "gravatar_id": "23ae08e6027a82311e20ae09a5d32994",
192
+ "url": "https://api.github.com/users/tildedash",
193
+ "html_url": "https://github.com/tildedash",
194
+ "followers_url": "https://api.github.com/users/tildedash/followers",
195
+ "following_url": "https://api.github.com/users/tildedash/following{/other_user}",
196
+ "gists_url": "https://api.github.com/users/tildedash/gists{/gist_id}",
197
+ "starred_url": "https://api.github.com/users/tildedash/starred{/owner}{/repo}",
198
+ "subscriptions_url": "https://api.github.com/users/tildedash/subscriptions",
199
+ "organizations_url": "https://api.github.com/users/tildedash/orgs",
200
+ "repos_url": "https://api.github.com/users/tildedash/repos",
201
+ "events_url": "https://api.github.com/users/tildedash/events{/privacy}",
202
+ "received_events_url": "https://api.github.com/users/tildedash/received_events",
203
+ "type": "User"
204
+ },
205
+ "labels": [
206
+
207
+ ],
208
+ "state": "closed",
209
+ "assignee": null,
210
+ "milestone": null,
211
+ "comments": 0,
212
+ "created_at": "2012-10-01T15:31:48Z",
213
+ "updated_at": "2012-10-01T21:04:24Z",
214
+ "closed_at": "2012-10-01T21:04:24Z",
215
+ "pull_request": {
216
+ "html_url": "https://github.com/applidget/laptop/pull/2",
217
+ "diff_url": "https://github.com/applidget/laptop/pull/2.diff",
218
+ "patch_url": "https://github.com/applidget/laptop/pull/2.patch"
219
+ },
220
+ "body": "Discussion only"
221
+ }
222
+ ]
@@ -0,0 +1,164 @@
1
+ // http://requestb.in
2
+ // POST /xy043uxy
3
+ //
4
+ // X-Hub-Signature: sha1=7e5f575e2e92360b4f13a2100d930e770f26fde3
5
+ // Host: requestb.in
6
+ // X-Github-Delivery: 6e310700-22a2-11e3-82e6-c75a2b13e7f4
7
+ // X-Github-Event: issues
8
+ // Content-Type: application/json
9
+ // Connection: close
10
+ // Content-Length: 7360
11
+ // Accept: */*
12
+ // User-Agent: GitHub Hookshot bbde025
13
+
14
+ // Secret was: "secret"
15
+
16
+ {
17
+ "action": "closed",
18
+ "issue": {
19
+ "url": "https://api.github.com/repos/ssaunier/got_fixed/issues/1",
20
+ "labels_url": "https://api.github.com/repos/ssaunier/got_fixed/issues/1/labels{/name}",
21
+ "comments_url": "https://api.github.com/repos/ssaunier/got_fixed/issues/1/comments",
22
+ "events_url": "https://api.github.com/repos/ssaunier/got_fixed/issues/1/events",
23
+ "html_url": "https://github.com/ssaunier/got_fixed/issues/1",
24
+ "id": 19526518,
25
+ "number": 1,
26
+ "title": "Testing web hook with \"issues\" event enabled",
27
+ "user": {
28
+ "login": "ssaunier",
29
+ "id": 414418,
30
+ "avatar_url": "https://1.gravatar.com/avatar/223f2ffb700f5c4a7ac5f9119e02d84d?d=https%3A%2F%2Fidenticons.github.com%2F7ca0ad7acfe49cfbdf24c79e592aafd3.png",
31
+ "gravatar_id": "223f2ffb700f5c4a7ac5f9119e02d84d",
32
+ "url": "https://api.github.com/users/ssaunier",
33
+ "html_url": "https://github.com/ssaunier",
34
+ "followers_url": "https://api.github.com/users/ssaunier/followers",
35
+ "following_url": "https://api.github.com/users/ssaunier/following{/other_user}",
36
+ "gists_url": "https://api.github.com/users/ssaunier/gists{/gist_id}",
37
+ "starred_url": "https://api.github.com/users/ssaunier/starred{/owner}{/repo}",
38
+ "subscriptions_url": "https://api.github.com/users/ssaunier/subscriptions",
39
+ "organizations_url": "https://api.github.com/users/ssaunier/orgs",
40
+ "repos_url": "https://api.github.com/users/ssaunier/repos",
41
+ "events_url": "https://api.github.com/users/ssaunier/events{/privacy}",
42
+ "received_events_url": "https://api.github.com/users/ssaunier/received_events",
43
+ "type": "User"
44
+ },
45
+ "labels": [
46
+
47
+ ],
48
+ "state": "closed",
49
+ "assignee": null,
50
+ "milestone": null,
51
+ "comments": 0,
52
+ "created_at": "2013-09-15T21:22:54Z",
53
+ "updated_at": "2013-09-21T09:44:38Z",
54
+ "closed_at": "2013-09-21T09:44:38Z",
55
+ "pull_request": {
56
+ "html_url": null,
57
+ "diff_url": null,
58
+ "patch_url": null
59
+ },
60
+ "body": "This issue is just a test."
61
+ },
62
+ "repository": {
63
+ "id": 12729467,
64
+ "name": "got_fixed",
65
+ "full_name": "ssaunier/got_fixed",
66
+ "owner": {
67
+ "login": "ssaunier",
68
+ "id": 414418,
69
+ "avatar_url": "https://2.gravatar.com/avatar/223f2ffb700f5c4a7ac5f9119e02d84d?d=https%3A%2F%2Fidenticons.github.com%2F7ca0ad7acfe49cfbdf24c79e592aafd3.png",
70
+ "gravatar_id": "223f2ffb700f5c4a7ac5f9119e02d84d",
71
+ "url": "https://api.github.com/users/ssaunier",
72
+ "html_url": "https://github.com/ssaunier",
73
+ "followers_url": "https://api.github.com/users/ssaunier/followers",
74
+ "following_url": "https://api.github.com/users/ssaunier/following{/other_user}",
75
+ "gists_url": "https://api.github.com/users/ssaunier/gists{/gist_id}",
76
+ "starred_url": "https://api.github.com/users/ssaunier/starred{/owner}{/repo}",
77
+ "subscriptions_url": "https://api.github.com/users/ssaunier/subscriptions",
78
+ "organizations_url": "https://api.github.com/users/ssaunier/orgs",
79
+ "repos_url": "https://api.github.com/users/ssaunier/repos",
80
+ "events_url": "https://api.github.com/users/ssaunier/events{/privacy}",
81
+ "received_events_url": "https://api.github.com/users/ssaunier/received_events",
82
+ "type": "User"
83
+ },
84
+ "private": false,
85
+ "html_url": "https://github.com/ssaunier/got_fixed",
86
+ "description": "Rails engine to extend your application with a dashboard of your user-reported issues (/!\\ WIP)",
87
+ "fork": false,
88
+ "url": "https://api.github.com/repos/ssaunier/got_fixed",
89
+ "forks_url": "https://api.github.com/repos/ssaunier/got_fixed/forks",
90
+ "keys_url": "https://api.github.com/repos/ssaunier/got_fixed/keys{/key_id}",
91
+ "collaborators_url": "https://api.github.com/repos/ssaunier/got_fixed/collaborators{/collaborator}",
92
+ "teams_url": "https://api.github.com/repos/ssaunier/got_fixed/teams",
93
+ "hooks_url": "https://api.github.com/repos/ssaunier/got_fixed/hooks",
94
+ "issue_events_url": "https://api.github.com/repos/ssaunier/got_fixed/issues/events{/number}",
95
+ "events_url": "https://api.github.com/repos/ssaunier/got_fixed/events",
96
+ "assignees_url": "https://api.github.com/repos/ssaunier/got_fixed/assignees{/user}",
97
+ "branches_url": "https://api.github.com/repos/ssaunier/got_fixed/branches{/branch}",
98
+ "tags_url": "https://api.github.com/repos/ssaunier/got_fixed/tags",
99
+ "blobs_url": "https://api.github.com/repos/ssaunier/got_fixed/git/blobs{/sha}",
100
+ "git_tags_url": "https://api.github.com/repos/ssaunier/got_fixed/git/tags{/sha}",
101
+ "git_refs_url": "https://api.github.com/repos/ssaunier/got_fixed/git/refs{/sha}",
102
+ "trees_url": "https://api.github.com/repos/ssaunier/got_fixed/git/trees{/sha}",
103
+ "statuses_url": "https://api.github.com/repos/ssaunier/got_fixed/statuses/{sha}",
104
+ "languages_url": "https://api.github.com/repos/ssaunier/got_fixed/languages",
105
+ "stargazers_url": "https://api.github.com/repos/ssaunier/got_fixed/stargazers",
106
+ "contributors_url": "https://api.github.com/repos/ssaunier/got_fixed/contributors",
107
+ "subscribers_url": "https://api.github.com/repos/ssaunier/got_fixed/subscribers",
108
+ "subscription_url": "https://api.github.com/repos/ssaunier/got_fixed/subscription",
109
+ "commits_url": "https://api.github.com/repos/ssaunier/got_fixed/commits{/sha}",
110
+ "git_commits_url": "https://api.github.com/repos/ssaunier/got_fixed/git/commits{/sha}",
111
+ "comments_url": "https://api.github.com/repos/ssaunier/got_fixed/comments{/number}",
112
+ "issue_comment_url": "https://api.github.com/repos/ssaunier/got_fixed/issues/comments/{number}",
113
+ "contents_url": "https://api.github.com/repos/ssaunier/got_fixed/contents/{+path}",
114
+ "compare_url": "https://api.github.com/repos/ssaunier/got_fixed/compare/{base}...{head}",
115
+ "merges_url": "https://api.github.com/repos/ssaunier/got_fixed/merges",
116
+ "archive_url": "https://api.github.com/repos/ssaunier/got_fixed/{archive_format}{/ref}",
117
+ "downloads_url": "https://api.github.com/repos/ssaunier/got_fixed/downloads",
118
+ "issues_url": "https://api.github.com/repos/ssaunier/got_fixed/issues{/number}",
119
+ "pulls_url": "https://api.github.com/repos/ssaunier/got_fixed/pulls{/number}",
120
+ "milestones_url": "https://api.github.com/repos/ssaunier/got_fixed/milestones{/number}",
121
+ "notifications_url": "https://api.github.com/repos/ssaunier/got_fixed/notifications{?since,all,participating}",
122
+ "labels_url": "https://api.github.com/repos/ssaunier/got_fixed/labels{/name}",
123
+ "created_at": "2013-09-10T12:55:36Z",
124
+ "updated_at": "2013-09-21T08:26:53Z",
125
+ "pushed_at": "2013-09-21T08:26:48Z",
126
+ "git_url": "git://github.com/ssaunier/got_fixed.git",
127
+ "ssh_url": "git@github.com:ssaunier/got_fixed.git",
128
+ "clone_url": "https://github.com/ssaunier/got_fixed.git",
129
+ "svn_url": "https://github.com/ssaunier/got_fixed",
130
+ "homepage": "",
131
+ "size": 436,
132
+ "watchers_count": 1,
133
+ "language": "Ruby",
134
+ "has_issues": true,
135
+ "has_downloads": true,
136
+ "has_wiki": true,
137
+ "forks_count": 0,
138
+ "mirror_url": null,
139
+ "open_issues_count": 1,
140
+ "forks": 0,
141
+ "open_issues": 1,
142
+ "watchers": 1,
143
+ "master_branch": "master",
144
+ "default_branch": "master"
145
+ },
146
+ "sender": {
147
+ "login": "ssaunier",
148
+ "id": 414418,
149
+ "avatar_url": "https://2.gravatar.com/avatar/223f2ffb700f5c4a7ac5f9119e02d84d?d=https%3A%2F%2Fidenticons.github.com%2F7ca0ad7acfe49cfbdf24c79e592aafd3.png",
150
+ "gravatar_id": "223f2ffb700f5c4a7ac5f9119e02d84d",
151
+ "url": "https://api.github.com/users/ssaunier",
152
+ "html_url": "https://github.com/ssaunier",
153
+ "followers_url": "https://api.github.com/users/ssaunier/followers",
154
+ "following_url": "https://api.github.com/users/ssaunier/following{/other_user}",
155
+ "gists_url": "https://api.github.com/users/ssaunier/gists{/gist_id}",
156
+ "starred_url": "https://api.github.com/users/ssaunier/starred{/owner}{/repo}",
157
+ "subscriptions_url": "https://api.github.com/users/ssaunier/subscriptions",
158
+ "organizations_url": "https://api.github.com/users/ssaunier/orgs",
159
+ "repos_url": "https://api.github.com/users/ssaunier/repos",
160
+ "events_url": "https://api.github.com/users/ssaunier/events{/privacy}",
161
+ "received_events_url": "https://api.github.com/users/ssaunier/received_events",
162
+ "type": "User"
163
+ }
164
+ }
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/repos/applidget/laptop/issues/1",
4
+ "labels_url": "https://api.github.com/repos/applidget/laptop/issues/1/labels{/name}",
5
+ "comments_url": "https://api.github.com/repos/applidget/laptop/issues/1/comments",
6
+ "events_url": "https://api.github.com/repos/applidget/laptop/issues/1/events",
7
+ "html_url": "https://github.com/applidget/laptop/issues/1",
8
+ "id": 3910487,
9
+ "number": 1,
10
+ "title": "Add a subset of the powerful script \"OSX For Hackers\"",
11
+ "user": {
12
+ "login": "ssaunier",
13
+ "id": 414418,
14
+ "avatar_url": "https://1.gravatar.com/avatar/223f2ffb700f5c4a7ac5f9119e02d84d?d=https%3A%2F%2Fidenticons.github.com%2F7ca0ad7acfe49cfbdf24c79e592aafd3.png",
15
+ "gravatar_id": "223f2ffb700f5c4a7ac5f9119e02d84d",
16
+ "url": "https://api.github.com/users/ssaunier",
17
+ "html_url": "https://github.com/ssaunier",
18
+ "followers_url": "https://api.github.com/users/ssaunier/followers",
19
+ "following_url": "https://api.github.com/users/ssaunier/following{/other_user}",
20
+ "gists_url": "https://api.github.com/users/ssaunier/gists{/gist_id}",
21
+ "starred_url": "https://api.github.com/users/ssaunier/starred{/owner}{/repo}",
22
+ "subscriptions_url": "https://api.github.com/users/ssaunier/subscriptions",
23
+ "organizations_url": "https://api.github.com/users/ssaunier/orgs",
24
+ "repos_url": "https://api.github.com/users/ssaunier/repos",
25
+ "events_url": "https://api.github.com/users/ssaunier/events{/privacy}",
26
+ "received_events_url": "https://api.github.com/users/ssaunier/received_events",
27
+ "type": "User"
28
+ },
29
+ "labels": [
30
+ {
31
+ "url": "https://api.github.com/repos/applidget/laptop/labels/enhancement",
32
+ "name": "enhancement",
33
+ "color": "84b6eb"
34
+ }
35
+ ],
36
+ "state": "open",
37
+ "assignee": null,
38
+ "milestone": null,
39
+ "comments": 0,
40
+ "created_at": "2012-03-31T14:27:19Z",
41
+ "updated_at": "2012-03-31T14:27:19Z",
42
+ "closed_at": null,
43
+ "pull_request": {
44
+ "html_url": null,
45
+ "diff_url": null,
46
+ "patch_url": null
47
+ },
48
+ "body": "See this gist: https://gist.github.com/2260182\r\n\r\nWe don't want all of it, but some features as really great:\r\n\r\n```bash\r\necho \"Enable Safari’s debug menu\"\r\ndefaults write com.apple.Safari IncludeInternalDebugMenu -bool true\r\n```"
49
+ }
50
+ ]
@@ -0,0 +1,10 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :got_fixed_issue, :class => 'GotFixed::Issue' do
5
+ title "A very bad issue..."
6
+ closed false
7
+ vendor_id "iWnj89"
8
+ number 7
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :got_fixed_user, :class => 'GotFixed::User' do
5
+ sequence :email do |n|
6
+ "email#{n}@factory.com"
7
+ end
8
+ end
9
+ end