fakext 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fakext.rb +30 -0
  2. metadata +64 -0
data/lib/fakext.rb ADDED
@@ -0,0 +1,30 @@
1
+ #--
2
+ # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
3
+ # Version 2, December 2004
4
+ #
5
+ # Copyleft shura [shura1991@gmail.com]
6
+ #
7
+ # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
8
+ # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
9
+ #
10
+ # 0. You just DO WHAT THE FUCK YOU WANT TO.
11
+ #++
12
+
13
+ module Gem
14
+ def self.fakext (lib, root=Dir.pwd)
15
+ File.open(File.join(root, 'Makefile'), 'w') {|f|
16
+ f.write "all:\n\ninstall:\n\n"
17
+ }
18
+
19
+ if RUBY_PLATFORM =~ /(?<!dar)win/
20
+ File.open(File.join(root, lib + '.dll'), 'w') {}
21
+ File.open(File.join(root, 'nmake.bat'), 'w') {}
22
+ else
23
+ File.open(File.join(root, 'make'), 'w') {|f|
24
+ f.write '#!/bin/sh'
25
+ f.chmod f.stat.mode | 0111
26
+ }
27
+ File.open(File.join(root, lib + '.so'), 'w') {}
28
+ end
29
+ end
30
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fakext
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - shura
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-08-05 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: simple library to make it easy faking an extconf
22
+ email: shura1991@gmail.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
29
+ files:
30
+ - lib/fakext.rb
31
+ has_rdoc: true
32
+ homepage: http://github.com/shurizzle/fakext
33
+ licenses: []
34
+
35
+ post_install_message:
36
+ rdoc_options: []
37
+
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ requirements: []
57
+
58
+ rubyforge_project:
59
+ rubygems_version: 1.3.7
60
+ signing_key:
61
+ specification_version: 3
62
+ summary: simple library to make it easy faking an extconf
63
+ test_files: []
64
+