execache 0.1.5 → 0.1.6
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 +1 -1
- metadata +73 -43
data/execache.gemspec
CHANGED
data/lib/execache.rb
CHANGED
@@ -42,7 +42,7 @@ class Execache
|
|
42
42
|
|
43
43
|
# Fill results with caches if present
|
44
44
|
cmd_options['groups'].each do |group|
|
45
|
-
cache_key = Digest::SHA1.hexdigest(
|
45
|
+
cache_key = group['cache_key'] || Digest::SHA1.hexdigest(
|
46
46
|
"#{cmd_options['args']} #{group['args']}"
|
47
47
|
)
|
48
48
|
group['cache_key'] = cache_key = "execache:cache:#{cache_key}"
|
metadata
CHANGED
@@ -1,58 +1,79 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: execache
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Winton Welsh
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-11-10 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rspec
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 15
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 0
|
32
|
+
version: "1.0"
|
22
33
|
type: :development
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
26
36
|
name: redis
|
27
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
40
|
+
requirements:
|
30
41
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 2
|
47
|
+
- 2
|
32
48
|
version: 2.2.2
|
33
49
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
37
52
|
name: yajl-ruby
|
38
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
55
|
none: false
|
40
|
-
requirements:
|
56
|
+
requirements:
|
41
57
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 23
|
60
|
+
segments:
|
61
|
+
- 1
|
62
|
+
- 0
|
63
|
+
- 0
|
43
64
|
version: 1.0.0
|
44
65
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
stores the result.
|
49
|
-
email:
|
66
|
+
version_requirements: *id003
|
67
|
+
description: Run commands in parallel and cache the output. Redis queues jobs and stores the result.
|
68
|
+
email:
|
50
69
|
- mail@wintoni.us
|
51
|
-
executables:
|
70
|
+
executables:
|
52
71
|
- execache
|
53
72
|
extensions: []
|
73
|
+
|
54
74
|
extra_rdoc_files: []
|
55
|
-
|
75
|
+
|
76
|
+
files:
|
56
77
|
- .gitignore
|
57
78
|
- Gemfile
|
58
79
|
- LICENSE
|
@@ -68,29 +89,38 @@ files:
|
|
68
89
|
- spec/spec_helper.rb
|
69
90
|
homepage: http://github.com/winton/execache
|
70
91
|
licenses: []
|
92
|
+
|
71
93
|
post_install_message:
|
72
94
|
rdoc_options: []
|
73
|
-
|
95
|
+
|
96
|
+
require_paths:
|
74
97
|
- lib
|
75
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
99
|
none: false
|
77
|
-
requirements:
|
78
|
-
- -
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
|
81
|
-
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 3
|
104
|
+
segments:
|
105
|
+
- 0
|
106
|
+
version: "0"
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
108
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
hash: 3
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
version: "0"
|
87
116
|
requirements: []
|
117
|
+
|
88
118
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.8.
|
119
|
+
rubygems_version: 1.8.10
|
90
120
|
signing_key:
|
91
121
|
specification_version: 3
|
92
122
|
summary: Run commands in parallel and cache the output, controlled by Redis
|
93
|
-
test_files:
|
123
|
+
test_files:
|
94
124
|
- spec/execache_spec.rb
|
95
125
|
- spec/fixtures/execache.yml
|
96
126
|
- spec/fixtures/fixture.rb
|