Compare commits

...
2 Commits
Author SHA1 Message Date
josh a8023ae03c v1.8.1 2014-10-22 14:30:32 -04:00
josh 99ba015630 fix Environment#dump when construction variables are Symbols 2014-10-22 14:30:14 -04:00
4 changed files with 8 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
rscons (1.8.0) rscons (1.8.1)
json (~> 1.0) json (~> 1.0)
GEM GEM
+4 -2
View File
@@ -662,8 +662,10 @@ module Rscons
# Print the Environment's construction variables for debugging. # Print the Environment's construction variables for debugging.
def dump def dump
@varset.to_h.sort.each do |var, val| varset_hash = @varset.to_h
puts "#{var} => #{val.inspect}" varset_hash.keys.sort_by(&:to_s).each do |var|
var_str = var.is_a?(Symbol) ? var.inspect : var
puts "#{var_str} => #{varset_hash[var].inspect}"
end end
end end
+1 -1
View File
@@ -1,4 +1,4 @@
module Rscons module Rscons
# gem version # gem version
VERSION = "1.8.0" VERSION = "1.8.1"
end end
+2
View File
@@ -725,9 +725,11 @@ EOF
test_dir("simple") test_dir("simple")
env = Rscons::Environment.new do |env| env = Rscons::Environment.new do |env|
env["CFLAGS"] += %w[-O2 -fomit-frame-pointer] env["CFLAGS"] += %w[-O2 -fomit-frame-pointer]
env[:foo] = :bar
end end
env.dump env.dump
result = lines result = lines
expect(result.include?(%{:foo => :bar})).to be_truthy
expect(result.include?(%{CFLAGS => ["-O2", "-fomit-frame-pointer"]})).to be_truthy expect(result.include?(%{CFLAGS => ["-O2", "-fomit-frame-pointer"]})).to be_truthy
expect(result.include?(%{CPPPATH => []})).to be_truthy expect(result.include?(%{CPPPATH => []})).to be_truthy
end end