catsay 0.2.6 → 0.2.7

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: f1bfb80a2460b1b73ec87560cf283371ed92b2c3
4
- data.tar.gz: 5149586f8f5639df5c9be299bdb926d5710f52b7
3
+ metadata.gz: 3a93f08365bac01b93e8543d636b01bc7e708bfd
4
+ data.tar.gz: 0c4a20b991de849f16a8344616339c10dfd7ea72
5
5
  SHA512:
6
- metadata.gz: e6615b00905e78e7b840d405467cbde62fadb937b0d84b994a885c638b21da738694022c9305ba9b4efe83aa6a369d19aae0f244e97a41c72d0db84da4b2ea25
7
- data.tar.gz: 1694f4c5bae1a1a21471c1d7e20a2fbcb26f6e64169149e830d95d6dcec7d39183e601e9483972cc9e18def7a6d24f456ca98ab2b31930278d40b438c7a882eb
6
+ metadata.gz: 88752d32a7f415325ecf9019051721472a60ccaf943b873ba027ed39f5f7e061cfb0ba9c9ab476b613584968518af77e7646ca24fb13ae6018aafe0878031972
7
+ data.tar.gz: 4c1373221d9d88d5c2e26fb7d42b83a2511c54da6bdfc47b996eca9eac41cdd7c4a75b12afc85d8e5a964558d36768f5d0003d8bf2c1ed9e8b714aafb1140522
checksums.yaml.gz.sig CHANGED
Binary file
data/cats/nyancat.erb ADDED
@@ -0,0 +1,15 @@
1
+ <%# source: https://evilzone.org/creative-arts/nyan-cat-ascii/ %>
2
+ + o + o
3
+ + o + +
4
+ o +
5
+ o + + +
6
+ + o o + o
7
+ -_-_-_-_-_-_-_,------, <%= @message %>
8
+ _-_-_-_-_-_-_-| /\_/\ /
9
+ -_-_-_-_-_-_-~|__( ^ .^) + +
10
+ _-_-_-_-_-_-_-"" ""
11
+ + o o + o
12
+ + +
13
+ o o o o +
14
+ o +
15
+ + + o o +
data/lib/catsay.rb CHANGED
@@ -43,6 +43,11 @@ module Catsay
43
43
  output_handle.puts Cat.new(:template => template).meow(message)
44
44
  end
45
45
 
46
+ def cats
47
+ catfiles = Dir[File.join(File.expand_path(File.dirname(__FILE__)), '..', 'cats', '*.erb')]
48
+ catfiles.map! { |x| File.basename(x, '.erb') }.to_set
49
+ end
50
+
46
51
  private
47
52
 
48
53
  # returns a file handle for the input
@@ -105,11 +110,6 @@ module Catsay
105
110
  File.join(File.expand_path(File.dirname(__FILE__)), '..', 'cats', "#{template_id}.erb")
106
111
  end
107
112
 
108
- def cats
109
- catfiles = Dir[File.join(File.expand_path(File.dirname(__FILE__)), '..', 'cats', '*.erb')]
110
- catfiles.map! { |x| File.basename(x, '.erb') }.to_set
111
- end
112
-
113
113
  # fetches the input by first looking for
114
114
  # an input handle and then looking for
115
115
  # options[:text] (text specified after arguments)
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catsay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin G. Davis-Richardson
@@ -28,7 +28,7 @@ cert_chain:
28
28
  b9RS3+P0pRzQyo2osQTnOup3ZAlfqtG90F/m5mSIvWeJQBwcZld9X2CvJ/DgSfvX
29
29
  hArlAbz8jIiZ5FhHecQVQ6Q0sDljNdFh5N6SQp9afYfJ0Dlb
30
30
  -----END CERTIFICATE-----
31
- date: 2015-03-06 00:00:00.000000000 Z
31
+ date: 2015-06-02 00:00:00.000000000 Z
32
32
  dependencies: []
33
33
  description: Like cowsay but with cats
34
34
  email: harekrishna@gmail.com
@@ -44,6 +44,7 @@ files:
44
44
  - cats/grumpy.erb
45
45
  - cats/longcat.erb
46
46
  - cats/mini.erb
47
+ - cats/nyancat.erb
47
48
  - cats/octocat.erb
48
49
  - cats/test.erb
49
50
  - cats/yak.erb
@@ -70,9 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
71
  version: '0'
71
72
  requirements: []
72
73
  rubyforge_project:
73
- rubygems_version: 2.4.1
74
+ rubygems_version: 2.4.5
74
75
  signing_key:
75
76
  specification_version: 4
76
77
  summary: Cats in your terminal
77
78
  test_files: []
78
- has_rdoc:
metadata.gz.sig CHANGED
Binary file