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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7568ca2851a68d6ec6e5a66588f514bf6b95597eb8ed9fba59b6e3c204668e3
4
- data.tar.gz: 29f61b714e981320ea89c3ea179334a0bbc2ae3fb14db8fc25129e135cb54935
3
+ metadata.gz: 483249113d393f9851f4641c08e917c087a5c1db46cbbd44c8097c0760b883c5
4
+ data.tar.gz: 5e2daacda68d812268a384cc00ccc6df4cb05e267725feee663af3b1a5976e86
5
5
  SHA512:
6
- metadata.gz: 4f214f02c6c540cfe1f9d64eb13c457d3ff2d37d6606ecd0e7656e630880103d8d5744fb04327d822e29d8c34b43fac42372f4c62ed89dbe54c34f32efa9e811
7
- data.tar.gz: 07d6de0d59c2700a5543b8b1d5cf3c9691af11a5fe9696b03fdbb293a169959c07f0b3e2a6f29116c231dc313736b57da77a89a435a4be6a43645b1f2147ab33
6
+ metadata.gz: d7df4e7e6aaabe1460202b67c70cde28dc4f6a195afa09050302b4858f532576f380b3f73ed93baea5d15530a429779269583adb3ff32f4420a12abe6962b5ca
7
+ data.tar.gz: 9e811ec4b770efe3df29d2664fe0b9adfde3841d501ba1614458dcdf7e3839b5e4a15d14ca035d64cb5ce3cdb17847d07b15d8dc8c98c2a6698d6d6a09863556
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- namespace(:yiff_space) do
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 " \
@@ -4,4 +4,5 @@ require_relative("active_record/all")
4
4
  require_relative("arel/all")
5
5
  require_relative("enumerable/all")
6
6
  require_relative("hash/all")
7
+ require_relative("object/all")
7
8
  require_relative("string/all")
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative("to_b")
4
+ require_relative("truthy_falsy")
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative("../../extensions/object/to_b")
4
+
5
+ class Object
6
+ include(YiffSpace::Extensions::Object::ToB)
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative("../../extensions/object/truthy_falsy")
4
+
5
+ class Object
6
+ include(YiffSpace::Extensions::Object::TruthyFalsy)
7
+ end
@@ -1,5 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative("sql")
4
- require_relative("to_b")
5
- require_relative("truthy_falsy")
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YiffSpace
4
- VERSION = "0.0.23"
4
+ VERSION = "0.0.24"
5
5
  end
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.23
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-03 00:00:00.000000000 Z
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/yiff_space_tasks.rake
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,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative("../../extensions/string/to_b")
4
-
5
- class String
6
- include(YiffSpace::Extensions::String::ToB)
7
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative("../../extensions/string/truthy_falsy")
4
-
5
- class String
6
- include(YiffSpace::Extensions::String::TruthyFalsy)
7
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YiffSpace
4
- module Extensions
5
- module String
6
- module ToB
7
- def to_b # rubocop:disable Naming/PredicateMethod
8
- !match?(/\A(false|f|no|n|off|0)\z/i)
9
- end
10
- end
11
- end
12
- end
13
- end
@@ -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