contextio 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +4 -0
- data/.gitignore +8 -0
- data/.rspec +1 -0
- data/.yardopts +1 -0
- data/ChangeLog.md +5 -0
- data/Gemfile +3 -0
- data/LICENSE.md +20 -0
- data/README.md +62 -22
- data/Rakefile +46 -36
- data/contextio.gemspec +30 -0
- data/lib/contextio.rb +69 -583
- data/lib/contextio/account.rb +132 -0
- data/lib/contextio/account_collection.rb +57 -0
- data/lib/contextio/account_sync_data.rb +22 -0
- data/lib/contextio/api.rb +162 -0
- data/lib/contextio/api/association_helpers.rb +17 -0
- data/lib/contextio/api/resource.rb +230 -0
- data/lib/contextio/api/resource_collection.rb +174 -0
- data/lib/contextio/api/url_builder.rb +153 -0
- data/lib/contextio/body_part.rb +45 -0
- data/lib/contextio/body_part_collection.rb +13 -0
- data/lib/contextio/connect_token.rb +57 -0
- data/lib/contextio/connect_token_collection.rb +44 -0
- data/lib/contextio/contact.rb +43 -0
- data/lib/contextio/contact_collection.rb +21 -0
- data/lib/contextio/email_address.rb +53 -0
- data/lib/contextio/email_address_collection.rb +21 -0
- data/lib/contextio/email_settings.rb +146 -0
- data/lib/contextio/file.rb +92 -0
- data/lib/contextio/file_collection.rb +13 -0
- data/lib/contextio/folder.rb +56 -0
- data/lib/contextio/folder_collection.rb +18 -0
- data/lib/contextio/folder_sync_data.rb +32 -0
- data/lib/contextio/message.rb +96 -0
- data/lib/contextio/message_collection.rb +35 -0
- data/lib/contextio/oauth_provider.rb +29 -0
- data/lib/contextio/oauth_provider_collection.rb +46 -0
- data/lib/contextio/source.rb +55 -0
- data/lib/contextio/source_collection.rb +41 -0
- data/lib/contextio/source_sync_data.rb +23 -0
- data/lib/contextio/thread.rb +15 -0
- data/lib/contextio/thread_collection.rb +25 -0
- data/lib/contextio/version.rb +11 -0
- data/lib/contextio/webhook.rb +39 -0
- data/lib/contextio/webhook_collection.rb +26 -0
- data/spec/config.yml.example +3 -0
- data/spec/contextio/account_collection_spec.rb +78 -0
- data/spec/contextio/account_spec.rb +52 -0
- data/spec/contextio/api/association_helpers_spec.rb +28 -0
- data/spec/contextio/api/resource_collection_spec.rb +286 -0
- data/spec/contextio/api/resource_spec.rb +467 -0
- data/spec/contextio/api/url_builder_spec.rb +78 -0
- data/spec/contextio/api_spec.rb +123 -0
- data/spec/contextio/connect_token_collection_spec.rb +74 -0
- data/spec/contextio/connect_token_spec.rb +58 -0
- data/spec/contextio/email_settings_spec.rb +112 -0
- data/spec/contextio/oauth_provider_collection_spec.rb +36 -0
- data/spec/contextio/oauth_provider_spec.rb +120 -0
- data/spec/contextio/source_collection_spec.rb +57 -0
- data/spec/contextio/source_spec.rb +52 -0
- data/spec/contextio/version_spec.rb +10 -0
- data/spec/contextio_spec.rb +64 -0
- data/spec/spec_helper.rb +17 -0
- metadata +234 -12
- data/README.textile +0 -29
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contextio/oauth_provider_collection'
|
3
|
+
|
4
|
+
describe ContextIO::OAuthProviderCollection do
|
5
|
+
let(:api) { double('API', url_for: 'url from api') }
|
6
|
+
|
7
|
+
subject { ContextIO::OAuthProviderCollection.new(api) }
|
8
|
+
|
9
|
+
describe "#create" do
|
10
|
+
before do
|
11
|
+
api.stub(:request).with(:post, anything, anything).and_return({ provider_consumer_key: 'test_key' })
|
12
|
+
end
|
13
|
+
|
14
|
+
it "posts to the api" do
|
15
|
+
api.should_receive(:request).with(
|
16
|
+
:post,
|
17
|
+
'url from api',
|
18
|
+
type: 'GMAIL',
|
19
|
+
provider_consumer_key: 'test_key',
|
20
|
+
provider_consumer_secret: 'test_secret'
|
21
|
+
)
|
22
|
+
|
23
|
+
subject.create('GMAIL', 'test_key', 'test_secret')
|
24
|
+
end
|
25
|
+
|
26
|
+
it "doesn't make any more API requests than it needs to" do
|
27
|
+
api.should_receive(:request).exactly(:once)
|
28
|
+
|
29
|
+
subject.create('GMAIL', 'test_key', 'test_secret')
|
30
|
+
end
|
31
|
+
|
32
|
+
it "returns an OAuthProvider" do
|
33
|
+
expect(subject.create('GMAIL', 'test_key', 'test_secret')).to be_a(ContextIO::OAuthProvider)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contextio/oauth_provider'
|
3
|
+
|
4
|
+
describe ContextIO::OAuthProvider do
|
5
|
+
let(:api) { double('API', url_for: 'url from api') }
|
6
|
+
|
7
|
+
describe ".new" do
|
8
|
+
subject { ContextIO::OAuthProvider.new(api, resource_url: 'bar', baz: 'bot') }
|
9
|
+
|
10
|
+
it "takes an api handle" do
|
11
|
+
expect(subject.api).to eq(api)
|
12
|
+
end
|
13
|
+
|
14
|
+
it "assigns instance variables for hash arguments" do
|
15
|
+
expect(subject.instance_variable_get('@resource_url')).to eq('bar')
|
16
|
+
expect(subject.instance_variable_get('@baz')).to eq('bot')
|
17
|
+
end
|
18
|
+
|
19
|
+
context "with a provider_consumer_key passed in" do
|
20
|
+
it "doesn't raise an error" do
|
21
|
+
expect { ContextIO::OAuthProvider.new(api, provider_consumer_key: 'foo') }.to_not raise_error
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
context "with neither a provider_consumer_key nor a resource_url passed in" do
|
26
|
+
it "raises an ArgumentError" do
|
27
|
+
expect { ContextIO::OAuthProvider.new(api, foo: 'bar') }.to raise_error(ArgumentError)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe "#resource_url" do
|
33
|
+
context "when input at creation" do
|
34
|
+
subject { ContextIO::OAuthProvider.new(api, resource_url: 'http://example.com') }
|
35
|
+
|
36
|
+
it "uses the input URL" do
|
37
|
+
expect(subject.resource_url).to eq('http://example.com')
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context "when not input at creation" do
|
42
|
+
subject { ContextIO::OAuthProvider.new(api, provider_consumer_key: '1234') }
|
43
|
+
|
44
|
+
it "asks the api for a URL" do
|
45
|
+
api.should_receive(:url_for).with(subject)
|
46
|
+
|
47
|
+
subject.resource_url
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe "#provider_consumer_key" do
|
53
|
+
context "when input at creation" do
|
54
|
+
subject { ContextIO::OAuthProvider.new(api, provider_consumer_key: '1234') }
|
55
|
+
|
56
|
+
it "uses the input key" do
|
57
|
+
api.should_not_receive(:request)
|
58
|
+
|
59
|
+
expect(subject.provider_consumer_key).to eq('1234')
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
context "when not input at creation" do
|
64
|
+
subject { ContextIO::OAuthProvider.new(api, resource_url: 'http://example.com/hitme') }
|
65
|
+
|
66
|
+
it "loads it from the API" do
|
67
|
+
api.should_receive(:request).with(
|
68
|
+
:get,
|
69
|
+
'http://example.com/hitme'
|
70
|
+
).and_return({
|
71
|
+
'provider_consumer_key' => 'baphoo'
|
72
|
+
})
|
73
|
+
|
74
|
+
expect(subject.provider_consumer_key).to eq('baphoo')
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
describe "#provider_consumer_secret" do
|
80
|
+
context "when input at creation" do
|
81
|
+
subject { ContextIO::OAuthProvider.new(api, provider_consumer_key: '1234', provider_consumer_secret: '0987') }
|
82
|
+
|
83
|
+
it "uses the input provider_consumer_secret" do
|
84
|
+
api.should_not_receive(:request)
|
85
|
+
|
86
|
+
expect(subject.provider_consumer_secret).to eq('0987')
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
context "when not input at creation" do
|
91
|
+
subject { ContextIO::OAuthProvider.new(api, provider_consumer_key: '1234') }
|
92
|
+
|
93
|
+
it "loads it from the API" do
|
94
|
+
api.should_receive(:request).with(:get, anything).and_return({ 'provider_consumer_secret' => '1029' })
|
95
|
+
expect(subject.provider_consumer_secret).to eq('1029')
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
describe "#type" do
|
101
|
+
context "when input at creation" do
|
102
|
+
subject { ContextIO::OAuthProvider.new(api, provider_consumer_key: '1234', type: 'GMAIL') }
|
103
|
+
|
104
|
+
it "uses the input type" do
|
105
|
+
api.should_not_receive(:request)
|
106
|
+
|
107
|
+
expect(subject.type).to eq('GMAIL')
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
context "when not input at creation" do
|
112
|
+
subject { ContextIO::OAuthProvider.new(api, provider_consumer_key: '1234') }
|
113
|
+
|
114
|
+
it "loads it from the API" do
|
115
|
+
api.should_receive(:request).with(:get, anything).and_return({ 'type' => 'GOOGLEAPPSMARKETPLACE' })
|
116
|
+
expect(subject.type).to eq('GOOGLEAPPSMARKETPLACE')
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contextio/source_collection'
|
3
|
+
|
4
|
+
describe ContextIO::SourceCollection do
|
5
|
+
let(:api) { double('api', url_for: 'url from api') }
|
6
|
+
|
7
|
+
subject { ContextIO::SourceCollection.new(api) }
|
8
|
+
|
9
|
+
describe "#create" do
|
10
|
+
before do
|
11
|
+
api.stub(:request).with(:post, anything, anything).and_return(
|
12
|
+
'success' => true,
|
13
|
+
'resource_url' => 'resource_url'
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
it "posts to the api" do
|
18
|
+
api.should_receive(:request).with(
|
19
|
+
:post,
|
20
|
+
'url from api',
|
21
|
+
anything
|
22
|
+
)
|
23
|
+
|
24
|
+
subject.create('hello@gmail.com', 'imap.email.com', 'hello', true, 993, 'IMAP')
|
25
|
+
end
|
26
|
+
|
27
|
+
it "converts boolean to number string for ssl" do
|
28
|
+
api.should_receive(:request).with(
|
29
|
+
anything,
|
30
|
+
anything,
|
31
|
+
hash_including('use_ssl' => '1')
|
32
|
+
)
|
33
|
+
|
34
|
+
subject.create('hello@gmail.com', 'imap.email.com', 'hello', true, 993, 'IMAP')
|
35
|
+
end
|
36
|
+
|
37
|
+
it "converts integer to number string for port" do
|
38
|
+
api.should_receive(:request).with(
|
39
|
+
anything,
|
40
|
+
anything,
|
41
|
+
hash_including('port' => '993')
|
42
|
+
)
|
43
|
+
|
44
|
+
subject.create('hello@gmail.com', 'imap.email.com', 'hello', true, 993, 'IMAP')
|
45
|
+
end
|
46
|
+
|
47
|
+
it "doesn't make any more API calls than it needs to" do
|
48
|
+
api.should_not_receive(:request).with(:get, anything, anything)
|
49
|
+
|
50
|
+
subject.create('hello@gmail.com', 'imap.email.com', 'hello', true, 993, 'IMAP')
|
51
|
+
end
|
52
|
+
|
53
|
+
it "returns a Source" do
|
54
|
+
expect(subject.create('hello@gmail.com', 'imap.email.com', 'hello', true, 993, 'IMAP')).to be_a(ContextIO::Source)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contextio/source'
|
3
|
+
|
4
|
+
describe ContextIO::Source do
|
5
|
+
let(:api) { double('api') }
|
6
|
+
|
7
|
+
subject { ContextIO::Source.new(api, resource_url: 'resource url') }
|
8
|
+
|
9
|
+
describe ".new" do
|
10
|
+
context "with a label passed in" do
|
11
|
+
it "doesn't raise an error" do
|
12
|
+
expect { ContextIO::Source.new(api, label: '1234') }.to_not raise_error
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "with neither a label nor a resource_url passed in" do
|
17
|
+
it "raise an ArgumentError" do
|
18
|
+
expect { ContextIO::Source.new(api, foo: 'bar') }.to raise_error(ArgumentError)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "#update" do
|
24
|
+
before do
|
25
|
+
api.stub(:request).and_return({'success' => true})
|
26
|
+
end
|
27
|
+
|
28
|
+
subject { ContextIO::Source.new(api, resource_url: 'resource_url', sync_period: '1h') }
|
29
|
+
|
30
|
+
it "posts to the api" do
|
31
|
+
api.should_receive(:request).with(
|
32
|
+
:post,
|
33
|
+
'resource_url',
|
34
|
+
sync_period: '4h'
|
35
|
+
)
|
36
|
+
|
37
|
+
subject.update(sync_period: '4h')
|
38
|
+
end
|
39
|
+
|
40
|
+
it "updates the object" do
|
41
|
+
subject.update(sync_period: '4h')
|
42
|
+
|
43
|
+
expect(subject.sync_period).to eq('4h')
|
44
|
+
end
|
45
|
+
|
46
|
+
it "doesn't make any more API calls than it needs to" do
|
47
|
+
api.should_not_receive(:request).with(:get, anything, anything)
|
48
|
+
|
49
|
+
subject.update(sync_period: '4h')
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contextio'
|
3
|
+
|
4
|
+
describe ContextIO do
|
5
|
+
subject { ContextIO.new(nil, nil) }
|
6
|
+
|
7
|
+
describe ".new" do
|
8
|
+
it "creates a new API handle" do
|
9
|
+
expect(ContextIO.new(nil, nil).api).to be_a(ContextIO::API)
|
10
|
+
end
|
11
|
+
|
12
|
+
it "passes credentials to its API handle" do
|
13
|
+
api = ContextIO.new('1234', '0987').api
|
14
|
+
expect(api.key).to eq('1234')
|
15
|
+
expect(api.secret).to eq('0987')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe "#oauth_providers" do
|
20
|
+
it "returns a new OAuthProviderCollection" do
|
21
|
+
expect(subject.oauth_providers).to be_a(ContextIO::OAuthProviderCollection)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "passes its API handle to the OAuthProviderCollection" do
|
25
|
+
expect(subject.oauth_providers.api).to eq(subject.api)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "#accounts" do
|
30
|
+
it "returns a new AccountCollection" do
|
31
|
+
expect(subject.accounts).to be_a(ContextIO::AccountCollection)
|
32
|
+
end
|
33
|
+
|
34
|
+
it "passes its API handle to the AccountCollection" do
|
35
|
+
expect(subject.accounts.api).to eq(subject.api)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe "#connect_tokens" do
|
40
|
+
it "returns a new ConnectTokenCollection" do
|
41
|
+
expect(subject.connect_tokens).to be_a(ContextIO::ConnectTokenCollection)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "passes its API handle to the ConnectTokenCollection" do
|
45
|
+
expect(subject.connect_tokens.api).to eq(subject.api)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
describe "#email_settings_for" do
|
50
|
+
subject { ContextIO.new(nil, nil).email_settings_for('email@address.com') }
|
51
|
+
|
52
|
+
it "returns a new EmailSettings" do
|
53
|
+
expect(subject).to be_a(ContextIO::EmailSettings)
|
54
|
+
end
|
55
|
+
|
56
|
+
it "passes its API handle to the EmailSettings" do
|
57
|
+
expect(subject.api).to eq(subject.api)
|
58
|
+
end
|
59
|
+
|
60
|
+
it "passes the email address to the EmailSettings" do
|
61
|
+
expect(subject.email).to eq('email@address.com')
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'pry'
|
3
|
+
require 'fakeweb'
|
4
|
+
|
5
|
+
RSpec.configure do |rspec|
|
6
|
+
rspec.run_all_when_everything_filtered = true
|
7
|
+
rspec.treat_symbols_as_metadata_keys_with_true_values = true
|
8
|
+
rspec.filter_run_including :focus
|
9
|
+
rspec.order = 'rand'
|
10
|
+
rspec.color = true
|
11
|
+
|
12
|
+
rspec.expect_with :rspec do |expectations|
|
13
|
+
expectations.syntax = :expect
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
FakeWeb.allow_net_connect = false
|
metadata
CHANGED
@@ -1,29 +1,233 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contextio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
9
|
-
- Dominik Gehl
|
8
|
+
- Ben Hamill
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2012-
|
14
|
-
dependencies:
|
12
|
+
date: 2012-12-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: oauth
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.4.5
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.4.5
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: bundler
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rubygems-tasks
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.2'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.2'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.4'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.4'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rake
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: yard
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: redcarpet
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: pry-doc
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: fakeweb
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
15
158
|
description: Provides Ruby interface to Context.IO
|
16
|
-
email:
|
159
|
+
email:
|
160
|
+
- ben@benhamill.com
|
17
161
|
executables: []
|
18
162
|
extensions: []
|
19
163
|
extra_rdoc_files: []
|
20
164
|
files:
|
21
|
-
-
|
22
|
-
-
|
165
|
+
- .document
|
166
|
+
- .gitignore
|
167
|
+
- .rspec
|
168
|
+
- .yardopts
|
169
|
+
- ChangeLog.md
|
170
|
+
- Gemfile
|
171
|
+
- LICENSE.md
|
23
172
|
- README.md
|
24
|
-
-
|
25
|
-
|
26
|
-
|
173
|
+
- Rakefile
|
174
|
+
- contextio.gemspec
|
175
|
+
- lib/contextio.rb
|
176
|
+
- lib/contextio/account.rb
|
177
|
+
- lib/contextio/account_collection.rb
|
178
|
+
- lib/contextio/account_sync_data.rb
|
179
|
+
- lib/contextio/api.rb
|
180
|
+
- lib/contextio/api/association_helpers.rb
|
181
|
+
- lib/contextio/api/resource.rb
|
182
|
+
- lib/contextio/api/resource_collection.rb
|
183
|
+
- lib/contextio/api/url_builder.rb
|
184
|
+
- lib/contextio/body_part.rb
|
185
|
+
- lib/contextio/body_part_collection.rb
|
186
|
+
- lib/contextio/connect_token.rb
|
187
|
+
- lib/contextio/connect_token_collection.rb
|
188
|
+
- lib/contextio/contact.rb
|
189
|
+
- lib/contextio/contact_collection.rb
|
190
|
+
- lib/contextio/email_address.rb
|
191
|
+
- lib/contextio/email_address_collection.rb
|
192
|
+
- lib/contextio/email_settings.rb
|
193
|
+
- lib/contextio/file.rb
|
194
|
+
- lib/contextio/file_collection.rb
|
195
|
+
- lib/contextio/folder.rb
|
196
|
+
- lib/contextio/folder_collection.rb
|
197
|
+
- lib/contextio/folder_sync_data.rb
|
198
|
+
- lib/contextio/message.rb
|
199
|
+
- lib/contextio/message_collection.rb
|
200
|
+
- lib/contextio/oauth_provider.rb
|
201
|
+
- lib/contextio/oauth_provider_collection.rb
|
202
|
+
- lib/contextio/source.rb
|
203
|
+
- lib/contextio/source_collection.rb
|
204
|
+
- lib/contextio/source_sync_data.rb
|
205
|
+
- lib/contextio/thread.rb
|
206
|
+
- lib/contextio/thread_collection.rb
|
207
|
+
- lib/contextio/version.rb
|
208
|
+
- lib/contextio/webhook.rb
|
209
|
+
- lib/contextio/webhook_collection.rb
|
210
|
+
- spec/config.yml.example
|
211
|
+
- spec/contextio/account_collection_spec.rb
|
212
|
+
- spec/contextio/account_spec.rb
|
213
|
+
- spec/contextio/api/association_helpers_spec.rb
|
214
|
+
- spec/contextio/api/resource_collection_spec.rb
|
215
|
+
- spec/contextio/api/resource_spec.rb
|
216
|
+
- spec/contextio/api/url_builder_spec.rb
|
217
|
+
- spec/contextio/api_spec.rb
|
218
|
+
- spec/contextio/connect_token_collection_spec.rb
|
219
|
+
- spec/contextio/connect_token_spec.rb
|
220
|
+
- spec/contextio/email_settings_spec.rb
|
221
|
+
- spec/contextio/oauth_provider_collection_spec.rb
|
222
|
+
- spec/contextio/oauth_provider_spec.rb
|
223
|
+
- spec/contextio/source_collection_spec.rb
|
224
|
+
- spec/contextio/source_spec.rb
|
225
|
+
- spec/contextio/version_spec.rb
|
226
|
+
- spec/contextio_spec.rb
|
227
|
+
- spec/spec_helper.rb
|
228
|
+
homepage: https://github.com/contextio/contextio-ruby#readme
|
229
|
+
licenses:
|
230
|
+
- MIT
|
27
231
|
post_install_message:
|
28
232
|
rdoc_options: []
|
29
233
|
require_paths:
|
@@ -46,5 +250,23 @@ rubygems_version: 1.8.23
|
|
46
250
|
signing_key:
|
47
251
|
specification_version: 3
|
48
252
|
summary: Provides interface to Context.IO
|
49
|
-
test_files:
|
253
|
+
test_files:
|
254
|
+
- spec/config.yml.example
|
255
|
+
- spec/contextio/account_collection_spec.rb
|
256
|
+
- spec/contextio/account_spec.rb
|
257
|
+
- spec/contextio/api/association_helpers_spec.rb
|
258
|
+
- spec/contextio/api/resource_collection_spec.rb
|
259
|
+
- spec/contextio/api/resource_spec.rb
|
260
|
+
- spec/contextio/api/url_builder_spec.rb
|
261
|
+
- spec/contextio/api_spec.rb
|
262
|
+
- spec/contextio/connect_token_collection_spec.rb
|
263
|
+
- spec/contextio/connect_token_spec.rb
|
264
|
+
- spec/contextio/email_settings_spec.rb
|
265
|
+
- spec/contextio/oauth_provider_collection_spec.rb
|
266
|
+
- spec/contextio/oauth_provider_spec.rb
|
267
|
+
- spec/contextio/source_collection_spec.rb
|
268
|
+
- spec/contextio/source_spec.rb
|
269
|
+
- spec/contextio/version_spec.rb
|
270
|
+
- spec/contextio_spec.rb
|
271
|
+
- spec/spec_helper.rb
|
50
272
|
has_rdoc:
|