ocean-rails 6.1.1 → 6.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
  SHA1:
3
- metadata.gz: 11099e235654c1b72d446c70032b598b8c75b5a5
4
- data.tar.gz: 6656cc737ac213ca7a86afe74501a692db715885
3
+ metadata.gz: 8eeee1f303981f8d6cf4e38c554934bcf39a9013
4
+ data.tar.gz: e7da13d4718a3ce9c09cfdb9a19e6b6ff7f9b0ed
5
5
  SHA512:
6
- metadata.gz: c5bf70ffe1bc1af33c9ac54a9d4b2f005f18549ed6e76709b0f5aafabf721d87166ed9241fc24c97b708fcced6e5833022f99a8bf0bc3dea25d2a68a4121d979
7
- data.tar.gz: 8caf83458d8fbe208c2826af2087ceb4f91dd1349c3fb790408fddeeca9705344ad5364f2497481412d1304b50add94cb763c2eaab85433dcac1502088f048a3
6
+ metadata.gz: bb0b17fc2549fc8eea5de2bc89e7fbdb8f704299c1bc27bc94ddc31f23bfc7519278d3d6fcdf5fbecad96d66a138e2aee9b0efd2d5034d8aab5f2b1b34705172
7
+ data.tar.gz: ae391fb1565c1cd18fce14f1e9f17fa6bd1d87521e4a1ba21905cee8dcbbba09446ebd7596a37fa5a50de67bdf8c72113cac8db35e0ea6a1b1e3c916148229ee
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "6.1.1"
2
+ VERSION = "6.1.2"
3
3
  end
@@ -12,7 +12,7 @@ class <%= controller_class_name %>Controller < ApplicationController
12
12
 
13
13
  # GET <%= route_url %>
14
14
  def index
15
- expires_in 0, 's-maxage' => 30.minutes
15
+ expires_in 0, 's-maxage' => DEFAULT_CACHE_TIME
16
16
  if stale?(collection_etag(<%= class_name %>))
17
17
  api_render <%= class_name %>.collection(params)
18
18
  end
@@ -21,7 +21,7 @@ class <%= controller_class_name %>Controller < ApplicationController
21
21
 
22
22
  # GET <%= route_url %>/1
23
23
  def show
24
- expires_in 0, 's-maxage' => 30.minutes
24
+ expires_in 0, 's-maxage' => DEFAULT_CACHE_TIME
25
25
  if stale?(@<%= singular_table_name %>)
26
26
  api_render @<%= singular_table_name %>
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1
4
+ version: 6.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-06 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus