lite-command 2.1.2 → 3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a80b87ce018b8d2c4097c6a3c1e22869b51089e7bb1e040f8b4be33f72a0cc47
4
- data.tar.gz: 8db4399804fbdcd1ef0a42baa4ae902d864b8283cdb26ea0b8fdbac123f569c8
3
+ metadata.gz: b334836e64434045ade9238d62507c609c53893b8b79f17a9922054336bcf22f
4
+ data.tar.gz: c1c84f0f56da8fd3153326c7de316a2382864c5f56d6d1de89835a70c3453e30
5
5
  SHA512:
6
- metadata.gz: a00f4af0af22973c3ec4fa43e635d7bca891b97a3cebb264b52955dd1a9e9b963045297569cae7a6144820cb3cea0907044b73200f1f9a0781befded2fd1e0c1
7
- data.tar.gz: 7a0239e49c62c900b1df6c39e0d7a6c97ac7768bb0e6b8b1292b44726a59e5f336a9d562c20fd4979f9950c1e7c3a57528ae2d83e5e85aee34379a75fdfbe1ce
6
+ metadata.gz: db8e4a837b728ec4a95733b4820096acd666d956d5f14954366a3fef061a20bca16eb5ed3e6224c1b2bcb676d55d11d21e336ded98ad4fdd0d9968bdb9479a3e
7
+ data.tar.gz: d2e21206738f9d692784c05496568d79f42b390a9869a22dfdec6e58640d8019c78958e9df36871fd8ad2f642ea0f240a5f6070ebaa45957cc73fc41daca2aa7
@@ -1,30 +1,21 @@
1
1
  name: CI
2
2
  on:
3
- push:
4
- branches:
5
- - master
6
3
  pull_request:
7
- branches:
8
- - master
4
+ branches: [ master ]
5
+ permissions:
6
+ contents: read
9
7
  jobs:
10
8
  test:
11
9
  runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- ruby:
15
- - '3.3'
16
- - '3.2'
17
10
  steps:
18
11
  - name: Checkout
19
12
  uses: actions/checkout@v4
20
13
  - name: Install
21
14
  uses: ruby/setup-ruby@v1
22
15
  with:
23
- ruby-version: ${{matrix.ruby}}
16
+ ruby-version: '3.3.5'
24
17
  bundler-cache: true
25
18
  - name: RSpec
26
- run: bundle exec rspec .
27
- - name: Fasterer
28
- run: bundle exec fasterer .
19
+ run: bundle exec rspec
29
20
  - name: Rubocop
30
- run: bundle exec rubocop .
21
+ run: bundle exec rubocop --parallel
data/.rubocop.yml CHANGED
@@ -6,6 +6,7 @@ AllCops:
6
6
  NewCops: enable
7
7
  DisplayCopNames: true
8
8
  DisplayStyleGuide: true
9
+ TargetRubyVersion: 3.3.5
9
10
  Gemspec/DevelopmentDependencies:
10
11
  EnforcedStyle: gemspec
11
12
  Gemspec/RequiredRubyVersion:
@@ -43,6 +44,8 @@ Naming/MemoizedInstanceVariableName:
43
44
  Enabled: false
44
45
  RSpec/AnyInstance:
45
46
  Enabled: false
47
+ RSpec/DescribedClass:
48
+ Enabled: false
46
49
  RSpec/ExampleLength:
47
50
  Enabled: false
48
51
  RSpec/MessageSpies:
data/CHANGELOG.md CHANGED
@@ -6,6 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.0.0] - 2024-10-15
10
+ ### Added
11
+ - Added `bad?` status method check
12
+ - Configuration class to handle dynamic error creation
13
+ - Added `on_before_validation` callback hook
14
+ - Added validation support
15
+ - Added new `required` and `optional` attribute methods
16
+ ### Changed
17
+ - Improved values of `caused_by` and `thrown_by`
18
+ - Use try util instead of hook
19
+ ### Removed
20
+ - Removed attributes method
21
+
22
+ ## [2.1.3] - 2024-10-08
23
+ ### Changed
24
+ - Move super in inheritance
25
+
9
26
  ## [2.1.2] - 2024-10-08
10
27
  ### Added
11
28
  - Allow `filled` to pass `{ empty: false }` to check if value is empty
