Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

merge upstream #1

Closed
wants to merge 124 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
ac38e86
Fix custom type comment to use TypeFactory
mordaroso Mar 20, 2018
12acf88
#278 updating faraday to fix issue when param value is an empty array
senid231 May 24, 2018
4a4f757
Exclude path params from attributes hash
coreyward Mar 4, 2016
5fecef5
Test path params are excluded from serialized attributes
coreyward Mar 4, 2016
f96c682
Merge pull request #286 from senid231/coreyward-f/serialized-attribs
senid231 May 25, 2018
8dede9e
allow to send fields and/or includes on create/update resource
senid231 May 25, 2018
b9b367e
Consider `Model.page(nil)`
mtsmfm Jun 14, 2016
dcead09
Merge pull request #287 from senid231/github-mtsmfm-page-nil
senid231 May 26, 2018
fe506b5
Merge pull request #282 from mordaroso/patch-1
senid231 May 26, 2018
2f5db2c
Merge pull request #284 from senid231/278-update-faraday-to-fix-empty…
senid231 May 28, 2018
b4e5804
Merge pull request #285 from senid231/query-params-on-create-and-upda…
senid231 May 28, 2018
c6d0f37
adding test that shows the error: chaining scopes modifies the parent…
gaorlov Aug 24, 2018
787fe52
fixing readme to update test and coverage icon targets
gaorlov Aug 24, 2018
d9c3f17
fixing sopes to be immutable
gaorlov Aug 24, 2018
b944c12
fixing paginator to accept strings or symbols as paer_page key
gaorlov Aug 24, 2018
6bef918
adding test that demonstrates Query::Builder#find with args doesn't work
gaorlov Aug 27, 2018
9f31073
fixing Query::Builder#find with parameters
gaorlov Aug 27, 2018
fc06c87
Merge pull request #293 from gaorlov/idempotent_scoping
gaorlov Aug 27, 2018
d228cad
version bump v1.6.0
gaorlov Aug 27, 2018
fbaeafa
Use mocha/minitest instead of mocha/mini_test on test_helper
edymerchk Sep 1, 2018
f6fd3da
update arguments for custom connections run method
fusion2004 Sep 6, 2018
a36cab1
Merge pull request #297 from edymerchk/fix-deprecation-warning
senid231 Sep 21, 2018
68393c8
Merge pull request #298 from fusion2004/update-readme-for-new-custom-…
senid231 Sep 21, 2018
f97ce89
Merge pull request #295 from gaorlov/coverage_readme_fix
jsmestad Sep 22, 2018
f76c5c8
#303 optional add default to changes
senid231 Oct 3, 2018
79fedec
#291 import README - pagination override examples
senid231 Oct 3, 2018
c098c66
#290 symbolize params keys on model initialize
senid231 Oct 3, 2018
010414c
Merge pull request #306 from senid231/291-improve-readme-pagination-o…
senid231 Oct 4, 2018
5bc5f2c
Merge pull request #307 from senid231/290-new-model-allow-symbolized-…
senid231 Oct 4, 2018
dbdb0f6
Merge pull request #304 from senid231/303-optional-add-default-to-cha…
senid231 Oct 4, 2018
3048ea3
cache values for defined properties and relationships [performance op…
senid231 Oct 3, 2018
dda66ea
Merge pull request #300 from senid231/smart-performance-optimization
senid231 Oct 8, 2018
96746b5
version bump 1.6.1
gaorlov Oct 8, 2018
dee26fd
version bump 1.6.1
gaorlov Oct 8, 2018
a34e285
Merge pull request #310 from senid231/bump_161
senid231 Oct 9, 2018
6cf5473
Raise client error for unhandled 4xx responses
jamesstonehill Oct 9, 2018
0fecb2f
Add PR #311 to CHANGELOG
jamesstonehill Oct 10, 2018
1f6879d
Merge pull request #311 from jamesstonehill/raise-on-misc-client-error
gaorlov Oct 10, 2018
2081d23
resolving diff with upstream
gaorlov Oct 10, 2018
845f809
version bump v1.6.2
gaorlov Oct 10, 2018
118fa6c
updating chantgelog
gaorlov Oct 10, 2018
99d1de5
Do not raise errors on 422 responses
jamesstonehill Oct 11, 2018
91064d1
Merge pull request #312 from jamesstonehill/422-error-handling
senid231 Oct 12, 2018
2de4364
verion bump v1.6.3
gaorlov Oct 12, 2018
3460162
fixing typo in changelog
gaorlov Oct 12, 2018
387c6b0
Mimics ActiveRecord behavior when destroying resource
hashrocketeer Oct 23, 2018
08b91ee
Do not clear relationships on destroy
hashrocketeer Oct 25, 2018
147ec71
Merge pull request #314 from hashrocketeer/mimic_destroy
gaorlov Oct 26, 2018
3c8edef
readme update; changelog update; version bump v1.6.4
gaorlov Oct 26, 2018
dfdbd64
add shallow path for belongs_to
senid231 Oct 26, 2018
ec0fc21
Merge pull request #315 from senid231/180-add-shallow-path-for-belong…
senid231 Nov 1, 2018
17b9a05
add tests for update resource for correct relationships dirty behavior
senid231 Nov 1, 2018
36d750b
Merge pull request #318 from senid231/add-test-for-update-resource
senid231 Nov 4, 2018
524f968
Allow custom error messages
fzf Oct 31, 2018
ce8963c
290 fix passing relationships on create
senid231 Nov 8, 2018
d7634d1
Merge pull request #320 from senid231/290-fix-passing-relationship-on…
senid231 Nov 13, 2018
d801b86
add missing changelog
senid231 Nov 13, 2018
de75481
Merge pull request #321 from senid231/fix-changelogs
gaorlov Nov 13, 2018
0f9da74
version bump: 1.7.0
gaorlov Nov 24, 2018
710cbb9
Retain context from Faraday errors
Dec 4, 2018
f2a20e2
Merge pull request #322 from COzero/retain-error-context
senid231 Dec 4, 2018
fcbdf13
fix travis for ruby 2.2
senid231 Jan 11, 2019
90fb6ef
Merge pull request #325 from senid231/fix-travis-for-ruby-2.2
senid231 Jan 11, 2019
aa90b0a
Merge pull request #316 from 1debit/customize_errors
senid231 Jan 15, 2019
e8b0a0a
add #316 to changelog
senid231 Jan 15, 2019
435e878
Merge pull request #327 from senid231/update-changelog
senid231 Jan 15, 2019
e5f82d9
#299 optional get relationship from dataset
senid231 Oct 3, 2018
bd298ab
Merge pull request #305 from senid231/299-get-included-from-dataset
senid231 Jan 23, 2019
826d3dc
version bump: 1.8.0
gaorlov Jan 23, 2019
238365e
adding test for destruction with custom primary key
gaorlov Jan 23, 2019
0b9ead2
allowing resources to be deleted with a custom primary key
gaorlov Jan 23, 2019
bea14d8
allow custom type for models
senid231 Jan 15, 2019
4c1b9fa
correct changes after initialize resource
senid231 Jan 15, 2019
10edc85
Merge pull request #328 from senid231/allow-custom-type
senid231 Jan 23, 2019
e9471f4
Merge pull request #326 from senid231/ensure-correct-changes-on-resou…
senid231 Jan 23, 2019
4d16613
changelog fix after 1.8.0 release
senid231 Jan 23, 2019
d5ddf81
Merge pull request #331 from senid231/changelog-fix-after-1.8.0
senid231 Jan 23, 2019
a2dd3d8
add status_handlers to JsonApiClient::Resource.connection_options
senid231 Jan 11, 2019
4ca6148
Merge pull request #324 from senid231/custom-status-handling
senid231 Jan 24, 2019
5cfdf92
Merge pull request #330 from gaorlov/primary_key_fix
senid231 Jan 24, 2019
5b5922a
upgrade changelog (add #330)
senid231 Jan 24, 2019
9bf58c8
Merge pull request #332 from senid231/changelog-upgrade
senid231 Jan 24, 2019
8d5bbf5
version bump: 1.9.0
gaorlov Jan 25, 2019
43b0236
add failing test that reproduces issue #334
senid231 Mar 19, 2019
3611780
retrieve assigned relationship record via association getter method
senid231 Mar 25, 2019
18997e5
fix byebug version fo travis ci
senid231 Mar 26, 2019
e4b763f
Merge pull request #335 from senid231/334-access-to-assigned-relation…
senid231 Mar 26, 2019
e9ee232
version bump: 1.10.0
gaorlov May 20, 2019
ec35cde
update changelog for version 1.10.0
senid231 May 21, 2019
3b48cfc
Add `raise_on_blank_find_param` resource setting
stokarenko May 24, 2019
53264d9
Merge pull request #344 from stokarenko/add-raise_on_blank_find_param…
gaorlov May 24, 2019
5c6745c
version bump: v1.11.0
gaorlov May 24, 2019
60e2a64
Track the real HTTP reason of ApiErrors
stokarenko May 25, 2019
0ab6586
Merge pull request #345 from stokarenko/better-api-errors
gaorlov Jun 11, 2019
424c972
version bump: v 1.12.0
gaorlov Jun 11, 2019
c8995de
Fix resource including for STI objects
stokarenko Jun 21, 2019
de379a5
Merge pull request #349 from stokarenko/fix-included-data-for-sti
gaorlov Jun 25, 2019
184c3d5
version bump: v1.12.1
gaorlov Jun 25, 2019
2483f48
Fix including with blank relationships
stokarenko Jun 25, 2019
f328779
Merge pull request #350 from stokarenko/fix-including-with-blank-rela…
gaorlov Jun 25, 2019
02e0fb3
version bump: v1.12.2
gaorlov Jun 25, 2019
d675eda
chore: update .gitignore to ignore IntelliJ and asdf files
Jun 11, 2019
cc4b697
feat: add NestedParamPaginator to make pagination params consistent
Jun 15, 2019
0cd860b
chore: add NestedParamPaginator to README and CHANGELOG
Jun 27, 2019
edc52d5
Merge branch 'master' into feature/fix_pagination_issues
gaorlov Jun 27, 2019
c2deea5
Fix resource serialization involving last_result_set
stokarenko Jun 28, 2019
cc36a9d
Merge pull request #348 from dugsmith/feature/fix_pagination_issues
gaorlov Jun 28, 2019
94f45e2
version bump: v1.13.0; readme update
gaorlov Jun 28, 2019
8fad9cf
Merge branch 'master' into fix-resource-serialization-involving-last-…
gaorlov Jun 28, 2019
0f6be6e
Merge branch 'master' into update-changelog-after-1-10
gaorlov Jul 2, 2019
b3c36c6
Merge pull request #341 from senid231/update-changelog-after-1-10
gaorlov Jul 2, 2019
dbadb81
Implement eql and hash for Builder class
ChrisBr Mar 29, 2019
23c337e
Merge pull request #351 from stokarenko/fix-resource-serialization-in…
senid231 Jul 3, 2019
86543f2
Merge branch 'master' into feature/implement_hash
senid231 Jul 3, 2019
3273a67
Merge pull request #338 from ChrisBr/feature/implement_hash
gaorlov Jul 3, 2019
2b2033a
version bump: v1.14.0
gaorlov Jul 3, 2019
548e94f
test: show relationships w/o included error (issue #352)
Jul 19, 2019
3939323
fix: resolve issue #352
Jul 19, 2019
e2784d9
Merge pull request #353 from dugsmith/fix_included_data
gaorlov Jul 23, 2019
1458441
version bump: 1.14.1
gaorlov Jul 23, 2019
f402577
adding gemfile for rails 5.2.3; adding ruby 2.5.1, 2.6.0; trying to d…
gaorlov Jul 23, 2019
4a68b2d
removing incompatible ruby-rails versions from travis
gaorlov Jul 23, 2019
b27006c
removing incompatible ruby-rails versions from travis
gaorlov Jul 23, 2019
d440806
Merge pull request #355 from gaorlov/travis-updates
gaorlov Jul 23, 2019
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ Gemfile.lock
*.gemfile.lock

/coverage

# IntellJ/RubyMine
*.iml
.idea/

# asdf config
.tool-versions
26 changes: 25 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ rvm:
- 2.2.6
- 2.3.3
- 2.4.1
- 2.5.1
- 2.6.0
- ruby-head
env:
global:
- CODECLIMATE_REPO_TOKEN=396d4263adb6febf1e6e9b0c0e176fbde35e1a116a3c1ecf8dd4f9384e41979b
Expand All @@ -12,6 +15,7 @@ gemfile:
- gemfiles/4.1.gemfile
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
- gemfiles/5.2.3.gemfile
matrix:
fast_finish: true
exclude:
Expand All @@ -23,7 +27,27 @@ matrix:
gemfile: gemfiles/4.1.gemfile
- rvm: 2.4.1
gemfile: gemfiles/4.2.gemfile
- rvm: 2.5.1
gemfile: gemfiles/3.2.gemfile
- rvm: 2.5.1
gemfile: gemfiles/4.0.gemfile
- rvm: 2.5.1
gemfile: gemfiles/4.1.gemfile
- rvm: 2.5.1
gemfile: gemfiles/4.2.gemfile
- rvm: 2.6.0
gemfile: gemfiles/4.0.gemfile
- rvm: 2.6.0
gemfile: gemfiles/4.1.gemfile
- rvm: 2.6.0
gemfile: gemfiles/4.2.gemfile
- rvm: ruby-head
gemfile: gemfiles/4.0.gemfile
- rvm: ruby-head
gemfile: gemfiles/4.1.gemfile
- rvm: ruby-head
gemfile: gemfiles/4.2.gemfile
# We need to install latest version of bundler, because one in travis
# image is too old to recognize platform => :mri_22 in Gemfile.
before_install:
- gem install bundler
- gem install bundler || gem install bundler -v 1.17.3
95 changes: 95 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,101 @@

## Unreleased

## 1.14.1

- [#353](https://github.com/JsonApiClient/json_api_client/pull/353) - fix to support deserializing resources with relationships without those related resources being included in the response (issue [#352](https://github.com/JsonApiClient/json_api_client/issues/352)).

## 1.14.0

- [#338](https://github.com/JsonApiClient/json_api_client/pull/338) - implement hash and eql? for builder class
- [#351](https://github.com/JsonApiClient/json_api_client/pull/351) - Remove rudimental `last_result_set` relationship from serializer

## 1.13.0

- [#348](https://github.com/JsonApiClient/json_api_client/pull/348) - add NestedParamPaginator to address inconsistency in handling of pagination query string params (issue [#347](https://github.com/JsonApiClient/json_api_client/issues/347)).

## 1.12.2

- [#350](https://github.com/JsonApiClient/json_api_client/pull/350) - fix resource including with blank `relationships` response data

## 1.12.1

- [#349](https://github.com/JsonApiClient/json_api_client/pull/349) - fix resource including for STI objects

## 1.12.0

- [#345](https://github.com/JsonApiClient/json_api_client/pull/345) - track the real HTTP reason of ApiErrors

## 1.11.0

- [#344](https://github.com/JsonApiClient/json_api_client/pull/344) - introduce safe singular resource fetching with `raise_on_blank_find_param` resource setting

## 1.10.0

- [#335](https://github.com/JsonApiClient/json_api_client/pull/335) - access to assigned relationship

## 1.9.0

- [#328](https://github.com/JsonApiClient/json_api_client/pull/328) - allow custom type for models

- [#326](https://github.com/JsonApiClient/json_api_client/pull/326) - correct changes after initialize resource
* remove type from changes on initialize
* ensure that query builder doesn't propagate query values to resource attributes via #build method

- [#324](https://github.com/JsonApiClient/json_api_client/pull/324) - add possibility to override status handling
* add status_handlers to JsonApiClient::Resource.connection_options

- [#330](https://github.com/JsonApiClient/json_api_client/pull/330) - deletion use overridden primary key

## 1.8.0

- [#316](https://github.com/JsonApiClient/json_api_client/pull/316) - Allow custom error messages

- [#305](https://github.com/JsonApiClient/json_api_client/pull/305) - optional search relationship data in result set

## 1.7.0

- [#320](https://github.com/JsonApiClient/json_api_client/pull/320) - fix passing relationships on create
* fix relationships passing to `new` and `create` methods
* fix false positive tests on create
* refactor tests on create/update to prevent false same positive tests in future

- [#315](https://github.com/JsonApiClient/json_api_client/pull/315) - add shallow_path feature to belongs_to
* add `shallow_path` options to belongs_to to use model w/ and w/o nesting in parent resource

## v1.6.4
- [#314](https://github.com/JsonApiClient/json_api_client/pull/314) - Mimic ActiveRecord behavior when destroying a resource:
* Add `destroyed?` method
* Do not clear resource attributes
* Return `false` on `persisted?` after being destroyed
* Return `false` on `new_record?` after being destroyed

## v1.6.3

- [#312](https://githup.com/JsonApiClient/json_api_client/pull/312) - Don't raise on `422`

## v1.6.2

- [#311](https://githup.com/JsonApiClient/json_api_client/pull/311) - Raise JsonApiClient::Errors::ClientError for unhandled 4xx responses

## v1.6.1

- [#297](https://githup.com/JsonApiClient/json_api_client/pull/297) - Fix test_helper
- [#298](https://githup.com/JsonApiClient/json_api_client/pull/298) - README update: arguments for custom connections run method
- [#306](https://githup.com/JsonApiClient/json_api_client/pull/306) - README update: pagination override examples
- [#307](https://githup.com/JsonApiClient/json_api_client/pull/307) - Symbolize params keys on model initialize
- [#304](https://githup.com/JsonApiClient/json_api_client/pull/304) - Optional add default to changes
- [#300](https://githup.com/JsonApiClient/json_api_client/pull/300) - Define methods for properties and associations getter/setter

## v1.6.0

- [#281](https://github.com/JsonApiClient/json_api_client/pull/281) - Optimize dynamic attribute deref
- [#280](https://github.com/JsonApiClient/json_api_client/pull/280) - Fix custom headers inheritance
- [#287](https://github.com/JsonApiClient/json_api_client/pull/287) - Allow pagination params to be `nil`
- [#284](https://github.com/JsonApiClient/json_api_client/pull/284) - Fix filter to not filter out `[]` values
- [#285](https://github.com/JsonApiClient/json_api_client/pull/285) - Add include params for create/update
- [#293](https://github.com/JsonApiClient/json_api_client/pull/293) - Fix side-effects in scopes

## v1.5.3

- [#266](https://github.com/chingor13/json_api_client/pull/266) - Fix default attributes being overridden
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ gem 'addressable', '~> 2.2'
gem "codeclimate-test-reporter", group: :test, require: nil

group :development, :test do
gem 'byebug', platforms: [:mri_20, :mri_21, :mri_22]
gem 'byebug', '~> 10.0', platforms: [:mri_20, :mri_21, :mri_22]
end
Loading