lite-errors 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +8 -8
- data/README.md +3 -2
- data/lib/lite/errors/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7fa4a540e39bc96746e44f9064b671113a84a82bf5badaf8998c7c356855ef8
|
4
|
+
data.tar.gz: 1ad41dbd87374ad5fa6a7794817f18f7a40e757f2e77d2c743cfd95ea92c5f45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a060ff71659f903d45840bdc23ba11a98a47a9792f88f2e0f4fd63130359ff49b6c25a63a3332d8ef9ad4fa289014c5ef1d217ce5c4507fa79dde6ca6e618ac8
|
7
|
+
data.tar.gz: 8c66f00f2d999f6c849b481893d3fe46f88bf67ddff6f35bd470a5329868fba927eb03176751c8486af66a856e33613f0c3c95d3168d70dc2d656ac0d7c68bf6
|
data/.rubocop.yml
CHANGED
@@ -2,7 +2,7 @@ require:
|
|
2
2
|
- rubocop-performance
|
3
3
|
- rubocop-rspec
|
4
4
|
AllCops:
|
5
|
-
TargetRubyVersion:
|
5
|
+
TargetRubyVersion: 3.0
|
6
6
|
NewCops: enable
|
7
7
|
DisplayCopNames: true
|
8
8
|
DisplayStyleGuide: true
|
@@ -29,6 +29,8 @@ Metrics/BlockLength:
|
|
29
29
|
Exclude:
|
30
30
|
- 'spec/**/**/*'
|
31
31
|
- '*.gemspec'
|
32
|
+
Style/ArgumentsForwarding:
|
33
|
+
Enabled: false
|
32
34
|
Style/Documentation:
|
33
35
|
Enabled: false
|
34
36
|
Style/ExpandPathArguments:
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-errors (1.
|
4
|
+
lite-errors (1.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -13,10 +13,10 @@ GEM
|
|
13
13
|
colorize (~> 0.7)
|
14
14
|
ruby_parser (>= 3.14.1)
|
15
15
|
parallel (1.20.1)
|
16
|
-
parser (3.0.
|
16
|
+
parser (3.0.2.0)
|
17
17
|
ast (~> 2.4.1)
|
18
18
|
rainbow (3.0.0)
|
19
|
-
rake (13.0.
|
19
|
+
rake (13.0.6)
|
20
20
|
regexp_parser (2.1.1)
|
21
21
|
rexml (3.2.5)
|
22
22
|
rspec (3.10.0)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
33
33
|
rspec-support (~> 3.10.0)
|
34
34
|
rspec-support (3.10.2)
|
35
|
-
rubocop (1.
|
35
|
+
rubocop (1.18.3)
|
36
36
|
parallel (~> 1.10)
|
37
37
|
parser (>= 3.0.0.0)
|
38
38
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -41,12 +41,12 @@ GEM
|
|
41
41
|
rubocop-ast (>= 1.7.0, < 2.0)
|
42
42
|
ruby-progressbar (~> 1.7)
|
43
43
|
unicode-display_width (>= 1.4.0, < 3.0)
|
44
|
-
rubocop-ast (1.
|
44
|
+
rubocop-ast (1.8.0)
|
45
45
|
parser (>= 3.0.1.1)
|
46
|
-
rubocop-performance (1.11.
|
46
|
+
rubocop-performance (1.11.4)
|
47
47
|
rubocop (>= 1.7.0, < 2.0)
|
48
48
|
rubocop-ast (>= 0.4.0)
|
49
|
-
rubocop-rspec (2.
|
49
|
+
rubocop-rspec (2.4.0)
|
50
50
|
rubocop (~> 1.0)
|
51
51
|
rubocop-ast (>= 1.1.0)
|
52
52
|
ruby-progressbar (1.11.0)
|
@@ -69,4 +69,4 @@ DEPENDENCIES
|
|
69
69
|
rubocop-rspec
|
70
70
|
|
71
71
|
BUNDLED WITH
|
72
|
-
2.2.
|
72
|
+
2.2.24
|
data/README.md
CHANGED
@@ -4,8 +4,9 @@
|
|
4
4
|
[![Build Status](https://travis-ci.org/drexed/lite-errors.svg?branch=master)](https://travis-ci.org/drexed/lite-errors)
|
5
5
|
|
6
6
|
Lite::Errors provides an API for generating and accessing error messages.
|
7
|
-
The API is ~90% compatible with `ActiveModel::Errors`
|
8
|
-
|
7
|
+
The API is ~90% compatible with `ActiveModel::Errors` except that it returns
|
8
|
+
hashes instead of error objects (use Rails =< 6.0 documentation). There are
|
9
|
+
few extra handy methods for interacting with errors so we encourage you to
|
9
10
|
look through the lib files.
|
10
11
|
|
11
12
|
**NOTE:** If you are coming from `ActiveErrors`, please read the [port](#port) section.
|
data/lib/lite/errors/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
|
-
rubygems_version: 3.2.
|
156
|
+
rubygems_version: 3.2.24
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Build ActiveModel::Errors like errors in Ruby
|