Clemens Kofler
7db80f673d
Clarify README wording related to contributions
2022-04-04 18:52:58 +01:00
Peter Goldstein
bcee2b597b
Add Ruby 3.1 to CI
...
Also fixes the unquoted 3.0, which needs to be quoted to avoid truncation
Addresses a few Rubocop issues and an active_support require issue on Rails 7 w/Zeitwerk
2022-02-02 21:40:34 +00:00
Igor Victor
44cf8495ea
Update ci.yml
2021-04-12 11:50:08 +01:00
Stas SUȘCOV
37235057df
Version bump.
v2.2.0
2021-03-11 18:35:11 +00:00
Stas SUȘCOV
c21f9def8f
Updated the changelog.
2021-03-11 18:33:35 +00:00
Stas SUȘCOV
8b74954478
Added ruby v3 to CI matrix.
2021-03-11 18:33:35 +00:00
Stas SUȘCOV
ef93f7f358
Make rubocop happy.
2021-03-11 18:33:35 +00:00
HubertVonHerbert
c5eb1ce27c
Fix Ruby3 compatibility issue with Procs ( #160 )
...
* Fix Ruby3 compatibility issue with Procs
* Fix rubocop complaints
* Remove ruby 3 from CI actions
* Simplify check for &:foo procs
2021-03-11 18:29:59 +00:00
Ryan Romanchuk
a25d415b4d
Fix most likely copy/paste error
...
this lambda yielding a bool for `belongs_to` might confuse readers or conflate the :if block
which would probably look something like this
```ruby
belongs_to :primary_agent, if: proc { |movie, params| params[:current_user].present? } do |movie, params|
# in here, params is a hash containing the `:current_user` key
params[:current_user]
end
```
2021-02-14 22:17:08 +00:00
Stas SUȘCOV
c3376037e7
Let everyone know there's a WIP branch for v3.
2021-01-11 11:11:24 +00:00
Yaroslav Kasperovych
963cd77900
Fix require clause in fastjson migration guide
...
Seems like the require clause should be different as it produces an error if used as it is right now.
2020-11-06 10:15:26 +00:00
Tony Dehnke
98dd59884c
Fix namespace name per comment in #139
2020-10-26 12:01:52 +00:00
Guillaume Briday
b7e8a30833
Fix typo in readme
2020-10-25 18:13:08 +00:00
Guillaume Briday
f4ed4f0440
Adding migration section
2020-10-25 17:23:20 +00:00
Jorge Garcia
88061bcfac
Add deserialization options on Readme
2020-10-08 10:21:20 +01:00
nattfodd
f8255771dc
Raise FastJsonapi scoped error in case of unsupported include
2020-09-18 13:12:41 +03:00
Donatas Povilaitis
1bcf8d2cb5
Do not add empty relationships key ( #116 )
2020-09-01 20:44:08 +01:00
Stas SUȘCOV
0b819e09b9
Version bump.
v2.1.0
2020-08-30 16:21:07 +01:00
Stas SUȘCOV
72f3ae64dd
Remove skylight and old instrumentation support.
2020-08-30 15:57:07 +01:00
Stas SUȘCOV
eae66a9610
Added new instrumentation support.
2020-08-30 15:57:07 +01:00
Stas SUȘCOV
5538555537
Detect enumerables strictly. Closes #112
2020-08-27 11:51:38 +01:00
Stas SUȘCOV
4d1a764abc
Updated cache options helper.
...
Allow extra arguments to improve the API interface.
2020-08-27 11:51:15 +01:00
Kapil Sachdev
c32358ecf5
fix: Rename FastJsonapi::ObjectSerializer to JSONAPI::Serializer
...
As the project has been renamed, its better to reflect it in the source
code as well.
JSONAPI::Serializer is evaluated from FastJsonapi::ObjectSerializer so
this change probably will go unnoticed in gem usage.
2020-08-27 10:57:15 +01:00
Kapil Sachdev
f56a354860
Update links to use https ( #114 )
2020-08-25 18:50:24 +01:00
Matthew Newell
8401d16c2e
Fix cache keys to prevent fieldset caching errors
...
This change alters the cache namespace prior to retrieving cached record
data to ensure that different fieldsets are given different cache keys.
Previously, all cache keys for the same record would be specified
identically, leading to a situation where the fieldset would be ignored
if record caching is enabled.
Fixes #90 .
2020-08-11 12:54:57 +01:00
Stas SUȘCOV
1ce4677a22
Docs for how the new parsing of includes works.
2020-08-07 12:45:13 +01:00
Nathaniel Bibler
2a946c7723
Use Ruby's safe navigation for Rubocop
2020-08-07 12:36:29 +01:00
Nathaniel Bibler
51b319def5
Remove unused variable
2020-08-07 12:36:29 +01:00
Nathaniel Bibler
593e8ea4e6
Reduce relationship lookups
2020-08-07 12:36:29 +01:00
Nathaniel Bibler
e2ac01f98a
Use a Set for managing uniqueness behavior
2020-08-07 12:36:29 +01:00
Nathaniel Bibler
a4bd5a1edc
Remove exponential increase in nested includes
2020-08-07 12:36:29 +01:00
Nathaniel Bibler
f62a5bf162
Remove a looped conditional and #blank? use
2020-08-07 12:36:29 +01:00
Nathaniel Bibler
430a5ca2ac
Remove unnecessary sort
2020-08-07 12:36:29 +01:00
Nathaniel Bibler
84cd54bd0e
Relocate highly-repetitive relationship check
2020-08-07 12:36:29 +01:00
David Angulo
0e051fcad2
Add example for custom attribute with condtion
2020-08-07 12:35:11 +01:00
Semyon Pupkov
eab3dbdb27
Use jsonapi-rspec version
2020-07-10 09:14:11 +01:00
mperice
dd7f5ba415
Add optional meta field to relationships ( #99 ) ( #100 )
...
* Add optional meta field to relationships (#99 )
* Fix Rubocop's warnings.
* Minor syntax corrections.
2020-07-07 15:22:25 +01:00
Stas SUȘCOV
6db86e0f4c
Switched CI to Rubygems.
v2.0.0
2020-06-22 14:47:59 +01:00
Stas SUȘCOV
95ce09d526
Updated the readme.
2020-06-22 14:47:59 +01:00
Stas SUȘCOV
77d622e4a8
Renamed. Added an alias for now...
2020-06-22 14:47:59 +01:00
Kevin Pheasey
3ff69ccce1
Remove ObjectSerializer#serialized_json ( #91 )
...
* chore(ObjectSerializer): remove deprecated serialized_json
* update CHANGELOG.md
2020-06-09 14:03:15 +01:00
sun
1819629408
Add set_type documentation ( #88 )
2020-05-25 12:53:35 +01:00
Kevin Pheasey
2de80d4889
Added tests for polymorphic belongs_to
...
* chore(tests): add missing test for relationships belongs_to polymorphic type definitions
* chore(tests): add missing test for relationships belongs_to polymorphic type definitions
* linting
2020-05-19 10:18:57 +01:00
Kevin Pheasey
9d08d2abed
chore(gitignore): ignore gem builds
2020-05-18 11:24:00 -04:00
Kevin Pheasey
7e2289006c
chore(version): release 1.7.2
v1.7.2
2020-05-18 11:21:44 -04:00
Kevin Pheasey
1d2eab2510
fix(Relationship): do not set static_record_type for polymorphic relationships ( #82 )
2020-05-18 10:09:58 -04:00
Stas SUȘCOV
ac34aa22f7
Revert "Updated the installation steps."
...
This reverts commit ab9db291d4d89ed93029f0844461498364d3be3b.
2020-05-01 16:30:22 +01:00
Kevin Pheasey
b64a0ceeed
fix(ObjectSerializer): pass to_json arguments ( #80 )
...
* fix(ObjectSerializer): pass to_json arguments
to_json takes arguments that serialized_json did not define. This breaks a lot of things.
* Update CHANGELOG.md with latest fix and release
v1.7.1
2020-05-01 09:02:03 -04:00
Stas SUȘCOV
c533634293
Rewrite tests.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
73814d1be5
Use rake to run tests.
2020-04-29 15:30:44 +01:00