ocean-rails 1.18.7 → 1.18.8

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: dab442a00f1ed9883d5f2c8c6b70b95714fd5f27
4
- data.tar.gz: e0fe79ace58d02d351686a4c878ca0e6690ef947
3
+ metadata.gz: f723a5789804d1b39bb4397d61b7ec794102b403
4
+ data.tar.gz: b12da0d1f18218b212734998cd21b2274b7d55d5
5
5
  SHA512:
6
- metadata.gz: e00047b3b4d2b75057228fb32c6a0cd3d1d7b81eaa57d3b2c84a6dd2f20b52793eed7368f309a907c4f8b3f5cf40ef926b294fdb586795a47e5f6c4992d3189e
7
- data.tar.gz: f56cef940ae21aa37d84c9f135b2a6d24dbf67dabd6f460a6b6c746477c86d0eac732521cb3ae6fb3af545a33bd889993647c456a0639169e6358f84b583c2a7
6
+ metadata.gz: 142402aad49ef24e397d48ec62873ef430aea063da8a24802e13e6f41107607715c446ccb5f50ac450bcf23d85a51a3aa53858c8525a712321f99f40c5eada8e
7
+ data.tar.gz: d15c893f5f6b302c16ef1af3eeeeeab20c361ad5ee639849c39b2804678e77c46d99cc77463e1a5203580cbbcb6f651f112667940849af4e8b31c062db16a273
@@ -19,20 +19,16 @@ module ApplicationHelper
19
19
  # This is needed everywhere except inside the Auth service to render creator
20
20
  # and updater links correctly.
21
21
  #
22
- unless method_defined?(:api_user_url)
23
-
24
- def api_user_url(x)
25
- if x.blank?
26
- "#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/0"
27
- elsif x.is_a?(Integer)
28
- "#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/#{x}"
29
- elsif x.is_a?(String)
30
- x
31
- else
32
- raise "api_user_url takes an integer, a string, or nil"
33
- end
22
+ def api_user_url(x)
23
+ if x.blank?
24
+ "#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/0"
25
+ elsif x.is_a?(Integer)
26
+ "#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/#{x}"
27
+ elsif x.is_a?(String)
28
+ x
29
+ else
30
+ raise "api_user_url takes an integer, a string, or nil"
34
31
  end
35
-
36
- end
32
+ end
37
33
 
38
34
  end
@@ -1,4 +1,6 @@
1
1
  module Ocean
2
2
  class Engine < ::Rails::Engine
3
+ config.generators.integration_tool :rspec
4
+ config.generators.test_framework :rspec
3
5
  end
4
6
  end
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.18.7"
2
+ VERSION = "1.18.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.7
4
+ version: 1.18.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson