memoize 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/CHANGES +5 -0
  2. data/MANIFEST +9 -12
  3. data/README +5 -6
  4. data/Rakefile +24 -0
  5. data/lib/memoize.rb +1 -1
  6. data/test/tc_memoize.rb +2 -2
  7. metadata +27 -18
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ = 1.2.3 - 24-May-2007
2
+ * Added a Rakefile with tasks for testing and installation.
3
+ * Removed the install.rb file. Installation is now handled by the Rakefile tasks.
4
+ * Minor updates to the README and MANIFEST files.
5
+
1
6
  = 1.2.2 - 4-Feb-2006
2
7
  * In the last release I accidentally removed the ability to cache nil and
3
8
  false. That ability has been restored. Thanks go to Brian Buckley for
data/MANIFEST CHANGED
@@ -1,12 +1,9 @@
1
- CHANGES
2
- MANIFEST
3
- README
4
- install.rb
5
- memoize.gemspec
6
-
7
- examples/fibonacci.rb
8
- examples/test_memoize.rb
9
-
10
- lib/memoize.rb
11
-
12
- test/tc_memoize.rb
1
+ * CHANGES
2
+ * MANIFEST
3
+ * README
4
+ * Rakefile
5
+ * memoize.gemspec
6
+ * examples/fibonacci.rb
7
+ * examples/test_memoize.rb
8
+ * lib/memoize.rb
9
+ * test/tc_memoize.rb
data/README CHANGED
@@ -6,13 +6,12 @@
6
6
 
7
7
  = Installation
8
8
  == Standard Installation
9
- ruby test/tc_memoize.rb (optional)
10
- ruby install.rb
9
+ rake test (optional)
10
+ rake install
11
11
 
12
12
  == Gems Installation
13
- ruby test/tc_memoize.rb (optional)
14
- ruby memoize.gemspec
15
- gem install memoize-x.y.z.gem # Where 'x.y.z' is the version
13
+ rake test (optional)
14
+ rake gem install
16
15
 
17
16
  = Synopsis
18
17
  require "memoize"
@@ -67,7 +66,7 @@ Memoize#memoize(method, file=nil)
67
66
  Ruby's
68
67
 
69
68
  == Copyright
70
- (C) 2005, 2006 Daniel J. Berger
69
+ (C) 2005-2007 Daniel J. Berger
71
70
  All Rights Reserved
72
71
 
73
72
  = Author
@@ -0,0 +1,24 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rbconfig'
4
+ include Config
5
+
6
+ desc 'Install the memoize package (non-gem)'
7
+ task :install do
8
+ sitelibdir = CONFIG["sitelibdir"]
9
+ file = "lib/memoize.rb"
10
+ FileUtils.cp(file, sitelibdir, :verbose => true)
11
+ end
12
+
13
+ task :install_gem do
14
+ ruby 'memoize.gemspec'
15
+ file = Dir["*.gem"].first
16
+ sh "gem install #{file}"
17
+ end
18
+
19
+ Rake::TestTask.new do |t|
20
+ t.libs << 'test'
21
+ t.verbose = true
22
+ t.warning = true
23
+ t.test_files = FileList['test/tc_memoize.rb']
24
+ end
@@ -1,5 +1,5 @@
1
1
  module Memoize
2
- MEMOIZE_VERSION = "1.2.2"
2
+ MEMOIZE_VERSION = "1.2.3"
3
3
 
4
4
  # Memoize the method +name+. If +file+ is provided, then the method results
5
5
  # are stored on disk as well as in memory.
@@ -35,7 +35,7 @@ class TC_Memoize < Test::Unit::TestCase
35
35
  end
36
36
 
37
37
  def test_version
38
- assert_equal("1.2.2", Memoize::MEMOIZE_VERSION)
38
+ assert_equal("1.2.3", Memoize::MEMOIZE_VERSION)
39
39
  end
40
40
 
41
41
  def test_memoize
@@ -70,7 +70,7 @@ class TC_Memoize < Test::Unit::TestCase
70
70
 
71
71
  def teardown
72
72
  @cache1 = nil
73
- @cachd2 = nil
73
+ @cache2 = nil
74
74
  File.delete(@file) if File.exists?(@file)
75
75
  end
76
76
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: memoize
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.2
7
- date: 2006-02-04
6
+ version: 1.2.3
7
+ date: 2007-05-24 00:00:00 -06:00
8
8
  summary: Speeds up methods at the cost of memory (or disk space)
9
9
  require_paths:
10
- - lib
10
+ - lib
11
11
  email: djberg96@gmail.com
12
12
  homepage: http://www.rubyforge.org/projects/shards
13
13
  rubyforge_project:
@@ -18,27 +18,36 @@ bindir: bin
18
18
  has_rdoc: true
19
19
  required_ruby_version: !ruby/object:Gem::Version::Requirement
20
20
  requirements:
21
- -
22
- - ">"
23
- - !ruby/object:Gem::Version
24
- version: 0.0.0
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
25
24
  version:
26
25
  platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
27
29
  authors:
28
- - Daniel J. Berger
30
+ - Daniel J. Berger
29
31
  files:
30
- - lib/memoize.rb
31
- - README
32
- - CHANGES
33
- - MANIFEST
34
- - test/tc_memoize.rb
32
+ - lib/memoize.rb
33
+ - CHANGES
34
+ - MANIFEST
35
+ - README
36
+ - Rakefile
37
+ - test/tc_memoize.rb
35
38
  test_files:
36
- - test/tc_memoize.rb
39
+ - test/tc_memoize.rb
37
40
  rdoc_options: []
41
+
38
42
  extra_rdoc_files:
39
- - README
40
- - CHANGES
43
+ - MANIFEST
44
+ - README
45
+ - CHANGES
41
46
  executables: []
47
+
42
48
  extensions: []
49
+
43
50
  requirements: []
44
- dependencies: []
51
+
52
+ dependencies: []
53
+