Skip to content
This repository has been archived by the owner on May 14, 2023. It is now read-only.

Diffbot breaks when used with Hashie versions >= 3.0.0 #4

Closed
saihgal opened this issue Jan 10, 2015 · 3 comments
Closed

Diffbot breaks when used with Hashie versions >= 3.0.0 #4

saihgal opened this issue Jan 10, 2015 · 3 comments

Comments

@saihgal
Copy link

saihgal commented Jan 10, 2015

    Diffbot::Article.fetch(@url,diffbot_token)

Above code works fine with Hashie versions till 2.1.2. However refuses to play with Hashie version 3.0.0 onwards instead raising following error -

/usr/local/rvm/gems/ruby-2.1.2@global/gems/hashie-3.0.0/lib/hashie/trash.rb:80:in `property_exists?': The property 'tags' is not defined for this Trash. (NoMethodError)
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/hashie-3.0.0/lib/hashie/trash.rb:49:in `[]='
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/diffbot-0.1.7/lib/diffbot/coercible_hash.rb:58:in `[]='
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/hashie-3.0.0/lib/hashie/dash.rb:149:in `block in initialize_attributes'
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/hashie-3.0.0/lib/hashie/dash.rb:148:in `each_pair'
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/hashie-3.0.0/lib/hashie/dash.rb:148:in `initialize_attributes'
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/hashie-3.0.0/lib/hashie/trash.rb:96:in `initialize_attributes'
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/hashie-3.0.0/lib/hashie/dash.rb:93:in `initialize'
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/diffbot-0.1.7/lib/diffbot/article.rb:41:in `new'
    from /usr/local/rvm/gems/ruby-2.1.2@global/gems/diffbot-0.1.7/lib/diffbot/article.rb:41:in `fetch'
    from listbot.rb:9:in `initialize'
@greshny
Copy link
Collaborator

greshny commented Mar 16, 2015

Hi @Nonocut

it's fixed a659780.

Thanks

@greshny greshny closed this as completed Mar 16, 2015
@mihaibb
Copy link

mihaibb commented Mar 17, 2015

Hi @greshny

Bundler could not find compatible versions for gem "nokogiri":
  In Gemfile:
    diffbot (>= 0) ruby depends on
      nokogiri (~> 1.5.0) ruby

    rails (= 4.2.0) ruby depends on
      actionpack (= 4.2.0) ruby depends on
        rails-dom-testing (>= 1.0.5, ~> 1.0) ruby depends on
          nokogiri (1.6.0)

Any ideas how to fix this ?

@greshny greshny reopened this Mar 17, 2015
@mihaibb
Copy link

mihaibb commented Apr 2, 2015

Bundler could not find compatible versions for gem "hashie":
  In Gemfile:
    diffbot (>= 0) ruby depends on
      hashie (= 3.3.2) ruby

    hashie (3.4.0)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants