qualitysmith_extensions 0.0.63 → 0.0.64
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,46 @@
|
|
1
|
+
#--
|
2
|
+
# Author:: Tyler Rick
|
3
|
+
# Copyright:: Copyright (c) 2007 QualitySmith, Inc.
|
4
|
+
# License:: Ruby License
|
5
|
+
# Submit to Facets?:: Yes
|
6
|
+
# Developer notes::
|
7
|
+
# Changes::
|
8
|
+
#++
|
9
|
+
|
10
|
+
|
11
|
+
module Kernel
|
12
|
+
def windows_platform?
|
13
|
+
RUBY_PLATFORM =~ /mswin32/
|
14
|
+
|
15
|
+
# What about mingw32 or cygwin32?
|
16
|
+
#RUBY_PLATFORM =~ /(win|w)32$/
|
17
|
+
|
18
|
+
# What about 64-bit Windows?
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
# _____ _
|
29
|
+
# |_ _|__ ___| |_
|
30
|
+
# | |/ _ \/ __| __|
|
31
|
+
# | | __/\__ \ |_
|
32
|
+
# |_|\___||___/\__|
|
33
|
+
#
|
34
|
+
=begin test
|
35
|
+
require 'test/unit'
|
36
|
+
|
37
|
+
class TheTest < Test::Unit::TestCase
|
38
|
+
def test_1
|
39
|
+
# Impossible to test, unless your platform is Windows.
|
40
|
+
assert true
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
=end
|
45
|
+
|
46
|
+
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: qualitysmith_extensions
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.64
|
7
7
|
date: 2007-07-17 00:00:00 -07:00
|
8
8
|
summary: A collection of reusable Ruby methods developed by QualitySmith.
|
9
9
|
require_paths:
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/qualitysmith_extensions/kernel/backtrace.rb
|
57
57
|
- lib/qualitysmith_extensions/kernel/capture_output.rb
|
58
58
|
- lib/qualitysmith_extensions/kernel/remove_module.rb
|
59
|
+
- lib/qualitysmith_extensions/kernel/windows_platform.rb
|
59
60
|
- lib/qualitysmith_extensions/kernel/remove_const.rb
|
60
61
|
- lib/qualitysmith_extensions/kernel/trap_chain.rb
|
61
62
|
- lib/qualitysmith_extensions/dir/each_child.rb
|