Sha256: 5258e241f3642b877a78cef42ac55b4d7f39195e3578945538093b5c926c043b
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
require 'sinatra' require 'rack/robustness' require 'finitio' require 'logger' # 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' require_relative 'startback/web' # Logger instance to use for the application LOGGER = ::Startback::Support::Logger.new end # module Startback
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
startback-0.3.2 | lib/startback.rb |
startback-0.3.1 | lib/startback.rb |
startback-0.3.0 | lib/startback.rb |
startback-0.2.0 | lib/startback.rb |