bert 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ = 1.1.2 / 2010-02-08
2
+ * Bug fixes
3
+ * Fix bignum handling on 256 byte boundary
4
+ * Remove unnecessary rubygems require
5
+
1
6
  = 1.1.1 / 2010-01-12
2
7
  * Bug fixes
3
8
  * require 'stringio'
data/Rakefile CHANGED
@@ -28,7 +28,7 @@ Rake::TestTask.new(:runtests) do |test|
28
28
  end
29
29
 
30
30
  task :make do
31
- Dir.chdir('ext/bert/c') { `make` }
31
+ Dir.chdir('ext/bert/c') { `ruby extconf.rb`; `make` }
32
32
  end
33
33
 
34
34
  task :clean do
@@ -50,7 +50,7 @@ task :test => :check_dependencies do
50
50
  Process.waitpid(pid)
51
51
 
52
52
  puts "\nRunning `make` to build extensions and rerunning decoder specs..."
53
- Dir.chdir('ext/bert/c') { `make` }
53
+ Dir.chdir('ext/bert/c') { `ruby extconf.rb`; `make` }
54
54
  pid = fork do
55
55
  exec 'rake runtests'
56
56
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bert}
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
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{2010-01-12}
12
+ s.date = %q{2010-02-08}
13
13
  s.description = %q{BERT Serializiation for Ruby}
14
14
  s.email = %q{tom@mojombo.com}
15
15
  s.extensions = ["ext/bert/c/extconf.rb", "ext/bert/c/extconf.rb"]
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
 
3
2
  require 'stringio'
4
3
 
@@ -79,7 +79,7 @@ module BERT
79
79
 
80
80
  def write_bignum(num)
81
81
  n = (num.to_s(2).size / 8.0).ceil
82
- if n <= 256
82
+ if n < 256
83
83
  write_1 SMALL_BIGNUM
84
84
  write_1 n
85
85
  write_bignum_guts(num)
@@ -44,6 +44,8 @@ class BertTest < Test::Unit::TestCase
44
44
  dd << {:a => 1, :b => 2}
45
45
  dd << Time.now
46
46
  dd << /^c(a)t$/i
47
+
48
+ dd << 256**256 - 1
47
49
 
48
50
  dd << :true
49
51
  dd << :false
@@ -3,6 +3,8 @@ require 'test/unit'
3
3
  require 'shoulda'
4
4
 
5
5
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
- $LOAD_PATH.unshift(File.dirname(__FILE__))
7
- require 'bert'
6
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'ext', 'bert', 'c'))
7
+
8
+ load 'bert.rb'
9
+
8
10
  puts "Using #{BERT::Decode.impl} implementation."
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.1
4
+ version: 1.1.2
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: 2010-01-12 00:00:00 -08:00
12
+ date: 2010-02-08 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency