pretty-api 0.4.1 → 0.5.1

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: 35add74c134b30bc2bd56716f35f8ae9c302643564d92f057bff6c1ea1d89596
4
+ data.tar.gz: d99ce2bd6368e0609e5de9c61fda96320f12e4bf301d8fbded4da1236e8240d6
5
5
  SHA512:
6
- metadata.gz: 5eeb04d0536d7757ebc0c4d95bd5e6fe937d39fc6aadbd6637feee8c0b0e154ae6a0d8b3009f6f410fbc763ec4dae2535551724b3ec33047a015907540c900d7
7
- data.tar.gz: ba54bd9943b27a2731518a1f6ec1201b645b8331c5eb099f2dcc6ba467561a2116d2c3c011eb2848ea9888be13e264faf113c2954f5b32478c890961baa2d832
6
+ metadata.gz: e839ed0243efb024f4e69a3f546470268cc00e81027c56057f5c4065ced1ca52ec501310cf6d1656ef82d53d47faf0678c5f28e25ea8a748c9a37c5282c4122f
7
+ data.tar.gz: 201bc34a94246b1a75d31656ad162125ece50b897f552713843729d3f7b860ed7ab5bb0ec3581188cbde3eddb16e5f599bfd5693c5f16b3ff007caf7e0373c29
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,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.1] - 2024-12-12
4
+
5
+ - Add Rails 8.0 support
6
+
7
+ ## [0.5.0] - 2024-06-04
8
+
9
+ - Add new method aliases: `pretty_attrs` and `pretty_errors`
10
+
3
11
  ## [0.4.1] - 2024-06-04
4
12
 
5
13
  - 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.1".freeze
3
3
  end
metadata CHANGED
@@ -1,29 +1,35 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James St-Pierre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-12 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '7.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '9.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '7.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '9.0'
27
33
  description: Simplify the usage of accepts_nested_attributes_for in Rails applications.
28
34
  email:
29
35
  - Jamesst20@gmail.com
@@ -70,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
76
  - !ruby/object:Gem::Version
71
77
  version: '0'
72
78
  requirements: []
73
- rubygems_version: 3.5.11
79
+ rubygems_version: 3.5.16
74
80
  signing_key:
75
81
  specification_version: 4
76
82
  summary: Pretty API for Rails