bencode_ext 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/bencode_ext.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bencode_ext}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["naquad"]
@@ -314,7 +314,7 @@ static VALUE set_max_depth(VALUE self, VALUE depth){
314
314
 
315
315
  t = NUM2LONG(depth);
316
316
  if(t < 0)
317
- rb_raise(rb_eArgError, "Depth must be between 0 and 5000000");
317
+ rb_raise(rb_eArgError, "Depth must be greather than or equal to 0");
318
318
 
319
319
  max_depth = t;
320
320
  return depth;
@@ -7,6 +7,7 @@ static VALUE BEncode;
7
7
  static VALUE DecodeError;
8
8
  static VALUE EncodeError;
9
9
  static VALUE readId;
10
+ static long max_depth;
10
11
 
11
12
  static long parse_num(char**, long*);
12
13
  static VALUE decode(VALUE, VALUE);
@@ -18,7 +19,6 @@ static VALUE _decode_file(VALUE);
18
19
  static VALUE decode_file(VALUE, VALUE);
19
20
  static VALUE get_max_depth(VALUE);
20
21
  static VALUE set_max_depth(VALUE, VALUE);
21
- static long max_depth;
22
22
  void Init_bencode_ext();
23
23
 
24
24
  #endif
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - naquad