Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Dec 15, 2008
  1. @indirect

    Allow the location of lib-oniguruma to be passed in

    indirect authored
    For example, to install via ports on Mac OS X 10.5:
    sudo port install oniguruma5
    sudo gem install oniguruma -- --with-onig-dir=/opt/local
Commits on Sep 10, 2008
Commits on May 16, 2007
  1. @dichodaemon
Commits on Apr 16, 2007
  1. @dichodaemon

    * Fixed string escaping in ORegexp#to_str and ORegexp#inspect.

    dichodaemon authored
    * Added begin parameter to ORegexp#match.
Commits on Mar 28, 2007
  1. Restore check for onig version to build with 4.6

    Nikolai Lugovoi authored
    In getting replacement do not create temp string object, but directly add to resulting buffer (performance impr.)
Commits on Mar 27, 2007
  1. @dichodaemon

    * Added documentation for MatchData.

    dichodaemon authored
    * Added ogsub, ogsub!, sub and sub! to ::String.
    * Removed ::String definitions from tests.
    * Now the minimal recommended version of Oniguruma is 5.5 or higher.
    * Removed ugly #if statements from c code.
    * Updated rakefile and History.txt for v1.0.0.
  2. Do not create @named_captures hash if there are no named groups for r…

    Nikolai Lugovoi authored
    …egexp -- somewhat improve speed for repetive calls
  3. Move ORegexp#=~ to C code, make it work just like Regexp#=~, i.e. set…

    Nikolai Lugovoi authored
    … $~. Throw ArgumentError instead of Exception if pattern does not compile
  4. Fix implementation of ORegexp#===, so it now does not raise errors in…

    Nikolai Lugovoi authored
    … case statement anymore
    
    (resembles plain Ruby Regexp#=== behaviour)
Commits on Mar 26, 2007
  1. @dichodaemon

    * Modified begin, end and offset methods in MatchData to handle named…

    dichodaemon authored
    … groups and default to group 0.
    
    * Exception is not longer thrown when in oregexp_make_match_data.
  2. @dichodaemon
  3. @dichodaemon
  4. fix off by one error in region->num_regs usage

    Nikolai Lugovoi authored
  5. fix dumb bug with zero-width matches that made infinite loops. now co…

    Nikolai Lugovoi authored
    …nsume at least one char in gsub and scan
  6. ugly #if checks to make it build and run most tests against 2.5.8, 4.…

    Nikolai Lugovoi authored
    …6.1, 5.5.3.
    
    Probably just recommend using v5.5 or higher?
  7. ORegexp API changes:

    Nikolai Lugovoi authored
    * Pass only MatchData to sub/gsub with blocks
        oregexp.sub( str ) {|match_data| ... }
        oregexp.gsub( str ) {|match_data| ... }
    
    * Add ORegexp#scan instead of match_all
        oregexp.scan(str) {|match_data| ... } # => MultiMatchData
    
    * Friendly way to set options 
        ORegexp.new( pattern, options_str, encoding, syntax)
    
        ORegexp.new('\w+', 'imsx', 'koi8r', 'perl')
        
    *  Named backreferences in substitions 
        ORegexp.new('(?<pre>\w+)\d+(?<after>\w+)').sub('abc123def', '\<after>123\<pre>')  #=> 'def123abc'
    
    * couple of bugfixes with region's num_regs
    
    * some  docs for substitution methods added
Commits on Mar 25, 2007
  1. @dichodaemon

    - FIX: Buggy resolution of numeric codes for encoding and syntax opti…

    dichodaemon authored
    …ons (Nikolai Lugovoi)
    
    - FIX: Buggy implementation of ORegexp#gsub and  ORegexp#gsub methods. Now code is all C (Nikolai Lugovoi)
Commits on Mar 22, 2007
  1. @dichodaemon

    initial import

    dichodaemon authored
Something went wrong with that request. Please try again.