rentjuicer 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -8,7 +8,7 @@ module Rentjuicer
8
8
 
9
9
  def initialize(api_key)
10
10
  self.api_key = api_key
11
- self.class.base_uri "app.rentjuice.com/api/#{self.api_key}"
11
+ self.class.base_uri "api.rentjuice.com/#{self.api_key}"
12
12
  end
13
13
 
14
14
  end
data/rentjuicer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rentjuicer}
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["tcocca"]
12
- s.date = %q{2010-08-31}
12
+ s.date = %q{2010-10-06}
13
13
  s.description = %q{Ruby API wrapper for rentjuice.com built with httparty}
14
14
  s.email = %q{tom.cocca@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -11,7 +11,7 @@ describe Rentjuicer::Client do
11
11
  end
12
12
 
13
13
  it "should set the base uri" do
14
- @rentjuicer.class.base_uri.should == "http://app.rentjuice.com/api/#{RENTJUICER_API_KEY}"
14
+ @rentjuicer.class.base_uri.should == "http://api.rentjuice.com/#{RENTJUICER_API_KEY}"
15
15
  end
16
16
 
17
17
  end
@@ -5,7 +5,7 @@ def new_rentjuicer
5
5
  end
6
6
 
7
7
  def mock_get(resource, response_fixture, params = {})
8
- url = "http://app.rentjuice.com/api/#{RENTJUICER_API_KEY}#{resource}"
8
+ url = "http://api.rentjuice.com/#{RENTJUICER_API_KEY}#{resource}"
9
9
  unless params.blank?
10
10
  stub_http_request(:get, url).with(:query => params).to_return(:body => mocked_response(response_fixture))
11
11
  else
@@ -18,7 +18,7 @@ def mocked_response(response_fixture)
18
18
  end
19
19
 
20
20
  def httparty_get(resource, response_fixture, params = {})
21
- url = "http://app.rentjuice.com/api/#{RENTJUICER_API_KEY}#{resource}"
21
+ url = "http://api.rentjuice.com/#{RENTJUICER_API_KEY}#{resource}"
22
22
  mock_get(resource, response_fixture, params)
23
23
  HTTParty.get url, :format => :json
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rentjuicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tcocca
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-08-31 00:00:00 -04:00
12
+ date: 2010-10-06 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency