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 +4 -0
- data/lib/contextio/api/url_builder.rb +1 -5
- data/lib/contextio/version.rb +1 -1
- data/spec/contextio/api/url_builder_spec.rb +3 -3
- metadata +2 -2
data/CHANGES.md
CHANGED
@@ -50,11 +50,7 @@ class ContextIO
|
|
50
50
|
end
|
51
51
|
|
52
52
|
register_url ContextIO::ConnectToken do |connect_token|
|
53
|
-
|
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|
|
data/lib/contextio/version.rb
CHANGED
@@ -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('
|
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'
|
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 "
|
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.
|
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
|
+
date: 2013-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth
|