bin_script 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/bin_helper +2 -2
- data/lib/bin_script/version.rb +1 -1
- metadata +3 -2
data/bin/bin_helper
CHANGED
@@ -52,7 +52,7 @@ require 'rubygems'
|
|
52
52
|
# Define RAILS_ENV
|
53
53
|
ARGV.each_index do |i|
|
54
54
|
if ARGV[i] == '-e' && ARGV.length > i
|
55
|
-
RAILS_ENV = ARGV[i+1]
|
55
|
+
ENV['RAILS_ENV'] = ARGV[i+1]
|
56
56
|
break
|
57
57
|
end
|
58
58
|
end
|
@@ -61,7 +61,7 @@ end
|
|
61
61
|
NO_RAILS = true if ARGV.include?('-h') && !defined?(NO_RAILS)
|
62
62
|
|
63
63
|
# Set defaults
|
64
|
-
RAILS_ENV
|
64
|
+
ENV['RAILS_ENV'] ||= 'development'
|
65
65
|
|
66
66
|
if !defined?(RAILS_ROOT) && !defined?(NO_RAILS)
|
67
67
|
# Load rails envoronment if not yet and we need it
|
data/lib/bin_script/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bin_script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Lifshits Dmitry
|