muflax 0.1.34 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README +0 -30
- data/muflax.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +5 -6
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9881f0e81c97215b9ed256047dbaa2e7cf24e409
|
4
|
+
data.tar.gz: c1bdbe5bb5c19dc0ea9ac725ed5ca526e3f7a198
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f784cab75ed87b39c9058bc55af553570839aa742d56a350dcdd44baef20ce877b35871d0ec507f2309c8bb0d69bc0dbe4f9b3f60bc49f96b796b2371412bc
|
7
|
+
data.tar.gz: 53aa5466bfcc8a70eca93cad58b145218eb0ed6308a87ef4ed5b9a446c107b85b933966a953695d76311ed48a78bb8475c7edad8325244a09efcf90071bb3e6b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README
CHANGED
@@ -7,33 +7,3 @@ Convenience library that pulls in all standard libraries and hacks I use in quic
|
|
7
7
|
- a few more extensions to range_math, notably "pass method call to numbers"
|
8
8
|
|
9
9
|
]
|
10
|
-
[ Memoization
|
11
|
-
|
12
|
-
Should work like this:
|
13
|
-
|
14
|
-
- get file and body of the method to be memoized (via method_source gem)
|
15
|
-
- hash that as the method signature
|
16
|
-
- take arguments, hash them (via Ruby) (you shouldn't pass fancy arguments, only trivially hashable ones, like strings or symbols, not arrays or some custom object shit)
|
17
|
-
- save/retrieve result in/from hash (as simple pickle)
|
18
|
-
- initialize hash from database, "checkpoint.cache" and save results
|
19
|
-
|
20
|
-
- annotate all methods that can be memoized? memoize everything by default? not sure yet, but opt-in is probably the most predictable behavior
|
21
|
-
|
22
|
-
This enables checkpoint-esque behavior: any method that hasn't changed (same signature) and takes the same arguments just loads the result from a big hash instead of re-generating it every time, but any actual change will be taken into account.
|
23
|
-
|
24
|
-
The database can simply be regularly cleaned / deleted, or just discard old signatures (when initializing, look up method name -> test signature -> different? discard cache for this method)
|
25
|
-
|
26
|
-
Like:
|
27
|
-
|
28
|
-
~~~
|
29
|
-
require "muflax/checkpoint"
|
30
|
-
|
31
|
-
+Checkpoint
|
32
|
-
def method args
|
33
|
-
...
|
34
|
-
end
|
35
|
-
|
36
|
-
method(42)
|
37
|
-
~~~
|
38
|
-
|
39
|
-
]
|
data/muflax.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "muflax"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.35"
|
4
4
|
|
5
5
|
s.authors = ["muflax"]
|
6
6
|
s.summary = "muflax standard library"
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = "http://github.com/muflax/ruby-muflax"
|
15
15
|
s.require_paths = ["lib"]
|
16
16
|
|
17
|
-
s.add_dependency "activesupport", "~>
|
17
|
+
s.add_dependency "activesupport", "~> 5"
|
18
18
|
s.add_dependency "awesome_print"
|
19
19
|
s.add_dependency "debug_inspector"
|
20
20
|
s.add_dependency "highline"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muflax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- muflax
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
UTuVeeTxPBRAkEStqSL/T6ftwAkFee8ORyJjuOJgqTUPfe/qPIe/qQw3RVUesjYb
|
29
29
|
pNY9O02iAik7VcnsSGB3oSR6yBKVb8d2pFmbUEPSenyN/hGrJJKFPqqmCO9jhzlY
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2016-
|
31
|
+
date: 2016-08-28 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '5'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: awesome_print
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,9 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
requirements: []
|
190
190
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.6.
|
191
|
+
rubygems_version: 2.6.6
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: muflax standard library
|
195
195
|
test_files: []
|
196
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
���@f¢��?��H��C�f��ڏ3���KJn�/����]�8�5�= $z��õ�{����9�ͷ��<�=B�9�r�+�c����9t.�����:���V��������Z���8���r"����q�������q���Ml�*WH�\q��yw�?6�Pl)��2��6whQ �l��z�&��̾��~���7K���)�r{Γ}y�T�î� �}�{��,�ne���|����4A#C����:6�,b�� 2Z�,1�
|