]>
git.wincent.com - mkdtemp.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Wincent Colaiuta [Sun, 6 Dec 2009 13:31:30 +0000 (14:31 +0100)]
Silence warning compiling against Ruby 1.9
Silence this warning:
mkdtemp.c:52: warning: format ‘%d’ expects type ‘int’, but argument 3
has type ‘long int’
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sun, 6 Dec 2009 13:26:11 +0000 (14:26 +0100)]
Don't write directly to Ruby String object storage
Rather than overwriting part of the buffer that Ruby uses to store the
template String, create a temporary C string for use with mkdtemp.
In practice, there has never been a problem with this kind of direct
manipulation of Ruby String storage with any version of Ruby that I have
tested, but just to be future-proof we err on the side of caution here.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sun, 6 Dec 2009 12:47:22 +0000 (13:47 +0100)]
Use RSTRING_PTR macro for Ruby 1.9 compatibility
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sun, 28 Sep 2008 21:50:45 +0000 (23:50 +0200)]
Add specs
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sun, 28 Sep 2008 10:09:35 +0000 (12:09 +0200)]
Ignore "html" and "pkg" directories
These can be regenerated on the fly so no sense in tracking them in the
repository.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sun, 28 Sep 2008 10:08:39 +0000 (12:08 +0200)]
Use RubyForge as homepage
Alter the GemSpec to point to the RubyForge site as the official project
page.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sun, 28 Sep 2008 10:07:49 +0000 (12:07 +0200)]
Set up RDoc
Provide a top-level README and a Rake task for building RDoc
documentation.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:55:02 +0000 (18:55 +0200)]
Changes to rakefile to get the extension building
Some paths have changed (the extension was one directory deeper) when it
was in Walrus, and the GemSpec obviously needs to be updated as well.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:54:19 +0000 (18:54 +0200)]
Add notes about platform variation in the mkdtemp() function
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:46:11 +0000 (18:46 +0200)]
Update copyright range to include 2008
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:45:46 +0000 (18:45 +0200)]
Remove reference to Walrus in function name
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:42:53 +0000 (18:42 +0200)]
Style changes: declaration after statement
Move declarations so that they are prior to statements and remove
unnecessary temporary variable.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:40:05 +0000 (18:40 +0200)]
Avoid unnecessary reallocation in mkdtemp function
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:38:10 +0000 (18:38 +0200)]
Clarify and re-format comments
Note that the template is overwritten in-place if supplied. Reformat for
better display in narrow terminals.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 16:13:08 +0000 (18:13 +0200)]
Ignore built products in "ext" directory
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 10:53:55 +0000 (12:53 +0200)]
Add version file
This adds a version number constant, Dir::Mkdtemp::VERSION.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 10:09:30 +0000 (12:09 +0200)]
Add license file
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Wincent Colaiuta [Sat, 27 Sep 2008 09:53:41 +0000 (11:53 +0200)]
Initial import from Walrus
This corresponds to Walrus commit
79380d8 (26 September 2008).
Signed-off-by: Wincent Colaiuta <win@wincent.com>