api-response-cache 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c605bf04a7737bb11a56b5bd85afeb6cd43a1a9745ca1b641fbb23aad035ba8
4
- data.tar.gz: dcf45996e187c9f3df621582505539317e20289c332c0c313cec9816ddc59690
3
+ metadata.gz: 148d7d9bfff313cdedbef1f0526d3d6ee64f537ce07e867255b2d705d370de79
4
+ data.tar.gz: ba3b9d987f6c7456965296480b51c0a76457432d7d1b72ad199408c79f2c3eda
5
5
  SHA512:
6
- metadata.gz: e26d5d6e77202c032c1a8e1587d4cdba81946eff416c4c2dbea853f33fbfc905a9253a289aab57b0cfaa7731e12b61682a819dd631431c602fcf99562769be0b
7
- data.tar.gz: 47e6c6540aab37a23bb427f11f1e47ddb91a9fa2cb0f5b2332e979eda9f059374479e3937f4541ff3e7f8e5a9eccf3ba1cdb00b2d4ac8e52c861c8fb1e9b1fba
6
+ metadata.gz: 6f89a6ba882a02df2e768e935705652a87f494b3e6e85c9207cbbcf213d3aee3456d5ae5963890e1bc8dba3b8662afbfeb1acc467765eb862b3cce2de7eb41e0
7
+ data.tar.gz: 207ee649ce350aa6eada137d722cd2467b440a8f9c8e22ac7f005a2c071fecfae2decbbd928397a31a74a6ef5099f0a0e7281f2709c118450ff50a377be1b496
data/README.md CHANGED
@@ -1 +1,5 @@
1
- # TO DO : Write Read Me
1
+ # TO DO
2
+ - Write summary and description
3
+ - Write read me
4
+ - Expire
5
+ - Request Mothods to cache
@@ -9,7 +9,7 @@ module ApiResponseCache
9
9
 
10
10
  def around(controller)
11
11
  init(controller)
12
- if @response_cache.present?
12
+ if @request.get? && @response_cache.present? &&
13
13
  log_info
14
14
  render_cached_response
15
15
  else
@@ -1,3 +1,3 @@
1
1
  module ApiResponseCache
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-response-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uysim Ty