execache 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/execache.gemspec +1 -1
  2. data/lib/execache.rb +2 -2
  3. metadata +3 -3
data/execache.gemspec CHANGED
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "execache"
9
- s.version = '0.1.6'
9
+ s.version = '0.1.7'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ "Winton Welsh" ]
12
12
  s.email = [ "mail@wintoni.us" ]
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 = group['cache_key'] || Digest::SHA1.hexdigest(
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh