[Groonga-commit] ranguba/epub-searcher at 9068499 [master] Use RACK_ENV instead of PADRINO_ENV

Back to archive index

KITAITI Makoto null+****@clear*****
Mon Dec 22 07:43:15 JST 2014


KITAITI Makoto	2014-12-22 07:43:15 +0900 (Mon, 22 Dec 2014)

  New Revision: 9068499adf97db7e361ff71c55199521b173726a
  https://github.com/ranguba/epub-searcher/commit/9068499adf97db7e361ff71c55199521b173726a

  Message:
    Use RACK_ENV instead of PADRINO_ENV
    
    Updated Padrino says:
    
    > Environment variable PADRINO_ENV is deprecated. Please, use RACK_ENV.

  Modified files:
    config/boot.rb
    test/test_config.rb

  Modified: config/boot.rb (+3 -3)
===================================================================
--- config/boot.rb    2014-12-22 07:35:15 +0900 (d935d2f)
+++ config/boot.rb    2014-12-22 07:43:15 +0900 (bdc8b4a)
@@ -1,12 +1,12 @@
 # -*- coding: utf-8 -*-
 # Defines our constants
-PADRINO_ENV  = ENV['PADRINO_ENV'] ||= ENV['RACK_ENV'] ||= 'development'  unless defined?(PADRINO_ENV)
+RACK_ENV = ENV['RACK_ENV'] ||= 'development'  unless defined?(RACK_ENV)
 PADRINO_ROOT = File.expand_path('../..', __FILE__) unless defined?(PADRINO_ROOT)
 
 # Load our dependencies
 require 'rubygems' unless defined?(Gem)
 require 'bundler/setup'
-Bundler.require(:default, PADRINO_ENV)
+Bundler.require(:default, RACK_ENV)
 
 ##
 # ## Enable devel logging
@@ -32,7 +32,7 @@ Bundler.require(:default, PADRINO_ENV)
 # end
 
 require 'dotenv'
-Dotenv.load ".env.#{PADRINO_ENV}"
+Dotenv.load ".env.#{RACK_ENV}"
 
 ##
 # Add your before (RE)load hooks here

  Modified: test/test_config.rb (+1 -1)
===================================================================
--- test/test_config.rb    2014-12-22 07:35:15 +0900 (3a0a926)
+++ test/test_config.rb    2014-12-22 07:43:15 +0900 (6dc08f5)
@@ -1,4 +1,4 @@
-PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
+RACK_ENV = 'test' unless defined?(RACK_ENV)
 require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
 
 require "test/unit"
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index