<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Code on Open Source Currency</title>
    <link>https://blog.opensourcecurrency.org/tags/code/</link>
    <description>Recent content in Code on Open Source Currency</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 26 Aug 2011 20:02:00 +0100</lastBuildDate>
    <atom:link href="https://blog.opensourcecurrency.org/tags/code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OpenTransact: Testing OAuth Scopes with Artifice and Cucumber</title>
      <link>https://blog.opensourcecurrency.org/2011/08/26/opentransact-testing-oauth-scopes-with-artifice-and-cucumber/</link>
      <pubDate>Fri, 26 Aug 2011 20:02:00 +0100</pubDate>
      <guid>https://blog.opensourcecurrency.org/2011/08/26/opentransact-testing-oauth-scopes-with-artifice-and-cucumber/</guid>
      <description>&lt;p&gt;[blip.tv http://blip.tv/play/AYLP3wMA width=&amp;ldquo;480&amp;rdquo; height=&amp;ldquo;405&amp;rdquo;]&lt;/p&gt;&#xA;&lt;p&gt;In this screencast, we&amp;rsquo;ll improve the code introduced in the previous post &lt;a href=&#34;http://www.opensourcecurrency.org/2011/05/oauth-scopes-with-uma-action-urls.html&#34;&gt;OAuth Scopes with UMA Action URLs&lt;/a&gt; with the help of our friends &lt;a href=&#34;https://github.com/wycats/artifice&#34;&gt;Artifice&lt;/a&gt; and &lt;a href=&#34;http://cukes.info/&#34;&gt;Cucumber&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Calls to Net::HTTP can be intercepted by Artifice and sent to your rack application instead of the network. If you are developing an OAuth provider, Artifice makes testing the api a lot easier. Since the OAuth ruby gem uses Net::HTTP, we can wrap Artifice blocks around our client calls in tests and Artifice will intercept the calls and route them to our Rails app.&lt;/p&gt;</description>
    </item>
    <item>
      <title>RSpec and CanCan Authorization for Intentional Economics</title>
      <link>https://blog.opensourcecurrency.org/2010/11/25/rspec-and-cancan-authorization-for-intentional-economics/</link>
      <pubDate>Thu, 25 Nov 2010 20:52:00 +0100</pubDate>
      <guid>https://blog.opensourcecurrency.org/2010/11/25/rspec-and-cancan-authorization-for-intentional-economics/</guid>
      <description>&lt;p&gt;Not long after moving the Austin Time Exchange to Ruby on Rails, we started receiving requests for a groups feature since some local groups were interested in having their own currency but did not want to run their own instance of the software and their members were already on the existing system.&lt;/p&gt;&#xA;&lt;p&gt;Since we&amp;rsquo;re a fork of insoshi, merging the groups feature from another fork is easy. Add some code to make simple payments per-group&amp;hellip;Boom! Done.&lt;/p&gt;</description>
    </item>
    <item>
      <title>OsCurrency Heroku Deployment</title>
      <link>https://blog.opensourcecurrency.org/2010/01/26/oscurrency-heroku-deployment/</link>
      <pubDate>Tue, 26 Jan 2010 21:50:00 +0100</pubDate>
      <guid>https://blog.opensourcecurrency.org/2010/01/26/oscurrency-heroku-deployment/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://blip.tv/file/get/Herestomwiththeweather-OsCurrencyHerokuDeployment808.flv&#34;&gt;&lt;img src=&#34;https://blog.opensourcecurrency.org/images/posts/Herestomwiththeweather-OsCurrencyHerokuDeployment808.flv.jpg&#34; alt=&#34;Video thumbnail. Click to play&#34; title=&#34;http://blip.tv/file/get/Herestomwiththeweather-OsCurrencyHerokuDeployment808.flv.jpg&#34;&gt;&lt;/a&gt;&lt;br&gt;&#xA;&lt;a href=&#34;http://blip.tv/file/get/Herestomwiththeweather-OsCurrencyHerokuDeployment808.flv&#34;&gt;Click To Play&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&amp;ldquo;Anyone can run their own financial system.&amp;rdquo; - Bernard Lietaer at the &lt;a href=&#34;http://herestomwiththeweather.blogspot.com/2006/07/intentional-economics-day-1.html&#34;&gt;Naropa Intentional Economics workshop&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Thanks to &lt;a href=&#34;http://github.com/lazzarello&#34;&gt;Lee Azzarello&lt;/a&gt;, &lt;a href=&#34;http://github.com/austintimeexchange/oscurrency&#34;&gt;oscurrency&lt;/a&gt; can now be deployed to &lt;a href=&#34;http://heroku.com&#34;&gt;heroku&lt;/a&gt; with the master branch. For production use, the edge branch is preferred as previous testing in development and production has been done with edge. Also, two more items need to be worked on for heroku deployment. In edge, search is done with sphinx which heroku does not support. Since a community currency system generally does not need industrial strength search, perhaps this can be replaced with standard database queries. Also, the edge branch uses workling and starling for background processing of newsletter and forum post emails. Heroku uses &lt;a href=&#34;http://docs.heroku.com/delayed-job&#34;&gt;DJ workers&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>OsCurrency Demo Site and Github Repository</title>
      <link>https://blog.opensourcecurrency.org/2008/11/24/oscurrency-demo-site-and-github-repository/</link>
      <pubDate>Mon, 24 Nov 2008 23:15:00 +0100</pubDate>
      <guid>https://blog.opensourcecurrency.org/2008/11/24/oscurrency-demo-site-and-github-repository/</guid>
      <description>&lt;p&gt;At One Web Day Austin on September 22, the idea was offered (see video in previous entry) that it would be relatively straightforward to build a complementary currency system on &lt;a href=&#34;http://www.insoshi.com&#34;&gt;Insoshi&lt;/a&gt;. Shortly after that, Rich and I began a new project in github. The latest code can be found in the &lt;a href=&#34;http://github.com/austintimeexchange/oscurrency/tree/edge&#34;&gt;edge branch of Oscurrency&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Two weeks ago, the Austin Time Exchange made the switch to running this code. Most of the changes you see in github since then are the result of feedback from the members. This site runs on one 256M slice on slicehost.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
