Sha256: a7c5d0f8e706bcdbefeb52fd019d4606f6d876dbf1694588d8d6aa686ec3eba9

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

# require external libraries
require 'rake'
require 'dotenv'
require 'logging'
require 'octokit'
require 'grape'
require 'json'

# require internal files
require 'napa/version'
require 'napa/logger/logger'
require 'napa/logger/log_transaction'
require 'napa/identity'
require 'napa/json_error'
require 'napa/stats'
require 'napa/grape_extensions/error_formatter'
require 'napa/grape_extensions/error_presenter'
require 'napa/middleware/logger'
require 'napa/middleware/app_monitor'
require 'napa/middleware/authentication'
require 'napa/middleware/request_stats'
require 'napa/activerecord'
require 'napa/authentication'
require 'napa/grape_api'

# load rake tasks if Rake installed
if defined?(Rake)
  load 'tasks/git.rake'
  load 'tasks/deploy.rake'
  load 'tasks/routes.rake'
  load 'tasks/db.rake'
end

module Napa
  class << self
    def env
      @_env ||= ActiveSupport::StringInquirer.new(ENV['RACK_ENV'] || 'development')
    end

    def env=(environment)
      @_env = ActiveSupport::StringInquirer.new(environment)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
napa-0.1.16 lib/napa.rb
napa-0.1.15 lib/napa.rb
napa-0.1.14 lib/napa.rb