puppetlabs/facter — pull request #694 by joshcooper (2014-06-17 23:24:49+00:00)
Title: (FACT-567) Restore windows dependencies during gem packaging

Restored windows dependencies during gem packaging. With this change, the gem spec contains the correct info for both x86 and x64:

x86
-----

$ gem specification --ruby pkg/facter-2.0.2.134-x86-mingw32.gem
...
if s.respond_to? :specification_version then
s.specification_version = 4

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<ffi>, ["~> 1.9.3"])
s.add_runtime_dependency(%q<win32-dir>, ["~> 0.4.8"])
s.add_runtime_dependency(%q<windows-pr>, ["~> 1.2"])
s.add_runtime_dependency(%q<win32-security>, [">= 0.2.0"])
s.add_runtime_dependency(%q<win32console>, ["~> 1.3.2"])
else
s.add_dependency(%q<ffi>, ["~> 1.9.3"])
s.add_dependency(%q<win32-dir>, ["~> 0.4.8"])
s.add_dependency(%q<windows-pr>, ["~> 1.2"])
s.add_dependency(%q<win32-security>, [">= 0.2.0"])
s.add_dependency(%q<win32console>, ["~> 1.3.2"])
end
else
s.add_dependency(%q<ffi>, ["~> 1.9.3"])
s.add_dependency(%q<win32-dir>, ["~> 0.4.8"])
s.add_dependency(%q<windows-pr>, ["~> 1.2"])
s.add_dependency(%q<win32-security>, [">= 0.2.0"])
s.add_dependency(%q<win32console>, ["~> 1.3.2"])
end

x64
-----

$ gem specification --ruby pkg/facter-2.0.2.134-x64-mingw32.gem
...
if s.respond_to? :specification_version then
s.specification_version = 4

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<ffi>, ["~> 1.9.3"])
s.add_runtime_dependency(%q<win32-dir>, ["~> 0.4.8"])
s.add_runtime_dependency(%q<windows-pr>, ["~> 1.2"])
s.add_runtime_dependency(%q<win32-security>, [">= 0.2.0"])
else
s.add_dependency(%q<ffi>, ["~> 1.9.3"])
s.add_dependency(%q<win32-dir>, ["~> 0.4.8"])
s.add_dependency(%q<windows-pr>, ["~> 1.2"])
s.add_dependency(%q<win32-security>, [">= 0.2.0"])
end
else
s.add_dependency(%q<ffi>, ["~> 1.9.3"])
s.add_dependency(%q<win32-dir>, ["~> 0.4.8"])
s.add_dependency(%q<windows-pr>, ["~> 1.2"])
s.add_dependency(%q<win32-security>, [">= 0.2.0"])
end

Note how win32console is only a dependency for the x86 gem, but not x64.