environment 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == Release 0.2.1 - April 22, 2011
4
+
5
+ * FIX: All environment variables had a trailing /n
6
+
3
7
  == Release 0.2.0 - April 22, 2011
4
8
 
5
9
  * NEW: Added method override to override the default ENV object
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
2
2
  require "rake"
3
3
  require "echoe"
4
4
 
5
- Echoe.new("environment", "0.2.0") do |p|
5
+ Echoe.new("environment", "0.2.1") do |p|
6
6
  p.description = "Environment variables in are not available to scripts running as crons and/or services. This gem allows ruby scripts running as a cron and/or as a service full access to the system environment variables."
7
7
  p.summary = "Environment variables in are not available to scripts running as crons and/or services. This gem allows ruby scripts running as a cron and/or as a service full access to the system environment variables."
8
8
  p.url = "http://rubygems.org/gems/environment"
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{environment}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Nitesh Goel"]
9
- s.date = %q{2011-04-21}
9
+ s.date = %q{2011-04-22}
10
10
  s.description = %q{Environment variables in are not available to scripts running as crons and/or services. This gem allows ruby scripts running as a cron and/or as a service full access to the system environment variables.}
11
11
  s.email = %q{nitesh@wikinvest.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc", "lib/environment.rb", "lib/save_environment_variables.sh"]
@@ -41,7 +41,7 @@ module Environment
41
41
  success = system("bash -l #{SHELL_SCRIPT}")
42
42
  if success && File.exists?(VARIABLE_DUMP)
43
43
  File.read(VARIABLE_DUMP).each_line do |line|
44
- key,value = line.split("=")
44
+ key,value = line.chomp.split("=")
45
45
  @env[key] = value
46
46
  end
47
47
  File.delete(VARIABLE_DUMP)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: environment
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nitesh Goel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-21 00:00:00 Z
18
+ date: 2011-04-22 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Environment variables in are not available to scripts running as crons and/or services. This gem allows ruby scripts running as a cron and/or as a service full access to the system environment variables.