execache 0.1.3 → 0.1.4

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 -1
  3. metadata +8 -8
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.3'
9
+ s.version = '0.1.4'
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
@@ -29,6 +29,7 @@ class Execache
29
29
  Timeout.timeout(60) do
30
30
  request = Yajl::Parser.parse(request)
31
31
  channel = request.delete('channel')
32
+ force = request.delete('channel')
32
33
  commands = []
33
34
  pending = false
34
35
 
@@ -49,7 +50,7 @@ class Execache
49
50
 
50
51
  if cache && cache == '[PENDING]'
51
52
  pending = true
52
- elsif cache
53
+ elsif !force && !group['force'] && cache
53
54
  group['result'] = Yajl::Parser.parse(cache)
54
55
  else
55
56
  pending = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-18 00:00:00.000000000Z
12
+ date: 2011-11-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70235627182620 !ruby/object:Gem::Requirement
16
+ requirement: &70146518160200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70235627182620
24
+ version_requirements: *70146518160200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: redis
27
- requirement: &70235627182140 !ruby/object:Gem::Requirement
27
+ requirement: &70146518159720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.2.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70235627182140
35
+ version_requirements: *70146518159720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yajl-ruby
38
- requirement: &70235627181640 !ruby/object:Gem::Requirement
38
+ requirement: &70146518159260 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70235627181640
46
+ version_requirements: *70146518159260
47
47
  description: Run commands in parallel and cache the output. Redis queues jobs and
48
48
  stores the result.
49
49
  email: