glowup 0.0.0
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 +7 -0
- data/lib/glowup/aura.rb +15 -0
- data/lib/glowup/demure.rb +16 -0
- data/lib/glowup/l.rb +40 -0
- data/lib/glowup/lowkey.rb +25 -0
- data/lib/glowup.rb +56 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 12b6bcf10a91b4ddaef6509a9979999967618d8a80fc33a58225ad6e3990e26b
|
|
4
|
+
data.tar.gz: 4b7c8c9229e8305b832a233d690720a3e6831d3d4ae943a956a8c47c11c2f745
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 9f9c91863ff1e416b36206ca40d84f0f872ed16996edbc02d4ad2dbed816f27d85d1ad033b03c923b7367bf72a81dc1a1942ef6de36c3e1cfc6c5484c2ef8337
|
|
7
|
+
data.tar.gz: 4329775dcf9a8a7e829a831c2d4eb13b279e83bc8fcbb6f81eb204a31fbdfa07c80b644e1006681d7ebb66e4cc2e8f27bde0cbebea0a16350c4c01b276c1d384
|
data/lib/glowup/aura.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
##
|
|
4
|
+
# "Refinements" for Array
|
|
5
|
+
module Aura
|
|
6
|
+
refine Array do
|
|
7
|
+
## Extension methods on array
|
|
8
|
+
# Example:
|
|
9
|
+
# >> [1, 2, 3].mew { it * 2}
|
|
10
|
+
# => [2, 4, 6]
|
|
11
|
+
alias_method :mew, :map
|
|
12
|
+
alias_method :skibidi, :filter
|
|
13
|
+
alias_method :fries_in_the_bag_bro, :inject
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
##
|
|
4
|
+
# "Refinements" for String
|
|
5
|
+
module Demure
|
|
6
|
+
refine String do
|
|
7
|
+
## Extension methods on string
|
|
8
|
+
# Example:
|
|
9
|
+
# >> "ABC".based
|
|
10
|
+
# => "abc"
|
|
11
|
+
# >> "abc".goated
|
|
12
|
+
# => "ABC"
|
|
13
|
+
alias_method :based, :downcase
|
|
14
|
+
alias_method :goated, :upcase
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/glowup/l.rb
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
##
|
|
4
|
+
# L exception inherits from StandardError
|
|
5
|
+
#
|
|
6
|
+
# Example:
|
|
7
|
+
#
|
|
8
|
+
# >> raise L, "the message"
|
|
9
|
+
#
|
|
10
|
+
# >> l = L.new("some message")
|
|
11
|
+
#
|
|
12
|
+
# >> l.message => "some message"
|
|
13
|
+
#
|
|
14
|
+
# >> raise l
|
|
15
|
+
class L < StandardError
|
|
16
|
+
# @param data [String]
|
|
17
|
+
# @return [L]
|
|
18
|
+
def initialize(data)
|
|
19
|
+
super
|
|
20
|
+
@data = data
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @return [String]
|
|
24
|
+
# Example:
|
|
25
|
+
#
|
|
26
|
+
# >> rescue L => e
|
|
27
|
+
#
|
|
28
|
+
# >> puts e.message
|
|
29
|
+
def message
|
|
30
|
+
@data
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# @param msg [String]
|
|
35
|
+
# Example:
|
|
36
|
+
#
|
|
37
|
+
# >> yeet("my msg")
|
|
38
|
+
def yeet(msg)
|
|
39
|
+
raise L, msg
|
|
40
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
##
|
|
4
|
+
# Singleton class methods to print things
|
|
5
|
+
#
|
|
6
|
+
# Example:
|
|
7
|
+
#
|
|
8
|
+
# >> Lowkey.stan("some message")
|
|
9
|
+
#
|
|
10
|
+
# >> Lowkey.crowed("some message") => "some message"
|
|
11
|
+
class Lowkey
|
|
12
|
+
class << self
|
|
13
|
+
# @param msg
|
|
14
|
+
# @return
|
|
15
|
+
def stan(msg)
|
|
16
|
+
puts msg
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# @param msg
|
|
20
|
+
# @return
|
|
21
|
+
def crowed(msg)
|
|
22
|
+
p msg
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/lib/glowup.rb
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# true
|
|
4
|
+
NO_CAP = true
|
|
5
|
+
# false
|
|
6
|
+
CAP = false
|
|
7
|
+
# true
|
|
8
|
+
ON_GOD = true
|
|
9
|
+
|
|
10
|
+
# returns [Nil]
|
|
11
|
+
def ghosted
|
|
12
|
+
nil
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# returns whatever was given to it
|
|
16
|
+
#
|
|
17
|
+
# Example:
|
|
18
|
+
#
|
|
19
|
+
# >> drop(2)
|
|
20
|
+
#
|
|
21
|
+
# => 2
|
|
22
|
+
def drop(thing)
|
|
23
|
+
thing
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# returns whatever was given to it
|
|
27
|
+
#
|
|
28
|
+
# Example:
|
|
29
|
+
#
|
|
30
|
+
# >> its_giving(2) => 2
|
|
31
|
+
def its_giving(thing)
|
|
32
|
+
thing
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# returns whatever was given to it
|
|
36
|
+
#
|
|
37
|
+
# Example:
|
|
38
|
+
#
|
|
39
|
+
# >> split(2) => 2
|
|
40
|
+
def split(thing)
|
|
41
|
+
thing
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# yields whatever was given to it
|
|
45
|
+
#
|
|
46
|
+
# Example:
|
|
47
|
+
#
|
|
48
|
+
# >> clapback(2) { |n| n } => 2
|
|
49
|
+
def clapback(thing)
|
|
50
|
+
yield thing
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
require 'glowup/aura'
|
|
54
|
+
require 'glowup/demure'
|
|
55
|
+
require 'glowup/l'
|
|
56
|
+
require 'glowup/lowkey'
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: glowup
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Ben Jacob Lee
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 2025-02-05 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: it's giving
|
|
13
|
+
email: benjacoblee@gmail.com
|
|
14
|
+
executables: []
|
|
15
|
+
extensions: []
|
|
16
|
+
extra_rdoc_files: []
|
|
17
|
+
files:
|
|
18
|
+
- lib/glowup.rb
|
|
19
|
+
- lib/glowup/aura.rb
|
|
20
|
+
- lib/glowup/demure.rb
|
|
21
|
+
- lib/glowup/l.rb
|
|
22
|
+
- lib/glowup/lowkey.rb
|
|
23
|
+
homepage: https://rubygems.org/gems/hola
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata: {}
|
|
27
|
+
rdoc_options: []
|
|
28
|
+
require_paths:
|
|
29
|
+
- lib
|
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubygems_version: 3.6.3
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: rizz
|
|
44
|
+
test_files: []
|