greeet 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +7 -0
  3. data/README.txt +9 -0
  4. data/VERSION +1 -0
  5. data/bin/greeet +45 -0
  6. data/greeet.gemspec +13 -0
  7. metadata +49 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5bea53b3bb141f7719e2970ab83b2b2c0b9db044
4
+ data.tar.gz: 521e81d0e9c54934ede34d824f81aa40bde8e8dd
5
+ SHA512:
6
+ metadata.gz: 2134c95a542f0cb78eeba65eadbffe1a78c1e1710a2b6af1533d7ff57bde0f7642f6aad307aa6ae4f64f0ef655f4658c5acb2907a9a0e6be98d0597fe63fb586
7
+ data.tar.gz: d25b66eebe384cd3e86975ddd8f59c0db4e7f23b3c05e58959919fab5e063e5f082eb32c822287f413bc3b1404542932230349dfe1db792385ffc2db112a7c30
@@ -0,0 +1,7 @@
1
+ Copyright 2018 Max Bigras
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
1
+ Greeet
2
+
3
+ Print simple greetings
4
+
5
+ Example
6
+
7
+ greeet cats
8
+ hello cats
9
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'optparse'
4
+
5
+ options = {}
6
+
7
+ prog_name = File.basename(__FILE__)
8
+ desc = "Print simple greetings"
9
+ version = File.read(File.expand_path('../VERSION', File.dirname(__FILE__)))
10
+ banner = <<EOL
11
+ Usage: #{prog_name} [options] NAME
12
+
13
+ #{desc}
14
+
15
+ v#{version}
16
+
17
+ Options:
18
+ EOL
19
+
20
+ option_parser = OptionParser.new do |opts|
21
+ opts.banner = banner
22
+ opts.on("-h", "--help") do
23
+ puts opts
24
+ exit 0
25
+ end
26
+ opts.on("--version") do
27
+ puts "#{prog_name} version #{version}"
28
+ exit 0
29
+ end
30
+ end
31
+
32
+ begin
33
+ option_parser.parse!
34
+ if ARGV.empty?
35
+ STDERR.puts "error: NAME is required!"
36
+ STDERR.puts option_parser
37
+ exit 1
38
+ end
39
+ rescue OptionParser::InvalidOption => ex
40
+ STDERR.puts ex.message
41
+ STDERR.puts option_parser
42
+ exit 1
43
+ end
44
+
45
+ puts "hello #{ARGV[0]}"
@@ -0,0 +1,13 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'greeet'
3
+ s.version = File.read('VERSION')
4
+ s.licenses = ['MIT']
5
+ s.summary = 'Print simple greetings'
6
+ s.authors = ['Max Bigras']
7
+ s.email = 'mbigras22@gmail.com'
8
+ s.files = Dir['bin/*'] +
9
+ %w(greeet.gemspec LICENSE.txt README.txt VERSION)
10
+ s.homepage = 'https://github.com/mbigras/greeet'
11
+ s.bindir = 'bin'
12
+ s.executables << 'greeet'
13
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: greeet
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Max Bigras
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: mbigras22@gmail.com
15
+ executables:
16
+ - greeet
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE.txt
21
+ - README.txt
22
+ - VERSION
23
+ - bin/greeet
24
+ - greeet.gemspec
25
+ homepage: https://github.com/mbigras/greeet
26
+ licenses:
27
+ - MIT
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 2.6.13
46
+ signing_key:
47
+ specification_version: 4
48
+ summary: Print simple greetings
49
+ test_files: []