bert 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ = 1.1.1 / 2010-01-12
2
+ * Bug fixes
3
+ * require 'stringio'
4
+ * Fix number encoding problem on 32 bit arch
5
+
1
6
  = 1.1.0 / 2009-10-27
2
7
  * Major Changes
3
8
  * Remove reliance on Erlectricity.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -1,18 +1,18 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bert}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Preston-Werner"]
12
- s.date = %q{2009-10-28}
12
+ s.date = %q{2010-01-12}
13
13
  s.description = %q{BERT Serializiation for Ruby}
14
14
  s.email = %q{tom@mojombo.com}
15
- s.extensions = ["ext/bert/c/extconf.rb"]
15
+ s.extensions = ["ext/bert/c/extconf.rb", "ext/bert/c/extconf.rb"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.md"
@@ -69,3 +69,4 @@ Gem::Specification.new do |s|
69
69
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
70
70
  end
71
71
  end
72
+
@@ -1,5 +1,7 @@
1
1
  require 'rubygems'
2
2
 
3
+ require 'stringio'
4
+
3
5
  $:.unshift File.join(File.dirname(__FILE__), *%w[.. ext])
4
6
 
5
7
  require 'bert/bert'
@@ -78,11 +78,7 @@ module BERT
78
78
  end
79
79
 
80
80
  def write_bignum(num)
81
- if num.is_a?(Bignum)
82
- n = num.size
83
- else
84
- n = (num.to_s(2).size / 8.0).ceil
85
- end
81
+ n = (num.to_s(2).size / 8.0).ceil
86
82
  if n <= 256
87
83
  write_1 SMALL_BIGNUM
88
84
  write_1 n
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-28 00:00:00 -07:00
12
+ date: 2010-01-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -28,6 +28,7 @@ executables: []
28
28
 
29
29
  extensions:
30
30
  - ext/bert/c/extconf.rb
31
+ - ext/bert/c/extconf.rb
31
32
  extra_rdoc_files:
32
33
  - LICENSE
33
34
  - README.md