mize 0.3.1 → 0.3.2

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: 6e4fc73a14f849a06c78dd20166fc33e3b10aee1
4
- data.tar.gz: e1ba0c8d1b76b06fedec1f82d0ab249b192b4df5
3
+ metadata.gz: c1f4dbd94ae1a19d71c2bdfd45e37e9f488b8f22
4
+ data.tar.gz: 1e10e5bdfa23783b4dfa96c77e5070272cf297a8
5
5
  SHA512:
6
- metadata.gz: 83244d36a55fc6d5a3610dd16a9d048303311fbf67f777017cb18dea9eac9d3fe942e8ec2cad6ab1ee8882b3fb4ff52fd76b65e4c9d1c25b41aedbe538e2fbcf
7
- data.tar.gz: f5ff84dca60446440666246d333adb8edf2da1e8197c0d33f4b6a8d71b45f8ef734e9a9ecc636890eadd33bc68a8ed692b63e88b2f6a5cf8c2112470078f77a8
6
+ metadata.gz: a58b01bdb54cd83c78a6fe8a84ed32221612cf4e17d6f9cbea72748e7cb3e2a70a3ffa2fd41091a62b9485b8b5c35b8df5d489b4019e409359ceee5291e25665
7
+ data.tar.gz: bed73d57db6c000b1350201959bf511f8ecc473363df9e0d3c7e8911510f04773662cea83a3f6b15206a7c99804aed212f237faabeefd3890595aadbd540f080
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -2,11 +2,14 @@ module Mize::Reload
2
2
  # Reload this object if a #reload method was provided up somewhere in the
3
3
  # inheritance tree, afterwards clear the memoization cache and return self.
4
4
  def reload(*)
5
- result = self
6
- if defined? super
7
- result = super
5
+ Mize::MUTEX.synchronize do
6
+ result = self
7
+ if defined? super
8
+ result = super
9
+ end
10
+ Mize.wrapped.clear
11
+ mize_cache_clear
12
+ result
8
13
  end
9
- mize_cache_clear
10
- result
11
14
  end
12
15
  end
@@ -1,6 +1,6 @@
1
1
  module Mize
2
2
  # Mize version
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
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.1 ruby lib
2
+ # stub: mize 0.3.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mize".freeze
6
- s.version = "0.3.1"
6
+ s.version = "0.3.2"
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-20"
11
+ s.date = "2017-06-21"
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]
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.1
4
+ version: 0.3.2
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-20 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar