chargify_api_ares 0.4.2 → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{chargify_api_ares}
3
- s.version = "0.4.2"
3
+ s.version = "0.4.3"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Michael Klett", "Nathan Verni", "Rodrigo Franco", "Shay Frendt"]
@@ -61,11 +61,7 @@ module Chargify
61
61
  Base.password = 'X'
62
62
  Base.timeout = timeout unless (timeout.blank?)
63
63
 
64
- if site.to_s != Base.site.to_s
65
- self.site = site || "https://#{subdomain}.chargify.com"
66
- else
67
- self.site = "https://#{subdomain}.chargify.com"
68
- end
64
+ self.site ||= "https://#{subdomain}.chargify.com"
69
65
 
70
66
  Base.site = site
71
67
  Subscription::Component.site = site + "/subscriptions/:subscription_id"
@@ -12,13 +12,16 @@ describe Chargify::Base do
12
12
  @original_subdomain = Chargify.subdomain
13
13
  end
14
14
 
15
- it "honors changes made after the first configuration" do
16
- expect do
17
- Chargify.configure do |c|
18
- c.subdomain = "something-new"
19
- end
20
- end.to change { Chargify::Base.site.to_s }.to("https://something-new.chargify.com")
21
- end
15
+ # TODO: Because ActiveResource overloads the word "site"
16
+ # It is difficult to support setting either the site or subdomain
17
+ # after the class has already been configured and loaded
18
+ # it "honors changes made after the first configuration" do
19
+ # expect do
20
+ # Chargify.configure do |c|
21
+ # c.subdomain = "something-new"
22
+ # end
23
+ # end.to change { Chargify::Base.site.to_s }.to("https://something-new.chargify.com")
24
+ # end
22
25
 
23
26
  it "honors the site over the subdomain if it is specified" do
24
27
  expect do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargify_api_ares
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: