Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fixed confused load/dump #7

Merged
merged 1 commit into from over 1 year ago

2 participants

Igor Yamolov miyucy
Igor Yamolov

My bad. I am very very sorry :(

miyucy miyucy merged commit 59af3c7 into from
miyucy miyucy closed this
miyucy
Owner

Ok, no problem. thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 23, 2013
Igor Yamolov t3hk0d3 Fixed load/dump aliases 43bdf40
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 ext/api.c
  2. +1 1  test/test-snappy.rb
4 ext/api.c
@@ -88,10 +88,10 @@ void Init_snappy()
88 88 VALUE rb_mSnappy_singleton = rb_singleton_class(rb_mSnappy);
89 89
90 90 rb_define_alias(rb_mSnappy_singleton, "compress", "deflate");
91   - rb_define_alias(rb_mSnappy_singleton, "load", "deflate");
  91 + rb_define_alias(rb_mSnappy_singleton, "dump", "deflate");
92 92
93 93 rb_define_alias(rb_mSnappy_singleton, "uncompress", "inflate");
94   - rb_define_alias(rb_mSnappy_singleton, "dump", "inflate");
  94 + rb_define_alias(rb_mSnappy_singleton, "load", "inflate");
95 95
96 96 rb_require("snappy/writer");
97 97 rb_require("snappy/reader");
2  test/test-snappy.rb
@@ -15,7 +15,7 @@
15 15 [
16 16 [:deflate, :inflate],
17 17 [:compress, :uncompress],
18   - [:load, :dump],
  18 + [:dump, :load],
19 19 ].each do |(i, o)|
20 20 Snappy.__send__(o, (Snappy.__send__ i, s)).must_equal(s)
21 21 eval %{Snappy.#{o}(Snappy.#{i} s).must_equal(s)}

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.