Skip to content

Commit

Permalink
Backport paths reorganization from v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
woodhull authored and anero committed Sep 28, 2023
1 parent e5cc2fd commit 1ff7dd3
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 18 deletions.
21 changes: 11 additions & 10 deletions lib/vertebrae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

require 'active_support/all'

require 'constants'
require 'authorization'
require 'configuration'
require 'connection'
require 'request'
require 'response_error'
require 'api'
require 'base'
require 'model'
require 'vertebrae/constants'
require 'vertebrae/authorization'
require 'vertebrae/configuration'
require 'vertebrae/connection'
require 'vertebrae/request'
require 'vertebrae/response_error'
require 'vertebrae/api'
require 'vertebrae/base'
require 'vertebrae/model'
require 'vertebrae/version'

require 'railties' if defined? Rails

module Vertebrae

end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions lib/connection.rb → lib/vertebrae/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

require 'faraday'
require 'faraday_middleware'
require 'response/raise_error'
require 'authorization'
require 'vertebrae/response/raise_error'
require 'vertebrae/authorization'

module Vertebrae
class Connection
Expand Down Expand Up @@ -44,6 +44,7 @@ def default_middleware
end

builder.use Faraday::Response::Logger if ENV['DEBUG']

unless options[:raw]
builder.use FaradayMiddleware::Mashify
builder.use FaradayMiddleware::ParseJson
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions lib/vertebrae/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module Vertebrae
VERSION = '1.0.0'
end
11 changes: 5 additions & 6 deletions vertebrae.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Generated by juwelier
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
# stub: vertebrae 0.6.2 ruby lib
# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'version'

Gem::Specification.new do |s|
s.name = "vertebrae".freeze
Expand Down Expand Up @@ -54,7 +54,6 @@ Gem::Specification.new do |s|
]
s.homepage = "http://github.com/controlshift/vertebrae".freeze
s.licenses = ["MIT".freeze]
s.rubygems_version = "3.1.6".freeze
s.summary = "API Client Infrastructure".freeze

if s.respond_to? :specification_version then
Expand Down

0 comments on commit 1ff7dd3

Please sign in to comment.