mem 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45082bf822b4ae055268e2a456b0e68294019fd8
4
- data.tar.gz: ad7dbcc9b47b822ee79aa0613f48d3dbc996cc9e
3
+ metadata.gz: be1e9f31995ff9a66dd6e93d6adbdee9532073f4
4
+ data.tar.gz: 1e9b78d932ed38142364508403e9302574ad0ec5
5
5
  SHA512:
6
- metadata.gz: f6e83a74c9c1d4964d70e48e51b50d7c94c1e0db7e832376f3e2f62be31346cd4b86584f028e6ab5bf696847fa8949e29b4cb7d3bc48ae5e103e5b14bc5b9d60
7
- data.tar.gz: 2ab5a6215433ea16675097afb978cb0526c8f3ca27e592213357931b438acdc824737db47db5f35c4538ad6d4ced746d469f7bb46ef4879c79189579e59448f9
6
+ metadata.gz: 6aedfaa4c3e4b4f0bdd7d02b03f1b07c2b3f185a8fc8ce4d641077ab1cb732060b7e12e865d4d8d0462f0c573c0fc4fe420a692700226527a6adae3f05bd9593
7
+ data.tar.gz: 19fa71af0132cbb284bbf7e31f56dd452e90c35b8183a0714cbe4e0c3902bc3ebf45cdd11abbcf3c995491bb4cdc48d8e57a7388ba2940f91163ff73235429a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.3
2
+ * Support memoize/core_ext only use
3
+
1
4
  ## 0.1.2
2
5
  * Add memoize/core_ext
3
6
 
data/README.md CHANGED
@@ -40,5 +40,21 @@ foo.memoized_table #=> { bar: 1 }
40
40
  ```
41
41
 
42
42
  ### core ext
43
- If that makes you feel better, you can `require "mem/core_ext"` to avoid `include Mem`,
43
+ You can `require "mem/core_ext"` to skip `include Mem`,
44
44
  while this extends Object class.
45
+
46
+ ```ruby
47
+ require "mem/core_ext"
48
+
49
+ class A
50
+ def x
51
+ puts 1
52
+ end
53
+ memoize :x
54
+ end
55
+
56
+ a = A.new
57
+ a.x #=> 1
58
+ a.x #=> nothing logged out
59
+ a.x #=> nothing logged out
60
+ ```
data/lib/mem/core_ext.rb CHANGED
@@ -1 +1,3 @@
1
+ require "mem"
2
+
1
3
  Object.send(:include, Mem)
data/lib/mem/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mem
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura