Sha256: 85a6cf58ba04a6873fa5b2d10bc7478102a6a5dfb17aaff83197725508a4b439

Contents?: true

Size: 1.1 KB

Versions: 13

Compression:

Stored size: 1.1 KB

Contents

require 'sinatra'
require 'rack/robustness'
require 'finitio'
require 'logger'
require 'path'
require 'ostruct'
require 'benchmark'
# Provides a reusable backend framework for backend components written
# in ruby.
#
# The framework installs conventions regarding:
#
# - The exposition of web service APIs (Framework::Api, on top of Sinatra)
# - Operations (Framework::Operation)
# - Error handling (Framework::Errors) and their handling in web APIs
#   (based on Rack::Robustness)
# - General code support (Framework::Support modules & classes).
#
# Please refer to the documentation of those main abstractions for details.
#
module Startback

  # Simply checks that a path exists of raise an error
  def self._!(path)
    Path(path).tap do |p|
      raise "Missing #{p.basename}." unless p.exists?
    end
  end

  require_relative 'startback/ext'
  require_relative 'startback/errors'
  require_relative 'startback/support'
  require_relative 'startback/context'
  require_relative 'startback/operation'

  # Logger instance to use for the application
  LOGGER = ::Startback::Support::Logger.new

end # module Startback

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
startback-0.7.5 lib/startback.rb
startback-0.7.4 lib/startback.rb
startback-0.7.3 lib/startback.rb
startback-0.7.2 lib/startback.rb
startback-0.7.1 lib/startback.rb
startback-0.7.0 lib/startback.rb
startback-0.6.0 lib/startback.rb
startback-0.5.5 lib/startback.rb
startback-0.5.4 lib/startback.rb
startback-0.5.3 lib/startback.rb
startback-0.5.2 lib/startback.rb
startback-0.5.1 lib/startback.rb
startback-0.5.0 lib/startback.rb