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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6330ffa9e7fb7c5710afadd7eb7116e13212d7730a622eaec3f365da753f22be
4
- data.tar.gz: ba9a46abcd3cbdcd295b37c07ec03b9e546202320b52e187baaf00333b4ab11d
3
+ metadata.gz: 65ff48d1275d54698d17e776f5d867d4dbde52e49948071aeac3d51478ba5726
4
+ data.tar.gz: 21365e03c8f171aea81770d7575e3907d15c8f6b70a5f11dfbc137ec45607358
5
5
  SHA512:
6
- metadata.gz: 88462d4403c9a7f3419de24a6e9bb5ae7a62fe04200ce8d47796c18c6c2f4ff5725bcd69d66b43092634124096564fe259452b45e928f222808a7bf45dd8ee8b
7
- data.tar.gz: d1e1ea7f15ee5292a2c27ff6b77af5d0d9f8a8cf53ea56f6b10df01d02ac631e4f6ed5e5284140b6de6a6fd491a2db01ce9ce1cfc328219cf2d47ac515cebeb9
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.5.3
1
+ 2.6.6
data/.travis.yml CHANGED
@@ -1,3 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "2.4.2"
3
+ - 2.6
4
+ cache: bundler
5
+ before_install:
6
+ - gem install bundler
7
+ script:
8
+ - bundle exec rspec
9
+ - bundle exec rubocop
data/Gemfile CHANGED
@@ -1,14 +1,17 @@
1
- source "http://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- gem 'vertebrae', '> 0.5.0'
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 'rspec'
9
- gem 'webmock'
10
+ gem 'bundler'
11
+ gem 'juwelier', git: 'https://github.com/flajann2/juwelier.git'
10
12
  gem 'pry'
11
13
  gem 'pry-byebug'
12
- gem 'bundler'
13
- gem 'jeweler', '~> 2.1', '>= 2.1.2'
14
+ gem 'rspec'
15
+ gem 'rubocop'
16
+ gem 'webmock'
14
17
  end
data/Rakefile CHANGED
@@ -1,29 +1,29 @@
1
- # encoding: utf-8
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
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
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 'jeweler'
15
- Jeweler::Tasks.new do |gem|
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 = "tijuana_client"
18
- gem.homepage = "http://github.com/controlshift/tijuana_client"
19
- gem.license = "MIT"
20
- gem.summary = %Q{API client for Tijuana}
21
- gem.description = %Q{An API client for the code that runs Getup.org.au}
22
- gem.email = "nathan@controlshiftlabs.com"
23
- gem.authors = ["Nathan Woodhull"]
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
- Jeweler::RubygemsDotOrgTasks.new
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 :default => :spec
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.2.4
1
+ 0.3.0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'vertebrae'
2
4
  require 'tijuana_client/error_middleware'
3
5
  require 'tijuana_client/base'
@@ -12,4 +14,4 @@ module TijuanaClient
12
14
  TijuanaClient::Client.new(options, &block)
13
15
  end
14
16
  end
15
- end
17
+ end
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module TijuanaClient
2
4
  class Base < Vertebrae::Model
3
5
  def normalized_base_path
4
6
  "api/#{base_path}/"
5
7
  end
6
8
  end
7
- end
9
+ end
@@ -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
- if !::Vertebrae::Request::METHODS.include?(method)
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 = connection.configuration.prefix + '/' + 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
- when *(::Vertebrae::Request::METHODS - ::Vertebrae::Request::METHODS_WITH_BODIES)
34
- request.body = params.delete('data') if params.has_key?('data')
35
- request.url(path, params)
36
- when *::Vertebrae::Request::METHODS_WITH_BODIES
37
- request.path = path
38
- request.body = extract_data_from_params(params) unless params.empty?
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, connection.configuration.password
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.has_key?('data') && params['data'].present?
62
- return {'data'=> params['data']}
61
+ if params.key?('data') && params['data'].present?
62
+ { 'data' => params['data'] }
63
63
  else
64
- return params
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 < ::Faraday::Error::ClientError ; end
3
- class EmailValidationError < ::Faraday::Error::ClientError ; end
4
+ class ValidationError < StandardError; end
5
+ class EmailValidationError < StandardError; end
4
6
 
5
- class ErrorMiddleware < ::Faraday::Response::RaiseError
7
+ class ErrorMiddleware < Faraday::Response::RaiseError
6
8
  def on_complete(env)
7
9
  case env[:status]
8
- when 400
9
- if env.body.present?
10
- response = JSON.parse(env.body)
11
- if response['email'] && response['email'].include?('is invalid')
12
- raise TijuanaClient::EmailValidationError, response_values(env).to_s
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
- raise TijuanaClient::ValidationError, response_values(env).to_s
16
+ raise TijuanaClient::ValidationError, response_values(env).to_s
18
17
  end
19
- when ClientErrorStatuses
20
- raise Faraday::Error::ClientError, response_values(env).to_s
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module TijuanaClient
2
4
  class User < Base
3
5
  def base_path
@@ -8,4 +10,4 @@ module TijuanaClient
8
10
  client.post_json_request(normalized_base_path, params)
9
11
  end
10
12
  end
11
- end
13
+ end
data/spec/client_spec.rb CHANGED
@@ -1,17 +1,18 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
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 "instantiated" do
8
+ describe 'instantiated' do
7
9
  subject { described_class.new(options) }
8
10
 
9
11
  context 'process_basic_auth' do
10
- let(:options) { { :basic_auth => 'login:password' } }
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" + prefix + path)
38
+ stub_request(method, "https://test.com#{prefix}#{path}")
38
39
  end
39
40
 
40
41
  def fixture_path
41
- File.expand_path("../fixtures", __FILE__)
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
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
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
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
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
- expect(client).to receive(:post_request).with('/foo', {'data' => JSON.generate({ first_name: 'Nathan'}) } )
20
- client.post_json_request(path, params)
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(:body => body, :status => status,
31
- :headers => { content_type: "application/json; charset=utf-8"})
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 "basic authentication" do
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: ['username', 'password'], body: request_body)
78
- .to_return(:body => body, :status => status, :headers => { content_type: "application/json; charset=utf-8"})
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 "success" do
83
+ describe 'success' do
82
84
  let(:status) { 200 }
83
85
 
84
- it "should create a user" do
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 "unauthorized" do
91
+ describe 'unauthorized' do
90
92
  let(:status) { 401 }
91
93
 
92
- it "should return nil" do
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
@@ -1,17 +1,17 @@
1
- # Generated by jeweler
1
+ # Generated by juwelier
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: tijuana_client 0.2.4 ruby lib
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.2.4"
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 = "2020-04-29"
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.4".freeze
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.5.0"])
51
- s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
52
- s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
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<bundler>.freeze, [">= 0"])
56
- s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.1", ">= 2.1.2"])
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.5.0"])
59
- s.add_dependency(%q<rspec>.freeze, [">= 0"])
60
- s.add_dependency(%q<webmock>.freeze, [">= 0"])
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<bundler>.freeze, [">= 0"])
64
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.1", ">= 2.1.2"])
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.5.0"])
68
- s.add_dependency(%q<rspec>.freeze, [">= 0"])
69
- s.add_dependency(%q<webmock>.freeze, [">= 0"])
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<bundler>.freeze, [">= 0"])
73
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.1", ">= 2.1.2"])
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.2.4
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: 2020-04-29 00:00:00.000000000 Z
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.5.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.5.0
26
+ version: 0.6.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec
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: webmock
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: bundler
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: jeweler
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: 2.1.2
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: '2.1'
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: 2.1.2
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.4
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: []