execache 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/execache.gemspec +1 -1
- data/lib/execache.rb +2 -2
- metadata +3 -3
data/execache.gemspec
CHANGED
data/lib/execache.rb
CHANGED
@@ -42,8 +42,8 @@ class Execache
|
|
42
42
|
|
43
43
|
# Fill results with caches if present
|
44
44
|
cmd_options['groups'].each do |group|
|
45
|
-
cache_key =
|
46
|
-
"#{cmd_options['args']} #{group['args']}"
|
45
|
+
cache_key = Digest::SHA1.hexdigest(
|
46
|
+
"#{group['cache_key'] || cmd_options['args']} #{group['args']}"
|
47
47
|
)
|
48
48
|
group['cache_key'] = cache_key = "execache:cache:#{cache_key}"
|
49
49
|
cache = redis.get(cache_key)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: execache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Winton Welsh
|