bin_script 0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 = 'development' if defined?(RAILS_ENV).nil?
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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  class BinScript
3
- VERSION = "0.1"
3
+ VERSION = "0.1.1"
4
4
  end
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: 9
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- version: "0.1"
9
+ - 1
10
+ version: 0.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Lifshits Dmitry