pretty-api 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3133e955e326cec2857e0c68eb8013c18f370a0ad92d94793e973950690cd143
4
- data.tar.gz: 3052057563fbbf602cdebcedc398a09b1b9fb31e68678c1f97e055084c78d2ad
3
+ metadata.gz: 994566575dc33d8fae9fd256bceb6dad1b00a92c9c49412fb25dc688784db50e
4
+ data.tar.gz: 1207aa02e765a522870aabffc6b1e16f56f39405c52c790554e867d3e1f0ad61
5
5
  SHA512:
6
- metadata.gz: 5eeb04d0536d7757ebc0c4d95bd5e6fe937d39fc6aadbd6637feee8c0b0e154ae6a0d8b3009f6f410fbc763ec4dae2535551724b3ec33047a015907540c900d7
7
- data.tar.gz: ba54bd9943b27a2731518a1f6ec1201b645b8331c5eb099f2dcc6ba467561a2116d2c3c011eb2848ea9888be13e264faf113c2954f5b32478c890961baa2d832
6
+ metadata.gz: e7aed217c780f4bc5fa100590a6a450eda444da755cd1aa180340a0aa1cff8a4ed1b8979a20f23dca219fa71ad19a9a76946573607b9fd0c216b971cd318cd0b
7
+ data.tar.gz: 7fd6148770e4491ebbdc56d598d23da541c8f54e5627437243502a6c0b880a7939cce3820c8771165fea5fe78b52eda980e979b72337935a2187b704fd2439f2
data/.rubocop.yml CHANGED
@@ -9,6 +9,7 @@ require:
9
9
  - rubocop-rails
10
10
  - rubocop-performance
11
11
  - rubocop-rspec
12
+ # - rubocop-factory_bot
12
13
 
13
14
  AllCops:
14
15
  DisabledByDefault: false
@@ -19,8 +20,8 @@ AllCops:
19
20
  - lib/templates/**/*
20
21
  - public/**/*
21
22
 
22
- FactoryBot/ConsistentParenthesesStyle:
23
- EnforcedStyle: omit_parentheses
23
+ #FactoryBot/ConsistentParenthesesStyle:
24
+ # EnforcedStyle: omit_parentheses
24
25
 
25
26
  Layout/LineLength:
26
27
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.0] - 2024-06-04
4
+
5
+ - Add new method aliases: `pretty_attrs` and `pretty_errors`
6
+
3
7
  ## [0.4.1] - 2024-06-04
4
8
 
5
9
  - Fix `undefined method `each' for nil` when PrettyAPI is used on record that doesn't have associations
@@ -16,6 +16,9 @@ module PrettyApi
16
16
 
17
17
  PrettyApi::Errors::NestedErrors.new(nested_tree: attrs).parse(record)
18
18
  end
19
+
20
+ alias_method :pretty_attrs, :pretty_nested_attributes
21
+ alias_method :pretty_errors, :pretty_nested_errors
19
22
  end
20
23
  end
21
24
  end
@@ -1,3 +1,3 @@
1
1
  module PrettyApi
2
- VERSION = "0.4.1".freeze
2
+ VERSION = "0.5.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James St-Pierre