<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ruby Subversion Bindings. Finally Some Documentation.</title>
	<atom:link href="http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/</link>
	<description>Online musings of Tim Coulter</description>
	<lastBuildDate>Sat, 02 Jan 2010 19:16:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: One of the Wolves &#187; Ruby Subversion Bindings: Better Documentation&#8230;</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-14</link>
		<dc:creator>One of the Wolves &#187; Ruby Subversion Bindings: Better Documentation&#8230;</dc:creator>
		<pubDate>Sat, 22 Dec 2007 19:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-14</guid>
		<description>[...] turns out that this page &#8212; a previous blog post of mine &#8212; is my most visited page on this site. This isn&#8217;t [...]</description>
		<content:encoded><![CDATA[<p>[...] turns out that this page &#8212; a previous blog post of mine &#8212; is my most visited page on this site. This isn&#8217;t [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: js_</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-15</link>
		<dc:creator>js_</dc:creator>
		<pubDate>Fri, 26 Oct 2007 21:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-15</guid>
		<description>it is supposed to be something like:

provider = Proc.new do &#124;cred, realm, default, may_save, pool&#124;
  simplecreds = Svn::Ext::Core::Svn_auth_cred_simple_t.new
  simplecreds.username = &quot;username&quot;
  simplecreds.password = &quot;password&quot;
  simplecreds
end

cb.auth_baton = Svn::Core.auth_open([Svn::Client::get_simple_prompt_provider(provider,2)])

But it doesn&#039;t work to me</description>
		<content:encoded><![CDATA[<p>it is supposed to be something like:</p>
<p>provider = Proc.new do |cred, realm, default, may_save, pool|<br />
  simplecreds = Svn::Ext::Core::Svn_auth_cred_simple_t.new<br />
  simplecreds.username = &#8220;username&#8221;<br />
  simplecreds.password = &#8220;password&#8221;<br />
  simplecreds<br />
end</p>
<p>cb.auth_baton = Svn::Core.auth_open([Svn::Client::get_simple_prompt_provider(provider,2)])</p>
<p>But it doesn&#8217;t work to me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brainopia</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-13</link>
		<dc:creator>brainopia</dc:creator>
		<pubDate>Mon, 15 Oct 2007 15:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-13</guid>
		<description>how can i reproduce &#039;svn --force add .&quot; through ruby bindings for subversion?</description>
		<content:encoded><![CDATA[<p>how can i reproduce &#8217;svn &#8211;force add .&#8221; through ruby bindings for subversion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: layer2.org :: Ruby has a &#8220;methods&#8221; method to see all available methods</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-16</link>
		<dc:creator>layer2.org :: Ruby has a &#8220;methods&#8221; method to see all available methods</dc:creator>
		<pubDate>Fri, 28 Sep 2007 04:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-16</guid>
		<description>[...] methods that can really help you figure out what you&#8217;re doing when you&#8217;re working with sparsely documented APIs or you just want a quick [...]</description>
		<content:encoded><![CDATA[<p>[...] methods that can really help you figure out what you&#8217;re doing when you&#8217;re working with sparsely documented APIs or you just want a quick [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-18</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Fri, 04 May 2007 13:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-18</guid>
		<description>Very usefull Brian,  Anybody got any ideas about how I could pass a username and password in to that jumble?

It seems it needs to go through:
Svn::Core.auth_open([])

http://svn.collab.net/svn-doxygen/structsvn__auth__provider__object__t.html</description>
		<content:encoded><![CDATA[<p>Very usefull Brian,  Anybody got any ideas about how I could pass a username and password in to that jumble?</p>
<p>It seems it needs to go through:<br />
Svn::Core.auth_open([])</p>
<p><a href="http://svn.collab.net/svn-doxygen/structsvn__auth__provider__object__t.html" rel="nofollow">http://svn.collab.net/svn-doxygen/structsvn__auth__provider__object__t.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Coulter</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-19</link>
		<dc:creator>Tim Coulter</dc:creator>
		<pubDate>Mon, 26 Mar 2007 15:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-19</guid>
		<description>Thanks Brian!</description>
		<content:encoded><![CDATA[<p>Thanks Brian!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Candler</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-20</link>
		<dc:creator>Brian Candler</dc:creator>
		<pubDate>Mon, 26 Mar 2007 15:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-20</guid>
		<description>That got garbled for some reason, the last line should be:

puts &lt;&lt;EOS
Status of node(#{url})
created revision = #{st.created_rev}
  committed time = #{Time.at(st.time / 1_000_000)}
          author = #{st.last_author}
            size = #{st.size}
EOS</description>
		<content:encoded><![CDATA[<p>That got garbled for some reason, the last line should be:</p>
<p>puts &lt;&lt;EOS<br />
Status of node(#{url})<br />
created revision = #{st.created_rev}<br />
  committed time = #{Time.at(st.time / 1_000_000)}<br />
          author = #{st.last_author}<br />
            size = #{st.size}<br />
EOS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Candler</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-21</link>
		<dc:creator>Brian Candler</dc:creator>
		<pubDate>Mon, 26 Mar 2007 15:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-21</guid>
		<description>RA = Repository Access layer.

I&#039;ve now managed to make something work, but I have little idea what I&#039;ve actually done. I&#039;ve ordered the Practical Subversion book which I gather documents the libsvn API, perhaps that will help.

  # Cobbled together from
  # http://www.meadowy.org/~gotoh/projects/remote-svn-plugin/wiki/SvnRaBinding
  # http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/ruby/test/test_ra.rb
  # and some guesswork

  require &#039;svn/client&#039;
  require &#039;svn/ra&#039;

  url = &#039;http://trac-hacks.swapoff.org/svn&#039;
  ctx = Svn::Client::Context.new
  cb = Svn::Ra::Callbacks.new(ctx.auth_baton)
  cb.auth_baton = Svn::Core.auth_open([])
  cfg = Svn::Core::config_get_config(nil)
  s = Svn::Ra::Session.open(url, cfg, cb)
  st = s.stat(&#039;&#039;, 1)
  puts</description>
		<content:encoded><![CDATA[<p>RA = Repository Access layer.</p>
<p>I&#8217;ve now managed to make something work, but I have little idea what I&#8217;ve actually done. I&#8217;ve ordered the Practical Subversion book which I gather documents the libsvn API, perhaps that will help.</p>
<p>  # Cobbled together from<br />
  # <a href="http://www.meadowy.org/~gotoh/projects/remote-svn-plugin/wiki/SvnRaBinding" rel="nofollow">http://www.meadowy.org/~gotoh/projects/remote-svn-plugin/wiki/SvnRaBinding</a><br />
  # <a href="http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/ruby/test/test_ra.rb" rel="nofollow">http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/ruby/test/test_ra.rb</a><br />
  # and some guesswork</p>
<p>  require &#8217;svn/client&#8217;<br />
  require &#8217;svn/ra&#8217;</p>
<p>  url = &#8216;http://trac-hacks.swapoff.org/svn&#8217;<br />
  ctx = Svn::Client::Context.new<br />
  cb = Svn::Ra::Callbacks.new(ctx.auth_baton)<br />
  cb.auth_baton = Svn::Core.auth_open([])<br />
  cfg = Svn::Core::config_get_config(nil)<br />
  s = Svn::Ra::Session.open(url, cfg, cb)<br />
  st = s.stat(&#8221;, 1)<br />
  puts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Candler</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-22</link>
		<dc:creator>Brian Candler</dc:creator>
		<pubDate>Mon, 26 Mar 2007 13:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-22</guid>
		<description>Is there a separate API for accessing a remote subversion respository? Svn::Repos.open() seems to barf when given a http://.../ URL

[From Tim: Hmmm... There has to be, but I&#039;m not sure what it is. You might muck around in the &lt;a href=&quot;http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/ruby/test/&quot; rel=&quot;nofollow&quot;&gt;unit tests&lt;/a&gt; or the &lt;a href=&quot;http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/ruby/svn/&quot; rel=&quot;nofollow&quot;&gt;source code&lt;/a&gt; for the Ruby Subversion Bindings -- maybe the Subversion RA stuff? (I&#039;ve yet to figure out what RA means...). I&#039;m not sure. At worst, you may have to figure out how to send WebDAV commands to a WebDav+Subversion enabled server. It looks like there might be some following on this: http://www.google.com/search?q=ruby+webdav

I&#039;d love to hear what you find out.]</description>
		<content:encoded><![CDATA[<p>Is there a separate API for accessing a remote subversion respository? Svn::Repos.open() seems to barf when given a <a href="http://.../" rel="nofollow">http://&#8230;/</a> URL</p>
<p>[From Tim: Hmmm... There has to be, but I'm not sure what it is. You might muck around in the <a href="http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/ruby/test/" rel="nofollow">unit tests</a> or the <a href="http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/ruby/svn/" rel="nofollow">source code</a> for the Ruby Subversion Bindings -- maybe the Subversion RA stuff? (I've yet to figure out what RA means...). I'm not sure. At worst, you may have to figure out how to send WebDAV commands to a WebDav+Subversion enabled server. It looks like there might be some following on this: <a href="http://www.google.com/search?q=ruby+webdav" rel="nofollow">http://www.google.com/search?q=ruby+webdav</a></p>
<p>I'd love to hear what you find out.]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Horsman</title>
		<link>http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/comment-page-1/#comment-23</link>
		<dc:creator>Bill Horsman</dc:creator>
		<pubDate>Thu, 22 Mar 2007 16:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/#comment-23</guid>
		<description>Tim, this looks very valuable and just what I&#039;m looking for. I hope you find time to contribute your Rails plugin. In the meantime, I&#039;ll mess around with your wrapper and see what I can get working. - Bill

[From Tim: Bill, I&#039;m definitely finding the time. The Subversion plugin is almost there -- once all the functionality I need is done, I&#039;ll release it to the public to get some feedback. Check back in the next two weeks (hopefully! :) ).]</description>
		<content:encoded><![CDATA[<p>Tim, this looks very valuable and just what I&#8217;m looking for. I hope you find time to contribute your Rails plugin. In the meantime, I&#8217;ll mess around with your wrapper and see what I can get working. &#8211; Bill</p>
<p>[From Tim: Bill, I'm definitely finding the time. The Subversion plugin is almost there -- once all the functionality I need is done, I'll release it to the public to get some feedback. Check back in the next two weeks (hopefully! <img src='http://www.oneofthewolves.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
