Skip to content

Commit

Permalink
update to latest api and ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
siuying committed Sep 16, 2012
1 parent 709894b commit 50f920c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 13 deletions.
1 change: 1 addition & 0 deletions .rvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rvm use 1.9.3
20 changes: 13 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
GEM
remote: http://rubygems.org/
specs:
crack (0.1.8)
gemcutter (0.7.0)
gemcutter (0.7.1)
git (1.2.5)
httparty (0.7.7)
crack (= 0.1.8)
jeweler (1.6.0)
bundler (~> 1.0.0)
httparty (0.9.0)
multi_json (~> 1.0)
multi_xml
jeweler (1.8.4)
bundler (~> 1.0)
git (>= 1.2.5)
rake
rake (0.8.7)
rdoc
json (1.7.5)
multi_json (1.3.6)
multi_xml (0.5.1)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)

PLATFORMS
ruby
Expand Down
2 changes: 1 addition & 1 deletion lib/appfigures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$:.unshift(path) unless $:.include?(path)

module Appfigures
API_URL = "https://api.appfigures.com/v1"
API_URL = "https://api.appfigures.com/v1.1"
end

require 'appfigures/user'
Expand Down
2 changes: 1 addition & 1 deletion test/test_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "bundler"
Bundler.require(:default)

require "lib/appfigures"
require "./lib/appfigures"

class TestData < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion test/test_rank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "bundler"
Bundler.require(:default)

require "lib/appfigures"
require "./lib/appfigures"

class TestRank < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion test/test_sale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "bundler"
Bundler.require(:default)

require "lib/appfigures"
require "./lib/appfigures"

class TestSale < Test::Unit::TestCase
def setup
Expand Down
4 changes: 2 additions & 2 deletions test/test_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
require "bundler"
Bundler.require(:default)

require "lib/appfigures"
require "./lib/appfigures"

class TestUser < Test::Unit::TestCase
def setup
path = File.expand_path(File.dirname(__FILE__))
@config = YAML::load(open("#{path}/appfigures_fixture.yml"))

assert_not_nil(@config, "you must create appfigures_fixture.yml")
assert_not_nil(@config[:username], "you must configure username")
assert_not_nil(@config[:password], "you must configure password")
Expand Down

0 comments on commit 50f920c

Please sign in to comment.