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
Stas SUȘCOV
713e0ef58d
Remove old tests.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
a529d2808a
Added Rubocop.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
12e2987420
Rubocop cleanups.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
c32aacd8a6
Updated the readme with performance tests.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
529f51b04e
Remove dead code.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
100711f678
Updated the gemspec.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
2a791bd90c
Remove performance and skipped tests.
2020-04-29 15:30:44 +01:00
Stas SUȘCOV
ab9db291d4
Updated the installation steps.
2020-04-29 15:15:30 +01:00
Stas SUȘCOV
c31bcdc379
Fixed the org name for GPR.
2020-04-29 15:07:52 +01:00
Stas SUȘCOV
7c31594740
Cleanup the gemspec.
2020-04-29 14:53:03 +01:00
Stas SUȘCOV
07d46a9aac
Try a release gracefully.
...
If a release exists, it will fail, which is ok.
2020-04-29 14:44:00 +01:00
Stas SUȘCOV
297551c551
Version bump. Updated the changelog.
v1.7.0
2020-04-29 14:35:11 +01:00
Stas SUȘCOV
268dbdab17
Publish tagged releases on GPR.
2020-04-29 14:35:11 +01:00
Mark Siemers
0edebd99e6
Check #each instead of #size for is_collection?
...
See if a resource responds to 'each' instead of 'size' as
things other than collections can respond to 'size' (e.g. File instance)
2020-04-11 12:48:00 +01:00
Markus
990c0acd18
Fix attribute API with lambda ( #67 )
...
* add failing spec when attribute is called with lambda
* allow to pass a lambda to `attribute`
2020-02-27 17:49:02 +00:00
Markus
843d943e07
Refactor caching support ( #52 )
...
- Very explicit where caching is stored
- No `Rails.cache` automagic with possible colliding keys
- Rails 5.2+ cache versioning support
- Implicit namespace support (by cache instance, e.g.
ActiveSupport::Cache::MemoryStore.new(namespace: 'jast_jsonapi')
- All cache instance options are supported
2020-02-25 16:49:02 +00:00
Attila Horvath
3faca2d1e0
Fix conditional procedures with lambdas
2020-02-21 14:36:50 +00:00
Attila Horvath
08a20d0ebb
Fix relationships with &:proc shorthands
2020-02-20 13:44:18 +00:00
James Reichley
9daa5a64f1
Fix syntax error in json_serialization.md
2020-02-19 09:51:03 +00:00
hotatekaoru
e79406d455
Fix README typo
...
Fix typo in the readme sample command
from
1b3d73cbf3
2020-02-18 13:49:06 +00:00
Stas SUȘCOV
1b3d73cbf3
Remove multi-to-json. Add a deprecation warning.
2020-02-15 15:05:06 +00:00