Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit 55c34ce

Browse files
author
Brian Durand
committed
update test, rake, and version
1 parent 4a7c18b commit 55c34ce

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

HISTORY.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
1.0.2
2+
3+
- Fix mock object used for testing (Burgestrand)
4+
5+
1.0.1
6+
7+
- No code changes. Just including the license file in the release and removing deprecated tasks.
8+
9+
1.0.0
10+
11+
- Initial release.

Rakefile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'rake'
2-
require 'rake/rdoctask'
32
require 'rake/testtask'
4-
require 'rake/gempackagetask'
3+
require 'rubygems/package_task'
54
require File.expand_path('../lib/ref', __FILE__)
65

76
desc 'Default: run unit tests.'
@@ -17,17 +16,9 @@ Rake::TestTask.new do |t|
1716
t.verbose = true
1817
end
1918

20-
desc 'Generate documentation.'
21-
Rake::RDocTask.new(:rdoc) do |rdoc|
22-
rdoc.rdoc_dir = 'rdoc'
23-
rdoc.options << '--title' << 'Ref' << '--line-numbers' << '--inline-source' << '--main' << 'README.rdoc'
24-
rdoc.rdoc_files.include('README.rdoc')
25-
rdoc.rdoc_files.include('lib/**/*.rb')
26-
end
27-
2819
spec = eval(File.read(File.expand_path('../ref.gemspec', __FILE__)))
2920

30-
Rake::GemPackageTask.new(spec) do |p|
21+
Gem::PackageTask.new(spec) do |p|
3122
p.gem_spec = spec
3223
end
3324
Rake.application["package"].prerequisites.unshift("java:build")

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.2

ref.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Gem::Specification.new do |s|
55
s.description = "Library that implements weak, soft, and strong references in Ruby that work across multiple runtimes (MRI, REE, YARV, Jruby, Rubinius, and IronRuby). Also includes implementation of maps/hashes that use references and a reference queue."
66

77
s.authors = ['Brian Durand']
8-
s.email = ['bdurand@embellishedvisions.com']
8+
s.email = ['bbdurand@gmail.com']
99
s.homepage = "http://github.com/bdurand/ref"
1010

11-
s.files = ['README.rdoc', 'VERSION'] + Dir.glob('lib/**/*'), Dir.glob('test/**/*'), Dir.glob('ext/**/*')
11+
s.files = ['README.rdoc', 'VERSION', 'MIT_LICENSE'] + Dir.glob('lib/**/*'), Dir.glob('test/**/*'), Dir.glob('ext/**/*')
1212
s.require_path = 'lib'
1313

1414
s.has_rdoc = true

test/reference_key_map_behavior.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require File.expand_path("../test_helper", __FILE__)
2-
31
module ReferenceKeyMapBehavior
42
def test_uses_the_proper_references
53
assert_equal reference_class, map_class.reference_class

test/reference_value_map_behavior.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require File.expand_path("../test_helper", __FILE__)
2-
31
module ReferenceValueMapBehavior
42
def test_keeps_entries_with_strong_references
53
Ref::Mock.use do

0 commit comments

Comments
 (0)