fakext 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/fakext.rb +7 -2
  2. metadata +3 -3
@@ -11,12 +11,12 @@
11
11
  #++
12
12
 
13
13
  module Gem
14
- def self.fakext (lib, root=Dir.pwd)
14
+ def self.fakext(lib, root=Dir.pwd)
15
15
  File.open(File.join(root, 'Makefile'), 'w') {|f|
16
16
  f.write "all:\n\ninstall:\n\n"
17
17
  }
18
18
 
19
- if RUBY_PLATFORM =~ /(?<!dar)win/
19
+ if RUBY_PLATFORM =~ /(?<!dar)win|w32/
20
20
  File.open(File.join(root, lib + '.dll'), 'w') {}
21
21
  File.open(File.join(root, 'nmake.bat'), 'w') {}
22
22
  else
@@ -27,4 +27,9 @@ module Gem
27
27
  File.open(File.join(root, lib + '.so'), 'w') {}
28
28
  end
29
29
  end
30
+
31
+ def self.fakext!(lib, root=Dir.pwd)
32
+ fakext(lib, root)
33
+ exit 0
34
+ end
30
35
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - shura
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-05 00:00:00 +02:00
17
+ date: 2011-10-04 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20