Skip to content

Prevent creation of unnecessary fieldset(mirror and revised) #2449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
244 commits
Select commit Hold shift + click to select a range
6e11d62
Merge pull request #1990 from mxie/mx-result-typo
bf4 Nov 29, 2016
e036b71
Merge pull request #1992 from ojiry/bump_ruby_versions
NullVoxPopuli Dec 3, 2016
4054f43
Merge pull request #1994 from bf4/promote_architecture
bf4 Dec 7, 2016
49f2dca
Merge pull request #1999 from bf4/typos
bf4 Dec 13, 2016
dfa6caa
Merge pull request #2000 from berfarah/patch-1
bf4 Dec 15, 2016
2c0b15d
Merge pull request #2007 from bf4/check_ci
bf4 Dec 23, 2016
adf110f
Swap out KeyTransform for CaseTransform (#1993)
NullVoxPopuli Dec 7, 2016
97b587b
Merge pull request #2005 from kofronpi/support-ruby-2.4
bf4 Dec 23, 2016
23f03ff
Merge pull request #2016 from rails-api/prepare_release
bf4 Jan 6, 2017
82db130
Bump to v0.10.4
bf4 Jan 6, 2017
21bcfd8
Merge pull request #2018 from rails-api/bump_version
bf4 Jan 6, 2017
0dd7680
Merge pull request #2019 from bf4/fix_method_redefined_warning
bf4 Jan 7, 2017
9a2e1e4
Merge pull request #2020 from bf4/silence_grape_warnings
bf4 Jan 7, 2017
a5423da
Merge pull request #2017 from bf4/remove_warnings
bf4 Jan 7, 2017
59aed4d
Updated isolated tests to assert correct behavior. (#2010)
akshah123 Dec 25, 2016
85dfef9
Merge pull request #2012 from bf4/cleanup_isolated_jsonapi_renderer_t…
bf4 Dec 25, 2016
d5babdd
Add Model#attributes helper; make test attributes explicit
bf4 Jan 7, 2017
4e6bd61
Merge pull request #2021 from bf4/make_tests_explicit
bf4 Jan 8, 2017
c25f2f3
Fix model attributes accessors
bf4 Jan 9, 2017
ec905d8
Fix typos
bf4 Jan 9, 2017
b5f886c
Randomize testing of compatibility layer against regressions
bf4 Jan 9, 2017
ec1022e
Test bugfix
bf4 Jan 9, 2017
1570437
Add CHANGELOG
bf4 Jan 10, 2017
4c6f104
Merge pull request #2022 from bf4/fix_model_attribute_accessors
bf4 Jan 10, 2017
9a2f489
Merge pull request #1981 from groyoh/link_doc
bf4 Jan 10, 2017
db617b8
Fix small typo in README.md
nsarno Jan 23, 2017
f353ded
Merge pull request #2038 from nsarno/patch-1
bf4 Jan 31, 2017
01d4f04
Merge branch 'master' into 0-10-stable
bf4 Mar 7, 2017
b48aeee
Merge branch 'master' into 0-10-stable
bf4 May 1, 2017
be7ee70
Allow serialized ID to be overwritten for belongs-to relationships
greysteil May 9, 2017
a5ab62f
Merge pull request #2130 from greysteil/allow-id-overwriting
bf4 May 15, 2017
a89e78c
Allow referencing sideloaded `include` by `key`. (#2136)
caomania May 18, 2017
7387266
Always display self, first, last pagination links
mecampbellsoup Jun 5, 2017
d8e9836
Clarify naming of expected response w/ pagination but empty data
mecampbellsoup Jun 5, 2017
ff71ef2
Amend pagination controller specs
mecampbellsoup Jun 5, 2017
16e5204
Always include pagination keys but set null values when not needed
mecampbellsoup Jun 13, 2017
92e9a66
Amend tests to always include all pagination keys
mecampbellsoup Jun 13, 2017
622872a
Fix dead link in docs/general/rendering
tannerj Jun 13, 2017
1539747
Merge pull request #2152 from tannerj/0-10-stable
bf4 Jun 14, 2017
b7442e7
Use symbolized keys for json hash
mecampbellsoup Jun 14, 2017
e4b3224
Fix indentation mismatch
mecampbellsoup Jun 14, 2017
402883d
Fix Travis lint offenses
mecampbellsoup Jun 14, 2017
1e4d117
Merge pull request #2149 from mecampbellsoup/more-pagination-links-by…
kurko Jun 14, 2017
967ff8d
Patch Enumerator.new ArgumentError.
drn Aug 29, 2017
b1de431
Merge pull request #2179 from drn/enumerator-exception
bf4 Aug 29, 2017
4f78319
Fix RuboCop offence
tagliala Sep 17, 2017
c2fa016
Merge pull request #2191 from tagliala/fix-rubocop-offence
bf4 Sep 17, 2017
6a7d864
Fix CI on 0-10-stable (#2181)
bf4 Sep 19, 2017
1c9214d
Update version constraint for jsonapi-renderer
tagliala Sep 17, 2017
ab517d1
Test against latest stable Ruby and Rails versions
tagliala Sep 19, 2017
4a99595
Merge pull request #2198 from tagliala/improve-travis-configuration
bf4 Sep 19, 2017
715a702
Merge pull request #2189 from tagliala/update-jsonapi-renderer-depend…
bf4 Sep 19, 2017
4d7c245
Fix deserialization of polymorphic relationships (#2200)
Oct 7, 2017
88367da
Add warnings about global adapter config to docs (#2176)
mrpinsky Oct 24, 2017
4076a48
Removed misleading line in README
vedant1811 Jul 11, 2017
5e1e138
Refactor ResourceIdentifier
bf4 Oct 29, 2017
0fcb8a6
Fix polymorphic belongs_to tests; passes on v0.10.5
bf4 Oct 30, 2017
cf29db3
Fix JSON:API polymorphic type regression from v0.10.5
bf4 Oct 30, 2017
a0de45a
Fix JSON:API: for_type_and_id should always inflect_type
bf4 Oct 30, 2017
1fd3249
Remove legacy has_many_embed_ids test
bf4 Oct 30, 2017
c6a14c9
Fail if collection type cannot be inferred with json adapter (#2210)
Oct 30, 2017
54d40c7
Merge pull request #2214 from jmeredith16/undeterminable-json-root
bf4 Oct 30, 2017
e348034
Merge pull request #2211 from rails-api/polymorphic_relationships_req…
bf4 Oct 31, 2017
b439fe6
Refactor jsonapi type/id tests to be more explicit
bf4 Oct 31, 2017
82e9009
Put the similar jsonapi type tests together
bf4 Oct 31, 2017
92dde58
Assert serializer-defined types are not inflected
bf4 Oct 31, 2017
5916014
Fix: resource object identifier with nil id excludes id
bf4 Oct 31, 2017
9745a2f
Fix: ResourceIdentifier.for_type_with_id can serialize unpersisted re…
bf4 Oct 31, 2017
51f2643
Style
bf4 Oct 31, 2017
196216b
Merge pull request #2212 from rails-api/remove_legacy_embeds
bf4 Oct 31, 2017
0bbeeb3
Update serializers.md
stratigos Oct 30, 2017
33ec26f
Merge branch 'stratigos-patch-1' into 0-10-stable
bf4 Oct 31, 2017
3c5e11b
Merge pull request #2216 from rails-api/serialize_resource_with_nil_id
bf4 Nov 1, 2017
00a47d3
Prove CI broken (#2220)
bf4 Nov 13, 2017
3dd6ccc
Fix 0.10.6 regression; make using belongs_to on self opt-in
bf4 Nov 7, 2017
b41451c
Make tests pass
bf4 Nov 7, 2017
c41e243
Merge pull request #2218 from rails-api/opt_in_belongs_to_uses_foreig…
bf4 Nov 13, 2017
ca53178
Bump to 0.10.7; update changelog
bf4 Nov 15, 2017
a9ea81a
resolve collection cache error
quake Sep 8, 2017
d274295
Merge branch 'quake-collection_cache' into 0-10-stable
bf4 Nov 19, 2017
5fe473f
JRuby AR adapter are now 5x.0 for Rails 5.x+
bf4 Nov 19, 2017
41f2e11
Merge pull request #2222 from rails-api/ci_fix
bf4 Nov 19, 2017
be119b8
[docs] disable logger via /dev/null/ instead of AS::N.unsubscribe
zvkemp May 9, 2018
f3b2027
Added examples to use `class_name` options for association.
abhaynikam Jun 7, 2018
65cf483
Updated `class_name` defination.
abhaynikam Jun 7, 2018
993a48f
wordsmitting
abhaynikam Jun 7, 2018
4559774
Updated the defination for the class_name in documentation
abhaynikam Jun 21, 2018
76936e7
Fix Lint links in README
Jun 21, 2018
9c77bb6
Merge pull request #2263 from vthomas2007/fix-readme-lint-links
bf4 Jun 22, 2018
f3a19bd
Merge pull request #2260 from abhaynikam/2258-fix-class-name-document…
bf4 Jun 22, 2018
3a200d7
Minor doc update
alvincrespo Sep 7, 2018
4f9d640
Minitest 5.11 breaks; needs something like ::Minitest::Result.from
bf4 Oct 9, 2018
ed97e94
Exclude deprecated rubies
bf4 Oct 9, 2018
f5f5d4d
Fix Rails master
bf4 Oct 10, 2018
fce8be0
Merge pull request #2290 from rails-api/minitest_ci
bf4 Oct 10, 2018
2a8b9f4
Eager load modules on boot
f-mer May 22, 2018
65313b9
Remove obsolete autoloads
f-mer May 22, 2018
506636a
Merge branch 'f-mer-0-10-stable-eager_load' into 0-10-stable
bf4 Oct 11, 2018
eb865c2
Update Changelog
bf4 Oct 11, 2018
db4e526
Fix the bug that serializer could not be found if the association's s…
Hirurg103 Oct 20, 2018
bcf21ea
Remove unnecessary line break from exception message
vinibrsl Oct 24, 2018
1272480
Merge branch 'Hirurg103-0-10-stable' into 0-10-stable
bf4 Oct 24, 2018
01ecc5d
Update Changelog
bf4 Oct 24, 2018
4b2b9ef
Merge pull request #2297 from vnbrs/patch-1
bf4 Oct 24, 2018
05e5ba6
Merge pull request #2281 from alvincrespo/alvincrespo-patch-1
bf4 Oct 24, 2018
0d3999c
Support conditions in link statements
mkon Sep 1, 2018
ca6c009
typos
mkon Sep 6, 2018
572f11b
value is always a link
mkon Oct 25, 2018
1b679d4
Test travis integration
cintamani Oct 29, 2018
b7bf03c
Exclude ruby > 2.1 for Rails 5.2 build
cintamani Oct 29, 2018
cb67434
Merge pull request #2279 from mkon/link-conditions
bf4 Oct 31, 2018
127b04b
Add failing test for reflection thread safety bug
bf4 Nov 1, 2018
c7e847f
Fix thread unsafe behavior
Aug 16, 2018
b358271
Note that we dup the entire reflection instance
bf4 Nov 1, 2018
238d792
Lint per rubocop
bf4 Nov 1, 2018
09264da
Merge branch 'fix_thread_safety_bug' into 0-10-stable
bf4 Nov 1, 2018
f1a2ec7
Add change to changelog
bf4 Nov 1, 2018
bc4805c
Bump version to v0.10.8
bf4 Nov 1, 2018
f608aef
Add ruby 2.5.3
Nov 7, 2018
b76aae7
Update .travis.yml
Nov 7, 2018
17d0e6b
Merge pull request #2300 from cookpad/c/travis-fixes-master
bf4 Nov 13, 2018
873cf4a
Add frozen_string_literal pragma to ruby files
krzysiek1507 Dec 16, 2018
89dcdac
Enable frozen string literal comment for rubocop
krzysiek1507 Dec 17, 2018
a39794d
LazyAssociation#object should not reevaluate reflection values
faucct Dec 29, 2018
9939d54
Merge pull request #2306 from krzysiek1507/feature/add-frozen-string-…
bf4 Jan 9, 2019
c6c3927
Merge pull request #2307 from faucct/bugfix/double-evaluation-of-object
bf4 Jan 10, 2019
96ab640
Install rubygems 2.7.8 and bundler ~> 1.17 on Travis
krzysiek1507 Jan 24, 2019
a7915c8
Exclude Ruby 2.4.2 and Rails master from matrix
krzysiek1507 Jan 25, 2019
22f2cb7
Merge pull request #2310 from krzysiek1507/fix/bundler-on-travis
bf4 Jan 29, 2019
be5fbf3
Use `#cache_key_with_key` when available
cintamani Oct 1, 2018
7f751fc
Add test coverage and changelog
cintamani Oct 1, 2018
70604bb
Only set cache_versioning to true on rails versions when relevant
cintamani Oct 1, 2018
b0039e3
Update caching.rb
cintamani Oct 10, 2018
bd53d9b
Update caching.rb
cintamani Oct 26, 2018
7dbb583
Update cache_test.rb
cintamani Nov 7, 2018
192c86a
Update test/cache_test.rb
cintamani Nov 13, 2018
427dd05
Revert "Update caching.rb"
cintamani Jan 28, 2019
141feeb
Revert "Update caching.rb"
cintamani Jan 28, 2019
209834d
Performance and memory usage fixes (#2309)
krzysiek1507 Jan 29, 2019
3d0b5ac
Test cache expiration in collection on update of a record
wasifhossain Feb 1, 2019
f815d3e
Merge pull request #1 from wasifhossain/collection-cache-expiry
cintamani Feb 1, 2019
7ff2ac6
Update test/cache_test.rb
cintamani Feb 1, 2019
6fd5c66
Update test/cache_test.rb
bf4 Feb 5, 2019
26bba19
Ensure that CacheVersioning is setted up only in the context of relev…
cintamani Feb 5, 2019
2cc2a04
Update CHANGELOG.md
cintamani Feb 8, 2019
be7f083
Fix sqlite3 version to 1.3.13 as the new 1.4 version released last we…
cintamani Feb 8, 2019
15b7974
Merge pull request #2288 from cintamani/patch-1
cintamani Feb 8, 2019
bb0f9d0
Bump version to 0.10.9
bf4 Feb 8, 2019
6fbeb9a
Fix deprecation warnings on Rails 6
kylekeesling Feb 27, 2019
912af7e
update test fixture schema to use timestamps instead of timestamp
kylekeesling Mar 10, 2019
6fb4f7b
Merge pull request #2319 from kylekeesling/rails6
wasifhossain Mar 14, 2019
12ccb78
Fix serializer class link on guides
feliperenan Mar 21, 2019
942e10f
Merge pull request #2323 from feliperenan/fix-serializer-link
wasifhossain Mar 21, 2019
0aa1ed9
Configure sqlite3 to use ~> 1.4 for rails 6+
wasifhossain Apr 22, 2019
3715a10
Refactor travis.yml
wasifhossain Apr 22, 2019
5d122f2
Fix rubocop offenses
wasifhossain Apr 22, 2019
7896ad6
Merge pull request #2327 from rails-api/ruby-2-6-rails-4-2-test-patch
wasifhossain Apr 22, 2019
06fcd34
Follows https://github.com/rails-api/active_model_serializers/pull/2100
bf4 Nov 20, 2017
a9cb097
Refactoring
wasifhossain Feb 20, 2019
807e160
Add missing frozen string literal comment
wasifhossain Feb 20, 2019
96303af
Add changelog entries for this PR and #2327
wasifhossain Apr 23, 2019
c77fdda
Mention current rails version for #2327 ruby2.6/rails4.2 monkeypatch
wasifhossain Apr 23, 2019
3419a01
Merge pull request #2223 from rails-api/fields_support_in_all_adapters
wasifhossain Apr 23, 2019
14113ba
Slim down bundled gem by excluding test files and docs
greysteil Dec 1, 2018
19a6188
Merge pull request #2304 from greysteil/slim-down-gem
wasifhossain Apr 23, 2019
ca43661
Add support for Rails 6.0.0.rc1 on travis
wasifhossain Apr 29, 2019
0f75837
Keep rubygems version < 3.0 until we keep supporting ruby < 2.3
wasifhossain Apr 29, 2019
1ebdda3
Merge pull request #2328 from rails-api/rails-6-rc
wasifhossain Apr 29, 2019
4a4a0f2
Stick to bundle < 2
iggant Mar 11, 2019
1ff21ba
Merge pull request #2321 from iggant/0-10-stable
wasifhossain May 2, 2019
a829bc0
Allow AMS to run on Rails 6.0.x
sikachu Apr 29, 2019
339f99f
Merge pull request #2334 from sikachu/0-10-stable-relax-rails-version
wasifhossain Jun 2, 2019
4b0c230
add failing test and suggestion
InteNs Jun 4, 2019
28a172e
return nil if id is nil
InteNs Jun 7, 2019
58f4f98
lock jsonapi renderer to < 0.2.1
InteNs Jun 11, 2019
cee0ad4
update changelog
InteNs Jun 13, 2019
4022337
Revert "lock jsonapi renderer to < 0.2.1"
InteNs Jun 13, 2019
22849c0
fix include in failing test
InteNs Jun 14, 2019
777fab0
Merge pull request #2337 from InteNs/fix-json-api-belongs-to-fk-on-ob…
wasifhossain Jun 15, 2019
beffbb2
Follows inheritance with a namespace
rafaelgaspar Sep 4, 2017
2224cc8
Merge pull request #2172 from AyogoHealth/superclass_namespace
wasifhossain Jul 11, 2019
433c0c6
Bump version to 0.10.10
wasifhossain Jul 13, 2019
2581fe0
Lookup fieldset using either string or symbol
wasifhossain Jul 17, 2019
7b544f3
Merge pull request #2344 from rails-api/fieldset-lookup-using-symbol-…
wasifhossain Jul 17, 2019
669c4ee
Update README and CHANGELOG
wasifhossain Jul 18, 2019
7baf5d5
Merge pull request #2348 from rails-api/readme
wasifhossain Jul 18, 2019
6b3eb74
Test rails 6.0.0.rc2 on travis
wasifhossain Aug 1, 2019
c907527
Use openjdk instead of oraclejdk and jruby 9.1/9.2
wasifhossain Aug 4, 2019
9db3dd2
Use specific jdbcsqlite3 version for certain version of rails
wasifhossain Aug 4, 2019
e981ac6
Require jruby 9.1.x (ruby2.3) and 9.2.x (ruby2.5) to pass on Travis
wasifhossain Aug 4, 2019
95f4ead
Drop support for Ruby 2.4+ against Rails 4.1 from Travis
wasifhossain Aug 4, 2019
82ad288
Add support for Rails 6.0.0 on Travis
wasifhossain Aug 21, 2019
cec9eba
Merge pull request #2354 from rails-api/rails-6-0-rc2
wasifhossain Aug 21, 2019
55a6b23
Configure `ActionDispatch::Response#content_type` behavior on Rails 6+
wasifhossain Jun 8, 2019
8a0dad6
Support jRuby 9.2.8.0 on Travis
wasifhossain Aug 23, 2019
e349395
Merge pull request #2340 from rails-api/action_dispatch_response_medi…
wasifhossain Aug 23, 2019
838b173
Bump Ruby versions on Travis: 2.4.7/2.5.6/2.6.4
wasifhossain Sep 3, 2019
ab47e98
Merge pull request #2356 from rails-api/bump-ruby
wasifhossain Sep 20, 2019
14eed23
Bump Ruby versions on Travis: 2.4.9/2.5.7/2.6.5
wasifhossain Oct 13, 2019
5ce94fd
Merge pull request #2360 from rails-api/bump-ruby
wasifhossain Oct 13, 2019
5d3f56f
Use SHA1 instead of MD5 for caching
Oct 15, 2019
1c02878
Introduce use_sha1_digests config option
Oct 16, 2019
7e1c9fc
Update changelog
Oct 17, 2019
628eff2
Update configuration options doc
Oct 17, 2019
6b093c9
Merge pull request #2361 from alexzherdev/2358-sha1
bf4 Oct 29, 2019
64c7fee
Code cleanup (#2369)
wasifhossain Jan 3, 2020
a6120f1
Add Ruby 2.7 support (#2368)
wasifhossain Jan 8, 2020
29d8be4
remove explicit require for thread_safe
ritikesh Oct 12, 2020
321cd28
try fixing pry gem issues
ritikesh Oct 12, 2020
df7475b
Merge pull request #2395 from ritikesh/0-10-stable
bf4 Oct 16, 2020
dac067f
Bump version
bf4 Dec 4, 2020
bc08284
Relax bundler dev dep
bf4 Dec 4, 2020
f2643c1
Update rails dependency to < 6.2
ritikesh Dec 8, 2020
1157429
Merge pull request #2398 from ritikesh/0-10-stable
bf4 Dec 9, 2020
6d651bc
Bump to 0.10.12
bf4 Dec 10, 2020
60ba54a
Set up GitHub actions CI (#2403)
bf4 Dec 31, 2020
1bbd728
this fixes a bug where an invalid next link appears if the current pa…
f3z0 Dec 2, 2020
1f3a4dd
Trigger github actions workflow on pull request
wasifhossain Jan 2, 2021
cc29721
Merge pull request #2405 from rails-api/trigger-workflow-on-PR
wasifhossain Jan 2, 2021
863a530
Merge branch '0-10-stable' into 0-10-stable
f3z0 Jan 2, 2021
1f2da3f
adding #2399 to CHANGELOG.md
f3z0 Jan 2, 2021
023085e
Merge branch '0-10-stable' of github.com:merlsoft/active_model_serial…
f3z0 Jan 2, 2021
c954d39
adding #2399 to CHANGELOG.md
f3z0 Jan 2, 2021
e2f48b5
adding #2399 to CHANGELOG.md
f3z0 Jan 2, 2021
8f38571
Merge pull request #2399 from hyli-inc/0-10-stable
wasifhossain Jan 3, 2021
f495f44
Merge pull request #2253 from zvkemp/disable-logging-docs
bf4 Jan 26, 2021
8fe1aee
add raise_cannot_infer_root_key_error to config
tashirosota Feb 11, 2021
7a80f98
Merge branch '0-10-stable' into v0.10/add_raise_cannot_infer_root_key…
tashirosota Feb 11, 2021
01c0d69
Merge pull request #2412 from tashirosota/v0.10/add_raise_cannot_infe…
wasifhossain Mar 3, 2021
9a78a78
Relax gem requirement for Rails 7.0 prerelease
sikachu Jul 12, 2021
669b0a3
Merge pull request #2423 from sikachu/0-10-stable-relax-rails
wasifhossain Jul 12, 2021
ba2ee99
Relax gem requirement to allow Rails 7
Dec 16, 2021
b6d2c8f
Action review comments
Dec 16, 2021
c1acc24
Rollback redundant travis change
Dec 16, 2021
5d64851
Prevent the clearing of instance variables after each test request wi…
Dec 16, 2021
169d210
Make Rails 7 hack specific to test controller that needs it
Dec 28, 2021
c91c789
Add ruby 3.1 and rails 7.0 to ci matrix
Dec 28, 2021
fae99ee
Merge pull request #2428 from jpawlyn/0-10-stable
wasifhossain Jan 3, 2022
524aeef
Bump 0.10.13
bf4 Jan 13, 2022
d40140b
Fix checking of method defined or not
y-yagi Dec 16, 2021
0fbe0fa
Merge pull request #2427 from y-yagi/fix-bundler-deprecated-method
wasifhossain Mar 3, 2022
8f75a18
Remove travis settings
ohbarye Feb 22, 2023
9fa9373
Merge pull request #2442 from ohbarye/remove-travis-setting
bf4 May 17, 2023
eeb1090
Prevent creation of unnecessary fieldset(mirror changes from #2370)
liijunwei Aug 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---

name: CI

on: [push, pull_request]

jobs:
test:
name: "Testing"
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
include:
# Recent Rubies and Rails
- ruby-version: '3.1'
rails-version: '7.0'
- ruby-version: '3.0'
rails-version: '7.0'
- ruby-version: '2.7'
rails-version: '7.0'
- ruby-version: '2.6'
rails-version: '6.1'
- ruby-version: '2.6'
rails-version: '6.0'
- ruby-version: '2.7'
rails-version: '6.0'
- ruby-version: '2.6'
rails-version: '5.2'
# Old Rubies and Rails
- ruby-version: '2.5'
rails-version: '5.1'
bundler: '1'
- ruby-version: '2.4'
rails-version: '5.0'
bundler: '1'
- ruby-version: '2.4'
rails-version: '4.2'
bundler: '1'
# Failing with a stack trace in active support
# - ruby-version: '2.4'
# rails-version: '4.1'
# bundler: '1'

continue-on-error: "${{ endsWith(matrix.ruby-version, 'head') }}"

env:
CI: "1"

steps:
- name: "Checkout Code"
uses: "actions/checkout@v2"
timeout-minutes: 5
with:
fetch-depth: 0

- name: Install required libs
run: |
sudo apt-get -yqq install libsqlite3-dev

- name: "Build Ruby"
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby-version }}"
bundler: "${{ matrix.bundler || 2 }}"
bundler-cache: true
env:
RAILS_VERSION: ${{ matrix.rails-version }}

- name: "Run tests"
run: |
bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails-version }}
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ Style/MissingElse:
Style/EmptyElse:
EnforcedStyle: empty

Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always

Style/MultilineOperationIndentation:
EnforcedStyle: indented

Expand Down
110 changes: 0 additions & 110 deletions .simplecov

This file was deleted.

55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

115 changes: 114 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 0.10.x

### [master (unreleased)](https://github.com/rails-api/active_model_serializers/compare/v0.10.6...master)
### [master (unreleased)](https://github.com/rails-api/active_model_serializers/compare/v0.10.13...0-10-stable)

Breaking changes:

Expand All @@ -10,6 +10,119 @@ Fixes:

Misc:

### [v0.10.13 (2022-01013)](https://github.com/rails-api/active_model_serializers/compare/v0.10.12...v0.10.13)

Fixes:

- [#2399](https://github.com/rails-api/active_model_serializers/pull/2399) Handles edge case where requested current_page > total_pages (@f3z0)

### [v0.10.12 (2020-12-10)](https://github.com/rails-api/active_model_serializers/compare/v0.10.11...v0.10.12)

Fixes:

- [#2398](https://github.com/rails-api/active_model_serializers/pull/2398) Update rails dependency to < 6.2 (@ritikesh)

### [v0.10.11 (2020-12-04)](https://github.com/rails-api/active_model_serializers/compare/v0.10.10...v0.10.11)

Features:

- [#2361](https://github.com/rails-api/active_model_serializers/pull/2361) Add `ActiveModelSerializers.config.use_sha1_digests` to allow customization of the hashing algorithm used for serializer caching (@alexzherdev)

Fixes:

- [#2344](https://github.com/rails-api/active_model_serializers/pull/2344) Fixes #2341 introduced since #2223 (@wasifhossain)
- [#2395](https://github.com/rails-api/active_model_serializers/pull/2395) remove explicit require for thread_safe (@ritikesh)

### [v0.10.10 (2019-07-13)](https://github.com/rails-api/active_model_serializers/compare/v0.10.9...v0.10.10)

Fixes:

- [#2319](https://github.com/rails-api/active_model_serializers/pull/2319) Fixes #2316. (@kylekeesling)
- Fix Rails 6.0 deprication warnings
- update test fixture schema to use `timestamps` instead of `timestamp`
- [#2223](https://github.com/rails-api/active_model_serializers/pull/2223) Support Fieldset in Attributes/JSON adapters documented in [docs/general/fields.md](https://github.com/rails-api/active_model_serializers/blob/0-10-stable/docs/general/fields.md) that worked partially before (@bf4)
- [#2337](https://github.com/rails-api/active_model_serializers/pull/2337) fix incorrect belongs_to serialization when foreign_key on object and belongs_to is blank (@InteNs)
- Fixes incorrect json-api generation when `jsonapi_use_foreign_key_on_belongs_to_relationship` is `true` and the relationship is blank
- [#2172](https://github.com/rails-api/active_model_serializers/pull/2172) Preserve the namespace when falling back to a superclass serializer

Misc:

- [#2327](https://github.com/rails-api/active_model_serializers/pull/2327) Add support for Ruby 2.6 on Travis CI (@wasifhossain)
- [#2304](https://github.com/rails-api/active_model_serializers/pull/2304) Slim down bundled gem by excluding test files and docs (@greysteil)

### [v0.10.9 (2019-02-08)](https://github.com/rails-api/active_model_serializers/compare/v0.10.8...v0.10.9)

Fixes:

- [#2288](https://github.com/rails-api/active_model_serializers/pull/2288)
Change the fetch method to deal with recyclable key cache strategy.
Fixes #2287. (@cintamani, @wasifhossain)
- [#2307](https://github.com/rails-api/active_model_serializers/pull/2307) Falsey attribute values should not be reevaluated.

Misc:

- [#2309](https://github.com/rails-api/active_model_serializers/pull/2309) Performance and memory usage fixes

### [v0.10.8 (2018-11-01)](https://github.com/rails-api/active_model_serializers/compare/v0.10.7...v0.10.8)

Features:
- [#2279](https://github.com/rails-api/active_model_serializers/pull/2279) Support condition options in serializer link statements

Fixes:

- [#2296](https://github.com/rails-api/active_model_serializers/pull/2296) Fixes #2295 (@Hirurg103)
- Fix finding of namespaced serializer and non-namespaced model.
- [#2289](https://github.com/rails-api/active_model_serializers/pull/2289) Fixes #2255 (@f-mer)
- Fix autoloading race condition, especially in Rails 5.
- [#2299](https://github.com/rails-api/active_model_serializers/pull/2299) Fixes #2270 (@chau-bao-long via #2276)
- Fix reflection thread-safety bug

### [v0.10.7 (2017-11-14)](https://github.com/rails-api/active_model_serializers/compare/v0.10.6...v0.10.7)

Regressions Fixed From v0.10.6:

- [#2211](https://github.com/rails-api/active_model_serializers/pull/2211). Fixes #2125, #2160. (@bf4)
- Fix polymorphic belongs_to tests; passes on v0.10.5, fails on v0.10.6
- Fix JSON:API polymorphic type regression from v0.10.5
- Fix JSON:API: for_type_and_id should always inflect_type
```
Should Serializer._type ever be inflected?
Right now, it won't be, but association.serializer._type will be inflected.

That's the current behavior.
```
- [#2216](https://github.com/rails-api/active_model_serializers/pull/2216). Fixes #2132, #2180. (@bf4)
- Fix JSON:API: Serialize resource type for unpersisted records (blank id)
- [#2218](https://github.com/rails-api/active_model_serializers/pull/2218). Fixes #2178. (@bf4)
- Fix JSON:API: Make using foreign key on belongs_to opt-in. No effect on polymorphic relationships.
```
# set to true to opt-in
ActiveModelSerializer.config.jsonapi_use_foreign_key_on_belongs_to_relationship = true
```

Features:

- [#2136](https://github.com/rails-api/active_model_serializers/pull/2136) Enable inclusion of sideloaded relationship objects by `key`. (@caomania)
- [#2021](https://github.com/rails-api/active_model_serializers/pull/2021) ActiveModelSerializers::Model#attributes. Originally in [#1982](https://github.com/rails-api/active_model_serializers/pull/1982). (@bf4)
- [#2130](https://github.com/rails-api/active_model_serializers/pull/2130) Allow serialized ID to be overwritten for belongs-to relationships. (@greysteil)
- [#2189](https://github.com/rails-api/active_model_serializers/pull/2189)
Update version constraint for jsonapi-renderer to `['>= 0.1.1.beta1', '< 0.3']`
(@tagliala)

Fixes:

- [#2022](https://github.com/rails-api/active_model_serializers/pull/2022) Mutation of ActiveModelSerializers::Model now changes the attributes. Originally in [#1984](https://github.com/rails-api/active_model_serializers/pull/1984). (@bf4)
- [#2200](https://github.com/rails-api/active_model_serializers/pull/2200) Fix deserialization of polymorphic relationships. (@dennis95stumm)
- [#2214](https://github.com/rails-api/active_model_serializers/pull/2214) Fail if unable to infer collection type with json adapter. (@jmeredith16)
- [#2149](https://github.com/rails-api/active_model_serializers/pull/2149) Always include self, first, last pagination link. (@mecampbellsoup)
- [#2179](https://github.com/rails-api/active_model_serializers/pull/2179) Fixes #2173, Pass block to Enumerator.new. (@drn)

Misc:

- [#2176](https://github.com/rails-api/active_model_serializers/pull/2176) Documentation for global adapter config. (@mrpinsky)
- [#2215](https://github.com/rails-api/active_model_serializers/pull/2215) Update `serializers.md` documentation to denote alternate use cases for `scope`. (@stratigos)
- [#2212](https://github.com/rails-api/active_model_serializers/pull/2212) Remove legacy has_many_embed_ids test. (@bf4)

### [v0.10.6 (2017-05-01)](https://github.com/rails-api/active_model_serializers/compare/v0.10.5...v0.10.6)

Fixes:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ please adhere to these standards:
- Provide a description of the changes contained in the pull request.
- Note any specific areas that should be reviewed.
- Include tests.
- The test suite must pass on [supported Ruby versions](.travis.yml)
- The test suite must pass on [supported Ruby versions](.github/workflows/ci.yml)
- Include updates to the [documentation](https://github.com/rails-api/active_model_serializers/tree/master/docs)
where applicable.
- Update the
Expand Down Expand Up @@ -79,7 +79,7 @@ and bundling gems. (save this script somewhere executable and run from top of A
```bash
#!/usr/bin/env bash

rcommand='puts YAML.load_file("./.travis.yml")["env"]["matrix"].join(" ").gsub("RAILS_VERSION=", "")'
rcommand='puts YAML.load_file(".github/workflows/ci.yml").dig("jobs", "test", "strategy", "matrix", "include").map{|v| v["ruby-version"]}.join(" ")'
versions=$(ruby -ryaml -e "$rcommand")

for version in ${versions[@]}; do
Expand Down
Loading