octopi 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. data/.gitignore +5 -0
  2. data/Rakefile +2 -84
  3. data/examples/authenticated.rb +20 -0
  4. data/examples/github.yml.example +14 -0
  5. data/examples/issues.rb +18 -0
  6. data/examples/overall.rb +50 -0
  7. data/lib/octopi/version.rb +3 -0
  8. data/octopi.gemspec +20 -93
  9. data/real_world_test/commit_test.rb +20 -0
  10. data/real_world_test/repository_test.rb +19 -0
  11. data/real_world_test/test_helper.rb +11 -0
  12. data/test/.gitconfig +3 -0
  13. data/test/api_test.rb +58 -0
  14. data/test/authenticated_test.rb +39 -0
  15. data/test/base_test.rb +20 -0
  16. data/test/blob_test.rb +23 -0
  17. data/test/branch_test.rb +20 -0
  18. data/test/commit_test.rb +89 -0
  19. data/test/file_object_test.rb +39 -0
  20. data/test/gist_test.rb +16 -0
  21. data/test/issue_comment.rb +19 -0
  22. data/test/issue_set_test.rb +33 -0
  23. data/test/issue_test.rb +136 -0
  24. data/test/key_set_test.rb +29 -0
  25. data/test/key_test.rb +35 -0
  26. data/test/repository_set_test.rb +23 -0
  27. data/test/repository_test.rb +164 -0
  28. data/test/stubs/account +691 -0
  29. data/test/stubs/blob/fcoury/octopi/plain/f6609209c3ac0badd004512d318bfaa508ea10ae +20 -0
  30. data/test/stubs/comments/fcoury/octopi/comments +30 -0
  31. data/test/stubs/comments/fcoury/octopi/comments.atom +48 -0
  32. data/test/stubs/commits/fcoury/octopi/f6609209c3ac0badd004512d318bfaa508ea10ae +94 -0
  33. data/test/stubs/commits/fcoury/octopi/lazy +491 -0
  34. data/test/stubs/commits/fcoury/octopi/master +477 -0
  35. data/test/stubs/commits/fcoury/octopi/octopi.rb +818 -0
  36. data/test/stubs/commits/fcoury/rboard/master +437 -0
  37. data/test/stubs/dashboard +231 -0
  38. data/test/stubs/errors/repository/not_found +16 -0
  39. data/test/stubs/gists/159579 +18 -0
  40. data/test/stubs/issues/fcoury/octopi/27 +42 -0
  41. data/test/stubs/issues/fcoury/octopi/27-reopened +27 -0
  42. data/test/stubs/issues/fcoury/octopi/28 +27 -0
  43. data/test/stubs/issues/fcoury/octopi/28-closed +27 -0
  44. data/test/stubs/issues/fcoury/octopi/28-edited +27 -0
  45. data/test/stubs/issues/fcoury/octopi/closed +175 -0
  46. data/test/stubs/issues/fcoury/octopi/comment/28-comment +15 -0
  47. data/test/stubs/issues/fcoury/octopi/labels/28-maybe-two-point-oh +16 -0
  48. data/test/stubs/issues/fcoury/octopi/labels/28-one-point-oh +16 -0
  49. data/test/stubs/issues/fcoury/octopi/labels/28-remove-maybe-two-point-oh +14 -0
  50. data/test/stubs/issues/fcoury/octopi/labels/28-remove-one-point-oh +15 -0
  51. data/test/stubs/issues/fcoury/octopi/new +27 -0
  52. data/test/stubs/issues/fcoury/octopi/open +329 -0
  53. data/test/stubs/issues/fcoury/octopi/search +139 -0
  54. data/test/stubs/login +157 -0
  55. data/test/stubs/repos/fcoury/octopi/branches +18 -0
  56. data/test/stubs/repos/fcoury/octopi/collaborators +16 -0
  57. data/test/stubs/repos/fcoury/octopi/delete-token +13 -0
  58. data/test/stubs/repos/fcoury/octopi/languages +16 -0
  59. data/test/stubs/repos/fcoury/octopi/main +12 -0
  60. data/test/stubs/repos/fcoury/octopi/master +24 -0
  61. data/test/stubs/repos/fcoury/octopi/tags +23 -0
  62. data/test/stubs/repos/fcoury/octopus/main +24 -0
  63. data/test/stubs/repos/fcoury/rboard/main +12 -0
  64. data/test/stubs/repos/fcoury/rboard/master +24 -0
  65. data/test/stubs/repos/search +238 -0
  66. data/test/stubs/repos/show/fcoury +463 -0
  67. data/test/stubs/repos/show/fcoury-private +454 -0
  68. data/test/stubs/tree/fcoury/octopi/f6609209c3ac0badd004512d318bfaa508ea10ae +54 -0
  69. data/test/stubs/users/Caged +26 -0
  70. data/test/stubs/users/FooBarWidget +26 -0
  71. data/test/stubs/users/aslakhellesoy +26 -0
  72. data/test/stubs/users/augustl +26 -0
  73. data/test/stubs/users/bcalloway +26 -0
  74. data/test/stubs/users/benaskins +26 -0
  75. data/test/stubs/users/benhoskings +26 -0
  76. data/test/stubs/users/bjeanes +27 -0
  77. data/test/stubs/users/cldwalker +26 -0
  78. data/test/stubs/users/danlucraft +26 -0
  79. data/test/stubs/users/dchelimsky +26 -0
  80. data/test/stubs/users/dcrec1 +26 -0
  81. data/test/stubs/users/defunkt +26 -0
  82. data/test/stubs/users/derencius +26 -0
  83. data/test/stubs/users/diy +21 -0
  84. data/test/stubs/users/documentcloud +26 -0
  85. data/test/stubs/users/drnic +26 -0
  86. data/test/stubs/users/dustin +26 -0
  87. data/test/stubs/users/eladmeidar +26 -0
  88. data/test/stubs/users/elliottcable +26 -0
  89. data/test/stubs/users/entp +26 -0
  90. data/test/stubs/users/fcoury +26 -0
  91. data/test/stubs/users/fcoury-private +36 -0
  92. data/test/stubs/users/follow +15 -0
  93. data/test/stubs/users/follow-rails +15 -0
  94. data/test/stubs/users/followers +24 -0
  95. data/test/stubs/users/following +28 -0
  96. data/test/stubs/users/giraffesoft +26 -0
  97. data/test/stubs/users/gwoliveira +26 -0
  98. data/test/stubs/users/hashrocket +26 -0
  99. data/test/stubs/users/hcatlin +26 -0
  100. data/test/stubs/users/jamis +26 -0
  101. data/test/stubs/users/jnicklas +26 -0
  102. data/test/stubs/users/jnunemaker +26 -0
  103. data/test/stubs/users/jruby +21 -0
  104. data/test/stubs/users/kballard +26 -0
  105. data/test/stubs/users/kchris +26 -0
  106. data/test/stubs/users/key-added +20 -0
  107. data/test/stubs/users/key-removed +17 -0
  108. data/test/stubs/users/keys +21 -0
  109. data/test/stubs/users/knewter +26 -0
  110. data/test/stubs/users/lachie +26 -0
  111. data/test/stubs/users/lachlanhardy +26 -0
  112. data/test/stubs/users/lenary +26 -0
  113. data/test/stubs/users/lifo +26 -0
  114. data/test/stubs/users/maccman +26 -0
  115. data/test/stubs/users/markgandolfo +26 -0
  116. data/test/stubs/users/mbleigh +26 -0
  117. data/test/stubs/users/mhodgson +26 -0
  118. data/test/stubs/users/mocra +26 -0
  119. data/test/stubs/users/mojombo +26 -0
  120. data/test/stubs/users/newbamboo +26 -0
  121. data/test/stubs/users/notahat +26 -0
  122. data/test/stubs/users/opscode +26 -0
  123. data/test/stubs/users/paulorv +26 -0
  124. data/test/stubs/users/pvande +21 -0
  125. data/test/stubs/users/rack +26 -0
  126. data/test/stubs/users/radar +26 -0
  127. data/test/stubs/users/rails +26 -0
  128. data/test/stubs/users/railscampau +21 -0
  129. data/test/stubs/users/redinger +26 -0
  130. data/test/stubs/users/remi +26 -0
  131. data/test/stubs/users/search-radar +27 -0
  132. data/test/stubs/users/shanesveller +26 -0
  133. data/test/stubs/users/shuber +26 -0
  134. data/test/stubs/users/softprops +26 -0
  135. data/test/stubs/users/superfeedr +26 -0
  136. data/test/stubs/users/svenfuchs +26 -0
  137. data/test/stubs/users/taylorrf +26 -0
  138. data/test/stubs/users/technoweenie +26 -0
  139. data/test/stubs/users/tgraham +26 -0
  140. data/test/stubs/users/thoughtbot +26 -0
  141. data/test/stubs/users/tmm1 +26 -0
  142. data/test/stubs/users/tobi +26 -0
  143. data/test/stubs/users/tpope +26 -0
  144. data/test/stubs/users/unfollow-rails +14 -0
  145. data/test/stubs/users/watched-repos +1668 -0
  146. data/test/stubs/users/webbynode +26 -0
  147. data/test/stubs/users/wvanbergen +26 -0
  148. data/test/stubs/users/wycats +26 -0
  149. data/test/tag_test.rb +20 -0
  150. data/test/test_helper.rb +251 -0
  151. data/test/user_test.rb +97 -0
  152. data/test_auth.rb +5 -0
  153. metadata +359 -73
@@ -0,0 +1,20 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.26
3
+ Date: Sat, 01 Aug 2009 10:38:30 GMT
4
+ Content-Type: text/plain; charset=utf-8
5
+ Connection: keep-alive
6
+ Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
7
+ Status: 200 OK
8
+ X-Runtime: 246ms
9
+ ETag: "888426e1527673ef635ed0dbb18f4e5b"
10
+ Cache-Control: private, max-age=0, must-revalidate
11
+ Content-Length: 310
12
+
13
+ tree a59231d4e3b99d6aaf349344ad0306b1bee7622d
14
+ parent 737650490a3cf3689f92644126407b21c4493d9a
15
+ author Andrew Moreland <andy@andymo.org> 1248655061 +0800
16
+ committer Felipe Coury <felipe.coury@gmail.com> 1248744299 +0800
17
+
18
+ Fix pulling issues from private repos.
19
+
20
+ Signed-off-by: Felipe Coury <felipe.coury@gmail.com>
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.7.67
3
+ Date: Thu, 28 Apr 2011 04:19:29 GMT
4
+ Content-Type: application/x-yaml; charset=utf-8
5
+ Connection: keep-alive
6
+ Status: 200 OK
7
+ X-RateLimit-Limit: 60
8
+ ETag: "98d9c3f88549ee6e18c9e1213a261a36"
9
+ X-RateLimit-Remaining: 59
10
+ X-Runtime: 11ms
11
+ Content-Length: 535
12
+ Cache-Control: private, max-age=0, must-revalidate
13
+
14
+ ---
15
+ comments:
16
+ - gravatar_id: 9a2a53db8e9b4476038c94a64b32833f
17
+ created_at: 2009-08-23 00:38:09 -07:00
18
+ body: This is fixed in recent release.
19
+ updated_at: 2009-08-23 00:38:09 -07:00
20
+ id: 41214
21
+ user: radar
22
+ - gravatar_id: 9a2a53db8e9b4476038c94a64b32833f
23
+ created_at: 2009-08-24 00:50:21 -07:00
24
+ body: |-
25
+ Real world test for this commited: http://github.com/fcoury/octopi/commit/5973d707c1a1ec0418a26cbafe0fd3b6958066ca
26
+
27
+ This proves that it works.
28
+ updated_at: 2009-08-24 00:50:21 -07:00
29
+ id: 41490
30
+ user: radar
@@ -0,0 +1,48 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.26
3
+ Date: Sat, 01 Aug 2009 06:07:42 GMT
4
+ Content-Type: application/x-yaml; charset=utf-8
5
+ Connection: keep-alive
6
+ Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
7
+ Status: 200 OK
8
+ X-Runtime: 44ms
9
+ ETag: "faa4b600dd11e351c6777caba84cd44a"
10
+ Cache-Control: private, max-age=0, must-revalidate
11
+ Content-Length: 1311
12
+
13
+
14
+ <?xml version="1.0" encoding="UTF-8"?>
15
+ <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
16
+ <id>tag:github.com,2008:/fcoury/octopi/comments</id>
17
+ <link type="text/html" rel="alternate" href="http://github.com/"/>
18
+ <link type="application/atom+xml" rel="self" href="http://github.com/fcoury/octopi/comments.atom"/>
19
+ <title>Comments for octopi</title>
20
+ <updated>2009-03-04T01:44:36-08:00</updated>
21
+ <entry>
22
+ <id>tag:github.com,2008:CommitComment/16032</id>
23
+ <published>2009-03-04T01:44:36-08:00</published>
24
+ <updated>2009-03-04T01:44:36-08:00</updated>
25
+ <link type="text/html" rel="alternate" href="http://github.com/fcoury/octopi/commit/f6609209c3ac0badd004512d318bfaa508ea10ae#-P0"/>
26
+ <title>Aeon commented on fcoury/octopi</title>
27
+ <content type="html">
28
+
29
+
30
+
31
+ &lt;div class="details"&gt;
32
+
33
+ &lt;div class="message"&gt;
34
+
35
+
36
+
37
+ Comment in &lt;a href="http://github.com/fcoury/octopi/commit/f6609209c3ac0badd004512d318bfaa508ea10ae#comments"&gt;e2f4405&lt;/a&gt;:
38
+ &lt;blockquote title="Huh, I had no idea my email prompted that. Nice :)"&gt;&lt;p&gt;Huh, I had no idea my email prompted that. Nice :)&lt;/p&gt;&lt;/blockquote&gt;
39
+
40
+
41
+ &lt;/div&gt;
42
+ &lt;/div&gt;
43
+ </content>
44
+ <author>
45
+ <name>Aeon</name>
46
+ </author>
47
+ </entry>
48
+ </feed>
@@ -0,0 +1,94 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.26
3
+ Date: Sat, 01 Aug 2009 07:05:16 GMT
4
+ Content-Type: application/x-yaml; charset=utf-8
5
+ Connection: keep-alive
6
+ Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
7
+ Status: 200 OK
8
+ X-Runtime: 874ms
9
+ ETag: "6fe879a22f5d8d301384fa7fb2cabde6"
10
+ Cache-Control: private, max-age=0, must-revalidate
11
+ Content-Length: 2781
12
+
13
+ ---
14
+ commit:
15
+ removed: []
16
+
17
+ added: []
18
+
19
+ message: |-
20
+ Fix pulling issues from private repos.
21
+
22
+ Signed-off-by: Felipe Coury <felipe.coury@gmail.com>
23
+ modified:
24
+ - diff: |-
25
+ @@ -23,13 +23,14 @@ module Octopi
26
+ # find_all(:user => "fcoury", :repo => "octopi") # state defaults to open
27
+ #
28
+ def self.find_all(*args)
29
+ + api = (args.length == 4 ? args.pop : nil) || ANONYMOUS_API
30
+ repo = args.first
31
+ user, repo_name, opts = extract_user_repository(*args)
32
+ state = opts[:state] || "open"
33
+ state.downcase! if state
34
+ validate_args(user => :user, repo_name => :repo, state => :state)
35
+
36
+ - issues = super user, repo_name, state
37
+ + issues = super user, repo_name, state, api
38
+ issues.each { |i| i.repository = repo } if repo.is_a? Repository
39
+ issues
40
+ end
41
+ @@ -39,7 +40,7 @@ module Octopi
42
+ if args.length < 2
43
+ raise "Issue.find needs user, repository and issue number"
44
+ end
45
+ -
46
+ + api = (args.length == 3 ? args.pop : nil) || ANONYMOUS_API
47
+ number = args.pop.to_i if args.last.respond_to?(:to_i)
48
+ number = args.pop if args.last.is_a?(Integer)
49
+
50
+ @@ -55,7 +56,7 @@ module Octopi
51
+
52
+ user, repo = extract_names(user, repo)
53
+ validate_args(user => :user, repo => :repo)
54
+ - super user, repo, number
55
+ + super user, repo, number, api
56
+ end
57
+
58
+ def self.open(user, repo, params, api = ANONYMOUS_API)
59
+ filename: lib/octopi/issue.rb
60
+ - diff: |-
61
+ @@ -79,7 +79,8 @@ module Octopi
62
+ end
63
+
64
+ def issues(state = "open")
65
+ - Issue.find_all(self, :state => state)
66
+ + api = self.api || ANONYMOUS_API
67
+ + Issue.find_all(self, { :state => state }, api)
68
+ end
69
+
70
+ def all_issues
71
+ @@ -87,7 +88,8 @@ module Octopi
72
+ end
73
+
74
+ def issue(number)
75
+ - Issue.find(self, number)
76
+ + api = self.api || ANONYMOUS_API
77
+ + Issue.find(self, number, api)
78
+ end
79
+
80
+ def collaborators
81
+ filename: lib/octopi/repository.rb
82
+ parents:
83
+ - id: 737650490a3cf3689f92644126407b21c4493d9a
84
+ url: http://github.com/fcoury/octopi/commit/f6609209c3ac0badd004512d318bfaa508ea10ae
85
+ author:
86
+ name: Andrew Moreland
87
+ email: andy@andymo.org
88
+ id: f6609209c3ac0badd004512d318bfaa508ea10ae
89
+ committed_date: "2009-07-27T18:24:59-07:00"
90
+ authored_date: "2009-07-26T17:37:41-07:00"
91
+ tree: a59231d4e3b99d6aaf349344ad0306b1bee7622d
92
+ committer:
93
+ name: Felipe Coury
94
+ email: felipe.coury@gmail.com
@@ -0,0 +1,491 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.26
3
+ Date: Sat, 01 Aug 2009 07:07:10 GMT
4
+ Content-Type: application/x-yaml; charset=utf-8
5
+ Connection: keep-alive
6
+ Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
7
+ Status: 200 OK
8
+ X-Runtime: 1032ms
9
+ ETag: "4ccf85ad8e21611be887ff83b93feb2d"
10
+ Cache-Control: private, max-age=0, must-revalidate
11
+ Content-Length: 18544
12
+
13
+ ---
14
+ commits:
15
+ - message: Added rdoc and pkg to .gitignore
16
+ parents:
17
+ - id: f6fa7b56125ea3f2d20196f822c391b09391aace
18
+ url: http://github.com/fcoury/octopi/commit/2a25a1aba60ebb210f545d2c62b7d12f492e3dee
19
+ author:
20
+ name: Felipe Coury
21
+ email: felipe.coury@gmail.com
22
+ id: 2a25a1aba60ebb210f545d2c62b7d12f492e3dee
23
+ committed_date: "2009-04-28T05:03:58-07:00"
24
+ authored_date: "2009-04-28T05:03:58-07:00"
25
+ tree: dc5815bc1303383e548813583d1cdcaf5959b0e5
26
+ committer:
27
+ name: Felipe Coury
28
+ email: felipe.coury@gmail.com
29
+ - message: |-
30
+ Alias :login to the current username for speed.
31
+
32
+ Calling .login on a LazyUser caused an API request despite the fact that we
33
+ already had the value in the instance variable @username. Now we set up a
34
+ reader called 'login' to optimise for the common case of wanting just the
35
+ username of a LazyUser object.
36
+ parents:
37
+ - id: a4352a5271cff384c23d8b7225bd8dad03f4321b
38
+ url: http://github.com/fcoury/octopi/commit/f6fa7b56125ea3f2d20196f822c391b09391aace
39
+ author:
40
+ name: Run Paint Run Run
41
+ email: runrun@runpaint.org
42
+ id: f6fa7b56125ea3f2d20196f822c391b09391aace
43
+ committed_date: "2009-04-24T16:42:23-07:00"
44
+ authored_date: "2009-04-24T16:42:23-07:00"
45
+ tree: 79c63b249bcb3454974841bed194ac86041b61e9
46
+ committer:
47
+ name: Run Paint Run Run
48
+ email: runrun@runpaint.org
49
+ - message: Make Repository#open_issue work with Lazy.
50
+ parents:
51
+ - id: 5e53cf6410c666268c44b648162280178a073236
52
+ url: http://github.com/fcoury/octopi/commit/a4352a5271cff384c23d8b7225bd8dad03f4321b
53
+ author:
54
+ name: Run Paint Run Run
55
+ email: runrun@runpaint.org
56
+ id: a4352a5271cff384c23d8b7225bd8dad03f4321b
57
+ committed_date: "2009-04-24T15:07:48-07:00"
58
+ authored_date: "2009-04-24T15:07:48-07:00"
59
+ tree: 04f6b4ba28c18857613850f8048ca204cfbea2c1
60
+ committer:
61
+ name: Run Paint Run Run
62
+ email: runrun@runpaint.org
63
+ - message: Alias .owner to .username to workaround API bug.
64
+ parents:
65
+ - id: fda3d2cee04dd11f08994e78e96d905779baac89
66
+ url: http://github.com/fcoury/octopi/commit/5e53cf6410c666268c44b648162280178a073236
67
+ author:
68
+ name: Run Paint Run Run
69
+ email: runrun@runpaint.org
70
+ id: 5e53cf6410c666268c44b648162280178a073236
71
+ committed_date: "2009-04-24T14:46:04-07:00"
72
+ authored_date: "2009-04-24T14:46:04-07:00"
73
+ tree: fa0c8c03710de705204a23c1daf7143f99abe14a
74
+ committer:
75
+ name: Run Paint Run Run
76
+ email: runrun@runpaint.org
77
+ - message: Require LazyRepository.
78
+ parents:
79
+ - id: 56d78226f8fc29bad774c10713dc7d6d19f2305e
80
+ url: http://github.com/fcoury/octopi/commit/fda3d2cee04dd11f08994e78e96d905779baac89
81
+ author:
82
+ name: Run Paint Run Run
83
+ email: runrun@runpaint.org
84
+ id: fda3d2cee04dd11f08994e78e96d905779baac89
85
+ committed_date: "2009-04-24T14:44:32-07:00"
86
+ authored_date: "2009-04-24T14:44:32-07:00"
87
+ tree: ca6321351f1564f97a1931422b587b1395db03c0
88
+ committer:
89
+ name: Run Paint Run Run
90
+ email: runrun@runpaint.org
91
+ - message: LazyRepository object.
92
+ parents:
93
+ - id: cf06c328d966185a747a749af1f5f080094c475f
94
+ url: http://github.com/fcoury/octopi/commit/56d78226f8fc29bad774c10713dc7d6d19f2305e
95
+ author:
96
+ name: Run Paint Run Run
97
+ email: runrun@runpaint.org
98
+ id: 56d78226f8fc29bad774c10713dc7d6d19f2305e
99
+ committed_date: "2009-04-24T14:43:45-07:00"
100
+ authored_date: "2009-04-24T14:43:45-07:00"
101
+ tree: dbdefb78df01348752cd4b753ddae123fca6ecb3
102
+ committer:
103
+ name: Run Paint Run Run
104
+ email: runrun@runpaint.org
105
+ - message: Make self.property smarter about what it returns.
106
+ parents:
107
+ - id: c28041c84a37a3ead6357a23b3fcdad80e8416f4
108
+ url: http://github.com/fcoury/octopi/commit/cf06c328d966185a747a749af1f5f080094c475f
109
+ author:
110
+ name: Run Paint Run Run
111
+ email: runrun@runpaint.org
112
+ id: cf06c328d966185a747a749af1f5f080094c475f
113
+ committed_date: "2009-04-24T14:06:51-07:00"
114
+ authored_date: "2009-04-24T14:06:51-07:00"
115
+ tree: b18cfe1114c222c19ebe8de4c781a480a9c4bd5d
116
+ committer:
117
+ name: Run Paint Run Run
118
+ email: runrun@runpaint.org
119
+ - message: Add .search to return Array of LazyUsers.
120
+ parents:
121
+ - id: d675ab611f10cbe0823e23463dcd3ef80d41e981
122
+ url: http://github.com/fcoury/octopi/commit/c28041c84a37a3ead6357a23b3fcdad80e8416f4
123
+ author:
124
+ name: Run Paint Run Run
125
+ email: runrun@runpaint.org
126
+ id: c28041c84a37a3ead6357a23b3fcdad80e8416f4
127
+ committed_date: "2009-04-24T13:24:41-07:00"
128
+ authored_date: "2009-04-24T13:24:41-07:00"
129
+ tree: 9b9f04655eb52f28e772923cc8638ed67e267419
130
+ committer:
131
+ name: Run Paint Run Run
132
+ email: runrun@runpaint.org
133
+ - message: Remove nil arguments before dispatch.
134
+ parents:
135
+ - id: 123bc0245532f269f8fdbe5ea9c84a3464eb4ddb
136
+ url: http://github.com/fcoury/octopi/commit/d675ab611f10cbe0823e23463dcd3ef80d41e981
137
+ author:
138
+ name: Run Paint Run Run
139
+ email: runrun@runpaint.org
140
+ id: d675ab611f10cbe0823e23463dcd3ef80d41e981
141
+ committed_date: "2009-04-24T13:21:32-07:00"
142
+ authored_date: "2009-04-24T13:21:32-07:00"
143
+ tree: 6cb973cae1ecf044e67ac179d914a52d26320dfc
144
+ committer:
145
+ name: Run Paint Run Run
146
+ email: runrun@runpaint.org
147
+ - message: Support missing class methods.
148
+ parents:
149
+ - id: 89d6b5948d10437a33df39f4d8386866e2974895
150
+ url: http://github.com/fcoury/octopi/commit/123bc0245532f269f8fdbe5ea9c84a3464eb4ddb
151
+ author:
152
+ name: Run Paint Run Run
153
+ email: runrun@runpaint.org
154
+ id: 123bc0245532f269f8fdbe5ea9c84a3464eb4ddb
155
+ committed_date: "2009-04-24T11:40:30-07:00"
156
+ authored_date: "2009-04-24T11:40:30-07:00"
157
+ tree: 2b389d30a7a2999f2090e00248172e21a3aebe45
158
+ committer:
159
+ name: Run Paint Run Run
160
+ email: runrun@runpaint.org
161
+ - message: |-
162
+ Revert "This reverts commit 486914f4cf1ce746ac32efae786c134349d97836."
163
+
164
+ This reverts commit bcd02a5306c8ce148d756ea2c1591e72c258773b.
165
+ parents:
166
+ - id: c9557a61a0b46c335f977cd7527844a7026c028b
167
+ url: http://github.com/fcoury/octopi/commit/89d6b5948d10437a33df39f4d8386866e2974895
168
+ author:
169
+ name: Run Paint Run Run
170
+ email: runrun@runpaint.org
171
+ id: 89d6b5948d10437a33df39f4d8386866e2974895
172
+ committed_date: "2009-04-24T11:21:24-07:00"
173
+ authored_date: "2009-04-24T11:21:24-07:00"
174
+ tree: d575bfe29548a16be547147575d0df76471ed29f
175
+ committer:
176
+ name: Run Paint Run Run
177
+ email: runrun@runpaint.org
178
+ - message: .followers and .following return Arrays of Users.
179
+ parents:
180
+ - id: 5956a0575866bfca2a1dfc12bdd0b195fc6f22c7
181
+ url: http://github.com/fcoury/octopi/commit/c9557a61a0b46c335f977cd7527844a7026c028b
182
+ author:
183
+ name: Run Paint Run Run
184
+ email: runrun@runpaint.org
185
+ id: c9557a61a0b46c335f977cd7527844a7026c028b
186
+ committed_date: "2009-04-24T01:38:52-07:00"
187
+ authored_date: "2009-04-24T01:38:52-07:00"
188
+ tree: c6fed5c1261110ebcd9cfba5a86d687cab693bbb
189
+ committer:
190
+ name: Run Paint Run Run
191
+ email: runrun@runpaint.org
192
+ - message: |-
193
+ Make User#following and User#followers class meths.
194
+
195
+ This is part of the grand refactoring. For now, these methods no longer coerce
196
+ their results into Arrays of Users; this will return.
197
+ parents:
198
+ - id: 9f874fd25cc0da0384d6ab57d6a883ce85f53cd0
199
+ url: http://github.com/fcoury/octopi/commit/5956a0575866bfca2a1dfc12bdd0b195fc6f22c7
200
+ author:
201
+ name: Run Paint Run Run
202
+ email: runrun@runpaint.org
203
+ id: 5956a0575866bfca2a1dfc12bdd0b195fc6f22c7
204
+ committed_date: "2009-04-24T01:13:51-07:00"
205
+ authored_date: "2009-04-24T01:13:51-07:00"
206
+ tree: ceaea8fc7b7ed7458c04d536a6d6f43517ce7f99
207
+ committer:
208
+ name: Run Paint Run Run
209
+ email: runrun@runpaint.org
210
+ - message: |-
211
+ Make .property a class method for Resources.
212
+
213
+ So as to prevent methods using routes other than the object's default from
214
+ having to suffer the performance penalty of the main route being called first,
215
+ we want such methods to be implemented as class methods. Methods like
216
+ User#followers is an example. It uses the current .property method which is an
217
+ instance method. This change will allow such methods the desired flexibility.
218
+ parents:
219
+ - id: 299216234eae129dd83cfd874d17c4386536e306
220
+ url: http://github.com/fcoury/octopi/commit/9f874fd25cc0da0384d6ab57d6a883ce85f53cd0
221
+ author:
222
+ name: Run Paint Run Run
223
+ email: runrun@runpaint.org
224
+ id: 9f874fd25cc0da0384d6ab57d6a883ce85f53cd0
225
+ committed_date: "2009-04-24T01:05:14-07:00"
226
+ authored_date: "2009-04-24T01:05:14-07:00"
227
+ tree: a516aaf67afec455e4685f6c726b3db6a1ceae1e
228
+ committer:
229
+ name: Run Paint Run Run
230
+ email: runrun@runpaint.org
231
+ - message: |-
232
+ Call worker's class method where possible.
233
+
234
+ method_missing now tries to dispatch to the worker's class before initializing
235
+ @worker. Priority is so given to afford the worker every chance to avoid an
236
+ expensive initialization when not needed. To make this work, we pass the class
237
+ method the arguments we received in our constructor.
238
+ parents:
239
+ - id: dc943dca6f5d8c14e8cd6d26ebea51c9a0e6a773
240
+ url: http://github.com/fcoury/octopi/commit/299216234eae129dd83cfd874d17c4386536e306
241
+ author:
242
+ name: Run Paint Run Run
243
+ email: runrun@runpaint.org
244
+ id: 299216234eae129dd83cfd874d17c4386536e306
245
+ committed_date: "2009-04-23T23:38:09-07:00"
246
+ authored_date: "2009-04-23T23:38:09-07:00"
247
+ tree: 1f32c7d83feef3d8becf188b3ac502cc8d1cd216
248
+ committer:
249
+ name: Run Paint Run Run
250
+ email: runrun@runpaint.org
251
+ - message: Pass constructor argument to parent.
252
+ parents:
253
+ - id: 1e0948a19d5b5409cc7201feddce37a6635db8c4
254
+ url: http://github.com/fcoury/octopi/commit/dc943dca6f5d8c14e8cd6d26ebea51c9a0e6a773
255
+ author:
256
+ name: Run Paint Run Run
257
+ email: runrun@runpaint.org
258
+ id: dc943dca6f5d8c14e8cd6d26ebea51c9a0e6a773
259
+ committed_date: "2009-04-23T23:36:18-07:00"
260
+ authored_date: "2009-04-23T23:36:18-07:00"
261
+ tree: 5ed01a05b6b97c039fab802863c1e57e1cdd8f87
262
+ committer:
263
+ name: Run Paint Run Run
264
+ email: runrun@runpaint.org
265
+ - message: Only send arguments if they were given.
266
+ parents:
267
+ - id: dad03bd83fdbab533cde746f05fdf1885579a0e5
268
+ url: http://github.com/fcoury/octopi/commit/1e0948a19d5b5409cc7201feddce37a6635db8c4
269
+ author:
270
+ name: Run Paint Run Run
271
+ email: runrun@runpaint.org
272
+ id: 1e0948a19d5b5409cc7201feddce37a6635db8c4
273
+ committed_date: "2009-04-23T21:11:53-07:00"
274
+ authored_date: "2009-04-23T21:11:53-07:00"
275
+ tree: 8e86aa3b99c92a0f99223eec7eb0232ac8ec1b9a
276
+ committer:
277
+ name: Run Paint Run Run
278
+ email: runrun@runpaint.org
279
+ - message: Abstracted laziness to new Lazy class.
280
+ parents:
281
+ - id: 6419990e2ba0c1b1d6988d73f3b3b32c1b4951e4
282
+ url: http://github.com/fcoury/octopi/commit/dad03bd83fdbab533cde746f05fdf1885579a0e5
283
+ author:
284
+ name: Run Paint Run Run
285
+ email: runrun@runpaint.org
286
+ id: dad03bd83fdbab533cde746f05fdf1885579a0e5
287
+ committed_date: "2009-04-23T21:07:48-07:00"
288
+ authored_date: "2009-04-23T21:07:48-07:00"
289
+ tree: 9c613875f733009efc2671f45ff6f56628b1ad23
290
+ committer:
291
+ name: Run Paint Run Run
292
+ email: runrun@runpaint.org
293
+ - message: Delegator for User class.
294
+ parents:
295
+ - id: a37a352bd11b6859aa95419cbd0698f510051028
296
+ url: http://github.com/fcoury/octopi/commit/6419990e2ba0c1b1d6988d73f3b3b32c1b4951e4
297
+ author:
298
+ name: Run Paint Run Run
299
+ email: runrun@runpaint.org
300
+ id: 6419990e2ba0c1b1d6988d73f3b3b32c1b4951e4
301
+ committed_date: "2009-04-23T20:57:40-07:00"
302
+ authored_date: "2009-04-23T20:57:40-07:00"
303
+ tree: d345cc6492e1bde76755dfaa74cc858e9fb4b702
304
+ committer:
305
+ name: Run Paint Run Run
306
+ email: runrun@runpaint.org
307
+ - message: Add .branches method to Repository object.
308
+ parents:
309
+ - id: 385ce1d6989adae200b10c416e4ea614d24746c0
310
+ url: http://github.com/fcoury/octopi/commit/a37a352bd11b6859aa95419cbd0698f510051028
311
+ author:
312
+ name: Run Paint Run Run
313
+ email: runrun@runpaint.org
314
+ id: a37a352bd11b6859aa95419cbd0698f510051028
315
+ committed_date: "2009-04-23T19:42:53-07:00"
316
+ authored_date: "2009-04-23T19:42:53-07:00"
317
+ tree: 9c4547fb3fa88948322cc3f0bfed1f450c4ce330
318
+ committer:
319
+ name: Run Paint Run Run
320
+ email: runrun@runpaint.org
321
+ - message: Add .collaborators method to Repository.
322
+ parents:
323
+ - id: 5addb0bbca8b0af62c7c431c1a6eb3886e4fa832
324
+ url: http://github.com/fcoury/octopi/commit/385ce1d6989adae200b10c416e4ea614d24746c0
325
+ author:
326
+ name: Run Paint Run Run
327
+ email: runrun@runpaint.org
328
+ id: 385ce1d6989adae200b10c416e4ea614d24746c0
329
+ committed_date: "2009-04-23T19:34:29-07:00"
330
+ authored_date: "2009-04-23T19:34:29-07:00"
331
+ tree: 5ef440bea475c37134778cc0fdc3f29717af319e
332
+ committer:
333
+ name: Run Paint Run Run
334
+ email: runrun@runpaint.org
335
+ - message: Merge commit 'runpaint/master'
336
+ parents:
337
+ - id: 3a2d979eaefe3c3220b4d464c49d6eb8655b93bb
338
+ - id: 141310d900a8209d8ec889519f96748b3deec239
339
+ url: http://github.com/fcoury/octopi/commit/5addb0bbca8b0af62c7c431c1a6eb3886e4fa832
340
+ author:
341
+ name: Felipe Coury
342
+ email: felipe.coury@gmail.com
343
+ id: 5addb0bbca8b0af62c7c431c1a6eb3886e4fa832
344
+ committed_date: "2009-04-23T04:26:49-07:00"
345
+ authored_date: "2009-04-23T04:26:49-07:00"
346
+ tree: 0d07978e6635b1b623b20c494e591b28c27dc612
347
+ committer:
348
+ name: Felipe Coury
349
+ email: felipe.coury@gmail.com
350
+ - message: Fix README
351
+ parents:
352
+ - id: 3344a5a2bf141089b4cdfba8f9d37e2104f123b6
353
+ url: http://github.com/fcoury/octopi/commit/3a2d979eaefe3c3220b4d464c49d6eb8655b93bb
354
+ author:
355
+ name: Felipe Coury
356
+ email: felipe.coury@gmail.com
357
+ id: 3a2d979eaefe3c3220b4d464c49d6eb8655b93bb
358
+ committed_date: "2009-04-23T04:25:47-07:00"
359
+ authored_date: "2009-04-23T04:25:47-07:00"
360
+ tree: 22e8794af47e4f39cfac75055516f26f58eeab6b
361
+ committer:
362
+ name: Felipe Coury
363
+ email: felipe.coury@gmail.com
364
+ - message: Testing...
365
+ parents:
366
+ - id: 3221a7f870af4126087451725f152411653f776e
367
+ url: http://github.com/fcoury/octopi/commit/141310d900a8209d8ec889519f96748b3deec239
368
+ author:
369
+ name: Run Paint Run Run
370
+ email: runrun@runpaint.org
371
+ id: 141310d900a8209d8ec889519f96748b3deec239
372
+ committed_date: "2009-04-22T22:31:02-07:00"
373
+ authored_date: "2009-04-22T22:31:02-07:00"
374
+ tree: 3f6ee5d9c06eabd29d267e6f407023557f25b2c2
375
+ committer:
376
+ name: Run Paint Run Run
377
+ email: runrun@runpaint.org
378
+ - message: |-
379
+ Make .keys and .emails return Arrays.
380
+
381
+ The .keys and .emails methods were returning HTTParty responses which were
382
+ confusing to the caller, and contained an unnecessary level of depth. We now
383
+ index the response with the appropriate hash key, thus returning its Array
384
+ value.
385
+ parents:
386
+ - id: 03da49d56da895ee0750e256dfb1845bc4003260
387
+ url: http://github.com/fcoury/octopi/commit/3221a7f870af4126087451725f152411653f776e
388
+ author:
389
+ name: Run Paint Run Run
390
+ email: runrun@runpaint.org
391
+ id: 3221a7f870af4126087451725f152411653f776e
392
+ committed_date: "2009-04-22T20:48:27-07:00"
393
+ authored_date: "2009-04-22T20:48:27-07:00"
394
+ tree: 3f6ee5d9c06eabd29d267e6f407023557f25b2c2
395
+ committer:
396
+ name: Run Paint Run Run
397
+ email: runrun@runpaint.org
398
+ - message: |-
399
+ Removing superfluous yield.
400
+
401
+ The `submit` method yields to the block it's been passed, prints out a trace,
402
+ then makes almost the same yield again. I assume that this is in error, and
403
+ could have been caused by my previous merge.
404
+ parents:
405
+ - id: b13f6787c935b72dfc2d5bcd8e1debd9c3080719
406
+ url: http://github.com/fcoury/octopi/commit/03da49d56da895ee0750e256dfb1845bc4003260
407
+ author:
408
+ name: Run Paint Run Run
409
+ email: runrun@runpaint.org
410
+ id: 03da49d56da895ee0750e256dfb1845bc4003260
411
+ committed_date: "2009-04-22T20:12:54-07:00"
412
+ authored_date: "2009-04-22T20:12:54-07:00"
413
+ tree: 9714482c07679b5e0e7223f7342980ea60a6973d
414
+ committer:
415
+ name: Run Paint Run Run
416
+ email: runrun@runpaint.org
417
+ - message: |-
418
+ Undo 3cb8fbddb6cbd0c9ef2d23e65363d48c42917a68.
419
+
420
+ Commit 3cb8fbddb6cbd0c9ef2d23e65363d48c42917a68 has been made obsolete by
421
+ commit 67320c5c3e09a23813367ff772d607d4a64642e5. Now we're appending the
422
+ credentials to GET requests, .keys and .emails can return to using the correct
423
+ request type.
424
+ parents:
425
+ - id: 67320c5c3e09a23813367ff772d607d4a64642e5
426
+ url: http://github.com/fcoury/octopi/commit/b13f6787c935b72dfc2d5bcd8e1debd9c3080719
427
+ author:
428
+ name: Run Paint Run Run
429
+ email: runrun@runpaint.org
430
+ id: b13f6787c935b72dfc2d5bcd8e1debd9c3080719
431
+ committed_date: "2009-04-22T20:09:18-07:00"
432
+ authored_date: "2009-04-22T20:09:18-07:00"
433
+ tree: 92df231e4fd73c19da9d8b0e68161ddb84f08225
434
+ committer:
435
+ name: Run Paint Run Run
436
+ email: runrun@runpaint.org
437
+ - message: |-
438
+ Add credentials to `default_params` for auth'd GET.
439
+
440
+ We want the token and login to be sent for all authenticated queries. They
441
+ were being sent for POST requests, but, seemingly, not for GETs, causing
442
+ methods relying on the latter to fail. HTTParty's `default_params` method
443
+ causes parameters so set to be sent on every request. We specify `login` and
444
+ `token` as default parameters if the request is authenticated.
445
+ parents:
446
+ - id: 3cb8fbddb6cbd0c9ef2d23e65363d48c42917a68
447
+ url: http://github.com/fcoury/octopi/commit/67320c5c3e09a23813367ff772d607d4a64642e5
448
+ author:
449
+ name: Run Paint Run Run
450
+ email: runrun@runpaint.org
451
+ id: 67320c5c3e09a23813367ff772d607d4a64642e5
452
+ committed_date: "2009-04-22T20:02:51-07:00"
453
+ authored_date: "2009-04-22T20:02:51-07:00"
454
+ tree: d08a11ff5f253e97fad4faec681b6a69c4a97ae7
455
+ committer:
456
+ name: Run Paint Run Run
457
+ email: runrun@runpaint.org
458
+ - message: |-
459
+ POST is required for /user/keys and /user/emails.
460
+
461
+ The .keys and .emails methods returned a "not authenticated" error because
462
+ they were fetched via GET and thus the credentials were not sent. Using POST
463
+ fixes this bug.
464
+ parents:
465
+ - id: 1b8113663544a2a4998b3da051b8c91878362e37
466
+ url: http://github.com/fcoury/octopi/commit/3cb8fbddb6cbd0c9ef2d23e65363d48c42917a68
467
+ author:
468
+ name: Run Paint Run Run
469
+ email: runrun@runpaint.org
470
+ id: 3cb8fbddb6cbd0c9ef2d23e65363d48c42917a68
471
+ committed_date: "2009-04-22T19:37:26-07:00"
472
+ authored_date: "2009-04-22T19:37:26-07:00"
473
+ tree: a5118d94496564dbd41855c59595c232da761412
474
+ committer:
475
+ name: Run Paint Run Run
476
+ email: runrun@runpaint.org
477
+ - message: Merge branch 'master' of git://github.com/fcoury/octopi
478
+ parents:
479
+ - id: 5b521b9cd0b9aef4d4f6c32480ae80b1dd68cfc7
480
+ - id: 3344a5a2bf141089b4cdfba8f9d37e2104f123b6
481
+ url: http://github.com/fcoury/octopi/commit/1b8113663544a2a4998b3da051b8c91878362e37
482
+ author:
483
+ name: Run Paint Run Run
484
+ email: runrun@runpaint.org
485
+ id: 1b8113663544a2a4998b3da051b8c91878362e37
486
+ committed_date: "2009-04-22T14:52:06-07:00"
487
+ authored_date: "2009-04-22T14:52:06-07:00"
488
+ tree: d74eefa553335f6c72879122489ada1826d55356
489
+ committer:
490
+ name: Run Paint Run Run
491
+ email: runrun@runpaint.org