Skip to content
Commits on Jan 22, 2016
  1. @hsbt

    update travis configuration

    hsbt committed
Commits on Dec 22, 2015
  1. @hsbt

    bump version to 2.0.17

    hsbt committed
  2. Merge pull request #261 from tenderlove/backport-ruby-trunk

    committed
    Backport revision r53078 and r53079 from ruby/ruby.
  3. @hsbt
Commits on Dec 7, 2015
  1. updating psych to 2.0.16

    committed
  2. Merge pull request #255 from glebm/line_width

    committed
    Fixes line width handling
Commits on Nov 14, 2015
  1. @glebm

    Fixes line_width: -1 handling #254

    glebm committed
    libyaml understands -1 as unlimited:
    https://github.com/tenderlove/psych/blob/master/ext/psych/yaml/yaml.h#L1864
    
    Raises on other negative values.
  2. @glebm
Commits on Nov 8, 2015
  1. @hsbt
Commits on Nov 6, 2015
  1. @hsbt
Commits on Sep 16, 2015
  1. Merge pull request #249 from jrafanie/reduce_string_allocations

    committed
    Use a constant to avoid thousands of String allocations of "<<"
  2. @jrafanie

    Use a constant to avoid thousands of String allocations of "<<".

    jrafanie committed
    Example script:
    
    ```ruby
    require 'allocation_tracer'
    
    ObjectSpace::AllocationTracer.setup(%i{path line type})
    
    require 'net/http'
    yaml = Net::HTTP.get(URI('https://raw.githubusercontent.com/ManageIQ/manageiq/master/spec/tools/scvmm_data/get_inventory_output_hash.yml'))
    
    require 'yaml'
    result = ObjectSpace::AllocationTracer.trace do
      YAML.load(yaml)
    end
    
    result.sort_by{|k, v| k}.each{|k, v|
      puts ([v[0]]+k).join("\t")
    }
    ```
    
    With the example above, this change avoids creating 22,000+ String objects as seen below:
    
    **Before, running master at 9055469 and rake install_gem**
    ```
    $ ruby benchmark_allocations.rb | grep T_STRING | sort -nr | head -n 10
    43444 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych.rb 376 T_STRING
    22439 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/visitors/to_ruby.rb  338 T_STRING
    7082  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  105 T_STRING
    5308  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  40  T_STRING
    3339  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  83  T_STRING
    3259  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  54  T_STRING
    3014  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  116 T_STRING
    3010  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  129 T_STRING
    3001  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  137 T_STRING
    2409  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  126 T_STRING
    ```
    
    **After this commit and rake install_gem**
    ```
    $ ruby benchmark_allocations.rb | grep T_STRING | sort -nr | head -n 10
    43444 /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych.rb 376 T_STRING
    7058  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  105 T_STRING
    5315  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  40  T_STRING
    3410  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  83  T_STRING
    3260  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  54  T_STRING
    3004  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  116 T_STRING
    3000  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  129 T_STRING
    2991  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  137 T_STRING
    2401  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  126 T_STRING
    1800  /Users/joerafaniello/.gem/ruby/2.2.3/gems/psych-2.0.15/lib/psych/scalar_scanner.rb  130 T_STRING
    ```
Commits on Sep 12, 2015
  1. @hsbt

    Merge pull request #245 from hsbt/remove-19-support

    hsbt committed
    Drop Ruby 1.9 support
  2. @hsbt

    fix comments for Ruby 1.9

    hsbt committed
Commits on Sep 9, 2015
  1. @hsbt

    Merge pull request #248 from sandersch/charlie/uknown-to-evil

    hsbt committed
    Fix spelling typo: uknown -> unknown
  2. Fix spelling typo: uknown -> unknown

    Charlie Sanders committed
Commits on Sep 2, 2015
  1. @hsbt

    Merge pull request #246 from yyamano/fix-dump

    hsbt committed
    YAML.dump fails to write a file with UTF-8 string
Commits on Aug 27, 2015
  1. @yyamano
  2. @hsbt

    removed EOL rubies

    hsbt committed
  3. @hsbt

    removed Ruby 1.9 support

    hsbt committed
Commits on Aug 21, 2015
  1. bumping version

    committed
  2. @headius
  3. Merge pull request #242 from josephbisch/omap

    committed
    Fix omap to be !!omap instead of !omap
  4. Merge branch 'jruby' of github.com:tenderlove/psych into jruby

    committed
    * 'jruby' of github.com:tenderlove/psych:
      no need to supply jruby itself to the classpath
  5. Merge pull request #237 from mkristian/no-jruby-dep

    committed
    no need to supply jruby itself to the classpath
  6. Merge branch 'master' into jruby

    committed
    * master:
      psych: allocate structs with wrapper
      update minitest gem to 5.x, add Ruby 2.2 test target
Commits on Jul 10, 2015
  1. @josephbisch
Commits on Jun 27, 2015
  1. @hsbt

    Merge pull request #233 from miketheman/update_minitest_verison

    hsbt committed
    update minitest gem to 5.x, add Ruby 2.2 test target
Commits on May 29, 2015
  1. @hsbt

    Merge pull request #238 from nobu/potential_memory_leak

    hsbt committed
    potential memory leak
  2. @nobu

    psych: allocate structs with wrapper

    nobu committed with nobu
    * ext/psych/psych_emitter.c (allocate): allocate structs with
      making new wrapper objects and get rid of potential memory leak.
    
    * ext/psych/psych_parser.c (allocate): ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 28, 2015
  1. @mkristian
Commits on May 27, 2015
  1. bumping version

    committed
Commits on May 6, 2015
  1. Merge pull request #235 from mkristian/snakeyaml-property

    committed
    little ruby-maven related improvements
  2. @mkristian

    little ruby-maven related improvements

    mkristian committed
    * pass in the snakeyaml.version via the commandline
    * use the jruby version which runs rake for the java compilation as well
Commits on May 5, 2015
  1. @headius
Something went wrong with that request. Please try again.