command-cacheable 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -8
- data/command-cacheable.gemspec +1 -1
- data/lib/command/cacheable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3a7fe0436947627ea95ae10372baaa01e0e46e9
|
4
|
+
data.tar.gz: 5f598e307ef7156fc1a6cfbd71eea01fd6a49af0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f337417fcc85de311f3e46cd016b2f0b79172aa1b8eb7f9a7b82b6c0d9d9bdfb20b53087ff08098b4096d99645e7ba494b9259f0c35deee4327717710cab33b7
|
7
|
+
data.tar.gz: 544b2dd67c5e90700518f710c516585ba7a1db825bfc349529f158ed58bb9fdfa00b0e8e184b9dc57a5a411d67322116a1c34bfc3e809f9239303b01fd645a14
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Command::Cacheable
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Command::Cacheable wraps the command line, optionally caching standard output for later, faster
|
4
|
+
retrieval.
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -22,13 +21,22 @@ Or install it yourself as:
|
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
From the [Svnx](https://github.com/jpace/svnx) project:
|
26
25
|
|
27
|
-
|
26
|
+
``` ruby
|
27
|
+
require 'command/cacheable/command'
|
28
|
+
ls = Command::Cacheable::Command.new [ "ls", "/tmp" ]
|
29
|
+
ls.execute
|
30
|
+
|
31
|
+
lsc = Command::Cacheable::Command.new [ "ls", "/tmp" ], caching: true, cachedir: "/tmp/lscache"
|
32
|
+
lsc.execute
|
28
33
|
|
29
|
-
|
34
|
+
diff = lsc.output - ls.output
|
35
|
+
```
|
30
36
|
|
31
|
-
|
37
|
+
`Command::Cacheable` is specifically for caching commands, and does not have the flexibility that
|
38
|
+
the [Command](https://github.com/collectiveidea/command) gem does. For one, it does not cache
|
39
|
+
standard error.
|
32
40
|
|
33
41
|
## Contributing
|
34
42
|
|
@@ -36,4 +44,5 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jpace/
|
|
36
44
|
|
37
45
|
## License
|
38
46
|
|
39
|
-
The gem is available as open source under the terms of the [MIT
|
47
|
+
The gem is available as open source under the terms of the [MIT
|
48
|
+
License](https://opensource.org/licenses/MIT).
|
data/command-cacheable.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Command-line execution, caching results.}
|
13
13
|
spec.description = %q{Executes on the command line, caching results for performance of repeated invocations.}
|
14
|
-
spec.homepage = "http://www.github.com/jpace/
|
14
|
+
spec.homepage = "http://www.github.com/jpace/command-cacheable"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command-cacheable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Pace
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -104,7 +104,7 @@ files:
|
|
104
104
|
- lib/command/cacheable/filename.rb
|
105
105
|
- lib/command/cacheable/gzpathname.rb
|
106
106
|
- lib/command/cacheable/version.rb
|
107
|
-
homepage: http://www.github.com/jpace/
|
107
|
+
homepage: http://www.github.com/jpace/command-cacheable
|
108
108
|
licenses:
|
109
109
|
- MIT
|
110
110
|
metadata:
|