]> git.wincent.com - mkdtemp.git/log
mkdtemp.git
13 years agoSilence warning compiling against Ruby 1.9
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>
13 years agoDon't write directly to Ruby String object storage
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>
13 years agoUse RSTRING_PTR macro for Ruby 1.9 compatibility
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>
14 years agoAdd specs 1.0
Wincent Colaiuta [Sun, 28 Sep 2008 21:50:45 +0000 (23:50 +0200)] 
Add specs

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoIgnore "html" and "pkg" directories
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>
14 years agoUse RubyForge as homepage
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>
14 years agoSet up RDoc
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>
14 years agoChanges to rakefile to get the extension building
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>
14 years agoAdd notes about platform variation in the mkdtemp() function
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>
14 years agoUpdate copyright range to include 2008
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>
14 years agoRemove reference to Walrus in function name
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>
14 years agoStyle changes: declaration after statement
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>
14 years agoAvoid unnecessary reallocation in mkdtemp function
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>
14 years agoClarify and re-format comments
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>
14 years agoIgnore built products in "ext" directory
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>
14 years agoAdd version file
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>
14 years agoAdd license file
Wincent Colaiuta [Sat, 27 Sep 2008 10:09:30 +0000 (12:09 +0200)] 
Add license file

Signed-off-by: Wincent Colaiuta <win@wincent.com>
14 years agoInitial import from Walrus start
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>