ruby-glowup 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby-glowup.rb +35 -1
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22d2754ddf9878efdc78d1f9f23445ef86d799ba9158cf0bdcc7889ab1a74363
4
- data.tar.gz: d517c02118f0c4a00ec9d73542cc8f1a07165f805b6a47b6d838b7ce27293160
3
+ metadata.gz: c1bc159a6f10b88f8dea8dc613ad78d9a482d62b897a562cdf995ab32651ad30
4
+ data.tar.gz: 7747cac4ead0f5281a23e2c42455cf4822dc3a0f2287a3a1fa4bb8644a769d83
5
5
  SHA512:
6
- metadata.gz: 3e2291636a597db951941cff16bddeac6e0f25d73da0cbe6f7d4c1a970bac90723ca1f25044e56a8ec7776a76846ae60184c2478eded1a58d7104db7b1610f69
7
- data.tar.gz: 5344d65f3398bfbcd158abc337a8f46e5272a1e1b5e2f0a7ae5eea96ba1431a1d817aeca3ef2d8facd14a10ae74b275bbe2fef59d8cf91a6efa5af6175b8a941
6
+ metadata.gz: aca3aea9c5dd1c9246f71cd1deada467ebf7a3fd0d7a1ece07c95eeabcbad02ae74f7192761801a24cb12edbb3b10f6820c947a73b24b65f538226b5151a219e
7
+ data.tar.gz: f49b42880344d0fdecde17b9f3d15dc82c0e5c3ab07a59e3470e3e67c4400539dedc268f7f639b53b9728e3d6c7fa1c336c6b0f95a634fe205d12462a9f88146
data/lib/ruby-glowup.rb CHANGED
@@ -1,2 +1,36 @@
1
- class RubyGlowup
1
+ require "active_support/concern"
2
+
3
+ module RubyGlowup
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ class ::Object
8
+ def self.bet?
9
+ ([self.name] & %w[FalseClass NilClass]).empty?
10
+ end
11
+
12
+ def self.cap?
13
+ !([self.name] & %w[FalseClass NilClass]).empty?
14
+ end
15
+
16
+ def self.no_cap?
17
+ self.class.bet?
18
+ end
19
+
20
+ def self.on_god?
21
+ self.class.bet?
22
+ end
23
+
24
+ # Instance methods
25
+ %w[bet? cap? no_cap? on_god?].each do |name|
26
+ define_method(name) do
27
+ self.class.send(name)
28
+ end
29
+ end
30
+
31
+ def yeet(*args)
32
+ raise *args
33
+ end
34
+ end
35
+ end
2
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-glowup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Merritt
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2024-03-07 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: '3'
13
27
  description: Make your ruby slap frfr
14
28
  email: andrew.w.merritt@gmail.com
15
29
  executables: []