Permalink
Browse files

Added version.rb.

  • Loading branch information...
1 parent 330119a commit 46ebb0d3a67205a4189787c55aadcd60b42df101 @arsduo arsduo committed Sep 16, 2011
Showing with 14 additions and 2 deletions.
  1. +7 −2 lib/koala.rb
  2. +3 −0 lib/koala/version.rb
  3. +4 −0 spec/cases/koala_spec.rb
View
9 lib/koala.rb
@@ -8,7 +8,6 @@
require 'base64'
# include koala modules
-require 'koala/http_service'
require 'koala/oauth'
require 'koala/graph_api'
require 'koala/graph_batch_api'
@@ -17,11 +16,17 @@
require 'koala/rest_api'
require 'koala/realtime_updates'
require 'koala/test_users'
-require 'koala/utils'
+
+# HTTP module so we can communicate with Facebook
+require 'koala/http_service'
# add KoalaIO class
require 'koala/uploadable_io'
+# miscellaneous
+require 'koala/utils'
+require 'koala/version'
+
module Koala
module Facebook
View
3 lib/koala/version.rb
@@ -0,0 +1,3 @@
+module Koala
+ VERSION = "1.2.0beta3"
+end
View
4 spec/cases/koala_spec.rb
@@ -1,6 +1,10 @@
require 'spec_helper'
describe "Koala" do
+ it "has a version" do
+ Koala.const_defined?("VERSION").should be_true
+ end
+
it "has an http_service accessor" do
Koala.should respond_to(:http_service)
Koala.should respond_to(:http_service=)

0 comments on commit 46ebb0d

Please sign in to comment.