tiagopog / jsonapi-utils

Build JSON API-compliant APIs on Rails with no (or less) learning curve.
MIT License
216 stars 80 forks source link

Update jsonapi-resources 0.9.12 #109

Open danieldocki opened 3 years ago

danieldocki commented 3 years ago

@tiagopog can update the dependency? jsonapi-resources ~> 0.9.12

solves the error in Rails 6.1

uninitialized constant ActionController::ForceSSL

https://github.com/cerebris/jsonapi-resources/blob/v0.9.12/lib/jsonapi/resource_controller_metal.rb#L8

gianniderosa commented 3 years ago

Having the same issue on my end

asadakbarml commented 3 years ago

@tiagopog Will you be updating this gem? It would be really helpful to know as we want to use it...

tiagopog commented 3 years ago

@asadakbarml Yes, I will. I have been going through a tough year here, but I still have plans to keep it updated.

tiagopog commented 3 years ago

@danieldocki It's updated in the master branch. I will first make sure that everything is working smoothly then I will release a new version of the gem.

danieldocki commented 3 years ago

Thanks for the great job, but I caught this error.

Internal Server Error: uninitialized constant JSONAPI::OperationResults Internal Server Error: uninitialized constant JSONAPI::OperationResults /Users/danieldocki/.gem/bundler/gems/jsonapi-utils-1c139822a10e/lib/jsonapi/utils/response/formatters.rb:103:in `build_response_document'
/Users/danieldocki/.gem/bundler/gems/jsonapi-utils-1c139822a10e/lib/jsonapi/utils/response/formatters.rb:39:in `jsonapi_format'
/Users/danieldocki/.gem/bundler/gems/jsonapi-utils-1c139822a10e/lib/jsonapi/utils/response/renders.rb:34:in `jsonapi_render'

I don't know if anyone else caught this error, but over the weekend I can look deeper into this error.

danieldocki commented 3 years ago

It seems that this PR https://github.com/cerebris/jsonapi-resources/pull/946, changed some things and removed JSONAPI::OperationResults.

danielgomezrico commented 2 years ago

This is pretty important to keep the library updated and allow everyone using it to update rails, how can we update this?

Also the main library now is at 0.10.2 with a lot of fixes :(

I see these:

But If I try to update I get this:

Bundler could not find compatible versions for gem "jsonapi-resources":
  In Gemfile:
    jsonapi-resources (= 0.10.5)

    jsonapi-utils (= 0.7.3) was resolved to 0.7.3, which depends on
      jsonapi-resources (= 0.9.11)
JohnnyHandy commented 2 years ago

Any news on this? I am having trouble using jsonapi-resources at version 0.10 and jsonapi-utils 0.4.2 because it is the only version that bundle allows to install

idanab-simplee commented 2 years ago

it seems that this gem is no longer maintained. anyone here had the chance to refactor the code to use another solution? For example, to use jsonapi-serializer ?

danielgomezrico commented 2 years ago

It is already updated, but it is not released on gem repository, check: