Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: crossplatform
Commits on Dec 13, 2011
  1. steal platform-specific C++ config from eventmachine

    William Morgan authored
    It's in platform.rb.
  2. minor Rakefile fix for 1.9.3

    William Morgan authored
    Sigh. (Thanks to technoweenie.)
Commits on Dec 7, 2011
  1. Merge pull request #10 from technoweenie/iterator

    authored
    Improve DB iteration
  2. @technoweenie
  3. @technoweenie
Commits on Dec 4, 2011
  1. @technoweenie
Commits on Dec 3, 2011
  1. @technoweenie
  2. @technoweenie
  3. @technoweenie

    add a test

    technoweenie authored
  4. @technoweenie
  5. @technoweenie
  6. @technoweenie
  7. @technoweenie
  8. @technoweenie
  9. @technoweenie
Commits on Nov 29, 2011
  1. @technoweenie
  2. @technoweenie

    add iteration test

    technoweenie authored
Commits on Nov 28, 2011
  1. @technoweenie
  2. @technoweenie
  3. @technoweenie
  4. @technoweenie

    Update DB#each to take 3 optional args: key_from, key_to, reversed

    technoweenie authored
    Default: list all keys
        >> db.each { |k,v| puts k }
        a
        b
        c
    
    Set a key_from:
        >> db.each('b') { |k,v| puts k }
        b
        c
    
    Set a key_from and key_to:
        >> db.each('a', 'c') { |k,v| puts k }
        a
        b
    
    Reversed!
        >> db.each(nil, nil, true) { |k,v| puts k }
        c
        b
        a
    
    Reversed key_from:
        >> db.each('b', nil, true) { |k,v| puts k }
        b
        a
Commits on Oct 26, 2011
  1. bump version

    authored
  2. sigh. only tweak certain compile flags on darwin.

    authored
    Otherwise they actually do break on some Linux systems.
  3. bump version

    authored
  4. remove -arch i386 flags, add -lruby

    authored
    Not sure why I have to do this type of thing, but it makes things
    compile with older REEs on OS X, and doesn't interfere with Linux.
Commits on Oct 25, 2011
  1. bump version

    authored
  2. tweak RELEASE-SCRIPT

    authored
  3. use -fPIC when compiling

    authored
  4. Merge pull request #8 from DataWraith/master

    authored
    LevelDB::DB.{new,create,load} should coerce the pathname argument into a string
Commits on Oct 22, 2011
  1. @DataWraith

    Use File.path to coerce pathname arguments into Strings in 1.9

    DataWraith authored
    The previous commit introduced the use of #to_str on the given pathname
    to coerce it into a String, matching the behavior of File.open and other
    file handling functions under 1.8.
    
    Ruby 1.9 introduces the File.path method for this purpose and deprecates
    the use of #to_str on classes such as Pathname. This commit introduces
    a private helper, path_string, that uses File.path when available and
    falls back to #to_str otherwise.
    
    Tested with MRI 1.8.7 and 1.9.2.
Commits on Oct 16, 2011
  1. @DataWraith

    Call #to_str on the argument given to DB#{new, create, load}

    DataWraith authored
    This matches the behavior of `File.open`. In particular, it allows us
    to pass Pathname objects (from the pathname standard library) to the
    DB functions.
Commits on Jul 28, 2011
  1. Merge pull request #3 from stevewilhelm/master

    authored
    Fixed README example
Something went wrong with that request. Please try again.