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
Christopher Sansone
6d01bec146
Improved relationship serializer options ( #32 )
...
* allow the relationship's serializer key to be a Proc
* fixes
* specifically test the relationship name and the resource type
* support object blocks without a serializer defined
* stop validation gracefully if the relationship is polymorphic
* improve performance by using instance variables instead of accessor methods
* force initialization up front to avoid the iterative calls
* serializer procs should act like polymorphic when determining the id_method_name
* specs for serializer procs
* updated with more details and examples for relationship serializer options
* adjust specs to define the serializers
* avoid extra method calls for performance
* name change
* one less function call for better performance
* do not require lazy loaded relationships to resolve the serializer
* give polymorphic precedence for backwards compatibility
* move serializer inference into ObjectSerializer to allow for overriding
* move method for better diff
* fix race condition in multi-threaded environments
2020-02-15 14:57:44 +00:00
Pedro Caseiro
79a49fb3bd
Run CI against ruby 2.7
2020-01-17 16:07:21 +00:00
Stas SUȘCOV
ca5c776d71
Added templates for contributing. Minor cleanups.
2020-01-17 13:46:34 +00:00
Stas SUȘCOV
eb8460fd74
Switch to Github CI.
2020-01-07 18:51:20 +00:00
Stas SUȘCOV
2172e40892
Remove unused files.
2020-01-07 18:51:20 +00:00
Attila Horváth
c305b699a9
Clean up some whitespace in the README ( #35 )
2019-12-18 13:19:21 +00:00
Aubrey Holland
1d7c18f5da
Support for polymorphic id_method_name
( #17 )
...
* fix id method bugs, add specs
* Use SecureRandom.uuid
2019-12-03 18:04:04 +00:00
Nick Rattermann
2d92ab4cf9
Update README.md ( #20 )
...
* Update README.md
Update README.md to include proper way to install this forked gem.
* Update README.md
2019-11-20 12:05:04 +00:00
Kevin Pheasey
6a08165347
Merge pull request #18 from fast-jsonapi/dev
...
1.6.0
2019-11-04 17:38:13 -05:00
Kevin Pheasey
1cd3f97485
1.6.0
1.6.0
2019-11-04 17:31:35 -05:00