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 +4 -4
- data/VERSION +1 -1
- data/lib/mize/reload.rb +8 -5
- data/lib/mize/version.rb +1 -1
- data/mize.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1f4dbd94ae1a19d71c2bdfd45e37e9f488b8f22
|
4
|
+
data.tar.gz: 1e10e5bdfa23783b4dfa96c77e5070272cf297a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a58b01bdb54cd83c78a6fe8a84ed32221612cf4e17d6f9cbea72748e7cb3e2a70a3ffa2fd41091a62b9485b8b5c35b8df5d489b4019e409359ceee5291e25665
|
7
|
+
data.tar.gz: bed73d57db6c000b1350201959bf511f8ecc473363df9e0d3c7e8911510f04773662cea83a3f6b15206a7c99804aed212f237faabeefd3890595aadbd540f080
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/mize/reload.rb
CHANGED
@@ -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
|
-
|
6
|
-
|
7
|
-
|
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
|
data/lib/mize/version.rb
CHANGED
data/mize.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: mize 0.3.
|
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.
|
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-
|
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.
|
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-
|
11
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|