tokyo_api 1.3.0 → 1.6.0
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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +9 -6
- data/README.md +1 -1
- data/Rakefile +12 -12
- data/VERSION +1 -1
- data/example.rb +3 -2
- data/lib/tokyo_api.rb +2 -2
- data/lib/tokyo_api/actionkit.rb +4 -4
- data/lib/tokyo_api/base.rb +4 -2
- data/lib/tokyo_api/campact.rb +16 -18
- data/lib/tokyo_api/client.rb +21 -22
- data/lib/tokyo_api/expire.rb +3 -1
- data/lib/tokyo_api/identity.rb +18 -23
- data/spec/actionkit_spec.rb +14 -8
- data/spec/campact_spec.rb +73 -18
- data/spec/client_spec.rb +21 -9
- data/spec/expire_spec.rb +8 -6
- data/spec/identity_spec.rb +43 -29
- data/spec/spec_helper.rb +5 -3
- data/spec/tokyo_api_spec.rb +4 -4
- data/tokyo_api.gemspec +19 -22
- metadata +26 -19
- data/Gemfile.lock +0 -107
- data/lib/tokyo_api/bluestatedigital.rb +0 -19
- data/lib/tokyo_api/krautbuster.rb +0 -43
- data/spec/bluestatedigital_spec.rb +0 -58
- data/spec/fixtures/responses/bluestatedigital/full_user_success +0 -1
- data/spec/krautbuster_spec.rb +0 -112
data/spec/client_spec.rb
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
describe TokyoApi::Client do
|
|
6
|
+
describe 'initialisation' do
|
|
6
7
|
subject { described_class.new(options) }
|
|
7
8
|
|
|
8
|
-
context '
|
|
9
|
-
let(:options) { { :
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
context 'with a basic_auth string parameter' do
|
|
10
|
+
let(:options) { { basic_auth: 'login:password' } }
|
|
11
|
+
|
|
12
|
+
it 'should set username/password on the configuration' do
|
|
13
|
+
config = subject.connection.configuration
|
|
14
|
+
expect(config.username).to eq 'login'
|
|
15
|
+
expect(config.password).to eq 'password'
|
|
16
|
+
end
|
|
13
17
|
end
|
|
14
18
|
|
|
19
|
+
context 'with a timeout' do
|
|
20
|
+
let(:options) { { timeout: 5 } }
|
|
21
|
+
|
|
22
|
+
it 'should set the timeout on the faraday options' do
|
|
23
|
+
config = subject.connection.configuration
|
|
24
|
+
expect(config.faraday_options[:request][:timeout]).to eq 5
|
|
25
|
+
end
|
|
26
|
+
end
|
|
15
27
|
end
|
|
16
|
-
end
|
|
28
|
+
end
|
data/spec/expire_spec.rb
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
|
|
2
4
|
|
|
3
5
|
describe TokyoApi::Expire do
|
|
4
6
|
subject { TokyoApi.new(host: 'test.com') }
|
|
@@ -8,16 +10,16 @@ describe TokyoApi::Expire do
|
|
|
8
10
|
let(:request_path) { '/expire/organisation/foo.com' }
|
|
9
11
|
|
|
10
12
|
before(:each) do
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
stub_get(request_path).to_return(body: body, status: status,
|
|
14
|
+
headers: { content_type: 'application/json; charset=utf-8' })
|
|
13
15
|
end
|
|
14
16
|
|
|
15
17
|
describe 'success' do
|
|
16
|
-
let(:status) { 200 }
|
|
18
|
+
let(:status) { 200 }
|
|
17
19
|
|
|
18
20
|
it 'should find an organisation' do
|
|
19
|
-
expect(subject.expire.organisation('foo.com')).to eq({'status' => 'success'})
|
|
21
|
+
expect(subject.expire.organisation('foo.com')).to eq({ 'status' => 'success' })
|
|
20
22
|
end
|
|
21
23
|
end
|
|
22
24
|
end
|
|
23
|
-
end
|
|
25
|
+
end
|
data/spec/identity_spec.rb
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
|
|
2
4
|
|
|
3
5
|
describe TokyoApi::Identity do
|
|
4
6
|
subject { TokyoApi.new(host: 'test.com') }
|
|
@@ -15,15 +17,15 @@ describe TokyoApi::Identity do
|
|
|
15
17
|
let(:status) { 200 }
|
|
16
18
|
|
|
17
19
|
before(:each) do
|
|
18
|
-
stub_get(request_path).to_return(:
|
|
19
|
-
:
|
|
20
|
+
stub_get(request_path).to_return(body: body, status: status,
|
|
21
|
+
headers: { content_type: 'application/json; charset=utf-8' })
|
|
20
22
|
end
|
|
21
23
|
|
|
22
24
|
describe 'error' do
|
|
23
25
|
let(:body) { fixture('responses/full_user_error') }
|
|
24
26
|
|
|
25
27
|
it 'should return an error hash' do
|
|
26
|
-
expect(subject.identity.full_user('1')).to eq({'error' => 'Connection refused'})
|
|
28
|
+
expect(subject.identity.full_user('1')).to eq({ 'error' => 'Connection refused' })
|
|
27
29
|
end
|
|
28
30
|
end
|
|
29
31
|
|
|
@@ -31,8 +33,8 @@ describe TokyoApi::Identity do
|
|
|
31
33
|
let(:body) { fixture('responses/identity/full_user_success') }
|
|
32
34
|
|
|
33
35
|
it 'should return a hash' do
|
|
34
|
-
expect(subject.identity.full_user('1')).to eq({'first_name' => 'Homer', 'last_name' => 'Simpson',
|
|
35
|
-
|
|
36
|
+
expect(subject.identity.full_user('1')).to eq({ 'first_name' => 'Homer', 'last_name' => 'Simpson',
|
|
37
|
+
'country' => 'GB', 'postal' => '12345', 'email' => 'foo@bar.com' })
|
|
36
38
|
end
|
|
37
39
|
end
|
|
38
40
|
end
|
|
@@ -46,52 +48,60 @@ describe TokyoApi::Identity do
|
|
|
46
48
|
|
|
47
49
|
context 'with required_fields' do
|
|
48
50
|
it 'should return rooted relative path to tokyo user API endpoint' do
|
|
49
|
-
expect(subject.identity.tokyo_identity_user_path('-123456',
|
|
51
|
+
expect(subject.identity.tokyo_identity_user_path('-123456',
|
|
52
|
+
required_fields: %i[first_name last_name email postal
|
|
53
|
+
phone])).to eq('/identity/user/-123456?required_fields=first_name,last_name,email,postal,phone')
|
|
50
54
|
end
|
|
51
55
|
|
|
52
56
|
it 'should url-escape field names with weird characters' do
|
|
53
|
-
expect(subject.identity.tokyo_identity_user_path('-123456',
|
|
57
|
+
expect(subject.identity.tokyo_identity_user_path('-123456',
|
|
58
|
+
required_fields: ['email',
|
|
59
|
+
'fish & chips'])).to eq('/identity/user/-123456?required_fields=email,fish+%26+chips')
|
|
54
60
|
end
|
|
55
61
|
end
|
|
56
62
|
|
|
57
63
|
context 'with_subscription_status and associated arguments' do
|
|
58
64
|
it 'should not include query string parameter if argument is missing' do
|
|
59
|
-
expect(subject.identity.tokyo_identity_user_path('123abc456')).not_to match
|
|
65
|
+
expect(subject.identity.tokyo_identity_user_path('123abc456')).not_to match(/.+with_subscription_status=.+/)
|
|
60
66
|
end
|
|
61
67
|
|
|
62
68
|
it 'should not include query string parameter if argument is false' do
|
|
63
|
-
expect(subject.identity.tokyo_identity_user_path('123abc456',
|
|
69
|
+
expect(subject.identity.tokyo_identity_user_path('123abc456',
|
|
70
|
+
with_subscription_status: false)).not_to match(/.+with_subscription_status=.+/)
|
|
64
71
|
end
|
|
65
72
|
|
|
66
73
|
it 'should not include opt_in_public_ids and minimum_consent_level if with_subscription_status is false' do
|
|
67
74
|
tokyo_path = subject.identity.tokyo_identity_user_path('123abc456',
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
with_subscription_status: false,
|
|
76
|
+
opt_in_public_ids: ['policy-1.5'],
|
|
77
|
+
minimum_consent_level: 'explicit')
|
|
71
78
|
|
|
72
|
-
expect(tokyo_path).not_to match
|
|
73
|
-
expect(tokyo_path).not_to match
|
|
79
|
+
expect(tokyo_path).not_to match(/.+opt_in_public_ids=.+/)
|
|
80
|
+
expect(tokyo_path).not_to match(/.+minimum_consent_level=.+/)
|
|
74
81
|
end
|
|
75
82
|
|
|
76
83
|
it 'should include query string parameter if argument is true' do
|
|
77
|
-
expect(subject.identity.tokyo_identity_user_path('123abc456',
|
|
84
|
+
expect(subject.identity.tokyo_identity_user_path('123abc456',
|
|
85
|
+
with_subscription_status: true)).to match(/.+with_subscription_status=.+/)
|
|
78
86
|
end
|
|
79
87
|
|
|
80
88
|
it 'should include encrypted parameter if argument is true' do
|
|
81
|
-
expect(subject.identity.tokyo_identity_user_path('123abc456', with_subscription_status: true,
|
|
89
|
+
expect(subject.identity.tokyo_identity_user_path('123abc456', with_subscription_status: true,
|
|
90
|
+
encrypted: true)).to match(/.+encrypted=.+/)
|
|
82
91
|
end
|
|
83
92
|
|
|
84
93
|
it 'should include opt_in_public_ids and minimum_consent_level if with_subscription_status is true' do
|
|
85
94
|
tokyo_path = subject.identity.tokyo_identity_user_path('123abc456',
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
expect(tokyo_path).to match
|
|
93
|
-
expect(tokyo_path).to match
|
|
94
|
-
expect
|
|
95
|
+
required_fields: %i[first_name last_name email
|
|
96
|
+
postal phone],
|
|
97
|
+
with_subscription_status: true,
|
|
98
|
+
opt_in_public_ids: ['policy-1.5'],
|
|
99
|
+
minimum_consent_level: 'explicit')
|
|
100
|
+
|
|
101
|
+
expect(tokyo_path).to match(/.+with_subscription_status=true.*/)
|
|
102
|
+
expect(tokyo_path).to match(/.+opt_in_public_ids=.+/)
|
|
103
|
+
expect(tokyo_path).to match(/.+minimum_consent_level=.+/)
|
|
104
|
+
expect { URI.parse(tokyo_path) }.not_to raise_error
|
|
95
105
|
end
|
|
96
106
|
end
|
|
97
107
|
end
|
|
@@ -103,17 +113,21 @@ describe TokyoApi::Identity do
|
|
|
103
113
|
|
|
104
114
|
it 'should return correct path for a list of public ids' do
|
|
105
115
|
expected_path = '/identity/subscription_status/abc123?opt_in_public_ids=policy-1.5%2Cpolicy-1.6'
|
|
106
|
-
expect(subject.identity.subscription_status_path('abc123',
|
|
116
|
+
expect(subject.identity.subscription_status_path('abc123',
|
|
117
|
+
opt_in_public_ids: ['policy-1.5',
|
|
118
|
+
'policy-1.6'])).to eq expected_path
|
|
107
119
|
end
|
|
108
120
|
|
|
109
121
|
it 'should support minimum_consent_level' do
|
|
110
122
|
expected_path = '/identity/subscription_status/abc123?opt_in_public_ids=policy-1.5&minimum_consent_level=explicit'
|
|
111
|
-
expect(subject.identity.subscription_status_path('abc123', opt_in_public_ids: ['policy-1.5'],
|
|
123
|
+
expect(subject.identity.subscription_status_path('abc123', opt_in_public_ids: ['policy-1.5'],
|
|
124
|
+
minimum_consent_level: 'explicit')).to eq expected_path
|
|
112
125
|
end
|
|
113
126
|
|
|
114
127
|
it 'should support encrypted param' do
|
|
115
128
|
expected_path = '/identity/subscription_status/abc123?opt_in_public_ids=policy-1.5&minimum_consent_level=explicit&encrypted=1'
|
|
116
|
-
expect(subject.identity.subscription_status_path('abc123', opt_in_public_ids: ['policy-1.5'],
|
|
129
|
+
expect(subject.identity.subscription_status_path('abc123', opt_in_public_ids: ['policy-1.5'],
|
|
130
|
+
minimum_consent_level: 'explicit', encrypted: true)).to eq expected_path
|
|
117
131
|
end
|
|
118
132
|
end
|
|
119
133
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
2
4
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
3
5
|
require 'rspec'
|
|
@@ -6,12 +8,12 @@ require 'tokyo_api'
|
|
|
6
8
|
|
|
7
9
|
# Requires supporting files with custom matchers and macros, etc,
|
|
8
10
|
# in ./support/ and its subdirectories.
|
|
9
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
|
|
10
12
|
|
|
11
13
|
RSpec.configure do |config|
|
|
12
14
|
config.include WebMock::API
|
|
13
15
|
config.color = true
|
|
14
|
-
#config.raise_errors_for_deprecations!
|
|
16
|
+
# config.raise_errors_for_deprecations!
|
|
15
17
|
end
|
|
16
18
|
|
|
17
19
|
def stub_get(path)
|
|
@@ -29,7 +31,7 @@ def stub_tokyo_request(method, path)
|
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
def fixture_path
|
|
32
|
-
File.expand_path(
|
|
34
|
+
File.expand_path('fixtures', __dir__)
|
|
33
35
|
end
|
|
34
36
|
|
|
35
37
|
def fixture(file)
|
data/spec/tokyo_api_spec.rb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
|
|
2
4
|
|
|
3
5
|
describe TokyoApi do
|
|
4
6
|
before(:each) do
|
|
5
7
|
allow(TokyoApi::Client).to receive(:setup_client)
|
|
6
8
|
end
|
|
7
9
|
specify { expect(subject).to respond_to :actionkit }
|
|
8
|
-
specify { expect(subject.new).to be_a(TokyoApi::Client)}
|
|
10
|
+
specify { expect(subject.new).to be_a(TokyoApi::Client) }
|
|
9
11
|
end
|
|
10
|
-
|
|
11
|
-
|
data/tokyo_api.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: tokyo_api 1.
|
|
5
|
+
# stub: tokyo_api 1.6.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "tokyo_api".freeze
|
|
9
|
-
s.version = "1.
|
|
9
|
+
s.version = "1.6.0"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
|
13
13
|
s.authors = ["Nathan Woodhull".freeze]
|
|
14
|
-
s.date = "
|
|
14
|
+
s.date = "2021-03-24"
|
|
15
15
|
s.description = "Tokyo is a CRM middleware, this gem helps apps talk to it.".freeze
|
|
16
16
|
s.email = "nathan@controlshiftlabs.com".freeze
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -25,7 +25,6 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
".ruby-version",
|
|
26
26
|
".travis.yml",
|
|
27
27
|
"Gemfile",
|
|
28
|
-
"Gemfile.lock",
|
|
29
28
|
"LICENSE.txt",
|
|
30
29
|
"README.md",
|
|
31
30
|
"Rakefile",
|
|
@@ -34,61 +33,59 @@ Gem::Specification.new do |s|
|
|
|
34
33
|
"lib/tokyo_api.rb",
|
|
35
34
|
"lib/tokyo_api/actionkit.rb",
|
|
36
35
|
"lib/tokyo_api/base.rb",
|
|
37
|
-
"lib/tokyo_api/bluestatedigital.rb",
|
|
38
36
|
"lib/tokyo_api/campact.rb",
|
|
39
37
|
"lib/tokyo_api/client.rb",
|
|
40
38
|
"lib/tokyo_api/expire.rb",
|
|
41
39
|
"lib/tokyo_api/identity.rb",
|
|
42
|
-
"lib/tokyo_api/krautbuster.rb",
|
|
43
40
|
"spec/actionkit_spec.rb",
|
|
44
|
-
"spec/bluestatedigital_spec.rb",
|
|
45
41
|
"spec/campact_spec.rb",
|
|
46
42
|
"spec/client_spec.rb",
|
|
47
43
|
"spec/expire_spec.rb",
|
|
48
44
|
"spec/fixtures/expire/success",
|
|
49
45
|
"spec/fixtures/responses/actionkit/full_user_success",
|
|
50
|
-
"spec/fixtures/responses/bluestatedigital/full_user_success",
|
|
51
46
|
"spec/fixtures/responses/campact/full_user_success",
|
|
52
47
|
"spec/fixtures/responses/full_user_error",
|
|
53
48
|
"spec/fixtures/responses/full_user_success",
|
|
54
49
|
"spec/fixtures/responses/identity/full_user_success",
|
|
55
50
|
"spec/fixtures/responses/krautbuster/full_user_success",
|
|
56
51
|
"spec/identity_spec.rb",
|
|
57
|
-
"spec/krautbuster_spec.rb",
|
|
58
52
|
"spec/spec_helper.rb",
|
|
59
53
|
"spec/tokyo_api_spec.rb",
|
|
60
54
|
"tokyo_api.gemspec"
|
|
61
55
|
]
|
|
62
56
|
s.homepage = "http://github.com/controlshift/tokyo_api".freeze
|
|
63
57
|
s.licenses = ["MIT".freeze]
|
|
64
|
-
s.rubygems_version = "
|
|
58
|
+
s.rubygems_version = "3.0.8".freeze
|
|
65
59
|
s.summary = "Ruby API Wrapper for Tokyo CRM service".freeze
|
|
66
60
|
|
|
67
61
|
if s.respond_to? :specification_version then
|
|
68
62
|
s.specification_version = 4
|
|
69
63
|
|
|
70
64
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
71
|
-
s.add_runtime_dependency(%q<vertebrae>.freeze, [">= 0"])
|
|
72
|
-
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
|
73
|
-
s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
|
|
74
|
-
s.add_development_dependency(%q<byebug>.freeze, [">= 0"])
|
|
65
|
+
s.add_runtime_dependency(%q<vertebrae>.freeze, [">= 0.6.0"])
|
|
75
66
|
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
|
67
|
+
s.add_development_dependency(%q<byebug>.freeze, [">= 0"])
|
|
76
68
|
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
|
|
69
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
|
70
|
+
s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
|
|
71
|
+
s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
|
|
77
72
|
else
|
|
78
|
-
s.add_dependency(%q<vertebrae>.freeze, [">= 0"])
|
|
79
|
-
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
|
80
|
-
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
|
81
|
-
s.add_dependency(%q<byebug>.freeze, [">= 0"])
|
|
73
|
+
s.add_dependency(%q<vertebrae>.freeze, [">= 0.6.0"])
|
|
82
74
|
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
|
75
|
+
s.add_dependency(%q<byebug>.freeze, [">= 0"])
|
|
83
76
|
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
|
77
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
|
78
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
|
79
|
+
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
|
84
80
|
end
|
|
85
81
|
else
|
|
86
|
-
s.add_dependency(%q<vertebrae>.freeze, [">= 0"])
|
|
87
|
-
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
|
88
|
-
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
|
89
|
-
s.add_dependency(%q<byebug>.freeze, [">= 0"])
|
|
82
|
+
s.add_dependency(%q<vertebrae>.freeze, [">= 0.6.0"])
|
|
90
83
|
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
|
84
|
+
s.add_dependency(%q<byebug>.freeze, [">= 0"])
|
|
91
85
|
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
|
86
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
|
87
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
|
88
|
+
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
|
92
89
|
end
|
|
93
90
|
end
|
|
94
91
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tokyo_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Woodhull
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: vertebrae
|
|
@@ -16,16 +16,30 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 0.6.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.6.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bundler
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
37
|
requirements:
|
|
24
38
|
- - ">="
|
|
25
39
|
- !ruby/object:Gem::Version
|
|
26
40
|
version: '0'
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
42
|
+
name: byebug
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
30
44
|
requirements:
|
|
31
45
|
- - ">="
|
|
@@ -39,7 +53,7 @@ dependencies:
|
|
|
39
53
|
- !ruby/object:Gem::Version
|
|
40
54
|
version: '0'
|
|
41
55
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
56
|
+
name: juwelier
|
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
|
44
58
|
requirements:
|
|
45
59
|
- - ">="
|
|
@@ -53,7 +67,7 @@ dependencies:
|
|
|
53
67
|
- !ruby/object:Gem::Version
|
|
54
68
|
version: '0'
|
|
55
69
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
70
|
+
name: rspec
|
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
|
58
72
|
requirements:
|
|
59
73
|
- - ">="
|
|
@@ -67,7 +81,7 @@ dependencies:
|
|
|
67
81
|
- !ruby/object:Gem::Version
|
|
68
82
|
version: '0'
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
84
|
+
name: rubocop
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
|
72
86
|
requirements:
|
|
73
87
|
- - ">="
|
|
@@ -81,7 +95,7 @@ dependencies:
|
|
|
81
95
|
- !ruby/object:Gem::Version
|
|
82
96
|
version: '0'
|
|
83
97
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
98
|
+
name: webmock
|
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
|
86
100
|
requirements:
|
|
87
101
|
- - ">="
|
|
@@ -108,7 +122,6 @@ files:
|
|
|
108
122
|
- ".ruby-version"
|
|
109
123
|
- ".travis.yml"
|
|
110
124
|
- Gemfile
|
|
111
|
-
- Gemfile.lock
|
|
112
125
|
- LICENSE.txt
|
|
113
126
|
- README.md
|
|
114
127
|
- Rakefile
|
|
@@ -117,27 +130,22 @@ files:
|
|
|
117
130
|
- lib/tokyo_api.rb
|
|
118
131
|
- lib/tokyo_api/actionkit.rb
|
|
119
132
|
- lib/tokyo_api/base.rb
|
|
120
|
-
- lib/tokyo_api/bluestatedigital.rb
|
|
121
133
|
- lib/tokyo_api/campact.rb
|
|
122
134
|
- lib/tokyo_api/client.rb
|
|
123
135
|
- lib/tokyo_api/expire.rb
|
|
124
136
|
- lib/tokyo_api/identity.rb
|
|
125
|
-
- lib/tokyo_api/krautbuster.rb
|
|
126
137
|
- spec/actionkit_spec.rb
|
|
127
|
-
- spec/bluestatedigital_spec.rb
|
|
128
138
|
- spec/campact_spec.rb
|
|
129
139
|
- spec/client_spec.rb
|
|
130
140
|
- spec/expire_spec.rb
|
|
131
141
|
- spec/fixtures/expire/success
|
|
132
142
|
- spec/fixtures/responses/actionkit/full_user_success
|
|
133
|
-
- spec/fixtures/responses/bluestatedigital/full_user_success
|
|
134
143
|
- spec/fixtures/responses/campact/full_user_success
|
|
135
144
|
- spec/fixtures/responses/full_user_error
|
|
136
145
|
- spec/fixtures/responses/full_user_success
|
|
137
146
|
- spec/fixtures/responses/identity/full_user_success
|
|
138
147
|
- spec/fixtures/responses/krautbuster/full_user_success
|
|
139
148
|
- spec/identity_spec.rb
|
|
140
|
-
- spec/krautbuster_spec.rb
|
|
141
149
|
- spec/spec_helper.rb
|
|
142
150
|
- spec/tokyo_api_spec.rb
|
|
143
151
|
- tokyo_api.gemspec
|
|
@@ -145,7 +153,7 @@ homepage: http://github.com/controlshift/tokyo_api
|
|
|
145
153
|
licenses:
|
|
146
154
|
- MIT
|
|
147
155
|
metadata: {}
|
|
148
|
-
post_install_message:
|
|
156
|
+
post_install_message:
|
|
149
157
|
rdoc_options: []
|
|
150
158
|
require_paths:
|
|
151
159
|
- lib
|
|
@@ -160,9 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
160
168
|
- !ruby/object:Gem::Version
|
|
161
169
|
version: '0'
|
|
162
170
|
requirements: []
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
signing_key:
|
|
171
|
+
rubygems_version: 3.0.8
|
|
172
|
+
signing_key:
|
|
166
173
|
specification_version: 4
|
|
167
174
|
summary: Ruby API Wrapper for Tokyo CRM service
|
|
168
175
|
test_files: []
|