exek 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/README.md +53 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/exek +3 -0
- data/exek.gemspec +45 -0
- data/lib/exek.rb +5 -0
- data/lib/exek/version.rb +3 -0
- metadata +117 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0fd10f2672cb4aafe34506f6e9c8188f55094349
|
4
|
+
data.tar.gz: ad054ba0e6f5990b6870a3fd599387a776791e76
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 91cbdf4b5eac1a2495d8abdd92c3d0df20838379de1abbe8beed749f2833826ecaa5c34c74c5e2351107f07ff4aa3079cce8604b5a6d947ec7c225b25c87b9c2
|
7
|
+
data.tar.gz: 39a0203bdd60b2a5ef0c0b12f1e8fdba1197c8208b54b9fd7c49468824ff0047451e0dec85eb3c41deb936e317bf97e509ba0fa6d23a95c494e21ee093992d74
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# Exek
|
2
|
+
|
3
|
+
Comprehensive tools to start and run commands.
|
4
|
+
|
5
|
+
Most existing gems that address command execution provide a limited interface
|
6
|
+
or lack notable features. In contast, Exek seeks to provide comprehensive
|
7
|
+
support for all of a program's exec needs with one thoughtfully-designed
|
8
|
+
library.
|
9
|
+
|
10
|
+
Intended features:
|
11
|
+
|
12
|
+
- A "Command" class that encapsulates argv, env, and IO options, and
|
13
|
+
process state.
|
14
|
+
- Easy-to-use high level interfaces with sensible defaults for running commands
|
15
|
+
to completion.
|
16
|
+
- Comprehensive support for low-level concerns like piping, PTYs, and file
|
17
|
+
descriptor magic.
|
18
|
+
- Utilities for manipulating `sh` script strings, idiomatically building
|
19
|
+
argument arrays, and generating reusable interaces for common system commands.
|
20
|
+
- Tracing and introspection facilities for logging and latency analysis.
|
21
|
+
- Safety: does not monkeypatch external modules, encourage mixins or use eval.
|
22
|
+
Attempts to guide developers away from unsafe practices like shell scripts
|
23
|
+
and shell injection.
|
24
|
+
|
25
|
+
## Installation
|
26
|
+
|
27
|
+
Add this line to your application's Gemfile:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
gem 'exek'
|
31
|
+
```
|
32
|
+
|
33
|
+
And then execute:
|
34
|
+
|
35
|
+
$ bundle
|
36
|
+
|
37
|
+
Or install it yourself as:
|
38
|
+
|
39
|
+
$ gem install exek
|
40
|
+
|
41
|
+
## Usage
|
42
|
+
|
43
|
+
TODO: Write usage instructions here
|
44
|
+
|
45
|
+
## Development
|
46
|
+
|
47
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
48
|
+
|
49
|
+
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).
|
50
|
+
|
51
|
+
## Contributing
|
52
|
+
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/justjake/exek.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "exek"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/exek
ADDED
data/exek.gemspec
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "exek/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "exek"
|
8
|
+
spec.version = Exek::VERSION
|
9
|
+
spec.authors = ["Jake Teton-Landis"]
|
10
|
+
spec.email = ["just.1.jake@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Comprehensive tools to start and run commands.}
|
13
|
+
spec.description = <<-EOS
|
14
|
+
Most existing gems that address command execution provide a limited interface
|
15
|
+
or lack notable features. In contast, Exek seeks to provide comprehensive
|
16
|
+
support for all of a program's exec needs with one thoughtfully-designed
|
17
|
+
library.
|
18
|
+
|
19
|
+
Intended features:
|
20
|
+
|
21
|
+
- A "Command" class that encapsulates argv, env, and IO options, and
|
22
|
+
process state.
|
23
|
+
- Easy-to-use high level interfaces with sensible defaults for running commands
|
24
|
+
to completion.
|
25
|
+
- Comprehensive support for low-level concerns like piping, PTYs, and file
|
26
|
+
descriptor magic.
|
27
|
+
- Utilities for manipulating `sh` script strings, idiomatically building
|
28
|
+
argument arrays, and generating reusable interaces for common system commands.
|
29
|
+
- Tracing and introspection facilities for logging and latency analysis.
|
30
|
+
- Safety: does not monkeypatch external modules, encourage mixins or use eval.
|
31
|
+
Attempts to guide developers away from unsafe practices like shell scripts
|
32
|
+
and shell injection.
|
33
|
+
EOS
|
34
|
+
spec.homepage = "https://github.com/justjake/exek"
|
35
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
36
|
+
f.match(%r{^(test|spec|features)/})
|
37
|
+
end
|
38
|
+
spec.bindir = "exe"
|
39
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
40
|
+
spec.require_paths = ["lib"]
|
41
|
+
|
42
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
43
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
44
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
45
|
+
end
|
data/lib/exek.rb
ADDED
data/lib/exek/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: exek
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jake Teton-Landis
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-07-31 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: |
|
56
|
+
Most existing gems that address command execution provide a limited interface
|
57
|
+
or lack notable features. In contast, Exek seeks to provide comprehensive
|
58
|
+
support for all of a program's exec needs with one thoughtfully-designed
|
59
|
+
library.
|
60
|
+
|
61
|
+
Intended features:
|
62
|
+
|
63
|
+
- A "Command" class that encapsulates argv, env, and IO options, and
|
64
|
+
process state.
|
65
|
+
- Easy-to-use high level interfaces with sensible defaults for running commands
|
66
|
+
to completion.
|
67
|
+
- Comprehensive support for low-level concerns like piping, PTYs, and file
|
68
|
+
descriptor magic.
|
69
|
+
- Utilities for manipulating `sh` script strings, idiomatically building
|
70
|
+
argument arrays, and generating reusable interaces for common system commands.
|
71
|
+
- Tracing and introspection facilities for logging and latency analysis.
|
72
|
+
- Safety: does not monkeypatch external modules, encourage mixins or use eval.
|
73
|
+
Attempts to guide developers away from unsafe practices like shell scripts
|
74
|
+
and shell injection.
|
75
|
+
email:
|
76
|
+
- just.1.jake@gmail.com
|
77
|
+
executables:
|
78
|
+
- exek
|
79
|
+
extensions: []
|
80
|
+
extra_rdoc_files: []
|
81
|
+
files:
|
82
|
+
- .gitignore
|
83
|
+
- .rspec
|
84
|
+
- .travis.yml
|
85
|
+
- Gemfile
|
86
|
+
- README.md
|
87
|
+
- Rakefile
|
88
|
+
- bin/console
|
89
|
+
- bin/setup
|
90
|
+
- exe/exek
|
91
|
+
- exek.gemspec
|
92
|
+
- lib/exek.rb
|
93
|
+
- lib/exek/version.rb
|
94
|
+
homepage: https://github.com/justjake/exek
|
95
|
+
licenses: []
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.6.10
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: Comprehensive tools to start and run commands.
|
117
|
+
test_files: []
|