ddmemoize 1.0.0a1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7674a9402beca0c7c7aa4bcf22c5095856bd4c77cd8994ff5677fa0784fd5f5c
4
+ data.tar.gz: '090adce10054d2c7f63725947ce96ccb2eff67be093dd6042968600994515191'
5
+ SHA512:
6
+ metadata.gz: 1a0df32a98e11ea5280e6d15191057e62397dde1796b73e3fe17b264133f47f8b454da468daf854f0ae3102261206141449832e41d19f83274cb11f4c9bcaecc
7
+ data.tar.gz: cb30c1743351a11dfcdbaea5a9a907f4587c68cfe1b9265a78a654fcea6bc94a2e495e1628240edfbba0ced548ca20cf6da56484ef843e1a7f0cb0f3d30a7a78
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ *.gem
3
+ /.vscode/
4
+ /coverage/
5
+ /Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ -r ./spec/spec_helper.rb
2
+ --format Fuubar
3
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,54 @@
1
+ # ----- CONFIGURED -----
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.3
5
+ DisplayCopNames: true
6
+
7
+ Style/TrailingCommaInArguments:
8
+ EnforcedStyleForMultiline: comma
9
+
10
+ Style/TrailingCommaInLiteral:
11
+ EnforcedStyleForMultiline: comma
12
+
13
+ Layout/IndentArray:
14
+ EnforcedStyle: consistent
15
+
16
+ # The documentation lives in the README.
17
+ Style/Documentation:
18
+ Enabled: false
19
+
20
+
21
+
22
+ # ----- DISABLED (metrics) -----
23
+
24
+ # Cops for metrics are disabled because they should not cause tests to fail.
25
+
26
+ Metrics/AbcSize:
27
+ Enabled: false
28
+
29
+ Metrics/BlockLength:
30
+ Enabled: false
31
+
32
+ Metrics/BlockNesting:
33
+ Enabled: false
34
+
35
+ Metrics/ClassLength:
36
+ Enabled: false
37
+
38
+ Metrics/CyclomaticComplexity:
39
+ Enabled: false
40
+
41
+ Metrics/LineLength:
42
+ Enabled: false
43
+
44
+ Metrics/MethodLength:
45
+ Enabled: false
46
+
47
+ Metrics/ModuleLength:
48
+ Enabled: false
49
+
50
+ Metrics/ParameterLists:
51
+ Enabled: false
52
+
53
+ Metrics/PerceivedComplexity:
54
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - "2.3"
5
+ - "2.4"
6
+
7
+ branches:
8
+ only:
9
+ - "master"
10
+
11
+ cache: bundler
12
+
13
+ sudo: false
14
+
15
+ git:
16
+ depth: 10
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at denis.defreyne@stoneship.org. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ group :devel do
8
+ gem 'codecov', require: false
9
+ gem 'fuubar'
10
+ gem 'rake'
11
+ gem 'rspec'
12
+ gem 'rubocop', '~> 0.50'
13
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Denis Defreyne
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/NEWS.md ADDED
@@ -0,0 +1,5 @@
1
+ # DDMemoize news
2
+
3
+ ## 1.0.0a1 (2017-12-02)
4
+
5
+ Initial release.
data/README.md ADDED
@@ -0,0 +1,103 @@
1
+ [![Gem version](https://img.shields.io/gem/v/ddmemoize.svg)](http://rubygems.org/gems/ddmemoize)
2
+ [![Gem downloads](https://img.shields.io/gem/dt/ddmemoize.svg)](http://rubygems.org/gems/ddmemoize)
3
+ [![Build status](https://img.shields.io/travis/ddfreyne/ddmemoize.svg)](https://travis-ci.org/ddfreyne/ddmemoize)
4
+ [![Code Climate](https://img.shields.io/codeclimate/github/ddfreyne/ddmemoize.svg)](https://codeclimate.com/github/ddfreyne/ddmemoize)
5
+ [![Code Coverage](https://img.shields.io/codecov/c/github/ddfreyne/ddmemoize.svg)](https://codecov.io/gh/ddfreyne/ddmemoize)
6
+
7
+ # DDMemoize
8
+
9
+ _DDMemoize_ adds support for memoizing Ruby functions.
10
+
11
+ For example, the following Fibonacci implementation runs quickly (in O(n) rather than in O(2^n)):
12
+
13
+ ```ruby
14
+ class FibFast
15
+ DDMemoize.activate(self)
16
+
17
+ memoized def run(n)
18
+ if n == 0
19
+ 0
20
+ elsif n == 1
21
+ 1
22
+ else
23
+ run(n - 1) + run(n - 2)
24
+ end
25
+ end
26
+ end
27
+ ```
28
+
29
+ Features:
30
+
31
+ * Supports memoizing functions on frozen objects
32
+ * Releases memoized values when needed in order to reduce memory pressure
33
+
34
+ ## Installation
35
+
36
+ Add this line to your application's Gemfile:
37
+
38
+ ```ruby
39
+ gem 'ddmemoize'
40
+ ```
41
+
42
+ And then execute:
43
+
44
+ $ bundle
45
+
46
+ Or install it yourself as:
47
+
48
+ $ gem install ddmemoize
49
+
50
+ ## Usage
51
+
52
+ First, require `ddmemoize` and enable it using `DDMemoize.activate`:
53
+
54
+ ```ruby
55
+ require 'ddmemoize'
56
+
57
+ class FibFast
58
+ DDMemoize.activate(self)
59
+
60
+ # …
61
+ end
62
+ ```
63
+
64
+ To memoize a function, call `memoize` with the name of the function:
65
+
66
+ ```ruby
67
+ def run(n)
68
+ # …
69
+ end
70
+ memoize :run
71
+ ```
72
+
73
+ Alternatively, prepend `memoized` to the function definition:
74
+
75
+ ```ruby
76
+ memoized def run(n)
77
+ # …
78
+ end
79
+ ```
80
+
81
+ Do not memoie functions that depend on mutable state.
82
+
83
+ ## Development
84
+
85
+ Install dependencies:
86
+
87
+ $ bundle
88
+
89
+ Run tests:
90
+
91
+ $ bundle exec rake
92
+
93
+ ## Contributing
94
+
95
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ddfreyne/ddmemoize. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
96
+
97
+ ## License
98
+
99
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
100
+
101
+ ## Code of Conduct
102
+
103
+ Everyone interacting in the DDMemoize project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ddfreyne/ddmemoize/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rubocop/rake_task'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec) do |t|
7
+ t.verbose = false
8
+ end
9
+
10
+ RuboCop::RakeTask.new(:rubocop)
11
+
12
+ task default: :test
13
+
14
+ task test: %i[spec rubocop]
data/ddmemoize.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/ddmemoize/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'ddmemoize'
7
+ spec.version = DDMemoize::VERSION
8
+ spec.authors = ['Denis Defreyne']
9
+ spec.email = ['denis+rubygems@denis.ws']
10
+
11
+ spec.summary = 'Adds support for memoizing functions'
12
+ spec.homepage = 'https://github.com/ddfreyne/ddmemoize'
13
+ spec.license = 'MIT'
14
+
15
+ spec.required_ruby_version = '>= 2.3.0'
16
+
17
+ spec.add_runtime_dependency('ref', '~> 2.0')
18
+
19
+ spec.files = `git ls-files -z`.split("\x0")
20
+ spec.require_paths = ['lib']
21
+ end
data/lib/ddmemoize.rb ADDED
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ref'
4
+
5
+ require_relative 'ddmemoize/version'
6
+
7
+ module DDMemoize
8
+ class Value
9
+ attr_reader :value
10
+
11
+ def initialize(value)
12
+ @value = value
13
+ end
14
+ end
15
+
16
+ NONE = Object.new
17
+
18
+ def self.activate(mod)
19
+ mod.extend(Mixin)
20
+ end
21
+
22
+ module Mixin
23
+ def memoize(method_name)
24
+ original_method_name = '__nonmemoized_' + method_name.to_s
25
+ alias_method original_method_name, method_name
26
+
27
+ instance_cache = Hash.new { |hash, key| hash[key] = {} }
28
+
29
+ define_method(method_name) do |*args|
30
+ instance_method_cache = instance_cache[self]
31
+
32
+ value = NONE
33
+ if instance_method_cache.key?(args)
34
+ object = instance_method_cache[args].object
35
+ value = object ? object.value : NONE
36
+ end
37
+
38
+ if value.equal?(NONE)
39
+ send(original_method_name, *args).tap do |r|
40
+ instance_method_cache[args] = Ref::SoftReference.new(Value.new(r))
41
+ end
42
+ else
43
+ value
44
+ end
45
+ end
46
+ end
47
+ alias memoized memoize
48
+ end
49
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DDMemoize
4
+ VERSION = '1.0.0a1'
5
+ end
data/scripts/release ADDED
@@ -0,0 +1,97 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'fileutils'
5
+ require 'octokit'
6
+
7
+ def run(*args)
8
+ puts 'I will execute the following:'
9
+ puts ' ' + args.map { |a| a =~ /\s/ ? a.inspect : a }.join(' ')
10
+ print 'Is this correct? [y/N] '
11
+ res = gets
12
+ unless res.strip.casecmp('y').zero?
13
+ warn 'Answer was not Y; release aborted.'
14
+ exit 1
15
+ end
16
+
17
+ system('echo', *args)
18
+ system(*args)
19
+
20
+ print 'Continue? [y/N] '
21
+ res = gets
22
+ unless res.strip.casecmp('y').zero?
23
+ warn 'Answer was not Y; release aborted.'
24
+ exit 1
25
+ end
26
+
27
+ true
28
+ end
29
+
30
+ puts '=== Logging in to GitHub’s API…'
31
+ client = Octokit::Client.new(netrc: true)
32
+ puts
33
+
34
+ puts '=== Deleting old *.gem files…'
35
+ Dir['*.gem'].each do |fn|
36
+ puts " #{fn}…"
37
+ FileUtils.rm_f(fn)
38
+ end
39
+ puts
40
+
41
+ puts '=== Verifying presence of release date…'
42
+ unless File.readlines('NEWS.md').drop(2).first =~ / \(\d{4}-\d{2}-\d{2}\)$/
43
+ warn 'No proper release date found!'
44
+ exit 1
45
+ end
46
+ puts
47
+
48
+ puts '=== Building new gem…'
49
+ run('gem', 'build', 'ddmemoize.gemspec')
50
+ puts
51
+
52
+ puts '=== Reading version…'
53
+ require './lib/ddmemoize/version'
54
+ puts "Version = #{DDMemoize::VERSION}"
55
+ puts
56
+
57
+ puts '=== Verifying that release does not yet exist…'
58
+ releases = client.releases('ddfreyne/ddmemoize')
59
+ release = releases.find { |r| r.tag_name == DDMemoize::VERSION }
60
+ if release
61
+ warn 'Release already exists!'
62
+ warn 'ABORTED!'
63
+ exit 1
64
+ end
65
+ puts
66
+
67
+ puts '=== Creating Git tag…'
68
+ run('git', 'tag', '--sign', '--annotate', DDMemoize::VERSION, '--message', "Version #{DDMemoize::VERSION}")
69
+ puts
70
+
71
+ puts '=== Pushing Git data…'
72
+ run('git', 'push', 'origin', '--tags')
73
+ puts
74
+
75
+ puts '=== Pushing gem…'
76
+ run('gem', 'push', "ddmemoize-#{DDMemoize::VERSION}.gem")
77
+ puts
78
+
79
+ puts '=== Reading release notes…'
80
+ release_notes =
81
+ File.readlines('NEWS.md')
82
+ .drop(4)
83
+ .take_while { |l| l !~ /^## / }
84
+ .join
85
+ puts
86
+
87
+ puts '=== Creating release on GitHub…'
88
+ sleep 3 # Give GitHub some time to detect the new tag
89
+ is_prerelease = DDMemoize::VERSION =~ /a|b|rc/ || DDMemoize::VERSION =~ /^0/
90
+ client.create_release(
91
+ 'ddfreyne/ddmemoize', DDMemoize::VERSION,
92
+ prerelease: !is_prerelease.nil?,
93
+ body: release_notes
94
+ )
95
+ puts
96
+
97
+ puts 'DONE!'
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ describe DDMemoize do
4
+ it 'has a version number' do
5
+ expect(DDMemoize::VERSION).not_to be nil
6
+ end
7
+
8
+ class MemoizationSpecSample1
9
+ DDMemoize.activate(self)
10
+
11
+ def initialize(value)
12
+ @value = value
13
+ end
14
+
15
+ def run(n)
16
+ @value * 10 + n
17
+ end
18
+ memoize :run
19
+ end
20
+
21
+ class MemoizationSpecSample2
22
+ DDMemoize.activate(self)
23
+
24
+ def initialize(value)
25
+ @value = value
26
+ end
27
+
28
+ def run(n)
29
+ @value * 100 + n
30
+ end
31
+ memoize :run
32
+ end
33
+
34
+ class MemoizationSpecUpcaser
35
+ DDMemoize.activate(self)
36
+
37
+ def run(value)
38
+ value.upcase
39
+ end
40
+ memoize :run
41
+ end
42
+
43
+ class MemoizationSpecUpcaserInlineSyntax
44
+ DDMemoize.activate(self)
45
+
46
+ memoized def run(value)
47
+ value.upcase
48
+ end
49
+ end
50
+
51
+ class MemoizationSpecInlineSyntaxReturn
52
+ DDMemoize.activate(self)
53
+
54
+ class << self
55
+ attr_reader :sym
56
+ end
57
+
58
+ def self.record(sym)
59
+ @sym = sym
60
+ end
61
+
62
+ record memoized def run; end
63
+ end
64
+
65
+ example do
66
+ sample1a = MemoizationSpecSample1.new(10)
67
+ sample1b = MemoizationSpecSample1.new(15)
68
+ sample2a = MemoizationSpecSample2.new(20)
69
+ sample2b = MemoizationSpecSample2.new(25)
70
+
71
+ 3.times do
72
+ expect(sample1a.run(5)).to eq(10 * 10 + 5)
73
+ expect(sample1b.run(7)).to eq(10 * 15 + 7)
74
+ expect(sample2a.run(5)).to eq(100 * 20 + 5)
75
+ expect(sample2b.run(7)).to eq(100 * 25 + 7)
76
+ end
77
+ end
78
+
79
+ it 'supports frozen objects' do
80
+ sample = MemoizationSpecSample1.new(10)
81
+ sample.freeze
82
+ sample.run(5)
83
+ end
84
+
85
+ it 'supports memoized def … syntax' do
86
+ upcaser = MemoizationSpecUpcaserInlineSyntax.new
87
+ expect(upcaser.run('hi')).to eq('HI')
88
+ end
89
+
90
+ it 'does not crash on #inspect' do
91
+ upcaser = MemoizationSpecUpcaser.new
92
+ 10_000.times do |i|
93
+ upcaser.run("hello world #{i}")
94
+ end
95
+
96
+ GC.start
97
+ GC.start
98
+
99
+ upcaser.inspect
100
+ end
101
+
102
+ it 'returns method name' do
103
+ expect(MemoizationSpecInlineSyntaxReturn.sym).to eq(:run)
104
+ end
105
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+
6
+ require 'codecov'
7
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
8
+
9
+ require 'ddmemoize'
10
+
11
+ require 'fuubar'
12
+
13
+ RSpec.configure do |c|
14
+ c.fuubar_progress_bar_options = {
15
+ format: '%c/%C |<%b>%i| %p%%',
16
+ }
17
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ddmemoize
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0a1
5
+ platform: ruby
6
+ authors:
7
+ - Denis Defreyne
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-12-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ref
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ description:
28
+ email:
29
+ - denis+rubygems@denis.ws
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - ".rspec"
36
+ - ".rubocop.yml"
37
+ - ".travis.yml"
38
+ - CODE_OF_CONDUCT.md
39
+ - Gemfile
40
+ - LICENSE.txt
41
+ - NEWS.md
42
+ - README.md
43
+ - Rakefile
44
+ - ddmemoize.gemspec
45
+ - lib/ddmemoize.rb
46
+ - lib/ddmemoize/version.rb
47
+ - scripts/release
48
+ - spec/ddmemoize_spec.rb
49
+ - spec/spec_helper.rb
50
+ homepage: https://github.com/ddfreyne/ddmemoize
51
+ licenses:
52
+ - MIT
53
+ metadata: {}
54
+ post_install_message:
55
+ rdoc_options: []
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 2.3.0
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">"
66
+ - !ruby/object:Gem::Version
67
+ version: 1.3.1
68
+ requirements: []
69
+ rubyforge_project:
70
+ rubygems_version: 2.7.3
71
+ signing_key:
72
+ specification_version: 4
73
+ summary: Adds support for memoizing functions
74
+ test_files: []