memoized 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/CHANGELOG.md +45 -0
- data/Gemfile.lock +1 -1
- data/lib/memoized/version.rb +1 -1
- data/memoized.gemspec +1 -1
- metadata +3 -3
- data/CHANGELOG.txt +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab7a8649195530ae1e3ace893313e3731c1dcf3af93f6ebeaebad4a715efa65
|
4
|
+
data.tar.gz: 543fd2584dbf7a34fd45c23394888cf8935a8f93f93be9a293b684e1054c3eed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13673e0131ff6560848e8dcac44ea746db4c18602b3fa68d3072dbefeaca95bf93ea1bbd4159ce49c8be30cd7361e616237c1ef61d19bc6e2d72efaba6a5d9fe
|
7
|
+
data.tar.gz: 99f27fd8d150aaf3283d29cd159f16ed31beb13c6a293338709f15397c562294caf55a971b7764847895919aaf46c1a87ea77c123f2680691b1765b361b129b8
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
All notable changes to this project will be documented in this file.
|
2
|
+
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
4
|
+
|
5
|
+
|
6
|
+
## Unreleased
|
7
|
+
|
8
|
+
### Breaking changes
|
9
|
+
|
10
|
+
-
|
11
|
+
|
12
|
+
### Compatible changes
|
13
|
+
|
14
|
+
-
|
15
|
+
|
16
|
+
|
17
|
+
## 1.0.1 - 2019-02-27
|
18
|
+
|
19
|
+
### Compatible changes
|
20
|
+
|
21
|
+
- Fix meta information in gemspec.
|
22
|
+
|
23
|
+
|
24
|
+
## 1.0.0 - 2019-02-27
|
25
|
+
|
26
|
+
### Compatible changes
|
27
|
+
|
28
|
+
Forked [memoizer](https://github.com/wegowise/memoizer) with two changes:
|
29
|
+
|
30
|
+
1. Memoized methods now preserve their [arity](https://apidock.com/ruby/Method/arity). Previously all memoized methods had an arity of `-1`.
|
31
|
+
2. Memoized methods are now faster at runtime. This will only be noticable if you call a memoized methods many times in the same request.
|
32
|
+
|
33
|
+
We published our fork as a new gem named [memoized](https://rubygems.org/gems/memoized).
|
34
|
+
|
35
|
+
memoized is API-compatible to memoizer, you just need to `include Memoized` instead of `Memoizer`:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
class A
|
39
|
+
include Memoized
|
40
|
+
|
41
|
+
memoize def hello
|
42
|
+
'hello!'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
```
|
data/Gemfile.lock
CHANGED
data/lib/memoized/version.rb
CHANGED
data/memoized.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.name = "memoized"
|
6
6
|
s.version = Memoized::VERSION
|
7
7
|
s.authors = ["Barun Singh", "Henning Koch"]
|
8
|
-
s.homepage = "https://github.com/makandra/
|
8
|
+
s.homepage = "https://github.com/makandra/memoized"
|
9
9
|
s.summary = "Memoized caches the results of your method calls"
|
10
10
|
s.description = s.summary
|
11
11
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memoized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barun Singh
|
@@ -63,7 +63,7 @@ files:
|
|
63
63
|
- ".rspec"
|
64
64
|
- ".ruby-version"
|
65
65
|
- ".travis.yml"
|
66
|
-
- CHANGELOG.
|
66
|
+
- CHANGELOG.md
|
67
67
|
- Gemfile
|
68
68
|
- Gemfile.lock
|
69
69
|
- LICENSE.txt
|
@@ -74,7 +74,7 @@ files:
|
|
74
74
|
- memoized.gemspec
|
75
75
|
- spec/memoized_spec.rb
|
76
76
|
- spec/spec_helper.rb
|
77
|
-
homepage: https://github.com/makandra/
|
77
|
+
homepage: https://github.com/makandra/memoized
|
78
78
|
licenses:
|
79
79
|
- MIT
|
80
80
|
metadata: {}
|
data/CHANGELOG.txt
DELETED