data/Gemfile.lock CHANGED
@@ -1,15 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-command (2.1.2)
4
+ lite-command (3.0.0)
5
+ activemodel
5
6
  ostruct
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- actionpack (7.2.1)
11
- actionview (= 7.2.1)
12
- activesupport (= 7.2.1)
11
+ actionpack (7.2.1.1)
12
+ actionview (= 7.2.1.1)
13
+ activesupport (= 7.2.1.1)
13
14
  nokogiri (>= 1.8.5)
14
15
  racc
15
16
  rack (>= 2.2.4, < 3.2)
@@ -18,13 +19,15 @@ GEM
18
19
  rails-dom-testing (~> 2.2)
19
20
  rails-html-sanitizer (~> 1.6)
20
21
  useragent (~> 0.16)
21
- actionview (7.2.1)
22
- activesupport (= 7.2.1)
22
+ actionview (7.2.1.1)
23
+ activesupport (= 7.2.1.1)
23
24
  builder (~> 3.1)
24
25
  erubi (~> 1.11)
25
26
  rails-dom-testing (~> 2.2)
26
27
  rails-html-sanitizer (~> 1.6)
27
- activesupport (7.2.1)
28
+ activemodel (7.2.1.1)
29
+ activesupport (= 7.2.1.1)
30
+ activesupport (7.2.1.1)
28
31
  base64
29
32
  bigdecimal
30
33
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -45,8 +48,6 @@ GEM
45
48
  diff-lcs (1.5.1)
46
49
  drb (2.2.1)
47
50
  erubi (1.13.0)
48
- fasterer (0.11.0)
49
- ruby_parser (>= 3.19.1)
50
51
  generator_spec (0.10.0)
51
52
  activesupport (>= 3.0.0)
52
53
  railties (>= 3.0.0)
@@ -75,7 +76,7 @@ GEM
75
76
  psych (5.1.2)
76
77
  stringio
77
78
  racc (1.8.1)
78
- rack (3.1.7)
79
+ rack (3.1.8)
79
80
  rack-session (2.0.0)
80
81
  rack (>= 3.0.0)
81
82
  rack-test (2.1.0)
@@ -90,9 +91,9 @@ GEM
90
91
  rails-html-sanitizer (1.6.0)
91
92
  loofah (~> 2.21)
92
93
  nokogiri (~> 1.14)
93
- railties (7.2.1)
94
- actionpack (= 7.2.1)
95
- activesupport (= 7.2.1)
94
+ railties (7.2.1.1)
95
+ actionpack (= 7.2.1.1)
96
+ activesupport (= 7.2.1.1)
96
97
  irb (~> 1.13)
97
98
  rackup (>= 1.0.0)
98
99
  rake (>= 12.2)
@@ -118,7 +119,7 @@ GEM
118
119
  diff-lcs (>= 1.2.0, < 2.0)
119
120
  rspec-support (~> 3.13.0)
120
121
  rspec-support (3.13.1)
121
- rubocop (1.66.1)
122
+ rubocop (1.67.0)
122
123
  json (~> 2.3)
123
124
  language_server-protocol (>= 3.17.0)
124
125
  parallel (~> 1.10)
@@ -138,11 +139,7 @@ GEM
138
139
  rubocop-rspec (3.1.0)
139
140
  rubocop (~> 1.61)
140
141
  ruby-progressbar (1.13.0)
141
- ruby_parser (3.21.1)
142
- racc (~> 1.5)
143
- sexp_processor (~> 4.16)
144
142
  securerandom (0.3.1)
145
- sexp_processor (4.17.2)
146
143
  sqlite3 (2.1.0)
147
144
  mini_portile2 (~> 2.8.0)
148
145
  stringio (3.1.1)
@@ -152,14 +149,13 @@ GEM
152
149
  unicode-display_width (2.6.0)
153
150
  useragent (0.16.10)
154
151
  webrick (1.8.2)
155
- zeitwerk (2.6.18)
152
+ zeitwerk (2.7.0)
156
153
 
157
154
  PLATFORMS
158
155
  ruby
159
156
 
160
157
  DEPENDENCIES
161
158
  bundler
162
- fasterer
163
159
  generator_spec
164
160
  lite-command!
165
161
  rake