contextio 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 1.2.3
4
+
5
+ * Fix infinite loop in ConnectToken URL building. - Ben Hamill
6
+
3
7
  ## 1.2.2
4
8
 
5
9
  * Fix `PUT` and `POST` parameter submission. - Ben Hamill
@@ -50,11 +50,7 @@ class ContextIO
50
50
  end
51
51
 
52
52
  register_url ContextIO::ConnectToken do |connect_token|
53
- if connect_token.account && connect_token.account.id
54
- "accounts/#{connect_token.account.id}/connect_tokens/#{connect_token.token}"
55
- else
56
- "connect_tokens/#{connect_token.token}"
57
- end
53
+ "connect_tokens/#{connect_token.token}"
58
54
  end
59
55
 
60
56
  register_url ContextIO::ConnectTokenCollection do |connect_tokens|
@@ -1,6 +1,6 @@
1
1
  class ContextIO
2
2
  # @private
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
 
5
5
  # The gem version.
6
6
  #
@@ -20,11 +20,11 @@ describe ContextIO::API::URLBuilder do
20
20
  let(:account) { double('account', id: 'account_id') }
21
21
  let(:resource) { ContextIO::ConnectToken.new(api, token: 'token', account: account) }
22
22
 
23
- it { should eq('accounts/account_id/connect_tokens/token') }
23
+ it { should eq('connect_tokens/token') }
24
24
  end
25
25
 
26
26
  context "without an account" do
27
- let(:resource) { ContextIO::ConnectToken.new(api, token: 'token', api_attributes: { 'account' => { } }) }
27
+ let(:resource) { ContextIO::ConnectToken.new(api, token: 'token') }
28
28
 
29
29
  it { should eq('connect_tokens/token') }
30
30
  end
@@ -38,7 +38,7 @@ describe ContextIO::API::URLBuilder do
38
38
  it { should eq('accounts/account_id/connect_tokens') }
39
39
  end
40
40
 
41
- context "wiehout an account" do
41
+ context "without an account" do
42
42
  let(:resource) { ContextIO::ConnectTokenCollection.new(api) }
43
43
 
44
44
  it { should eq('connect_tokens') }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contextio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-12 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth