ocean-rails 5.0.5 → 5.0.6

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: ca4e23471fde5ba07b9b4b146a085ca72b341d01
4
- data.tar.gz: 9e704d3e8cd476b2c36c14b4394c2494df7fcb73
3
+ metadata.gz: 633d849fcd89d5bd8f0e2c51d739f6f6f590643c
4
+ data.tar.gz: e79c2a2d9d087d751a6050014d321437cafd34d3
5
5
  SHA512:
6
- metadata.gz: 163837a7f29c54cd0b729c6a5f6f659ae6864d9ba4a72c1277e92bfb4ed0c81fe2579ff556e963e7595015c5d04f9217cf514eac15e1bc2ab1b8c470ea82e90f
7
- data.tar.gz: f9331257c572927c2438cf212997426aef3b136094c38845a67c1d782d993c54d5d5a34ef559ed05bb9688ce015619fb97d93d2c519206c57b138f34a7eb61ff
6
+ metadata.gz: 867315bc9be47ade13ec22902d460b3cc7f77b0412eeefe295d1b3186a01a3a294d91daec7c9aeae858a97d86604f7f79de6206a8d45200570ed9e6ccc7d0779
7
+ data.tar.gz: 0354794fb9528f46b3af31fa485003bef783335874f29848de1aed2d437c5c67632ce23537fcae24813f4e5de08684076a3d508a13e92e83bae24b721b6b9e41
@@ -5,7 +5,7 @@
5
5
  # resource declaration to parse UUIDs rather than integers. For instance:
6
6
  #
7
7
  # resources :thingies, except: [:new, :edit],
8
- # constraints: {id: /([0-9a-f]+-){4}[0-9a-f]+/}
8
+ # constraints: {id: UUID_REGEX}
9
9
  #
10
10
 
11
11
 
data/lib/ocean-rails.rb CHANGED
@@ -16,6 +16,8 @@ require "ocean/api_remote_resource"
16
16
  INVALIDATE_MEMBER_DEFAULT = ["($|/|\\?)"]
17
17
  INVALIDATE_COLLECTION_DEFAULT = ["($|\\?)"]
18
18
 
19
+ UUID_REGEX = /([0-9a-f]+-){4}[0-9a-f]+/
20
+
19
21
 
20
22
  module Ocean
21
23
 
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "5.0.5"
2
+ VERSION = "5.0.6"
3
3
  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: 5.0.5
4
+ version: 5.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-25 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus