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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4f74df6d3f7217ed2b3fc9d44a395092aef314b
4
- data.tar.gz: 150cdfb7ac5155879486e1d53174f91678838ee5
3
+ metadata.gz: a3a7fe0436947627ea95ae10372baaa01e0e46e9
4
+ data.tar.gz: 5f598e307ef7156fc1a6cfbd71eea01fd6a49af0
5
5
  SHA512:
6
- metadata.gz: 16e327d74ea28650f487498f401a4d6d07ff62a246577311bd05c52dbb591a932f676d2f8ea56a12c2a9738ed5e3baed0520844439842a0b01cb0693a11c78cc
7
- data.tar.gz: 353a8015ecad1c9df82f9381eb2921d0e99111f0e47d9ff48981c95dc8bb1c788bbe93a25a4fb65b7339fc5742beba07ead339ca3bddd8719e240c399d6b2883
6
+ metadata.gz: f337417fcc85de311f3e46cd016b2f0b79172aa1b8eb7f9a7b82b6c0d9d9bdfb20b53087ff08098b4096d99645e7ba494b9259f0c35deee4327717710cab33b7
7
+ data.tar.gz: 544b2dd67c5e90700518f710c516585ba7a1db825bfc349529f158ed58bb9fdfa00b0e8e184b9dc57a5a411d67322116a1c34bfc3e809f9239303b01fd645a14
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Command::Cacheable
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/command/cacheable`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
24
+ From the [Svnx](https://github.com/jpace/svnx) project:
26
25
 
27
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
34
+ diff = lsc.output - ls.output
35
+ ```
30
36
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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 License](https://opensource.org/licenses/MIT).
47
+ The gem is available as open source under the terms of the [MIT
48
+ License](https://opensource.org/licenses/MIT).
@@ -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/arbolobra"
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'
@@ -1,5 +1,5 @@
1
1
  module Command
2
2
  module Cacheable
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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: 2018-02-07 00:00:00.000000000 Z
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/arbolobra
107
+ homepage: http://www.github.com/jpace/command-cacheable
108
108
  licenses:
109
109
  - MIT
110
110
  metadata: