deco_lite 1.5.8 → 1.5.10

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: 1f2a9da9325d467020b10b9254983f1ac58808dae1da5d4f5800029fd17d670c
4
- data.tar.gz: c21a5b3b766842260c44149dde74c9daf2843132f918de376f044b99e59551c3
3
+ metadata.gz: a59dc5473e1132598647080b08d03f7e5e70c47a7e5a207c69814ce589d17a46
4
+ data.tar.gz: f6c4c27089c05c23aba83e27dd8498dfdd2a1cd90470bb5dfae0f1b468207d29
5
5
  SHA512:
6
- metadata.gz: 99834f07b2b36c688a0ff9010fe853ec4d63bc1f28ff5a4955341a14e5fd8675880f44320f0fb3138cfdb5a6132301654f4ab220b5c8f4e4c9696f146a529edb
7
- data.tar.gz: f163e26c88dce5fcaf03c2698ecd69fceeea4dc78f13649a12cc42383d68d0cf6e51d249493ba5f21a93b1f09cfa2b75067cf2ac850482a5eb2e860b3c263e16
6
+ metadata.gz: 1e2ea1919a6f93c95d640c220afc7b3692490d493deaedcf741058f382b4fa9561449ebe25cbaa05085464d66e6672b3752086507dd2a308d1ddec4d520846ae
7
+ data.tar.gz: b02a24a948bd42214a59abf7722da2c575d8227e2a82128b1df1c57dd96f4f755f131830cfcf1813e4553975cd53d68ba302c923555839cad797b606dca70835
@@ -0,0 +1,40 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ "main" ]
13
+ pull_request:
14
+ branches: [ "main" ]
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ test:
21
+
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ # Use `rbenv install -l` and only use the latest stable
26
+ # version of ruby.
27
+ ruby-version: ["3.1.2", "3.1.4", "3.2.2"]
28
+
29
+ steps:
30
+ - uses: actions/checkout@v3
31
+ - name: Set up Ruby
32
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
33
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
34
+ # uses: ruby/setup-ruby@v1
35
+ uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
36
+ with:
37
+ ruby-version: ${{ matrix.ruby-version }}
38
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
39
+ - name: Run tests
40
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ### 1.5.10 2024-01-07
2
+
3
+ * Changes
4
+ * Update ruby gems
5
+ * Relax ruby version requirement to Gem::Requirement.new('>= 3.0.1', '< 4.0')
6
+
7
+ ### 1.5.9 2023-12-27
8
+
9
+ * Changes
10
+ * Update ruby gems
11
+
1
12
  ### 1.5.8 2023-12-02
2
13
 
3
14
  * Changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deco_lite (1.5.8)
4
+ deco_lite (1.5.10)
5
5
  activemodel (>= 7.0.8, <= 7.12.0)
6
6
  activesupport (>= 7.0.8, <= 7.12.0)
7
7
  immutable_struct_ex (>= 1.0, < 2.0)
@@ -24,7 +24,7 @@ GEM
24
24
  tzinfo (~> 2.0)
25
25
  ast (2.4.2)
26
26
  base64 (0.2.0)
27
- bigdecimal (3.1.4)
27
+ bigdecimal (3.1.5)
28
28
  byebug (11.1.3)
29
29
  coderay (1.1.3)
30
30
  concurrent-ruby (1.2.2)
@@ -33,19 +33,45 @@ GEM
33
33
  docile (1.4.0)
34
34
  drb (2.2.0)
35
35
  ruby2_keywords
36
+ dry-configurable (1.1.0)
37
+ dry-core (~> 1.0, < 2)
38
+ zeitwerk (~> 2.6)
39
+ dry-core (1.0.1)
40
+ concurrent-ruby (~> 1.0)
41
+ zeitwerk (~> 2.6)
42
+ dry-inflector (1.0.0)
43
+ dry-initializer (3.1.1)
44
+ dry-logic (1.5.0)
45
+ concurrent-ruby (~> 1.0)
46
+ dry-core (~> 1.0, < 2)
47
+ zeitwerk (~> 2.6)
48
+ dry-schema (1.13.3)
49
+ concurrent-ruby (~> 1.0)
50
+ dry-configurable (~> 1.0, >= 1.0.1)
51
+ dry-core (~> 1.0, < 2)
52
+ dry-initializer (~> 3.0)
53
+ dry-logic (>= 1.4, < 2)
54
+ dry-types (>= 1.7, < 2)
55
+ zeitwerk (~> 2.6)
56
+ dry-types (1.7.2)
57
+ bigdecimal (~> 3.0)
58
+ concurrent-ruby (~> 1.0)
59
+ dry-core (~> 1.0)
60
+ dry-inflector (~> 1.0)
61
+ dry-logic (~> 1.4)
62
+ zeitwerk (~> 2.6)
36
63
  i18n (1.14.1)
37
64
  concurrent-ruby (~> 1.0)
38
- immutable_struct_ex (1.0.4)
39
- json (2.7.0)
40
- kwalify (0.7.2)
65
+ immutable_struct_ex (1.0.5)
66
+ json (2.7.1)
41
67
  language_server-protocol (3.17.0.3)
42
- mad_flatter (3.0.4)
68
+ mad_flatter (3.0.5)
43
69
  activesupport (>= 7.0.8, < 7.2.0)
44
70
  immutable_struct_ex (>= 1.0, < 2.0)
45
71
  method_source (1.0.0)
46
72
  minitest (5.20.0)
47
73
  mutex_m (0.2.0)
48
- parallel (1.23.0)
74
+ parallel (1.24.0)
49
75
  parser (3.2.2.4)
50
76
  ast (~> 2.4.1)
51
77
  racc
@@ -58,11 +84,12 @@ GEM
58
84
  racc (1.7.3)
59
85
  rainbow (3.1.1)
60
86
  rake (13.1.0)
61
- reek (6.1.4)
62
- kwalify (~> 0.7.0)
87
+ reek (6.2.0)
88
+ dry-schema (~> 1.13.0)
63
89
  parser (~> 3.2.0)
64
90
  rainbow (>= 2.0, < 4.0)
65
- regexp_parser (2.8.2)
91
+ rexml (~> 3.1)
92
+ regexp_parser (2.8.3)
66
93
  rexml (3.2.6)
67
94
  rspec (3.12.0)
68
95
  rspec-core (~> 3.12.0)
@@ -77,7 +104,7 @@ GEM
77
104
  diff-lcs (>= 1.2.0, < 2.0)
78
105
  rspec-support (~> 3.12.0)
79
106
  rspec-support (3.12.1)
80
- rubocop (1.58.0)
107
+ rubocop (1.59.0)
81
108
  json (~> 2.3)
82
109
  language_server-protocol (>= 3.17.0)
83
110
  parallel (~> 1.10)
@@ -90,14 +117,14 @@ GEM
90
117
  unicode-display_width (>= 2.4.0, < 3.0)
91
118
  rubocop-ast (1.30.0)
92
119
  parser (>= 3.2.1.0)
93
- rubocop-capybara (2.19.0)
120
+ rubocop-capybara (2.20.0)
94
121
  rubocop (~> 1.41)
95
- rubocop-factory_bot (2.24.0)
122
+ rubocop-factory_bot (2.25.0)
96
123
  rubocop (~> 1.33)
97
- rubocop-performance (1.19.1)
98
- rubocop (>= 1.7.0, < 2.0)
99
- rubocop-ast (>= 0.4.0)
100
- rubocop-rspec (2.25.0)
124
+ rubocop-performance (1.20.1)
125
+ rubocop (>= 1.48.1, < 2.0)
126
+ rubocop-ast (>= 1.30.0, < 2.0)
127
+ rubocop-rspec (2.26.1)
101
128
  rubocop (~> 1.40)
102
129
  rubocop-capybara (~> 2.17)
103
130
  rubocop-factory_bot (~> 2.22)
@@ -112,10 +139,12 @@ GEM
112
139
  tzinfo (2.0.6)
113
140
  concurrent-ruby (~> 1.0)
114
141
  unicode-display_width (2.5.0)
142
+ zeitwerk (2.6.12)
115
143
 
116
144
  PLATFORMS
117
145
  x86_64-darwin-19
118
146
  x86_64-darwin-21
147
+ x86_64-linux
119
148
 
120
149
  DEPENDENCIES
121
150
  bundler (>= 2.2, < 3.0)
data/README.md CHANGED
@@ -1,14 +1,10 @@
1
1
  # DecoLite
2
-
3
- [![GitHub version](http://badge.fury.io/gh/gangelo%2Fdeco_lite.svg)](https://badge.fury.io/gh/gangelo%2Fdeco_lite)
4
-
5
- [![Gem Version](https://badge.fury.io/rb/deco_lite.svg)](https://badge.fury.io/rb/deco_lite)
6
-
2
+ [![Ruby](https://github.com/gangelo/deco_lite/actions/workflows/ruby.yml/badge.svg)](https://github.com/gangelo/deco_lite/actions/workflows/ruby.yml)
3
+ [![GitHub version](http://badge.fury.io/gh/gangelo%2Fdeco_lite.svg?refresh=1)](https://badge.fury.io/gh/gangelo%2Fdeco_lite)
4
+ [![Gem Version](https://badge.fury.io/rb/deco_lite.svg?refresh=1)](https://badge.fury.io/rb/deco_lite)
7
5
  [![](http://ruby-gem-downloads-badge.herokuapp.com/deco_lite?type=total)](http://www.rubydoc.info/gems/deco_lite/)
8
6
  [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/deco_lite/)
9
-
10
7
  [![Report Issues](https://img.shields.io/badge/report-issues-red.svg)](https://github.com/gangelo/deco_lite/issues)
11
-
12
8
  [![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)
13
9
 
14
10
  ## Introduction
@@ -184,9 +180,9 @@ One caveat to note is when using Rails custom validators with `validates_with`.
184
180
  class Model < DecoLite::Model
185
181
  validates :first, :last, :address, presence: true
186
182
  validates :age, numericality: true
187
- # When using Rails custom validators via validates_with,
183
+ # When using Rails custom validators via validates_with,
188
184
  # pass the attribute name(s) being validated in an Array
189
- # via the #options Hash, with a key of either :attributes
185
+ # via the #options Hash, with a key of either :attributes
190
186
  # or :fields. For example:
191
187
  validates_with CustomFirstNameValidator, attributes: [:first]
192
188
  validates_with CustomAgeValidator, fields: [:age]
data/deco_lite.gemspec CHANGED
@@ -46,7 +46,7 @@ Gem::Specification.new do |spec|
46
46
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
47
47
  spec.require_paths = ['lib']
48
48
 
49
- spec.required_ruby_version = Gem::Requirement.new("~> 3.0")
49
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.0.1', '< 4.0')
50
50
 
51
51
  spec.add_runtime_dependency 'activemodel', '>= 7.0.8', '<= 7.12.0'
52
52
  spec.add_runtime_dependency 'activesupport', '>= 7.0.8', '<= 7.12.0'
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the version of this gem.
4
4
  module DecoLite
5
- VERSION = '1.5.8'
5
+ VERSION = '1.5.10'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deco_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.8
4
+ version: 1.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene M. Angelo, Jr.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-02 00:00:00.000000000 Z
11
+ date: 2024-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -292,6 +292,7 @@ extensions: []
292
292
  extra_rdoc_files: []
293
293
  files:
294
294
  - ".github/dependabot.yml"
295
+ - ".github/workflows/ruby.yml"
295
296
  - ".gitignore"
296
297
  - ".reek.yml"
297
298
  - ".rspec"
@@ -338,9 +339,12 @@ require_paths:
338
339
  - lib
339
340
  required_ruby_version: !ruby/object:Gem::Requirement
340
341
  requirements:
341
- - - "~>"
342
+ - - ">="
343
+ - !ruby/object:Gem::Version
344
+ version: 3.0.1
345
+ - - "<"
342
346
  - !ruby/object:Gem::Version
343
- version: '3.0'
347
+ version: '4.0'
344
348
  required_rubygems_version: !ruby/object:Gem::Requirement
345
349
  requirements:
346
350
  - - ">="