yiffspace 0.0.23 → 0.0.24
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
- data/lib/tasks/{yiff_space_tasks.rake → yiffspace_tasks.rake} +1 -1
- data/lib/yiffspace/core_ext/all.rb +1 -0
- data/lib/yiffspace/core_ext/object/all.rb +4 -0
- data/lib/yiffspace/core_ext/object/to_b.rb +7 -0
- data/lib/yiffspace/core_ext/object/truthy_falsy.rb +7 -0
- data/lib/yiffspace/core_ext/string/all.rb +0 -2
- data/lib/yiffspace/extensions/object/to_b.rb +22 -0
- data/lib/yiffspace/extensions/object/truthy_falsy.rb +35 -0
- data/lib/yiffspace/version.rb +1 -1
- metadata +8 -7
- data/lib/yiffspace/core_ext/string/to_b.rb +0 -7
- data/lib/yiffspace/core_ext/string/truthy_falsy.rb +0 -7
- data/lib/yiffspace/extensions/string/to_b.rb +0 -13
- data/lib/yiffspace/extensions/string/truthy_falsy.rb +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 483249113d393f9851f4641c08e917c087a5c1db46cbbd44c8097c0760b883c5
|
|
4
|
+
data.tar.gz: 5e2daacda68d812268a384cc00ccc6df4cb05e267725feee663af3b1a5976e86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7df4e7e6aaabe1460202b67c70cde28dc4f6a195afa09050302b4858f532576f380b3f73ed93baea5d15530a429779269583adb3ff32f4420a12abe6962b5ca
|
|
7
|
+
data.tar.gz: 9e811ec4b770efe3df29d2664fe0b9adfde3841d501ba1614458dcdf7e3839b5e4a15d14ca035d64cb5ce3cdb17847d07b15d8dc8c98c2a6698d6d6a09863556
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
namespace(:
|
|
3
|
+
namespace(:yiffspace) do
|
|
4
4
|
desc("Report and interactively remove duplicate/orphaned Logto users left behind by " \
|
|
5
5
|
"get_or_create_user races. Prompts for confirmation before deleting each one. " \
|
|
6
6
|
"Pass AUTH_CLIENT=name to use a registered auth client other than :default " \
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module YiffSpace
|
|
4
|
+
module Extensions
|
|
5
|
+
module Object
|
|
6
|
+
module ToB
|
|
7
|
+
def to_b
|
|
8
|
+
case self
|
|
9
|
+
when ::String
|
|
10
|
+
!match?(/\A(false|f|no|n|off|0)\z/i)
|
|
11
|
+
when ::TrueClass
|
|
12
|
+
true
|
|
13
|
+
when ::FalseClass
|
|
14
|
+
false
|
|
15
|
+
else
|
|
16
|
+
to_s.to_b
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module YiffSpace
|
|
4
|
+
module Extensions
|
|
5
|
+
module Object
|
|
6
|
+
module TruthyFalsy
|
|
7
|
+
def truthy?
|
|
8
|
+
case self
|
|
9
|
+
when ::String
|
|
10
|
+
match?(/\A(true|t|yes|y|on|1)\z/i)
|
|
11
|
+
when ::TrueClass
|
|
12
|
+
true
|
|
13
|
+
when ::FalseClass
|
|
14
|
+
false
|
|
15
|
+
else
|
|
16
|
+
to_s.truthy?
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def falsy?
|
|
21
|
+
case self
|
|
22
|
+
when ::String
|
|
23
|
+
match?(/\A(false|f|no|n|off|0)\z/i)
|
|
24
|
+
when ::TrueClass
|
|
25
|
+
false
|
|
26
|
+
when ::FalseClass
|
|
27
|
+
true
|
|
28
|
+
else
|
|
29
|
+
to_s.falsy?
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
data/lib/yiffspace/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yiffspace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Donovan_DMC
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-07-
|
|
10
|
+
date: 2026-07-11 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: abbrev
|
|
@@ -117,7 +117,7 @@ files:
|
|
|
117
117
|
- engines/auth/app/controllers/yiff_space/auth/webhook_controller.rb
|
|
118
118
|
- engines/auth/app/views/yiff_space/auth/root/permissions.html.erb
|
|
119
119
|
- engines/auth/config/routes.rb
|
|
120
|
-
- lib/tasks/
|
|
120
|
+
- lib/tasks/yiffspace_tasks.rake
|
|
121
121
|
- lib/yiffspace.rb
|
|
122
122
|
- lib/yiffspace/auth.rb
|
|
123
123
|
- lib/yiffspace/auth/api_user.rb
|
|
@@ -159,10 +159,11 @@ files:
|
|
|
159
159
|
- lib/yiffspace/core_ext/hash/all.rb
|
|
160
160
|
- lib/yiffspace/core_ext/hash/to_open_hash.rb
|
|
161
161
|
- lib/yiffspace/core_ext/logto/named_session_storage.rb
|
|
162
|
+
- lib/yiffspace/core_ext/object/all.rb
|
|
163
|
+
- lib/yiffspace/core_ext/object/to_b.rb
|
|
164
|
+
- lib/yiffspace/core_ext/object/truthy_falsy.rb
|
|
162
165
|
- lib/yiffspace/core_ext/string/all.rb
|
|
163
166
|
- lib/yiffspace/core_ext/string/sql.rb
|
|
164
|
-
- lib/yiffspace/core_ext/string/to_b.rb
|
|
165
|
-
- lib/yiffspace/core_ext/string/truthy_falsy.rb
|
|
166
167
|
- lib/yiffspace/extensions/action_dispatch/set_auth_client.rb
|
|
167
168
|
- lib/yiffspace/extensions/action_dispatch/set_auth_client/scoped.rb
|
|
168
169
|
- lib/yiffspace/extensions/active_record/where_chain.rb
|
|
@@ -175,9 +176,9 @@ files:
|
|
|
175
176
|
- lib/yiffspace/extensions/enumerable/parallel.rb
|
|
176
177
|
- lib/yiffspace/extensions/hash/to_open_hash.rb
|
|
177
178
|
- lib/yiffspace/extensions/logto/named_session_storage.rb
|
|
179
|
+
- lib/yiffspace/extensions/object/to_b.rb
|
|
180
|
+
- lib/yiffspace/extensions/object/truthy_falsy.rb
|
|
178
181
|
- lib/yiffspace/extensions/string/sql.rb
|
|
179
|
-
- lib/yiffspace/extensions/string/to_b.rb
|
|
180
|
-
- lib/yiffspace/extensions/string/truthy_falsy.rb
|
|
181
182
|
- lib/yiffspace/images.rb
|
|
182
183
|
- lib/yiffspace/images/avatar.rb
|
|
183
184
|
- lib/yiffspace/images/avatar/base.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module YiffSpace
|
|
4
|
-
module Extensions
|
|
5
|
-
module String
|
|
6
|
-
module TruthyFalsy
|
|
7
|
-
def truthy?
|
|
8
|
-
match?(/\A(true|t|yes|y|on|1)\z/i)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
def falsy?
|
|
12
|
-
match?(/\A(false|f|no|n|off|0)\z/i)
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|