dogsay 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5f97d59133801741f6668d5f83c06a735d10a35
4
- data.tar.gz: b15ae7faf18d8e438d3320e24955555dd1efbe88
3
+ metadata.gz: 5df247b502946379da74b5e098e732811cb17ca9
4
+ data.tar.gz: b169a1c95d05e9578a6d1a13dfa24688f8c4b9df
5
5
  SHA512:
6
- metadata.gz: f1b56b67c13ec6e77d4a4ef205d6655390d472471f2d5d6e657b3a01da36449d10b01e45b25e39baf5913804f1ea214e891c2b84f079ef56f30c5c07a1d51520
7
- data.tar.gz: 9c399830c211514b9bdddecb6f4ba6a36e22b3c7bd9273e7bd32f2422b36916cab61ba9e00ca8df97caced7f59bcf8cc97462f1d0db150f085833c4b639c4926
6
+ metadata.gz: 2b1f11fa91ff6b29ce4b20db2677f72df26432521d0c6a540548f610d790d2c294320e237f4479d1ae947a148c779ddcffbd4d460e0fb98a24e0dd98e3f030c0
7
+ data.tar.gz: ace5e5c81199a92141021b50edbf398a6c1f7a97c80e155c36e807e017444c6fa2e2be68103e0abe6d49f633972c3147aa77a409eaf85dddc353c2a1ece006fa
data/.gitignore CHANGED
@@ -13,3 +13,4 @@
13
13
  *.a
14
14
  mkmf.log
15
15
  *.gem
16
+ *.secret
data/bin/dinosay CHANGED
@@ -15,6 +15,7 @@ def opts_from_cli
15
15
  opts.on('-s', '--strip', 'Strip newlines from input') { options[:strip] = true }
16
16
  opts.on('-l', '--list', 'List available dogs') { options[:all_dogs] = true }
17
17
  opts.on('--list-animals', 'List available animal types') { options[:all_animals] = true }
18
+ opts.on('-v', '--version', 'Print version information') { options[:version] = true }
18
19
  opts.on('-h', '--help', 'Display this screen') { options[:help] = true ; options[:input] = opts.to_s }
19
20
  end
20
21
  begin
@@ -43,6 +44,10 @@ if options[:all_animals]
43
44
  puts "Possible animals are: #{Dogsay::Dog.all_animals}"
44
45
  exit true
45
46
  end
47
+ if options[:version]
48
+ puts "#{File.basename(__FILE__)} #{Dogsay::VERSION}"
49
+ exit true
50
+ end
46
51
 
47
52
  input = ARGV.empty? ? ARGF.read : ARGV.join(' ')
48
53
  begin
data/bin/dogsay CHANGED
@@ -15,6 +15,7 @@ def opts_from_cli
15
15
  opts.on('-s', '--strip', 'Strip newlines from input') { options[:strip] = true }
16
16
  opts.on('-l', '--list', 'List available dogs') { options[:all_dogs] = true }
17
17
  opts.on('--list-animals', 'List available animal types') { options[:all_animals] = true }
18
+ opts.on('-v', '--version', 'Print version information') { options[:version] = true }
18
19
  opts.on('-h', '--help', 'Display this screen') { options[:help] = true ; options[:input] = opts.to_s }
19
20
  end
20
21
  begin
@@ -43,6 +44,10 @@ if options[:all_animals]
43
44
  puts "Possible animals are: #{Dogsay::Dog.all_animals}"
44
45
  exit true
45
46
  end
47
+ if options[:version]
48
+ puts "#{File.basename(__FILE__)} #{Dogsay::VERSION}"
49
+ exit true
50
+ end
46
51
 
47
52
  input = ARGV.empty? ? ARGF.read : ARGV.join(' ')
48
53
  begin
@@ -1,3 +1,3 @@
1
1
  module Dogsay
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.3'
3
3
  end
data/lib/dogsay.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'core_extensions/array/padding'
2
2
  require 'core_extensions/string/box'
3
- require 'dogsay/errors'
4
3
  require 'dogsay/version'
4
+ require 'dogsay/errors'
5
5
  require 'dogsay/ascii_art'
6
6
  require 'dogsay/dog'
7
7
  require 'dogsay/text_box'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dogsay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Forrest Fleming