adelevie / parse-ruby-client

A simple Ruby client for the parse.com REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse Retirement

dcdspace opened this issue · comments

Will this gem continue to work with the announcement of the retirement of Parse and its migration to the new Parse Server?

I do not know for now honestly. It depends on how compatible the migration plan they have will be with the current Parse API. Maybe all it takes is to allow the user to customize the Parse API endpoint and use its own server, maybe not. As of today also Push is not supported.

http://blog.parse.com/announcements/introducing-parse-server-and-the-database-migration-tool/

Yeah, it depends on what the stable state of the new parse server's development looks like. If it's the soft of things we could design a stable gem against, then we can do a major version release and go from there. Time will tell!

I've been able to migrate to my own parse server.
Just add these lines to your environment files

    Parse::Protocol.instance_eval {remove_const :HOST} if defined?(Parse::Protocol::HOST)
    Parse::Protocol.const_set(:HOST, 'hosted-parse-server.com')

@jameslin101 you should be able to pass "host" to Parse.create and provide your hostname, try like this:

client = Parse.create host: 'hosted-parse-server.com'

I tried doing that @jameslin101 but it isn't working.

The issue is that the version is still pointing to the /1/ that was in the original Parse, but it is now custom. Is there an easy way to change the version number?

@dcdspace there's a failing PR about that #202 - still have to take a look

Try following lines, the idea is to replace constant set in Protocol. You need to do it for any constant that has VERSION preset. My parseMount variable has the customized parse mount location.

Parse::Protocol.instance_eval {remove_const :VERSION} if defined?(Parse::Protocol::VERSION)
Parse::Protocol.const_set(:VERSION, "#{parseMount}")

Parse::Protocol.instance_eval {remove_const :USER_LOGIN_URI} if defined?(Parse::Protocol::USER_LOGIN_URI)
Parse::Protocol.const_set(:USER_LOGIN_URI, "/#{parseMount}/login")

@dcdspace @taijizhu it should be fixed by d6e29fa

thanks

Sent from my iPhone

On Mar 9, 2016, at 2:36 AM, rhymes notifications@github.com wrote:

@dcdspace @taijizhu it should be fixed by d6e29fa


Reply to this email directly or view it on GitHub.