beanstalkapp 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/CHANGES.rdoc +4 -0
  2. data/VERSION +1 -1
  3. data/beanstalkapp.gemspec +106 -2
  4. data/doc/account.html +192 -0
  5. data/doc/changelog.html +150 -0
  6. data/doc/changeset.html +256 -0
  7. data/doc/comment.html +299 -0
  8. data/doc/files/javascripts/code-highlighter.js +190 -0
  9. data/doc/files/javascripts/global.js +67 -0
  10. data/doc/files/javascripts/mootools-1.2.4-core-yc.js +357 -0
  11. data/doc/files/stylesheets/global.css +2152 -0
  12. data/doc/files/stylesheets/ie7.css +85 -0
  13. data/doc/images/apple-touch-icon.png +0 -0
  14. data/doc/images/b-search.gif +0 -0
  15. data/doc/images/b-submit.gif +0 -0
  16. data/doc/images/b-tour.png +0 -0
  17. data/doc/images/bg-comments-count.png +0 -0
  18. data/doc/images/bg-corners.png +0 -0
  19. data/doc/images/bg-header-pattern-alt.png +0 -0
  20. data/doc/images/bg-header-pattern.png +0 -0
  21. data/doc/images/bg-header.png +0 -0
  22. data/doc/images/bg-input.png +0 -0
  23. data/doc/images/bg-page-pattern-alt.png +0 -0
  24. data/doc/images/bg-page-pattern.png +0 -0
  25. data/doc/images/bg-plans.png +0 -0
  26. data/doc/images/bg-ref-basecamp.gif +0 -0
  27. data/doc/images/bg-ref-lighthouse.gif +0 -0
  28. data/doc/images/bg-ref-rackspace.gif +0 -0
  29. data/doc/images/bg-ref-versions.gif +0 -0
  30. data/doc/images/bg-referrer.png +0 -0
  31. data/doc/images/bg-screenshot.png +0 -0
  32. data/doc/images/bg-tooltip.png +0 -0
  33. data/doc/images/button.png +0 -0
  34. data/doc/images/customers/blueflavor.png +0 -0
  35. data/doc/images/customers/brightcove.png +0 -0
  36. data/doc/images/customers/flipshake-s.png +0 -0
  37. data/doc/images/customers/flipshake.png +0 -0
  38. data/doc/images/customers/helloenjoy-s.png +0 -0
  39. data/doc/images/customers/helloenjoy.png +0 -0
  40. data/doc/images/customers/netmagazine.jpg +0 -0
  41. data/doc/images/customers/newrelic.png +0 -0
  42. data/doc/images/customers/puma.png +0 -0
  43. data/doc/images/customers/realmac-s.png +0 -0
  44. data/doc/images/customers/realmac.png +0 -0
  45. data/doc/images/customers/scrapblog.png +0 -0
  46. data/doc/images/customers/store74.gif +0 -0
  47. data/doc/images/customers/theappleblog.jpg +0 -0
  48. data/doc/images/customers/tuaw.jpg +0 -0
  49. data/doc/images/customers/vzaar-s.png +0 -0
  50. data/doc/images/customers/vzaar.png +0 -0
  51. data/doc/images/customers/wufoo-s.png +0 -0
  52. data/doc/images/customers/wufoo.png +0 -0
  53. data/doc/images/favicon.ico +0 -0
  54. data/doc/images/i-arrow.png +0 -0
  55. data/doc/images/i-cc.png +0 -0
  56. data/doc/images/i-checkmark.png +0 -0
  57. data/doc/images/i-features.png +0 -0
  58. data/doc/images/i-help.png +0 -0
  59. data/doc/images/i-input-email.png +0 -0
  60. data/doc/images/i-input-password.png +0 -0
  61. data/doc/images/i-leaf.png +0 -0
  62. data/doc/images/i-lock-sml.png +0 -0
  63. data/doc/images/i-rss.png +0 -0
  64. data/doc/images/i-tour-help.png +0 -0
  65. data/doc/images/logo-rackspace.gif +0 -0
  66. data/doc/images/logo-sml.png +0 -0
  67. data/doc/images/logo-wildbit.png +0 -0
  68. data/doc/images/logo.png +0 -0
  69. data/doc/images/logos/basecamp-ref.png +0 -0
  70. data/doc/images/logos/basecamp.png +0 -0
  71. data/doc/images/logos/campfire.png +0 -0
  72. data/doc/images/logos/cloudscaling.png +0 -0
  73. data/doc/images/logos/collabnet.gif +0 -0
  74. data/doc/images/logos/dynect.png +0 -0
  75. data/doc/images/logos/fogbugz.png +0 -0
  76. data/doc/images/logos/freckle.png +0 -0
  77. data/doc/images/logos/harvest-ref.gif +0 -0
  78. data/doc/images/logos/harvest.png +0 -0
  79. data/doc/images/logos/lighthouse-ref.png +0 -0
  80. data/doc/images/logos/lighthouse.png +0 -0
  81. data/doc/images/logos/pixelnovel.png +0 -0
  82. data/doc/images/logos/rackspace-ref.gif +0 -0
  83. data/doc/images/logos/rackspace.gif +0 -0
  84. data/doc/images/logos/rackspace.png +0 -0
  85. data/doc/images/logos/splunk-s.png +0 -0
  86. data/doc/images/logos/splunk.png +0 -0
  87. data/doc/images/logos/teamsupport.png +0 -0
  88. data/doc/images/logos/twitter.png +0 -0
  89. data/doc/images/logos/versions-ref.gif +0 -0
  90. data/doc/images/logos/versions.png +0 -0
  91. data/doc/images/promo-screenshots.png +0 -0
  92. data/doc/images/sep-promo.png +0 -0
  93. data/doc/images/ss-browse.png +0 -0
  94. data/doc/images/ss-changeset.png +0 -0
  95. data/doc/images/ss-dashboard.png +0 -0
  96. data/doc/images/ss-integrations.png +0 -0
  97. data/doc/images/ss-releases.png +0 -0
  98. data/doc/images/ss-repositories.png +0 -0
  99. data/doc/images/ss-signup-motivator.jpg +0 -0
  100. data/doc/introduction.html +152 -0
  101. data/doc/rails_plugin.html +141 -0
  102. data/doc/release.html +282 -0
  103. data/doc/release_server.html +340 -0
  104. data/doc/repository.html +326 -0
  105. data/doc/ruby_gem.html +160 -0
  106. data/doc/server_environment.html +270 -0
  107. data/doc/user.html +210 -0
  108. data/lib/beanstalkapp/release.rb +6 -2
  109. data/test/integration.rb +11 -3
  110. metadata +106 -2
@@ -0,0 +1,256 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>Beanstalk &mdash; Hassle-free Subversion Hosting</title>
7
+ <meta name="description" content="Beanstalk allows designers and developers to store source code, track changes, and collaborate with their team.">
8
+ <meta name="author" content="Wildbit, LLC">
9
+ <meta name="viewport" content="width=980">
10
+
11
+ <!--[if IE]>
12
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+
15
+ <link rel="stylesheet" href="files/stylesheets/global.css" media="all">
16
+
17
+ <!--[if IE 7]>
18
+ <link rel="stylesheet" href="files/stylesheets/ie7.css" media="all">
19
+ <![endif]-->
20
+
21
+ <script type="text/javascript" src="files/javascripts/mootools-1.2.4-core-yc.js"></script>
22
+ <script type="text/javascript" src="files/javascripts/code-highlighter.js"></script>
23
+ <script type="text/javascript" src="files/javascripts/global.js"></script>
24
+
25
+ <link rel="shortcut icon" href="images/favicon.ico">
26
+ <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
27
+ </head>
28
+
29
+ <body>
30
+ <header>
31
+ <div class="container">
32
+
33
+ <hgroup>
34
+ <h1><a href="http://beanstalkapp.com">Beanstalk</a></h1>
35
+ <h2><a href="http://beanstalkapp.com">Version Control with a Human Face</a></h2>
36
+ </hgroup>
37
+
38
+ <nav>
39
+ <ul>
40
+ <li><a href="http://beanstalkapp.com">Home</a></li>
41
+ <li><a href="http://beanstalkapp.com/features">Feature Tour</a></li>
42
+ <li><a href="http://beanstalkapp.com/buzz">Buzz</a></li>
43
+ <li><a href="http://help.beanstalkapp.com/">Support</a></li>
44
+ <li><a href="http://beanstalkapp.com/partners">Partners</a></li>
45
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
46
+ <li><strong>API &amp; Tools</strong></li>
47
+ <li class="link-signin"><a href="https://login.beanstalkapp.com">Log In</a></li>
48
+ <li class="link-signup"><a href="http://beanstalkapp.com/pricing">Pricing &amp; Sign Up</a></li>
49
+ </ul>
50
+ </nav>
51
+
52
+ <b class="cl"></b><b class="cr"></b>
53
+ </div>
54
+ </header>
55
+
56
+ <div class="page" id="api">
57
+ <div class="container">
58
+ <section class="wrap">
59
+ <h1>Changeset model</h1>
60
+ <h3>Requirements</h3>
61
+ <p>ActiveResource version 2.3 will not work with this model since it doesn’t support loading of nested arrays. We created a <a href="https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2394-support-for-loading-nested-arrays-in-activeresource">patch for ActiveResource</a> to fix this, but we are not sure when it will be approved and committed. For now you can use the <a href="rails_plugin.html">Ruby libraries</a> provided by Beanstalk which includes this patch.</p>
62
+ <h3>Find all changesets</h3>
63
+ <p>This will fetch 15 changesets from all repositories available to the user currently logged in by basic auth. Use the optional <var>page</var> parameter to fetch more changesets.</p>
64
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/changesets.xml</pre></code></div>
65
+
66
+ <div class="code_container response">
67
+ <p>Click to expand&hellip;</p>
68
+ <i>http-response</i>
69
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
70
+ &lt;revision-caches type=&quot;array&quot;&gt;
71
+ &lt;revision-cache&gt;
72
+ &lt;account-id type=&quot;integer&quot;&gt;46245&lt;/account-id&gt;
73
+ &lt;repository-id type=&quot;integer&quot;&gt;14327&lt;/repository-id&gt;
74
+ &lt;revision type=&quot;integer&quot;&gt;1&lt;/revision&gt;
75
+ &lt;message&gt;Creating initial repository structure&lt;/message&gt;
76
+ &lt;author&gt;gilbert&lt;/author&gt;
77
+ &lt;changed-dirs type=&quot;yaml&quot;&gt;---
78
+ - - branches/
79
+ - :add
80
+ - - tags/
81
+ - :add
82
+ - - trunk/
83
+ - :add
84
+ &lt;/changed-dirs&gt;
85
+ &lt;changed-files type=&quot;yaml&quot;&gt;--- []&lt;/changed-files&gt;
86
+ &lt;changed-properties nil=&quot;true&quot;&gt;&lt;/changed-properties&gt;
87
+ &lt;too-large type=&quot;boolean&quot; nil=&quot;true&quot;&gt;&lt;/too-large&gt;
88
+ &lt;time type=&quot;datetime&quot;&gt;2009-11-18T12:49:34Z&lt;/time&gt;
89
+ &lt;/revision-cache&gt;
90
+
91
+ &lt;revision-cache&gt;
92
+ &lt;account-id type=&quot;integer&quot;&gt;46245&lt;/account-id&gt;
93
+ &lt;repository-id type=&quot;integer&quot;&gt;87654&lt;/repository-id&gt;
94
+ &lt;revision type=&quot;integer&quot;&gt;253&lt;/revision&gt;
95
+ &lt;message&gt;Added nothing&lt;/message&gt;
96
+ &lt;author&gt;evil-gilbert&lt;/author&gt;
97
+ &lt;user_id&gt;34087&lt;/user_id&gt;
98
+ &lt;changed-dirs type=&quot;yaml&quot;&gt;--- []&lt;/changed-dirs&gt;
99
+ &lt;changed-files type=&quot;yaml&quot;&gt;--- []&lt;/changed-files&gt;
100
+ &lt;changed-properties nil=&quot;true&quot;&gt;&lt;/changed-properties&gt;
101
+ &lt;too-large type=&quot;boolean&quot; nil=&quot;true&quot;&gt;&lt;/too-large&gt;
102
+ &lt;time type=&quot;datetime&quot;&gt;2009-11-18T13:23:32Z&lt;/time&gt;
103
+ &lt;/revision-cache&gt;
104
+ &lt;/revision-caches&gt;</code></pre>
105
+ </div>
106
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::Changeset.find :all</pre></code></div>
107
+ <h3>Find all changesets for a specific repository</h3>
108
+ <p>You can use the repository name and it’s ID. So instead of <var>repo_name</var> in the example below, you could use a number like 58.</p>
109
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/changesets/repository.xml?repository_id=NAME_OR_ID</pre></code></div>
110
+
111
+ <div class="code_container response">
112
+ <p>Click to expand&hellip;</p>
113
+ <i>http-response</i>
114
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
115
+ &lt;revision-caches type=&quot;array&quot;&gt;
116
+ &lt;revision-cache&gt;
117
+ &lt;account-id type=&quot;integer&quot;&gt;46245&lt;/account-id&gt;
118
+ &lt;repository-id type=&quot;integer&quot;&gt;1&lt;/repository-id&gt;
119
+ &lt;revision type=&quot;integer&quot;&gt;1&lt;/revision&gt;
120
+ &lt;message&gt;Creating initial repository structure&lt;/message&gt;
121
+ &lt;author&gt;gilbert&lt;/author&gt;
122
+ &lt;user_id&gt;34087&lt;/user_id&gt;
123
+ &lt;changed-dirs type=&quot;yaml&quot;&gt;---
124
+ - - branches/
125
+ - :add
126
+ - - tags/
127
+ - :add
128
+ - - trunk/
129
+ - :add
130
+ &lt;/changed-dirs&gt;
131
+ &lt;changed-files type=&quot;yaml&quot;&gt;--- []&lt;/changed-files&gt;
132
+ &lt;changed-properties nil=&quot;true&quot;&gt;&lt;/changed-properties&gt;
133
+ &lt;too-large type=&quot;boolean&quot; nil=&quot;true&quot;&gt;&lt;/too-large&gt;
134
+ &lt;time type=&quot;datetime&quot;&gt;2009-11-18T12:49:34Z&lt;/time&gt;
135
+ &lt;/revision-cache&gt;
136
+
137
+ &lt;revision-cache&gt;
138
+ &lt;account-id type=&quot;integer&quot;&gt;46245&lt;/account-id&gt;
139
+ &lt;repository-id type=&quot;integer&quot;&gt;1&lt;/repository-id&gt;
140
+ &lt;revision type=&quot;integer&quot;&gt;2&lt;/revision&gt;
141
+ &lt;message&gt;Dummy commit&lt;/message&gt;
142
+ &lt;author&gt;ilya&lt;/author&gt;
143
+ &lt;user_id&gt;97523&lt;/user_id&gt;
144
+ &lt;changed-dirs type=&quot;yaml&quot;&gt;--- []&lt;/changed-dirs&gt;
145
+ &lt;changed-files type=&quot;yaml&quot;&gt;--- []&lt;/changed-files&gt;
146
+ &lt;changed-properties nil=&quot;true&quot;&gt;&lt;/changed-properties&gt;
147
+ &lt;too-large type=&quot;boolean&quot; nil=&quot;true&quot;&gt;&lt;/too-large&gt;
148
+ &lt;time type=&quot;datetime&quot;&gt;2009-20-18T14:59:12Z&lt;/time&gt;
149
+ &lt;/revision-cache&gt;
150
+ &lt;/revision-caches&gt;</code></pre>
151
+ </div>
152
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::Changeset.find_all_for_repository(58)</pre></code></div>
153
+ <h3>Find a single changeset</h3>
154
+ <p>Note that revision number is used instead of ID. Therefore you need to specify <var>repository_id</var>, which is the label (“repo_name”) in the example below. Alternatively for <var>repository_id</var> you could use it’s numeric ID (say “58”).</p>
155
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/changesets/100.xml?repository_id=repo_name_or_id</pre></code></div>
156
+
157
+ <div class="code_container response">
158
+ <p>Click to expand&hellip;</p>
159
+ <i>http-response</i>
160
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
161
+ &lt;revision-cache&gt;
162
+ &lt;account-id type=&quot;integer&quot;&gt;46245&lt;/account-id&gt;
163
+ &lt;repository-id type=&quot;integer&quot;&gt;1&lt;/repository-id&gt;
164
+ &lt;revision type=&quot;integer&quot;&gt;2&lt;/revision&gt;
165
+ &lt;message&gt;Dummy commit&lt;/message&gt;
166
+ &lt;author&gt;ilya&lt;/author&gt;
167
+ &lt;user_id&gt;97523&lt;/user_id&gt;
168
+ &lt;changed-dirs type=&quot;yaml&quot;&gt;--- []&lt;/changed-dirs&gt;
169
+ &lt;changed-files type=&quot;yaml&quot;&gt;--- []&lt;/changed-files&gt;
170
+ &lt;changed-properties nil=&quot;true&quot;&gt;&lt;/changed-properties&gt;
171
+ &lt;too-large type=&quot;boolean&quot; nil=&quot;true&quot;&gt;&lt;/too-large&gt;
172
+ &lt;time type=&quot;datetime&quot;&gt;2009-20-18T14:59:12Z&lt;/time&gt;
173
+ &lt;/revision-cache&gt;</code></pre>
174
+ </div>
175
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::Changeset.find_for_repository(100, &quot;repo&quot;)</pre></code></div>
176
+ </section>
177
+
178
+ <section id="sidebar">
179
+ <ul class="tabs">
180
+ <li>
181
+
182
+ <a href="introduction.html">Introduction</a>
183
+ </li>
184
+ <li>
185
+
186
+ <a href="changelog.html">Changelog</a>
187
+ </li>
188
+ <li>
189
+
190
+ <a href="ruby_gem.html">Ruby Gem</a>
191
+ </li>
192
+ <li>
193
+
194
+ <a href="account.html">Account</a>
195
+ </li>
196
+ <li>
197
+
198
+ <a href="user.html">User</a>
199
+ </li>
200
+ <li>
201
+
202
+ <a href="repository.html">Repository</a>
203
+ </li>
204
+ <li>
205
+
206
+ <strong>&rarr; Changeset</strong>
207
+ </li>
208
+ <li>
209
+
210
+ <a href="comment.html">Comment</a>
211
+ </li>
212
+ <li>
213
+
214
+ <a href="server_environment.html">Server Environment</a>
215
+ </li>
216
+ <li>
217
+
218
+ <a href="release_server.html">Release Server</a>
219
+ </li>
220
+ <li>
221
+
222
+ <a href="release.html">Release</a>
223
+ </li>
224
+ </ul>
225
+ </section>
226
+ </div>
227
+ </div>
228
+
229
+ <footer>
230
+
231
+ <div class="container">
232
+ <ul>
233
+ <li><a href="http://help.beanstalkapp.com/discussion/new">Contact</a></li>
234
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
235
+ <li><a href="http://twitter.com/beanstalkapp">Twitter</a></li>
236
+ <li><a href="http://beanstalkapp.com/security">Security</a></li>
237
+ <li><a href="http://beanstalkapp.com/privacy-policy">Privacy Policy</a></li>
238
+ <li><a href="http://beanstalkapp.com/terms-of-service">Terms of Service</a></li>
239
+ </ul>
240
+ <p>&copy; <a href="http://wildbit.com/">Wildbit, <abbr>LLC</abbr></a>, 2010. All rights reserved. The Beanstalk logo and name are trademarks of Wildbit, <abbr>LLC</abbr>.</p>
241
+ </div>
242
+
243
+ </footer>
244
+
245
+ <script type="text/javascript">
246
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
247
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
248
+ </script>
249
+ <script type="text/javascript">
250
+ try {
251
+ var pageTracker = _gat._getTracker("UA-507677-5");
252
+ pageTracker._setDomainName(".beanstalkapp.com");
253
+ pageTracker._trackPageview();
254
+ } catch(err) {}</script>
255
+ </body>
256
+ </html>
@@ -0,0 +1,299 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>Beanstalk &mdash; Hassle-free Subversion Hosting</title>
7
+ <meta name="description" content="Beanstalk allows designers and developers to store source code, track changes, and collaborate with their team.">
8
+ <meta name="author" content="Wildbit, LLC">
9
+ <meta name="viewport" content="width=980">
10
+
11
+ <!--[if IE]>
12
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+
15
+ <link rel="stylesheet" href="files/stylesheets/global.css" media="all">
16
+
17
+ <!--[if IE 7]>
18
+ <link rel="stylesheet" href="files/stylesheets/ie7.css" media="all">
19
+ <![endif]-->
20
+
21
+ <script type="text/javascript" src="files/javascripts/mootools-1.2.4-core-yc.js"></script>
22
+ <script type="text/javascript" src="files/javascripts/code-highlighter.js"></script>
23
+ <script type="text/javascript" src="files/javascripts/global.js"></script>
24
+
25
+ <link rel="shortcut icon" href="images/favicon.ico">
26
+ <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
27
+ </head>
28
+
29
+ <body>
30
+ <header>
31
+ <div class="container">
32
+
33
+ <hgroup>
34
+ <h1><a href="http://beanstalkapp.com">Beanstalk</a></h1>
35
+ <h2><a href="http://beanstalkapp.com">Version Control with a Human Face</a></h2>
36
+ </hgroup>
37
+
38
+ <nav>
39
+ <ul>
40
+ <li><a href="http://beanstalkapp.com">Home</a></li>
41
+ <li><a href="http://beanstalkapp.com/features">Feature Tour</a></li>
42
+ <li><a href="http://beanstalkapp.com/buzz">Buzz</a></li>
43
+ <li><a href="http://help.beanstalkapp.com/">Support</a></li>
44
+ <li><a href="http://beanstalkapp.com/partners">Partners</a></li>
45
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
46
+ <li><strong>API &amp; Tools</strong></li>
47
+ <li class="link-signin"><a href="https://login.beanstalkapp.com">Log In</a></li>
48
+ <li class="link-signup"><a href="http://beanstalkapp.com/pricing">Pricing &amp; Sign Up</a></li>
49
+ </ul>
50
+ </nav>
51
+
52
+ <b class="cl"></b><b class="cr"></b>
53
+ </div>
54
+ </header>
55
+
56
+ <div class="page" id="api">
57
+ <div class="container">
58
+ <section class="wrap">
59
+ <h1>Comment model</h1>
60
+ <p>Every Changeset in Beanstalk can have many Comments. The <span class="caps">API</span> allows you to view and create them.</p>
61
+ <h3>Writable attributes</h3>
62
+ <ol>
63
+ <li><var>body</var> — comment contents;</li>
64
+ <li><var>file_path</var> — file from a diff the comment is associated with;</li>
65
+ <li><var>line_number</var> — line number of the associated file;</li>
66
+ <li><var>revision</var> — changeset revision.</li>
67
+ </ol>
68
+ <h3>Note on formatting</h3>
69
+ <p>Beanstalk will automatically escape all <span class="caps">HTML</span> tags from the <var>body</var> attribute, apply Textile formatting and turn all URls into clickable <span class="caps">HTML</span> links.</p>
70
+ <h3>Find all comments for a repository</h3>
71
+ <p><var>repository_id</var> is required. Either name of the repo or it’s ID can be used. Use <var>page</var> parameter to skim through pages. Beanstalk will send 15 comments per page.</p>
72
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/repo_name/comments.xml</pre></code></div>
73
+
74
+ <div class="code_container response">
75
+ <p>Click to expand&hellip;</p>
76
+ <i>http-response</i>
77
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
78
+ &lt;comments type=&quot;array&quot;&gt;
79
+ &lt;comment&gt;
80
+ &lt;id type=&quot;integer&quot;&gt;324934&lt;/id&gt;
81
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
82
+ &lt;author-id type=&quot;integer&quot;&gt;17&lt;/author-id&gt;
83
+ &lt;body&gt;
84
+ Hey, this is my first comment.
85
+ I think you have a typo on this line.
86
+ &lt;/body&gt;
87
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/created-at&gt;
88
+ &lt;file-path&gt;trunk/index.html&lt;/file-path&gt;
89
+ &lt;line-number&gt;34&lt;/line-number&gt;
90
+ &lt;rendered-body&gt;
91
+ &amp;lt;p&amp;gt;Hey, this is my first comment.
92
+ I think you have a typo on this line.&amp;lt;/p&amp;gt;
93
+ &lt;/rendered-body&gt;
94
+ &lt;repository-id type=&quot;integer&quot;&gt;2&lt;/repository-id&gt;
95
+ &lt;revision type=&quot;integer&quot;&gt;1&lt;/revision&gt;
96
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/updated-at&gt;
97
+ &lt;/comment&gt;
98
+ &lt;comment&gt;
99
+ &lt;id type=&quot;integer&quot;&gt;834234&lt;/id&gt;
100
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
101
+ &lt;author-id type=&quot;integer&quot;&gt;17&lt;/author-id&gt;
102
+ &lt;body&gt;Check out my *textile* dude.&lt;/body&gt;
103
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-01-18T15:48:54Z&lt;/created-at&gt;
104
+ &lt;file-path nil=&quot;true&quot;&gt;&lt;/file-path&gt;
105
+ &lt;line-number nil=&quot;true&quot;&gt;&lt;/line-number&gt;
106
+ &lt;rendered-body&gt;
107
+ &amp;lt;p&amp;gt;Check out my &lt;strong&gt;textile&lt;/strong&gt; dude.&amp;lt;/p&amp;gt;
108
+ &lt;/rendered-body&gt;
109
+ &lt;repository-id type=&quot;integer&quot;&gt;2&lt;/repository-id&gt;
110
+ &lt;revision type=&quot;integer&quot;&gt;66&lt;/revision&gt;
111
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-01-18T15:48:54Z&lt;/updated-at&gt;
112
+ &lt;/comment&gt;
113
+ &lt;/comments&gt;</code></pre>
114
+ </div>
115
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::Comment.find :all, :params =&gt; {
116
+ :repository_id =&gt; 2
117
+ }</pre></code></div>
118
+ <h3>Find all comments for specific changeset</h3>
119
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/repo_name/comments.xml?revision=1</pre></code></div>
120
+ <div class="code_container response">
121
+ <p>Click to expand&hellip;</p>
122
+ <i>http-response</i>
123
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
124
+ &lt;comments type=&quot;array&quot;&gt;
125
+ &lt;comment&gt;
126
+ &lt;id type=&quot;integer&quot;&gt;583197&lt;/id&gt;
127
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
128
+ &lt;author-id type=&quot;integer&quot;&gt;17&lt;/author-id&gt;
129
+ &lt;body&gt;
130
+ Hey, this is my first comment.
131
+ I think you have a typo on this line.
132
+ &lt;/body&gt;
133
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/created-at&gt;
134
+ &lt;file-path&gt;trunk/index.html&lt;/file-path&gt;
135
+ &lt;line-number&gt;34&lt;/line-number&gt;
136
+ &lt;rendered-body&gt;
137
+ &amp;lt;p&amp;gt;Hey, this is my first comment.
138
+ I think you have a typo on this line.&amp;lt;/p&amp;gt;
139
+ &lt;/rendered-body&gt;
140
+ &lt;repository-id type=&quot;integer&quot;&gt;2&lt;/repository-id&gt;
141
+ &lt;revision type=&quot;integer&quot;&gt;1&lt;/revision&gt;
142
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/updated-at&gt;
143
+ &lt;/comment&gt;
144
+ &lt;/comments&gt;</code></pre>
145
+ </div>
146
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::Comment.find :all, :params =&gt; {
147
+ :repository_id =&gt; 2,
148
+ :revision =&gt; 1
149
+ }</pre></code></div>
150
+ <h3>Find single comment by id</h3>
151
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/repo_name/comments/8543.xml</pre></code></div>
152
+ <div class="code_container response">
153
+ <p>Click to expand&hellip;</p>
154
+ <i>http-response</i>
155
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
156
+ &lt;comment&gt;
157
+ &lt;id type=&quot;integer&quot;&gt;8543&lt;/id&gt;
158
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
159
+ &lt;author-id type=&quot;integer&quot;&gt;17&lt;/author-id&gt;
160
+ &lt;body&gt;Hey, this is my first comment.&lt;/body&gt;
161
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/created-at&gt;
162
+ &lt;file-path&gt;trunk/index.html&lt;/file-path&gt;
163
+ &lt;line-number&gt;34&lt;/line-number&gt;
164
+ &lt;rendered-body&gt;
165
+ &amp;lt;p&amp;gt;Hey, this is my first comment.&amp;lt;/p&amp;gt;
166
+ &lt;/rendered-body&gt;
167
+ &lt;repository-id type=&quot;integer&quot;&gt;2&lt;/repository-id&gt;
168
+ &lt;revision type=&quot;integer&quot;&gt;1&lt;/revision&gt;
169
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/updated-at&gt;
170
+ &lt;/comment&gt;</code></pre>
171
+ </div>
172
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::Comment.find 8543, :params =&gt; {
173
+ :repository_id =&gt; 2
174
+ }</pre></code></div>
175
+ <h3>Create new comment</h3>
176
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>POST /api/repo_name/comments.xml
177
+ &lt;comment&gt;
178
+ &lt;revision type=&quot;integer&quot;&gt;6&lt;/revision&gt;
179
+ &lt;body&gt;This is my comment text.&lt;/body&gt;
180
+ &lt;file-path&gt;/branches/application/super_file.txt&lt;/file-path&gt;
181
+ &lt;line-number&gt;4&lt;/line-number&gt;
182
+ &lt;/comment&gt;
183
+ </pre></code></div>
184
+ <div class="code_container response">
185
+ <p>Click to expand&hellip;</p>
186
+ <i>http-response</i>
187
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
188
+ &lt;comment&gt;
189
+ &lt;id type=&quot;integer&quot;&gt;98636&lt;/id&gt;
190
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
191
+ &lt;author-id type=&quot;integer&quot;&gt;17&lt;/author-id&gt;
192
+ &lt;body&gt;This is my comment text.&lt;/body&gt;
193
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/created-at&gt;
194
+ &lt;file-path&gt;/branches/application/super_file.txt&lt;/file-path&gt;
195
+ &lt;line-number&gt;4&lt;/line-number&gt;
196
+ &lt;rendered-body&gt;
197
+ &amp;lt;p&amp;gt;This is my comment text.&amp;lt;/p&amp;gt;
198
+ &lt;/rendered-body&gt;
199
+ &lt;repository-id type=&quot;integer&quot;&gt;2&lt;/repository-id&gt;
200
+ &lt;revision type=&quot;integer&quot;&gt;6&lt;/revision&gt;
201
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-01-18T15:47:45Z&lt;/updated-at&gt;
202
+ &lt;/comment&gt;
203
+
204
+ --OR IF INVALID--
205
+
206
+ &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
207
+ &lt;errors&gt;
208
+ &lt;error&gt;Body can't be blank&lt;/error&gt;
209
+ &lt;/errors&gt;</code></pre>
210
+ </div>
211
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>c = Beanstalk::API::Comment.new
212
+ c.prefix_options = { :repository_id =&gt; 2 }
213
+ c.revision = 6
214
+ c.body = &quot;This is my comment text.&quot;
215
+ c.file_path = &quot;/branches/application/super_file.txt&quot;
216
+ c.line_number = 4
217
+ c.save
218
+ </pre></code></div>
219
+ </section>
220
+
221
+ <section id="sidebar">
222
+ <ul class="tabs">
223
+ <li>
224
+
225
+ <a href="introduction.html">Introduction</a>
226
+ </li>
227
+ <li>
228
+
229
+ <a href="changelog.html">Changelog</a>
230
+ </li>
231
+ <li>
232
+
233
+ <a href="ruby_gem.html">Ruby Gem</a>
234
+ </li>
235
+ <li>
236
+
237
+ <a href="account.html">Account</a>
238
+ </li>
239
+ <li>
240
+
241
+ <a href="user.html">User</a>
242
+ </li>
243
+ <li>
244
+
245
+ <a href="repository.html">Repository</a>
246
+ </li>
247
+ <li>
248
+
249
+ <a href="changeset.html">Changeset</a>
250
+ </li>
251
+ <li>
252
+
253
+ <strong>&rarr; Comment</strong>
254
+ </li>
255
+ <li>
256
+
257
+ <a href="server_environment.html">Server Environment</a>
258
+ </li>
259
+ <li>
260
+
261
+ <a href="release_server.html">Release Server</a>
262
+ </li>
263
+ <li>
264
+
265
+ <a href="release.html">Release</a>
266
+ </li>
267
+ </ul>
268
+ </section>
269
+ </div>
270
+ </div>
271
+
272
+ <footer>
273
+
274
+ <div class="container">
275
+ <ul>
276
+ <li><a href="http://help.beanstalkapp.com/discussion/new">Contact</a></li>
277
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
278
+ <li><a href="http://twitter.com/beanstalkapp">Twitter</a></li>
279
+ <li><a href="http://beanstalkapp.com/security">Security</a></li>
280
+ <li><a href="http://beanstalkapp.com/privacy-policy">Privacy Policy</a></li>
281
+ <li><a href="http://beanstalkapp.com/terms-of-service">Terms of Service</a></li>
282
+ </ul>
283
+ <p>&copy; <a href="http://wildbit.com/">Wildbit, <abbr>LLC</abbr></a>, 2010. All rights reserved. The Beanstalk logo and name are trademarks of Wildbit, <abbr>LLC</abbr>.</p>
284
+ </div>
285
+
286
+ </footer>
287
+
288
+ <script type="text/javascript">
289
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
290
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
291
+ </script>
292
+ <script type="text/javascript">
293
+ try {
294
+ var pageTracker = _gat._getTracker("UA-507677-5");
295
+ pageTracker._setDomainName(".beanstalkapp.com");
296
+ pageTracker._trackPageview();
297
+ } catch(err) {}</script>
298
+ </body>
299
+ </html>