tijuana_client 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +26 -0
- data/.ruby-version +1 -1
- data/.travis.yml +7 -1
- data/Gemfile +9 -6
- data/Rakefile +15 -15
- data/VERSION +1 -1
- data/lib/tijuana_client.rb +3 -1
- data/lib/tijuana_client/base.rb +3 -1
- data/lib/tijuana_client/client.rb +15 -15
- data/lib/tijuana_client/error_middleware.rb +17 -15
- data/lib/tijuana_client/user.rb +3 -1
- data/spec/client_spec.rb +6 -5
- data/spec/spec_helper.rb +5 -4
- data/spec/tijuana_spec.rb +4 -2
- data/spec/user_spec.rb +20 -18
- data/tijuana_client.gemspec +25 -21
- metadata +28 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65ff48d1275d54698d17e776f5d867d4dbde52e49948071aeac3d51478ba5726
|
4
|
+
data.tar.gz: 21365e03c8f171aea81770d7575e3907d15c8f6b70a5f11dfbc137ec45607358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c56e59412e15ec251e3109a799efd3789f3e7e08dacd2d2e08e550fad1962719ccfc078e1bb709f99a983a6f20bcb286fa2c6ae7b6680146b075e56ba8c8d5f0
|
7
|
+
data.tar.gz: 9654f21ba81f3f61e9df0dec004a97a49c335d11f46e72ab2278c3ff8d836c160acef67c70b4a04a4d34ef8a841a84ccb893cce5d59bb2657089fa74c3a2052e
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisabledByDefault: true
|
3
|
+
|
4
|
+
Security:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Bundler/DuplicatedGem:
|
8
|
+
Enabled: true
|
9
|
+
Bundler/InsecureProtocolSource:
|
10
|
+
Enabled: true
|
11
|
+
Layout/IndentationStyle:
|
12
|
+
Enabled: true
|
13
|
+
Layout/SpaceInsideRangeLiteral:
|
14
|
+
Enabled: true
|
15
|
+
Lint:
|
16
|
+
Enabled: true
|
17
|
+
Lint/RaiseException:
|
18
|
+
Enabled: true
|
19
|
+
Naming/AsciiIdentifiers:
|
20
|
+
Enabled: true
|
21
|
+
Naming/ClassAndModuleCamelCase:
|
22
|
+
Enabled: true
|
23
|
+
Naming/ConstantName:
|
24
|
+
Enabled: true
|
25
|
+
Naming/FileName:
|
26
|
+
Enabled: true
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.6
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,14 +1,17 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source 'http://rubygems.org'
|
4
|
+
|
5
|
+
gem 'vertebrae', '> 0.6.0'
|
4
6
|
|
5
7
|
# Add dependencies to develop your gem here.
|
6
8
|
# Include everything needed to run rake, tests, features, etc.
|
7
9
|
group :development do
|
8
|
-
gem '
|
9
|
-
gem '
|
10
|
+
gem 'bundler'
|
11
|
+
gem 'juwelier', git: 'https://github.com/flajann2/juwelier.git'
|
10
12
|
gem 'pry'
|
11
13
|
gem 'pry-byebug'
|
12
|
-
gem '
|
13
|
-
gem '
|
14
|
+
gem 'rspec'
|
15
|
+
gem 'rubocop'
|
16
|
+
gem 'webmock'
|
14
17
|
end
|
data/Rakefile
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'bundler'
|
5
5
|
begin
|
6
6
|
Bundler.setup(:default, :development)
|
7
7
|
rescue Bundler::BundlerError => e
|
8
|
-
|
9
|
-
|
8
|
+
warn e.message
|
9
|
+
warn 'Run `bundle install` to install missing gems'
|
10
10
|
exit e.status_code
|
11
11
|
end
|
12
12
|
require 'rake'
|
13
13
|
|
14
|
-
require '
|
15
|
-
|
14
|
+
require 'juwelier'
|
15
|
+
Juwelier::Tasks.new do |gem|
|
16
16
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
-
gem.name =
|
18
|
-
gem.homepage =
|
19
|
-
gem.license =
|
20
|
-
gem.summary = %
|
21
|
-
gem.description = %
|
22
|
-
gem.email =
|
23
|
-
gem.authors = [
|
17
|
+
gem.name = 'tijuana_client'
|
18
|
+
gem.homepage = 'http://github.com/controlshift/tijuana_client'
|
19
|
+
gem.license = 'MIT'
|
20
|
+
gem.summary = %(API client for Tijuana)
|
21
|
+
gem.description = %(An API client for the code that runs Getup.org.au)
|
22
|
+
gem.email = 'nathan@controlshiftlabs.com'
|
23
|
+
gem.authors = ['Nathan Woodhull']
|
24
24
|
# dependencies defined in Gemfile
|
25
25
|
end
|
26
|
-
|
26
|
+
Juwelier::RubygemsDotOrgTasks.new
|
27
27
|
|
28
28
|
require 'rspec/core'
|
29
29
|
require 'rspec/core/rake_task'
|
@@ -36,11 +36,11 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
|
|
36
36
|
spec.rcov = true
|
37
37
|
end
|
38
38
|
|
39
|
-
task :
|
39
|
+
task default: :spec
|
40
40
|
|
41
41
|
require 'rdoc/task'
|
42
42
|
Rake::RDocTask.new do |rdoc|
|
43
|
-
version = File.exist?('VERSION') ? File.read('VERSION') :
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ''
|
44
44
|
|
45
45
|
rdoc.rdoc_dir = 'rdoc'
|
46
46
|
rdoc.title = "porpoise_external_actions #{version}"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/tijuana_client.rb
CHANGED
data/lib/tijuana_client/base.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module TijuanaClient
|
2
4
|
class Client < Vertebrae::API
|
3
5
|
def user
|
@@ -19,23 +21,20 @@ module TijuanaClient
|
|
19
21
|
end
|
20
22
|
|
21
23
|
def request(method, path, params, options) # :nodoc:
|
22
|
-
|
23
|
-
raise ArgumentError, "unknown http method: #{method}"
|
24
|
-
end
|
24
|
+
raise ArgumentError, "unknown http method: #{method}" unless ::Vertebrae::Request::METHODS.include?(method)
|
25
25
|
|
26
|
-
path =
|
26
|
+
path = "#{connection.configuration.prefix}/#{path}"
|
27
27
|
|
28
28
|
::Vertebrae::Base.logger.debug "EXECUTED: #{method} - #{path} with #{params} and #{options}"
|
29
29
|
|
30
30
|
connection.connection.send(method) do |request|
|
31
|
-
|
32
31
|
case method.to_sym
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
when *(::Vertebrae::Request::METHODS - ::Vertebrae::Request::METHODS_WITH_BODIES)
|
33
|
+
request.body = params.delete('data') if params.key?('data')
|
34
|
+
request.url(path, params)
|
35
|
+
when *::Vertebrae::Request::METHODS_WITH_BODIES
|
36
|
+
request.path = path
|
37
|
+
request.body = extract_data_from_params(params) unless params.empty?
|
39
38
|
end
|
40
39
|
end
|
41
40
|
end
|
@@ -45,7 +44,8 @@ module TijuanaClient
|
|
45
44
|
builder.use Faraday::Request::Multipart
|
46
45
|
builder.use Faraday::Request::UrlEncoded
|
47
46
|
if connection.configuration.authenticated?
|
48
|
-
builder.use Faraday::Request::BasicAuthentication, connection.configuration.username,
|
47
|
+
builder.use Faraday::Request::BasicAuthentication, connection.configuration.username,
|
48
|
+
connection.configuration.password
|
49
49
|
end
|
50
50
|
|
51
51
|
builder.use Faraday::Response::Logger if ENV['DEBUG']
|
@@ -58,10 +58,10 @@ module TijuanaClient
|
|
58
58
|
private
|
59
59
|
|
60
60
|
def extract_data_from_params(params)
|
61
|
-
if params.
|
62
|
-
|
61
|
+
if params.key?('data') && params['data'].present?
|
62
|
+
{ 'data' => params['data'] }
|
63
63
|
else
|
64
|
-
|
64
|
+
params
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
@@ -1,24 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module TijuanaClient
|
2
|
-
class ValidationError <
|
3
|
-
class EmailValidationError <
|
4
|
+
class ValidationError < StandardError; end
|
5
|
+
class EmailValidationError < StandardError; end
|
4
6
|
|
5
|
-
class ErrorMiddleware <
|
7
|
+
class ErrorMiddleware < Faraday::Response::RaiseError
|
6
8
|
def on_complete(env)
|
7
9
|
case env[:status]
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
else
|
14
|
-
raise TijuanaClient::ValidationError, response_values(env).to_s
|
15
|
-
end
|
10
|
+
when 400
|
11
|
+
if env.body.present?
|
12
|
+
response = JSON.parse(env.body)
|
13
|
+
if response['email']&.include?('is invalid')
|
14
|
+
raise TijuanaClient::EmailValidationError, response_values(env).to_s
|
16
15
|
else
|
17
|
-
|
16
|
+
raise TijuanaClient::ValidationError, response_values(env).to_s
|
18
17
|
end
|
19
|
-
|
20
|
-
raise
|
18
|
+
else
|
19
|
+
raise TijuanaClient::ValidationError, response_values(env).to_s
|
20
|
+
end
|
21
|
+
when 400..600
|
22
|
+
raise Faraday::ClientError, response_values(env).to_s
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
24
|
-
end
|
26
|
+
end
|
data/lib/tijuana_client/user.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -1,17 +1,18 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
|
2
4
|
|
3
5
|
describe TijuanaClient::Client do
|
4
6
|
specify { expect(subject).to respond_to :user }
|
5
7
|
|
6
|
-
describe
|
8
|
+
describe 'instantiated' do
|
7
9
|
subject { described_class.new(options) }
|
8
10
|
|
9
11
|
context 'process_basic_auth' do
|
10
|
-
let(:options) { { :
|
11
|
-
let(:config) { subject.connection.configuration
|
12
|
+
let(:options) { { basic_auth: 'login:password' } }
|
13
|
+
let(:config) { subject.connection.configuration }
|
12
14
|
specify { expect(config.username).to eq 'login' }
|
13
15
|
specify { expect(config.password).to eq 'password' }
|
14
16
|
end
|
15
|
-
|
16
17
|
end
|
17
18
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
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'
|
4
6
|
require 'tijuana_client'
|
5
7
|
require 'webmock/rspec'
|
6
8
|
|
7
|
-
|
8
9
|
# Requires supporting files with custom matchers and macros, etc,
|
9
10
|
# in ./support/ and its subdirectories.
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
|
11
12
|
|
12
13
|
RSpec.configure do |config|
|
13
14
|
config.color = true
|
@@ -34,11 +35,11 @@ end
|
|
34
35
|
|
35
36
|
def stub_tijuana_request(method, path)
|
36
37
|
prefix = TijuanaClient.new.connection.configuration.prefix.to_s
|
37
|
-
stub_request(method, "https://test.com
|
38
|
+
stub_request(method, "https://test.com#{prefix}#{path}")
|
38
39
|
end
|
39
40
|
|
40
41
|
def fixture_path
|
41
|
-
File.expand_path(
|
42
|
+
File.expand_path('fixtures', __dir__)
|
42
43
|
end
|
43
44
|
|
44
45
|
def fixture(file)
|
data/spec/tijuana_spec.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
|
2
4
|
|
3
5
|
describe TijuanaClient do
|
4
6
|
specify { expect(subject).to respond_to :user }
|
5
|
-
specify { expect(subject.new).to be_a(TijuanaClient::Client)}
|
7
|
+
specify { expect(subject.new).to be_a(TijuanaClient::Client) }
|
6
8
|
end
|
data/spec/user_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 TijuanaClient::User do
|
4
6
|
subject { TijuanaClient.new(host: 'test.com') }
|
@@ -11,24 +13,24 @@ describe TijuanaClient::User do
|
|
11
13
|
|
12
14
|
describe '.post_json_request' do
|
13
15
|
let(:client) { TijuanaClient::Client.new }
|
14
|
-
subject { TijuanaClient::User.new({client: client }) }
|
16
|
+
subject { TijuanaClient::User.new({ client: client }) }
|
15
17
|
let(:path) { '/foo' }
|
16
|
-
let(:params) { {first_name: 'Nathan'} }
|
18
|
+
let(:params) { { first_name: 'Nathan' } }
|
17
19
|
|
18
20
|
it 'should jsonify params' do
|
19
|
-
|
20
|
-
|
21
|
+
expect(client).to receive(:post_request).with('/foo', { 'data' => JSON.generate({ first_name: 'Nathan' }) })
|
22
|
+
client.post_json_request(path, params)
|
21
23
|
end
|
22
24
|
end
|
23
25
|
|
24
26
|
describe 'create' do
|
25
27
|
let(:body) { '' }
|
26
|
-
let(:request_body){ {'data' => JSON.generate({ first_name: 'Nathan'})} }
|
28
|
+
let(:request_body) { { 'data' => JSON.generate({ first_name: 'Nathan' }) } }
|
27
29
|
let(:request_path) { '/api/users/' }
|
28
30
|
|
29
31
|
before(:each) do
|
30
|
-
stub_post(request_path).with(body: request_body).to_return(:
|
31
|
-
:
|
32
|
+
stub_post(request_path).with(body: request_body).to_return(body: body, status: status,
|
33
|
+
headers: { content_type: 'application/json; charset=utf-8' })
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'success' do
|
@@ -66,30 +68,30 @@ describe TijuanaClient::User do
|
|
66
68
|
end
|
67
69
|
end
|
68
70
|
|
69
|
-
describe
|
70
|
-
subject { TijuanaClient.new(host: 'test.com', username: 'username', password: 'password')}
|
71
|
+
describe 'basic authentication' do
|
72
|
+
subject { TijuanaClient.new(host: 'test.com', username: 'username', password: 'password') }
|
71
73
|
|
72
|
-
let(:body) {
|
73
|
-
let(:request_body) { {'data' => JSON.generate({ first_name: 'Nathan'})} }
|
74
|
+
let(:body) { '' }
|
75
|
+
let(:request_body) { { 'data' => JSON.generate({ first_name: 'Nathan' }) } }
|
74
76
|
let(:request_path) { '/api/users/' }
|
75
77
|
|
76
78
|
before(:each) do
|
77
|
-
stub_request(:post, "https://test.com#{request_path}").with(basic_auth: [
|
78
|
-
|
79
|
+
stub_request(:post, "https://test.com#{request_path}").with(basic_auth: %w[username password], body: request_body)
|
80
|
+
.to_return(body: body, status: status, headers: { content_type: 'application/json; charset=utf-8' })
|
79
81
|
end
|
80
82
|
|
81
|
-
describe
|
83
|
+
describe 'success' do
|
82
84
|
let(:status) { 200 }
|
83
85
|
|
84
|
-
it
|
86
|
+
it 'should create a user' do
|
85
87
|
subject.user.create(first_name: 'Nathan')
|
86
88
|
end
|
87
89
|
end
|
88
90
|
|
89
|
-
describe
|
91
|
+
describe 'unauthorized' do
|
90
92
|
let(:status) { 401 }
|
91
93
|
|
92
|
-
it
|
94
|
+
it 'should return nil' do
|
93
95
|
expect { subject.user.create(first_name: 'Nathan') }.to raise_exception(StandardError)
|
94
96
|
end
|
95
97
|
end
|
data/tijuana_client.gemspec
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
# Generated by
|
1
|
+
# Generated by juwelier
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit
|
3
|
+
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: tijuana_client 0.
|
5
|
+
# stub: tijuana_client 0.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "tijuana_client".freeze
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.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-23"
|
15
15
|
s.description = "An API client for the code that runs Getup.org.au".freeze
|
16
16
|
s.email = "nathan@controlshiftlabs.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
"README.md"
|
20
20
|
]
|
21
21
|
s.files = [
|
22
|
+
".rubocop.yml",
|
22
23
|
".ruby-gemset",
|
23
24
|
".ruby-version",
|
24
25
|
".travis.yml",
|
@@ -40,37 +41,40 @@ Gem::Specification.new do |s|
|
|
40
41
|
]
|
41
42
|
s.homepage = "http://github.com/controlshift/tijuana_client".freeze
|
42
43
|
s.licenses = ["MIT".freeze]
|
43
|
-
s.rubygems_version = "3.0.
|
44
|
+
s.rubygems_version = "3.0.8".freeze
|
44
45
|
s.summary = "API client for Tijuana".freeze
|
45
46
|
|
46
47
|
if s.respond_to? :specification_version then
|
47
48
|
s.specification_version = 4
|
48
49
|
|
49
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
-
s.add_runtime_dependency(%q<vertebrae>.freeze, ["> 0.
|
51
|
-
s.add_development_dependency(%q<
|
52
|
-
s.add_development_dependency(%q<
|
51
|
+
s.add_runtime_dependency(%q<vertebrae>.freeze, ["> 0.6.0"])
|
52
|
+
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
|
53
54
|
s.add_development_dependency(%q<pry>.freeze, [">= 0"])
|
54
55
|
s.add_development_dependency(%q<pry-byebug>.freeze, [">= 0"])
|
55
|
-
s.add_development_dependency(%q<
|
56
|
-
s.add_development_dependency(%q<
|
56
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
|
58
|
+
s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
|
57
59
|
else
|
58
|
-
s.add_dependency(%q<vertebrae>.freeze, ["> 0.
|
59
|
-
s.add_dependency(%q<
|
60
|
-
s.add_dependency(%q<
|
60
|
+
s.add_dependency(%q<vertebrae>.freeze, ["> 0.6.0"])
|
61
|
+
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
62
|
+
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
61
63
|
s.add_dependency(%q<pry>.freeze, [">= 0"])
|
62
64
|
s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
|
63
|
-
s.add_dependency(%q<
|
64
|
-
s.add_dependency(%q<
|
65
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
66
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
67
|
+
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
65
68
|
end
|
66
69
|
else
|
67
|
-
s.add_dependency(%q<vertebrae>.freeze, ["> 0.
|
68
|
-
s.add_dependency(%q<
|
69
|
-
s.add_dependency(%q<
|
70
|
+
s.add_dependency(%q<vertebrae>.freeze, ["> 0.6.0"])
|
71
|
+
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
72
|
+
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
70
73
|
s.add_dependency(%q<pry>.freeze, [">= 0"])
|
71
74
|
s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
|
72
|
-
s.add_dependency(%q<
|
73
|
-
s.add_dependency(%q<
|
75
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
76
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
77
|
+
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
74
78
|
end
|
75
79
|
end
|
76
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tijuana_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vertebrae
|
@@ -16,16 +16,16 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.6.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.6.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: juwelier
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,25 +95,33 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '2.1'
|
104
101
|
- - ">="
|
105
102
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
103
|
+
version: '0'
|
107
104
|
type: :development
|
108
105
|
prerelease: false
|
109
106
|
version_requirements: !ruby/object:Gem::Requirement
|
110
107
|
requirements:
|
111
|
-
- - "
|
108
|
+
- - ">="
|
112
109
|
- !ruby/object:Gem::Version
|
113
|
-
version: '
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webmock
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
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
|
+
requirements:
|
114
122
|
- - ">="
|
115
123
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
124
|
+
version: '0'
|
117
125
|
description: An API client for the code that runs Getup.org.au
|
118
126
|
email: nathan@controlshiftlabs.com
|
119
127
|
executables: []
|
@@ -122,6 +130,7 @@ extra_rdoc_files:
|
|
122
130
|
- LICENSE.txt
|
123
131
|
- README.md
|
124
132
|
files:
|
133
|
+
- ".rubocop.yml"
|
125
134
|
- ".ruby-gemset"
|
126
135
|
- ".ruby-version"
|
127
136
|
- ".travis.yml"
|
@@ -144,7 +153,7 @@ homepage: http://github.com/controlshift/tijuana_client
|
|
144
153
|
licenses:
|
145
154
|
- MIT
|
146
155
|
metadata: {}
|
147
|
-
post_install_message:
|
156
|
+
post_install_message:
|
148
157
|
rdoc_options: []
|
149
158
|
require_paths:
|
150
159
|
- lib
|
@@ -159,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
168
|
- !ruby/object:Gem::Version
|
160
169
|
version: '0'
|
161
170
|
requirements: []
|
162
|
-
rubygems_version: 3.0.
|
163
|
-
signing_key:
|
171
|
+
rubygems_version: 3.0.8
|
172
|
+
signing_key:
|
164
173
|
specification_version: 4
|
165
174
|
summary: API client for Tijuana
|
166
175
|
test_files: []
|