catsay 0.2.6 → 0.2.7
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
- checksums.yaml.gz.sig +0 -0
- data/cats/nyancat.erb +15 -0
- data/lib/catsay.rb +5 -5
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a93f08365bac01b93e8543d636b01bc7e708bfd
|
4
|
+
data.tar.gz: 0c4a20b991de849f16a8344616339c10dfd7ea72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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.
|
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
|