lite-command 3.0.0 → 3.0.1

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: b334836e64434045ade9238d62507c609c53893b8b79f17a9922054336bcf22f
4
- data.tar.gz: c1c84f0f56da8fd3153326c7de316a2382864c5f56d6d1de89835a70c3453e30
3
+ metadata.gz: ca95adc16c60158c9a6b826dc9b87f826dc0a81574fd85b996147bbc9ba7c7f2
4
+ data.tar.gz: 26d5c68abb7572aa5c887f324fe138c4eb282eb00308dcda83059ace331d2c1b
5
5
  SHA512:
6
- metadata.gz: db8e4a837b728ec4a95733b4820096acd666d956d5f14954366a3fef061a20bca16eb5ed3e6224c1b2bcb676d55d11d21e336ded98ad4fdd0d9968bdb9479a3e
7
- data.tar.gz: d2e21206738f9d692784c05496568d79f42b390a9869a22dfdec6e58640d8019c78958e9df36871fd8ad2f642ea0f240a5f6070ebaa45957cc73fc41daca2aa7
6
+ metadata.gz: 73217979c23fff74cf8a9f4965627e3c69bb3d6b74b3b815cb70af3ad766a4ecd412acfb11e96dfc777427eca9dd113c1782e0e407838836d165e1f716f0e241
7
+ data.tar.gz: ec3f313e195d97d5c22f8187d78dc0b328288eaa4f2c57de72edce22949b4c75825f63842df7a8141059161efefb1ab45f6457c2b47d2e33efe6fa136b8e7ed7
data/.rubocop.yml CHANGED
@@ -42,6 +42,8 @@ Metrics/PerceivedComplexity:
42
42
  Enabled: false
43
43
  Naming/MemoizedInstanceVariableName:
44
44
  Enabled: false
45
+ Performance/AncestorsInclude:
46
+ Enabled: false
45
47
  RSpec/AnyInstance:
46
48
  Enabled: false
47
49
  RSpec/DescribedClass:
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.0.1] - 2024-10-25
10
+ ### Added
11
+ - Added improved equality check
12
+
9
13
  ## [3.0.0] - 2024-10-15
10
14
  ### Added
11
15
  - Added `bad?` status method check
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-command (3.0.0)
4
+ lite-command (3.0.1)
5
5
  activemodel
6
6
  ostruct
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (7.2.1.1)
12
- actionview (= 7.2.1.1)
13
- activesupport (= 7.2.1.1)
11
+ actionpack (7.2.1.2)
12
+ actionview (= 7.2.1.2)
13
+ activesupport (= 7.2.1.2)
14
14
  nokogiri (>= 1.8.5)
15
15
  racc
16
16
  rack (>= 2.2.4, < 3.2)
@@ -19,15 +19,15 @@ GEM
19
19
  rails-dom-testing (~> 2.2)
20
20
  rails-html-sanitizer (~> 1.6)
21
21
  useragent (~> 0.16)
22
- actionview (7.2.1.1)
23
- activesupport (= 7.2.1.1)
22
+ actionview (7.2.1.2)
23
+ activesupport (= 7.2.1.2)
24
24
  builder (~> 3.1)
25
25
  erubi (~> 1.11)
26
26
  rails-dom-testing (~> 2.2)
27
27
  rails-html-sanitizer (~> 1.6)
28
- activemodel (7.2.1.1)
29
- activesupport (= 7.2.1.1)
30
- activesupport (7.2.1.1)
28
+ activemodel (7.2.1.2)
29
+ activesupport (= 7.2.1.2)
30
+ activesupport (7.2.1.2)
31
31
  base64
32
32
  bigdecimal
33
33
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -57,10 +57,10 @@ GEM
57
57
  irb (1.14.1)
58
58
  rdoc (>= 4.0.0)
59
59
  reline (>= 0.4.2)
60
- json (2.7.2)
60
+ json (2.7.4)
61
61
  language_server-protocol (3.17.0.3)
62
62
  logger (1.6.1)
63
- loofah (2.22.0)
63
+ loofah (2.23.1)
64
64
  crass (~> 1.0.2)
65
65
  nokogiri (>= 1.12.0)
66
66
  mini_portile2 (2.8.7)
@@ -91,9 +91,9 @@ GEM
91
91
  rails-html-sanitizer (1.6.0)
92
92
  loofah (~> 2.21)
93
93
  nokogiri (~> 1.14)
94
- railties (7.2.1.1)
95
- actionpack (= 7.2.1.1)
96
- activesupport (= 7.2.1.1)
94
+ railties (7.2.1.2)
95
+ actionpack (= 7.2.1.2)
96
+ activesupport (= 7.2.1.2)
97
97
  irb (~> 1.13)
98
98
  rackup (>= 1.0.0)
99
99
  rake (>= 12.2)
@@ -110,7 +110,7 @@ GEM
110
110
  rspec-core (~> 3.13.0)
111
111
  rspec-expectations (~> 3.13.0)
112
112
  rspec-mocks (~> 3.13.0)
113
- rspec-core (3.13.1)
113
+ rspec-core (3.13.2)
114
114
  rspec-support (~> 3.13.0)
115
115
  rspec-expectations (3.13.3)
116
116
  diff-lcs (>= 1.2.0, < 2.0)
@@ -140,7 +140,7 @@ GEM
140
140
  rubocop (~> 1.61)
141
141
  ruby-progressbar (1.13.0)
142
142
  securerandom (0.3.1)
143
- sqlite3 (2.1.0)
143
+ sqlite3 (2.1.1)
144
144
  mini_portile2 (~> 2.8.0)
145
145
  stringio (3.1.1)
146
146
  thor (1.3.2)
@@ -149,7 +149,7 @@ GEM
149
149
  unicode-display_width (2.6.0)
150
150
  useragent (0.16.10)
151
151
  webrick (1.8.2)
152
- zeitwerk (2.7.0)
152
+ zeitwerk (2.7.1)
153
153
 
154
154
  PLATFORMS
155
155
  ruby
@@ -29,10 +29,23 @@ module Lite
29
29
  fault
30
30
  end
31
31
 
32
+ def self.===(item)
33
+ klass0 = respond_to?(:new) ? self : self.class
34
+ klass1 = item.respond_to?(:new) ? item : item.class
35
+ return true if klass0 == klass1
36
+
37
+ klass0.ancestors.include?(klass1) || klass1.ancestors.include?(klass0)
38
+ end
39
+
32
40
  def type
33
41
  @type ||= self.class.name.split("::").last.downcase
34
42
  end
35
43
 
44
+ def ===(item)
45
+ klass = item.respond_to?(:new) ? item : item.class
46
+ is_a?(klass)
47
+ end
48
+
36
49
  end
37
50
 
38
51
  class Noop < Fault; end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Command
5
5
 
6
- VERSION = "3.0.0"
6
+ VERSION = "3.0.1"
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-16 00:00:00.000000000 Z
11
+ date: 2024-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel