File: 0020_set_WINDOWS_to_false_in_shared_spec.patch

package info (click to toggle)
ruby-dataobjects 0.10.8-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 416 kB
  • sloc: ruby: 2,917; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: set WINDOWS to false
 The upstream formulation relies on the Gem class. The result will always be
 false on Debian. Hardcoding the value to avoid unnecessary dependency on rubygems.
Author: Cédric Boutillier <cedric.boutillier@gmail.com>
Last-Update: 2011-10-23

--- a/lib/data_objects/spec/shared/command_spec.rb
+++ b/lib/data_objects/spec/shared/command_spec.rb
@@ -1,4 +1,4 @@
-WINDOWS = Gem.win_platform? || (JRUBY && ENV_JAVA['os.name'] =~ /windows/i)
+WINDOWS = false
 
 shared_examples_for 'a Command' do