json_api_resource_connections 1.0.2.wat.2 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_api_resource_connections.rb +0 -22
- data/lib/json_api_resource_connections/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 016d3f19007530310337e53c9ec83dff9d6d53de
|
4
|
+
data.tar.gz: 35d0c41893472e1dbee0c5cc26b4c4c5bb0ef78c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 722e958fc3e5db56b7b13ecccaea89c9a87b64fa5422cae4fb3de42f642c5dec239be72c8c67dcddd3ac6ac7bd621f0af32675351f026bb30ad035413f9ccf67
|
7
|
+
data.tar.gz: 7ae722c9c05fbae5f5e5b8314fda0b8f6c1a317ef9e81c0a5ba56a68eeda504127a40d3db6123fb38a29eabb4154fd7bbae690404d7731513dc38cb78e7cd7be
|
@@ -53,28 +53,6 @@ module JsonApiResourceConnections
|
|
53
53
|
# now that we know where to connect to, let's do it
|
54
54
|
add_connection JsonApiResource::Connections::CachedCircuitbreakerServerConnection, client: self.client_class
|
55
55
|
end
|
56
|
-
|
57
|
-
def cacheless_find( id )
|
58
|
-
direct_execute :find, id
|
59
|
-
end
|
60
|
-
|
61
|
-
def cacheless_where( opts = {} )
|
62
|
-
direct_execute :where, opts
|
63
|
-
end
|
64
|
-
|
65
|
-
private
|
66
|
-
|
67
|
-
# skips looking in cache first and goes to the server directly
|
68
|
-
def direct_execute( action, *args )
|
69
|
-
results = cacheless_connection.execute(action, *args)
|
70
|
-
JsonApiResource::Handlers::FindHandler.new(results).result
|
71
|
-
end
|
72
|
-
|
73
|
-
def cacheless_connection
|
74
|
-
@cacheless_connection ||=_connections.find do |c|
|
75
|
-
c.is_a? JsonApiResource::Connections::CachedCircuitbreakerServerConnection
|
76
|
-
end
|
77
|
-
end
|
78
56
|
end
|
79
57
|
end
|
80
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_api_resource_connections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.2
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -120,9 +120,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - "
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
128
|
rubygems_version: 2.5.1
|
@@ -130,4 +130,3 @@ signing_key:
|
|
130
130
|
specification_version: 4
|
131
131
|
summary: circuit breaker and cache fallback connections for json api resource v2
|
132
132
|
test_files: []
|
133
|
-
has_rdoc:
|