L2 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/L2.rb +16 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb64f897a06fa73bc784245de4ad6413e1b78ac3373a5fec75230a0f9b0fee54
|
4
|
+
data.tar.gz: 57eec2c6463173235268a661e14d64fc6c4789ddd67bab118fc399be2c530eee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5065e728e415751045490103d1c1c46e712fee10bfe5770f2f9f1f5af56232fab9b543c2d47a395c0e9cb2a9368ed8552afdcb7c1ad9a5e2bddf11ee5150c1e5
|
7
|
+
data.tar.gz: f06a4751a2bd10b80682e80f59a501e62ec3ea3c2090f6cebd470f4962b251fcc072dd3d550c355de4a45f7ba18a39fa07ced75a329373be40b039f7166da3ef
|
data/lib/L2.rb
CHANGED
@@ -29,6 +29,8 @@ Building a better future, one line of code at a time.
|
|
29
29
|
// ·
|
30
30
|
=end
|
31
31
|
|
32
|
+
require "ruby_cowsay"
|
33
|
+
|
32
34
|
module L2
|
33
35
|
|
34
36
|
# standard color palette for texts
|
@@ -176,6 +178,20 @@ module L2
|
|
176
178
|
|
177
179
|
end
|
178
180
|
|
181
|
+
def self.cow message
|
182
|
+
|
183
|
+
# ids of the prettiest cows in the library
|
184
|
+
pretty_cows = [46,33,32,31,29,27,21,10,5]
|
185
|
+
|
186
|
+
# get a random cow id
|
187
|
+
random_cows = rand(0..(pretty_cows.size - 1))
|
188
|
+
|
189
|
+
br()
|
190
|
+
|
191
|
+
# show simple text message
|
192
|
+
puts Cow.new({ :cow => Cow.cows[pretty_cows[random_cows]] }).say(message)
|
193
|
+
end
|
194
|
+
|
179
195
|
|
180
196
|
# · Aliases
|
181
197
|
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: L2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Lesli Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
12
|
-
dependencies:
|
11
|
+
date: 2022-12-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ruby_cowsay
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.1.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.3
|
13
27
|
description:
|
14
28
|
email:
|
15
29
|
- hello@lesli.tech
|
@@ -25,7 +39,7 @@ metadata:
|
|
25
39
|
homepage_uri: https://github.com/LesliTech/L2
|
26
40
|
source_code_uri: https://github.com/LesliTech/L2
|
27
41
|
bug_tracker_uri: https://github.com/LesliTech/L2/issues
|
28
|
-
changelog_uri: https://github.com/LesliTech/L2/releases/tag/v0.
|
42
|
+
changelog_uri: https://github.com/LesliTech/L2/releases/tag/v0.5.0
|
29
43
|
post_install_message:
|
30
44
|
rdoc_options: []
|
31
45
|
require_paths:
|