Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 72838eb1456af1fc3b7ada2ebbb13a48aad4e112 @ak-mochi ak-mochi committed Mar 21, 2013
Showing with 59 additions and 0 deletions.
  1. +22 −0 .gitignore
  2. +2 −0 README.md
  3. +4 −0 mrbgem.rake
  4. +31 −0 mrblib/tempfile.rb
  5. 0 test/tempfile.rb
@@ -0,0 +1,22 @@
+# Object files
+*.o
+
+# Libraries
+*.lib
+*.a
+
+# Shared objects (inc. Windows DLLs)
+*.dll
+*.so
+*.so.*
+*.dylib
+
+# Executables
+*.exe
+*.out
+*.app
+
+.*.swp
+/tmp
+
+*~
@@ -0,0 +1,2 @@
+mruby-tempfile
+==============
@@ -0,0 +1,4 @@
+MRuby::Gem::Specification.new('mruby-tempfile') do |spec|
+ spec.license = 'MIT'
+ spec.authors = 'mruby developers'
+end
@@ -0,0 +1,31 @@
+class Tempfile < File
+ def close(real=false)
+
+ end
+
+ def close!
+
+ end
+
+ def delete
+
+ end
+
+ alias :unlink :delete
+
+ def length
+
+ end
+
+ alias :size :length
+
+ def open
+
+ end
+
+ def path
+
+ end
+
+end
+
No changes.

0 comments on commit 72838eb

Please sign in to comment.