GithubHelp home page GithubHelp logo

familysearch-rb's People

Contributors

bronislav avatar jimmyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

familysearch-rb's Issues

NoMethodError when getting current user person (as in usage example)

Hi,

I am getting the following error while attempting to get a person resource. This is a very basic usage example, and I believe the FamilySearch API must have changed since the last update of this gem, because I am sure this worked before.

client.get(client.discover!['links']['current-user-person']['href'])
NoMethodError - undefined method `new' for [FamilySearch::Gedcomx::Identifier]:Array:
  familysearch-gedcomx (1.0.1) lib/familysearch/gedcomx/super_coercion.rb:66:in `[]='
  hashie (2.0.5) lib/hashie/dash.rb:141:in `block in initialize_attributes'
  hashie (2.0.5) lib/hashie/dash.rb:140:in `initialize_attributes'
  hashie (2.0.5) lib/hashie/dash.rb:100:in `initialize'
  familysearch-gedcomx (1.0.1) lib/familysearch/gedcomx/super_coercion.rb:49:in `block in []='
  familysearch-gedcomx (1.0.1) lib/familysearch/gedcomx/super_coercion.rb:45:in `[]='
  hashie (2.0.5) lib/hashie/dash.rb:141:in `block in initialize_attributes'
  hashie (2.0.5) lib/hashie/dash.rb:140:in `initialize_attributes'
  hashie (2.0.5) lib/hashie/dash.rb:100:in `initialize'
  familysearch-gedcomx (1.0.1) lib/familysearch/gedcomx/data_model.rb:614:in `initialize'
  familysearch (0.4.1) lib/familysearch/middleware/response/familysearch_gedcomx.rb:20:in `parse'
  familysearch (0.4.1) lib/familysearch/middleware/response/familysearch_gedcomx.rb:10:in `on_complete'
  faraday (0.8.8) lib/faraday/response.rb:9:in `block in call'
  faraday (0.8.8) lib/faraday/response.rb:63:in `on_complete'
  faraday (0.8.8) lib/faraday/response.rb:8:in `call'
  faraday (0.8.8) lib/faraday/response.rb:8:in `call'
  faraday (0.8.8) lib/faraday/connection.rb:253:in `run_request'
  faraday (0.8.8) lib/faraday/connection.rb:106:in `get'
...

Any idea what the problem could be? Is this project still active? (I see the last commit was 8 months ago)

Use Addressable gem for URI Templates

I just discovered that the FamilySearch URI Templates conform to RFC 6570, which means I could be using another library for parsing and expanding the URI Templates provided by the Discovery Resource.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.