Permalink
Browse files

initial

  • Loading branch information...
0 parents commit 15a49e040c44e00d6440881bae374490495b76a6 @entropie committed Jan 22, 2011
Showing with 106 additions and 0 deletions.
  1. +24 −0 Rakefile.rb
  2. +42 −0 lib/ralpha.rb
  3. +25 −0 spec/00_ralpha_spec.rb
  4. +15 −0 spec/spec_helper.rb
@@ -0,0 +1,24 @@
+#
+#
+# Author: Michael 'entropie' Trommer <mictro@gmail.com>
+#
+
+require "lib/ralpha"
+
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = Dir.glob('spec/**/*_spec.rb')
+ t.rspec_opts = %q[-f d -r lib/ralpha]
+ t.skip_bundler = true
+ t.rcov = false
+end
+
+=begin
+Local Variables:
+ mode:ruby
+ fill-column:70
+ indent-tabs-mode:nil
+ ruby-indent-level:2
+End:
+=end
@@ -0,0 +1,42 @@
+#
+#
+# Author: Michael 'entropie' Trommer <mictro@gmail.com>
+#
+
+require "rubygems"
+require "nokogiri"
+
+
+
+module Ralpha
+
+ Source = File.dirname(File.dirname(File.expand_path(__FILE__)))
+
+ $: << File.join(Source, "lib/ralpha")
+
+ Version = [0, 0, 1]
+
+ def self.api_key=(api)
+ @api = api
+ end
+
+ class << self
+
+ def fetch(str)
+ str
+ end
+
+ alias :"[]" :fetch
+ end
+
+end
+
+
+=begin
+Local Variables:
+ mode:ruby
+ fill-column:70
+ indent-tabs-mode:nil
+ ruby-indent-level:2
+End:
+=end
@@ -0,0 +1,25 @@
+#
+#
+# Author: Michael 'entropie' Trommer <mictro@gmail.com>
+#
+
+require "spec_helper"
+
+describe Ralpha do
+ context "#[]" do
+ it "should respond to #[]" do
+ Ralpha.respond_to?("[]").should == true
+ end
+ end
+end
+
+
+
+=begin
+Local Variables:
+ mode:ruby
+ fill-column:70
+ indent-tabs-mode:nil
+ ruby-indent-level:2
+End:
+=end
@@ -0,0 +1,15 @@
+#
+#
+# Author: Michael 'entropie' Trommer <mictro@gmail.com>
+#
+
+
+
+=begin
+Local Variables:
+ mode:ruby
+ fill-column:70
+ indent-tabs-mode:nil
+ ruby-indent-level:2
+End:
+=end

0 comments on commit 15a49e0

Please sign in to comment.