mize 0.3.2 → 0.3.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: c1f4dbd94ae1a19d71c2bdfd45e37e9f488b8f22
4
- data.tar.gz: 1e10e5bdfa23783b4dfa96c77e5070272cf297a8
3
+ metadata.gz: dcbec8700d538dbeca1aa6429be4e66285ce4870
4
+ data.tar.gz: 3f63c2310f5dd5fd6b606c8c8abf135e23cb1e83
5
5
  SHA512:
6
- metadata.gz: a58b01bdb54cd83c78a6fe8a84ed32221612cf4e17d6f9cbea72748e7cb3e2a70a3ffa2fd41091a62b9485b8b5c35b8df5d489b4019e409359ceee5291e25665
7
- data.tar.gz: bed73d57db6c000b1350201959bf511f8ecc473363df9e0d3c7e8911510f04773662cea83a3f6b15206a7c99804aed212f237faabeefd3890595aadbd540f080
6
+ metadata.gz: dd8d23f0e5448a7f59501814b0f1d9237cf9d594ce8b9f3f8cfbddf6fc63f39f4242d6244e1955079efb9c54c0f46f3682ab8e01d30dbbda7bf79a421e7eb116
7
+ data.tar.gz: 2095587ce0e1b4db4bf1b8c2d30c03a7b20f38d19e100f19cd5770fb391167017d37d620410c95685f278acccd8c70f469ed358cd55303926840ba92ef20425b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -31,7 +31,7 @@ module Mize
31
31
  class << self
32
32
  private
33
33
 
34
- def compute_result(orig_method, key, context, args, freeze)
34
+ def compute_result(method_id, orig_method, key, context, args, freeze)
35
35
  result = orig_method.bind(context).call(*args)
36
36
  if $DEBUG
37
37
  warn "#{context.class} cached method "\
@@ -72,7 +72,7 @@ module Mize
72
72
  mc.read(key)
73
73
  else
74
74
  result = Mize::Memoize.send(
75
- :compute_result, orig_method, key, self, args, freeze
75
+ :compute_result, method_id, orig_method, key, self, args, freeze
76
76
  )
77
77
  if store_nil || !result.nil?
78
78
  mc.write(key, result)
@@ -1,6 +1,6 @@
1
1
  module Mize
2
2
  # Mize version
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: mize 0.3.2 ruby lib
2
+ # stub: mize 0.3.3 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mize".freeze
6
- s.version = "0.3.2"
6
+ s.version = "0.3.3"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2017-06-21"
11
+ s.date = "2017-08-28"
12
12
  s.description = "Library that provides memoziation for methods and functions for Ruby.".freeze
13
13
  s.email = "flori@ping.de".freeze
14
14
  s.extra_rdoc_files = ["README.md".freeze, "lib/mize.rb".freeze, "lib/mize/cache_methods.rb".freeze, "lib/mize/cache_protocol.rb".freeze, "lib/mize/configure.rb".freeze, "lib/mize/default_cache.rb".freeze, "lib/mize/global_clear.rb".freeze, "lib/mize/memoize.rb".freeze, "lib/mize/railtie.rb".freeze, "lib/mize/reload.rb".freeze, "lib/mize/version.rb".freeze]
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.licenses = ["MIT".freeze]
18
18
  s.rdoc_options = ["--title".freeze, "Mize - Library that provides memoziation for methods and functions".freeze, "--main".freeze, "README.md".freeze]
19
19
  s.required_ruby_version = Gem::Requirement.new(">= 2".freeze)
20
- s.rubygems_version = "2.6.11".freeze
20
+ s.rubygems_version = "2.6.13".freeze
21
21
  s.summary = "Library that provides memoziation for methods and functions".freeze
22
22
  s.test_files = ["spec/mize/global_clear_spec.rb".freeze, "spec/mize/memoize_method_spec.rb".freeze, "spec/mize/memoize_reload_spec.rb".freeze, "spec/mize/version_spec.rb".freeze, "spec/spec_helper.rb".freeze]
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-21 00:00:00.000000000 Z
11
+ date: 2017-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.6.11
164
+ rubygems_version: 2.6.13
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Library that provides memoziation for methods and functions