Skip to content

Old version of faraday-http-cache causes gemfile conflicts #61

Closed

Description

@sgringwe

Currently this gem uses 0.4 of faraday-http-cache. This conflicts with 'metainspector' which uses ~> 1.2. Is the old version required? How can I work around this to install launchdarkly?

Activity

  1. jkodumal commented on Mar 29, 2016

    @jkodumal
    Contributor

    It should be possible for us to bump our dependency to a newer version of faraday-http-cache-- I'll test out the change.

  2. sgringwe commented on Jun 8, 2016

    @sgringwe
    Author

    @jkodumal is this something you were able to test out?

  3. jkodumal commented on Jun 9, 2016

    @jkodumal
    Contributor

    Sorry @sgringwe -- this slipped through the cracks. I'll take a crack at this today.

  4. mikekr1 commented on Jun 13, 2016

    @mikekr1
    Contributor

    Hi @jkodumal, I'm running into the same issues at the minute. Have you had a chance to have a look?

  5. mikekr1 commented on Jun 13, 2016

    @mikekr1
    Contributor

    Forked the gem, bumped faraday-http-cache to 1.3.0, ran your specs, got 2 failures in spec/ldclient_spec.rb along these lines:

    [LDClient] Unexpected exception in toggle?: #<ArgumentError: #<LaunchDarkly::ThreadSafeMemoryStore:0x00000003afd068 @cache=#<ThreadSafe::Cache:0x00000003afd040 @backend={}, @default_proc=nil>> is not a valid cache store as it does not responds to 'read', 'write' or 'delete'.> #<LaunchDarkly::ThreadSafeMemoryStore:0x00000003afd068 @cache=#<ThreadSafe::Cache:0x00000003afd040 @backend={}, @default_proc=nil>> is not a valid cache store as it does not responds to 'read', 'write' or 'delete'.
    

    Looks like the interface for faraday-http-cache changed since 0.4, so it's not a simple swap out.

  6. mikekr1 commented on Jun 13, 2016

    @mikekr1
    Contributor

    So your ThreadSafeMemoryStore class doesn't implement delete which is why this is failing. I've implemented it on our fork. Will see if it works without any further changes.

  7. mikekr1 commented on Jun 13, 2016

    @mikekr1
    Contributor

    Hi @jkodumal, I've created a pull request. It's not much, but makes the gem work for us. Let me know your thoughts.

  8. jkodumal commented on Jun 13, 2016

    @jkodumal
    Contributor

    Released in version 0.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions