consoler 1.0.0 → 1.0.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/.editorconfig +5 -0
- data/.gitignore +6 -0
- data/.travis.yml +11 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +11 -0
- data/consoler.gemspec +30 -0
- data/lib/consoler/version.rb +1 -1
- metadata +51 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 114e6fa695bcd034b3fbeb8a7e176aaa63493e9c
|
4
|
+
data.tar.gz: f16bae2dc6e43d138735e889b0d49db1280b2491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd8d0e7daf27c4df2937c8e4a181b97eb759b03d3083a79df5959deac6f9d631497b8a6193d8a7c0d318ed1cc87e37f69a5ade1c52ee65367440767825307ab
|
7
|
+
data.tar.gz: f21ecd390a02b5751a00ec6a4aa53e5d4bdc9b5b5cb2bbfbd8fa5451ce0a46f175589b46eed77e588ea8ba1c0acf405800ce1a9ec94f3a243d0882cd859b75da
|
data/.editorconfig
ADDED
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Tim
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Consoler [](http://travis-ci.org/justim/consoler-rb)
|
2
|
+
|
3
|
+
> Sinatra-like application builder for the console
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
# create a application
|
9
|
+
app = Consoler::Application.new description: 'A simple app'
|
10
|
+
|
11
|
+
# define a command
|
12
|
+
app.build 'target [--clean]' do |target, clean|
|
13
|
+
# clean contains a boolean
|
14
|
+
clean_up if clean
|
15
|
+
|
16
|
+
# target contains a string
|
17
|
+
build_project target
|
18
|
+
end
|
19
|
+
app.run(['build', 'production', '--clean'])
|
20
|
+
|
21
|
+
# this does not match, nothing is executed and the usage message is printed
|
22
|
+
app.run(['deploy', 'production'])
|
23
|
+
```
|
24
|
+
|
25
|
+
## Installation
|
26
|
+
|
27
|
+
```sh
|
28
|
+
gem install consoler
|
29
|
+
```
|
30
|
+
|
31
|
+
or add to your `Gemfile` for applications
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
gem 'consoler', '~> 1.0.0'
|
35
|
+
```
|
36
|
+
|
37
|
+
or to your `.gemspec` file for gems
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
Gem::Specification.new do |s|
|
41
|
+
s.add_dependency 'consoler', '~> 1.0.0'
|
42
|
+
end
|
43
|
+
```
|
data/Rakefile
ADDED
data/consoler.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/consoler/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'consoler'
|
7
|
+
spec.version = Consoler::VERSION
|
8
|
+
spec.date = Time.now.strftime('%Y-%m-%d')
|
9
|
+
spec.summary = 'Consoler'
|
10
|
+
spec.description = 'Sinatra-like application builder for the console'
|
11
|
+
spec.authors = ['Tim']
|
12
|
+
spec.email = 'me@justim.net'
|
13
|
+
spec.homepage = 'https://github.com/justim/consoler-rb'
|
14
|
+
|
15
|
+
spec.license = 'MIT'
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.platform = Gem::Platform::RUBY
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
# build docs on install
|
23
|
+
spec.metadata['yard.run'] = 'yri'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.15'
|
26
|
+
spec.add_development_dependency 'rake', '~> 12.3.0'
|
27
|
+
spec.add_development_dependency 'minitest', '~> 5.11.3'
|
28
|
+
spec.add_development_dependency 'yard', '~> 0.9.12'
|
29
|
+
spec.add_development_dependency 'simplecov', '~> 0.15.1'
|
30
|
+
end
|
data/lib/consoler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consoler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim
|
@@ -10,6 +10,48 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-03-13 00:00:00.000000000 Z
|
12
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: 12.3.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 12.3.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 5.11.3
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 5.11.3
|
13
55
|
- !ruby/object:Gem::Dependency
|
14
56
|
name: yard
|
15
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,6 +86,14 @@ executables: []
|
|
44
86
|
extensions: []
|
45
87
|
extra_rdoc_files: []
|
46
88
|
files:
|
89
|
+
- ".editorconfig"
|
90
|
+
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
92
|
+
- Gemfile
|
93
|
+
- LICENSE.txt
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- consoler.gemspec
|
47
97
|
- lib/consoler.rb
|
48
98
|
- lib/consoler/application.rb
|
49
99
|
- lib/consoler/arguments.rb
|