You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Old version of faraday-http-cache causes gemfile conflicts #61
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?
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.
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.
Activity
jkodumal commentedon Mar 29, 2016
It should be possible for us to bump our dependency to a newer version of
faraday-http-cache-- I'll test out the change.sgringwe commentedon Jun 8, 2016
@jkodumal is this something you were able to test out?
jkodumal commentedon Jun 9, 2016
Sorry @sgringwe -- this slipped through the cracks. I'll take a crack at this today.
mikekr1 commentedon Jun 13, 2016
Hi @jkodumal, I'm running into the same issues at the minute. Have you had a chance to have a look?
mikekr1 commentedon Jun 13, 2016
Forked the gem, bumped faraday-http-cache to 1.3.0, ran your specs, got 2 failures in
spec/ldclient_spec.rbalong these lines:Looks like the interface for faraday-http-cache changed since 0.4, so it's not a simple swap out.
mikekr1 commentedon Jun 13, 2016
So your
ThreadSafeMemoryStoreclass 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.mikekr1 commentedon Jun 13, 2016
Hi @jkodumal, I've created a pull request. It's not much, but makes the gem work for us. Let me know your thoughts.
jkodumal commentedon Jun 13, 2016
Released in version 0.8.0