kelredd-sinatra-helpers 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- RACK_ENV = ENV["RACK_ENV"] ||= "development" unless defined? RACK_ENV
1
+ if defined? RACK_ENV
2
+ ENV["RACK_ENV"] ||= RACK_ENV
3
+ else
4
+ RACK_ENV = ENV["RACK_ENV"] ||= "development"
5
+ end
2
6
  ROOT_DIR = File.expand_path("#{File.dirname(__FILE__)}/..") unless defined? ROOT_DIR
3
7
 
4
8
  def root_path(*args)
@@ -1,4 +1,4 @@
1
- RACK_ENV = ENV["RACK_ENV"] ||= "development" unless defined? RACK_ENV
1
+ ENV["RACK_ENV"] ||= "development"
2
2
  require 'app'
3
3
  set :app_file, File.join(root_path, 'app.rb')
4
4
  disable :run
@@ -1,2 +1,3 @@
1
- /log/*.log
2
1
  .DS_Store
2
+ /log
3
+ /tmp
@@ -1,4 +1,4 @@
1
- RACK_ENV = ENV["RACK_ENV"] ||= "production" unless defined? RACK_ENV
1
+ ENV["RACK_ENV"] ||= "production"
2
2
  require 'app'
3
3
  set :app_file, File.join(root_path, 'app.rb')
4
4
  disable :run
@@ -1,4 +1,4 @@
1
- RACK_ENV = ENV["RACK_ENV"] ||= "staging" unless defined? RACK_ENV
1
+ ENV["RACK_ENV"] ||= "staging"
2
2
  require 'app'
3
3
  set :app_file, File.join(root_path, 'app.rb')
4
4
  disable :run
@@ -5,11 +5,12 @@ require 'useful/shoulda_macros/test_unit'
5
5
  require 'rack/test'
6
6
  require 'webrat'
7
7
 
8
+ RACK_ENV = "test"
8
9
  ROOT_DIR = File.expand_path("#{File.dirname(__FILE__)}/..")
10
+
9
11
  $LOAD_PATH.unshift(ROOT_DIR)
10
12
  $LOAD_PATH.unshift(File.join(ROOT_DIR, 'test'))
11
13
 
12
- RACK_ENV = "test"
13
14
  require 'app'
14
15
 
15
16
  class Test::Unit::TestCase
@@ -3,7 +3,7 @@ module SinatraHelpers
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kelly Redding
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-07 00:00:00 -06:00
17
+ date: 2010-03-10 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency