hermes_api 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hermes_api/cache.rb +2 -7
- data/lib/hermes_api/configuration.rb +4 -0
- data/lib/hermes_api/resources/web_tracking.rb +2 -0
- data/lib/hermes_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87f92e8ae4fdbdc63d9e57027707610b8e46beb0017887e3653b30fb7100917e
|
4
|
+
data.tar.gz: 9943983c9eb55d666baf6941450a5c960df500af17a653bd4f4c652b949b581d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0424b7e0049fd9fba5c542b22007b6232e5188f11c7711d4fcdab8d8255957d7382a04a8a7e66cb8ed0ef226021971ae0ebd76f1808f125c204ec81f5939038
|
7
|
+
data.tar.gz: 8118f608d127c49d58c843136d6269553dcabfccff2e05fe703dbbbafd970dfe86f280321252d54a8b7f38f17ed0c4977604094c2134696cb6bdad9c26fec81f
|
data/Gemfile.lock
CHANGED
data/lib/hermes_api/cache.rb
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
module HermesAPI
|
2
2
|
mattr_accessor :cache
|
3
3
|
|
4
|
-
self.cache =
|
5
|
-
|
6
|
-
Rails.cache
|
7
|
-
else
|
8
|
-
ActiveSupport::Cache::MemoryStore.new
|
9
|
-
end
|
10
|
-
end
|
4
|
+
self.cache = ActiveSupport::Cache::MemoryStore.new
|
5
|
+
end
|
@@ -25,6 +25,10 @@ module HermesAPI
|
|
25
25
|
|
26
26
|
HermesAPI::JsonBase.site = config.env.to_s == "production" ? JSON_PRODUCTION_SITE : JSON_TESTING_SITE
|
27
27
|
HermesAPI::OAuth.site = config.env.to_s == "production" ? OAUTH_PRODUCTION_SITE : OAUTH_TESTING_SITE
|
28
|
+
|
29
|
+
if defined?(Rails) && Rails.respond_to?(:cache) && Rails.cache.is_a?(ActiveSupport::Cache::Store)
|
30
|
+
HermesAPI.cache = Rails.cache
|
31
|
+
end
|
28
32
|
end
|
29
33
|
|
30
34
|
def configure
|
data/lib/hermes_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hermes_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Chong
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|