tlopo-cli 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1a5668d6843437f528a5a01290e8d0122e2556bf
4
+ data.tar.gz: 569e1a684b49cf6a8d43a830be71463e41c13172
5
+ SHA512:
6
+ metadata.gz: c3c4c6d3a2ee22eba315154bafb17c5fb59ac5b2170ed1e41e1c77d5dd92b1649654433bf564128779b08814349ac4092f0778f18e62a5b0bba9741959d91c25
7
+ data.tar.gz: c73e7b0a44ab46afa619f07d9bacf835c0fe066dca8abeb0ea83e1b7b0f7bcfc2a8d065781eca968d7e269f216c817f2144d42e25abf0f67a05ae1c3d41fcff5
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,35 @@
1
+
2
+ AllCops:
3
+ DisplayCopNames: true
4
+ TargetRubyVersion: 2.2 # Oldest version kubeclient supports
5
+ MethodLength:
6
+ Enabled: false
7
+ ClassLength:
8
+ Enabled: false
9
+ Metrics/AbcSize:
10
+ Enabled: false
11
+ Metrics/LineLength:
12
+ Max: 100
13
+ Metrics/ParameterLists:
14
+ Max: 5
15
+ CountKeywordArgs: false
16
+ Metrics/CyclomaticComplexity:
17
+ Max: 8
18
+ Metrics/ModuleLength:
19
+ Enabled: false
20
+ Style/MethodCallWithArgsParentheses:
21
+ Enabled: true
22
+ IgnoredMethods: [require, raise, include, attr_reader, refute, assert]
23
+ Exclude: [Gemfile, Rakefile, kubeclient.gemspec]
24
+ Metrics/BlockLength:
25
+ Enabled: true
26
+ Exclude:
27
+ - tlopo-cli.gemspec
28
+ Lint/UnderscorePrefixedVariableName:
29
+ Enabled: false
30
+ Security/MarshalLoad:
31
+ Exclude:
32
+ - test/**/*
33
+ Style/ClassVars:
34
+ Exclude:
35
+ - test/**/*
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.2"
4
+ - "2.3.0"
5
+ - "2.4.0"
6
+ sudo: false
7
+ cache: bundler
8
+ script: bundle exec rake $TASK
9
+ env:
10
+ - TASK=test_with_coveralls
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at tlopo@ibm.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in tlopo-cli.gemspec
6
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Tiago Lopo Da Silva
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.
@@ -0,0 +1,146 @@
1
+ # tlopo-cli
2
+ [![Gem Version](https://badge.fury.io/rb/tlopo-cli.svg)](http://badge.fury.io/rb/tlopo-cli)
3
+ [![Build Status](https://travis-ci.org/tlopo-ruby/tlopo-cli.svg?branch=master)](https://travis-ci.org/tlopo-ruby/tlopo-cli)
4
+ [![Code Climate](https://codeclimate.com/github/tlopo-ruby/tlopo-cli/badges/gpa.svg)](https://codeclimate.com/github/tlopo-ruby/tlopo-cli)
5
+ [![Dependency Status](https://gemnasium.com/tlopo-ruby/tlopo-cli.svg)](https://gemnasium.com/tlopo-ruby/tlopo-cli)
6
+ [![Coverage Status](https://coveralls.io/repos/github/tlopo-ruby/tlopo-cli/badge.svg?branch=master)](https://coveralls.io/github/tlopo-ruby/tlopo-cli?branch=master)
7
+
8
+ A Library to speed up CLI apps development
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'tlopo-cli'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ ```Bash
21
+ bundle
22
+ ```
23
+
24
+ Or install it yourself as:
25
+
26
+ ```Bash
27
+ gem install tlopo-cli
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ Simple usage:
33
+ ```ruby
34
+ require 'tlopo/cli'
35
+
36
+ class Command
37
+ def self.run(opts)
38
+ puts opts
39
+ end
40
+ end
41
+
42
+ cfg = {
43
+ 'name' => 'command',
44
+ 'banner' => "My ClI\n Run my-cli with ARGS\nOPTIONS:\n",
45
+ 'class' => 'Command',
46
+ 'switches' => [{
47
+ 'name' => 'filename',
48
+ 'short' => '-f',
49
+ 'long' => '--filename <Filename>',
50
+ 'desc' => 'Sets filename'
51
+ }]
52
+ }
53
+
54
+ Tlopo::Cli.new(config: cfg).run
55
+ ```
56
+ In action:
57
+ ```bash
58
+ $ ruby /tmp/my-cli.rb --help
59
+ My ClI
60
+ Run my-cli with ARGS
61
+ OPTIONS:
62
+ -f, --filename <Filename> Sets filename
63
+ $ ruby /tmp/my-cli.rb -f /etc/hosts
64
+ {"filename"=>"/etc/hosts"}
65
+ ```
66
+
67
+ You can have as many subcommands as you want, options will be parsed.
68
+ ```ruby
69
+ require 'tlopo/cli'
70
+
71
+ class Command
72
+ def self.run(opts)
73
+ puts opts
74
+ end
75
+ end
76
+
77
+ class SubCommand1
78
+ def self.run(opts)
79
+ puts opts
80
+ end
81
+ end
82
+
83
+ class SubCommand2
84
+ def self.run(opts)
85
+ puts opts
86
+ end
87
+ end
88
+
89
+ cfg = {
90
+ :globals => true, # This will include the options for each 'parent' command
91
+ :usage => true, # This will add _usage in opts commands/subcommands can print it if needed
92
+ 'name' => 'command',
93
+ 'banner' => "command\nOPTIONS:\n",
94
+ 'class' => 'Command',
95
+ 'switches' => [{ 'name' => 'arg1', 'short' => '-a', 'long' => '--arg1 <arg1>', 'desc' => 'Sets arg1'}],
96
+ 'subcommands' => [
97
+ {
98
+ 'name' => 'subcommand1',
99
+ 'banner' => "Subcommand1\nOPTIONS:\n",
100
+ 'class' => 'SubCommand1',
101
+ 'switches' => [{ 'name' => 'arg1', 'short' => '-a', 'long' => '--arg1 <arg1>', 'desc' => 'Sets subcommand1 arg1'} ],
102
+ 'subcommands' => [
103
+ {
104
+ 'name' => 'subcommand2',
105
+ 'banner' => "Subcommand2\nOPTIONS:\n",
106
+ 'class' => 'SubCommand2',
107
+ 'switches' => [{ 'name' => 'arg1', 'short' => '-a', 'long' => '--arg1 <arg1>', 'desc' => 'Sets subcommand2 arg1'}]
108
+ }
109
+ ]
110
+ }
111
+ ]
112
+ }
113
+ ```
114
+ In action:
115
+ ```bash
116
+ $ ruby /tmp/my-cli.rb -a 1 subcommand1 -a 2 subcommand2 -a 3
117
+ {"arg1"=>"3", "_globals"=>{"command"=>{"class"=>"Command", "arg1"=>"1"}, "command::subcommand1"=>{"class"=>"SubCommand1", "arg1"=>"2"}}}
118
+ ```
119
+
120
+
121
+
122
+
123
+ The configuration can also be a yaml or json file:
124
+
125
+ ```ruby
126
+ Tlopo::Cli.new(config_file: './cli-config.yml')
127
+ ```
128
+ ## Contributing
129
+
130
+ 1. Fork it ( https://github.com/[my-github-username]/kubeclient/fork )
131
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
132
+ 3. Test your changes with `rake test rubocop`, add new tests if needed.
133
+ 4. If you added a new functionality, add it to README
134
+ 5. Commit your changes (`git commit -am 'Add some feature'`)
135
+ 6. Push to the branch (`git push origin my-new-feature`)
136
+ 7. Create a new Pull Request
137
+
138
+ ## Tests
139
+
140
+ This library is tested with Minitest.
141
+ Please run all tests before submitting a Pull Request, and add new tests for new functionality.
142
+
143
+ Running tests:
144
+ ```ruby
145
+ rake test
146
+ ```
@@ -0,0 +1,16 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+ require 'rubocop/rake_task'
4
+ require 'coveralls/rake/task'
5
+
6
+ task default: %i[test rubocop]
7
+ task test_with_coveralls: [:default, 'coveralls:push']
8
+
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << 'test'
11
+ t.libs << 'lib'
12
+ t.test_files = FileList['test/**/*_test.rb']
13
+ end
14
+
15
+ RuboCop::RakeTask.new
16
+ Coveralls::RakeTask.new
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'tlopo/cli'
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__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'tlopo/cli'
@@ -0,0 +1,102 @@
1
+ require 'tlopo/cli/version'
2
+ require 'yaml'
3
+ require 'optparse'
4
+
5
+ module Tlopo
6
+ # A library to speedup CLI apps development
7
+ class Cli
8
+ def initialize(opts = {})
9
+ msg = 'Either config or config_file must be specified'
10
+ raise msg unless opts[:config_file] || opts[:config]
11
+ raise msg if opts[:config_file] && opts[:config]
12
+ @cfg = YAML.safe_load(File.read(opts[:config_file])) if opts[:config_file]
13
+ @cfg = opts[:config] if opts[:config]
14
+ @globals = @cfg[:globals]
15
+ @usage = @cfg[:usage]
16
+ @cfg.delete(:globals)
17
+ @cfg.delete(:usage)
18
+ end
19
+
20
+ def run
21
+ validate_recursive
22
+ parse_recursive(@cfg, {})
23
+ end
24
+
25
+ private
26
+
27
+ def validate_recursive(obj = @cfg)
28
+ validate_command(obj)
29
+ obj['switches'].each { |sw| validate_switch(sw) } if obj['switches']
30
+ obj['subcommands'].each { |sub| validate_recursive(sub) } if obj['subcommands']
31
+ end
32
+
33
+ def parse_options(obj, result, key)
34
+ return nil if obj.nil?
35
+ result[key] = {} unless result[key]
36
+ result[key]['class'] = obj['class']
37
+ op = OptionParser.new do |opts|
38
+ opts.banner = obj['banner']
39
+ if obj['switches']
40
+ obj['switches'].each do |sw|
41
+ short = sw['short']
42
+ long = sw['long']
43
+ desc = sw['desc']
44
+ opts.on(short, long, desc) { |v| result[key][sw['name']] = v }
45
+ end
46
+ end
47
+ end
48
+ result[key]['_usage'] = op.to_s if @usage
49
+ op
50
+ end
51
+
52
+ def parse_recursive(obj, result, stack = [])
53
+ stack << obj['name']
54
+ key = stack.join('::')
55
+ _p = parse_options(obj, result, key)
56
+ _p.order! unless _p.nil?
57
+ subcommand = ARGV.shift
58
+ return invoke_class_run(result, key) if subcommand.nil?
59
+ command = obj['subcommands'].find { |e| e['name'] == subcommand } if obj['subcommands']
60
+ raise "Unknown subcommand '#{subcommand}' for [ #{stack.join(' -> ')} ]" unless command
61
+ parse_recursive(command, result, stack)
62
+ end
63
+
64
+ def invoke_class_run(result, key)
65
+ _class = result[key]['class']
66
+ opts = result[key]
67
+ opts.delete('class')
68
+ result.delete(key)
69
+ opts['_globals'] = result if @globals
70
+ Object.const_get(_class).run(opts)
71
+ end
72
+
73
+ def validate_command(command)
74
+ required = %w[name banner class]
75
+ optional = %w[switches subcommands]
76
+ required.each do |e|
77
+ raise "Field '#{e}' is required. received: [#{command.inspect}]" unless command[e]
78
+ end
79
+ known = required + optional
80
+ command.each_key do |k|
81
+ raise "Unknown field '#{k}', known values #{known.inspect}" unless known.include?(k)
82
+ end
83
+ begin
84
+ Object.const_get(command['class'])
85
+ rescue NameError
86
+ raise "Can't find class #{command['class']}, make sure it's loaded."
87
+ end
88
+ end
89
+
90
+ def validate_switch(switch)
91
+ required = %w[name long desc]
92
+ optional = ['short']
93
+ required.each do |e|
94
+ raise "Field '#{e}' is required. received: [#{switch.inspect}]" unless switch[e]
95
+ end
96
+ known = required + optional
97
+ switch.each_key do |k|
98
+ raise "Unknown field '#{k}', known values #{known.inspect}" unless known.include?(k)
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,5 @@
1
+ module Tlopo
2
+ class Cli
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
@@ -0,0 +1,40 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'tlopo/cli/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'tlopo-cli'
8
+ spec.version = Tlopo::Cli::VERSION
9
+ spec.authors = ['Tiago Lopo Da Silva']
10
+ spec.email = ['tiagolopo@yahoo.com.br']
11
+
12
+ spec.summary = 'A library to speed up CLI apps development'
13
+ spec.description = 'A library to speed up CLI apps development'
14
+ spec.homepage = 'https://github.com/tlopo-ruby/tlopo-cli'
15
+ spec.license = 'MIT'
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ #spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ else
22
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
23
+ 'public gem pushes.'
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = 'bin'
30
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
+ spec.require_paths = ['lib']
32
+
33
+ spec.add_development_dependency('bundler', '~> 1.15')
34
+ spec.add_development_dependency('coveralls', '0.8.19')
35
+ spec.add_development_dependency('fakefs', '~> 0.13.0')
36
+ spec.add_development_dependency('minitest', '~> 5.0')
37
+ spec.add_development_dependency('rake', '~> 10.0')
38
+ spec.add_development_dependency('rubocop', '~> 0.52.1')
39
+ spec.add_development_dependency('simplecov', '0.12.0')
40
+ end
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tlopo-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tiago Lopo Da Silva
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-01-21 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: coveralls
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.19
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.8.19
41
+ - !ruby/object:Gem::Dependency
42
+ name: fakefs
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.13.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.13.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.52.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.52.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 0.12.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 0.12.0
111
+ description: A library to speed up CLI apps development
112
+ email:
113
+ - tiagolopo@yahoo.com.br
114
+ executables:
115
+ - console
116
+ - setup
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - ".gitignore"
121
+ - ".rubocop.yml"
122
+ - ".travis.yml"
123
+ - CODE_OF_CONDUCT.md
124
+ - Gemfile
125
+ - LICENSE.txt
126
+ - README.md
127
+ - Rakefile
128
+ - bin/console
129
+ - bin/setup
130
+ - exe/tlopo-cli
131
+ - lib/tlopo/cli.rb
132
+ - lib/tlopo/cli/version.rb
133
+ - tlopo-cli.gemspec
134
+ homepage: https://github.com/tlopo-ruby/tlopo-cli
135
+ licenses:
136
+ - MIT
137
+ metadata: {}
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubyforge_project:
154
+ rubygems_version: 2.6.13
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: A library to speed up CLI apps development
158
+ test_files: []