ridley 0.8.2 → 0.8.3

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.
@@ -60,6 +60,7 @@ module Ridley
60
60
  end
61
61
 
62
62
  uri_hash = Addressable::URI.parse(server_url).to_hash.slice(:scheme, :host, :port)
63
+
63
64
  unless uri_hash[:port]
64
65
  uri_hash[:port] = (uri_hash[:scheme] == "https" ? 443 : 80)
65
66
  end
@@ -68,6 +69,10 @@ module Ridley
68
69
  @organization = org_match[1]
69
70
  end
70
71
 
72
+ unless @organization.nil?
73
+ uri_hash[:path] = "/organizations/#{@organization}"
74
+ end
75
+
71
76
  super(Addressable::URI.new(uri_hash), options)
72
77
  @headers[:user_agent] = "Ridley v#{Ridley::VERSION}"
73
78
  end
@@ -1,3 +1,3 @@
1
1
  module Ridley
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridley
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -401,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
401
401
  version: '0'
402
402
  segments:
403
403
  - 0
404
- hash: -4124005785219237787
404
+ hash: 3451325282232038197
405
405
  requirements: []
406
406
  rubyforge_project:
407
407
  rubygems_version: 1.8.24