eac_rails_base0 0.18.0 → 0.19.0

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: db7d72469c74258a5817c75f23dfb83c3b61e658698111a3c208fc86ed24c392
4
- data.tar.gz: '08ce1e65a2a613ec5d335971b8b6fa2457a701fe375aa1178f4ddc43f1103ac5'
3
+ metadata.gz: 98df707f32e469861be6b188af441c4754fcdbe51764705596513eaa35ea3f3c
4
+ data.tar.gz: edb2625a7850b19ea5aaf500b397f12fb8151ba39cbad7c0f213bbb0ea91c355
5
5
  SHA512:
6
- metadata.gz: d2570a6984f7eecfc9878177d1f25d0d67ee7967b229b8e02bd377b76e72437f16f35f352797e91eed1ff2b4b688764459e7ea5d6bdbe55c8f1bcb1c5acb188e
7
- data.tar.gz: 79a66e4d4442d1104a2aae3849c2ed436a9d63e870bf696fc6411a75183354bc21c52e1cbe180de11160928f5f0a2add21409c6cd45c12d503c93c24834ec93c
6
+ metadata.gz: fbbd242ab0c9b265dd5c1d6c52706fe6111b46e882596ed692e8a960d6ab22335fab5782ba428a6dd9fcfab1a3e6d8830c97600e1af6e9fcfc0534774f9c8c20
7
+ data.tar.gz: f70b64340b17c236bbc2f516c2e1e2ddc7051145a4e3acf181d8dbc724f20575325678e2f9fafd583c80c6cdd49d4a6431adda07bd1bb56d173243a7c90c5b11
@@ -28,11 +28,11 @@ module EacRailsBase0
28
28
  end
29
29
 
30
30
  def short_show_link(object)
31
- value_or_sign(object, '') do |value|
32
- link_to '', object_path(value),
33
- class: 'show_link', target: '_blank',
34
- title: ::I18n.t('eac_rails_base0.links.show_object', label: value.to_s)
35
- end
31
+ short_detail_show_link(object, false)
32
+ end
33
+
34
+ def short_detail_link(object)
35
+ short_detail_show_link(object, true)
36
36
  end
37
37
 
38
38
  def object_path(object, action = nil)
@@ -40,5 +40,15 @@ module EacRailsBase0
40
40
  path = "#{action}_#{path}" if action.present?
41
41
  send(path, object)
42
42
  end
43
+
44
+ private
45
+
46
+ def short_detail_show_link(object, detail)
47
+ value_or_sign(object, detail ? 'detail' : nil) do |value|
48
+ link_to '', object_path(value),
49
+ class: 'show_link', target: '_blank',
50
+ title: ::I18n.t('eac_rails_base0.links.show_object', label: value.to_s)
51
+ end
52
+ end
43
53
  end
44
54
  end
@@ -12,8 +12,8 @@ end
12
12
 
13
13
  FactoryBot.define do
14
14
  factory :user, class: ::EacUsersSupport::User do
15
- email 'admin@example.com'
16
- password 'mysecret'
15
+ email { 'admin@example.com' }
16
+ password { 'mysecret' }
17
17
  end
18
18
  end
19
19
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsBase0
4
- VERSION = '0.18.0'
4
+ VERSION = '0.19.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_rails_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-05 00:00:00.000000000 Z
11
+ date: 2019-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.4'
26
+ version: '0.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bootstrap-sass
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -303,7 +303,7 @@ dependencies:
303
303
  version: '0.2'
304
304
  - - ">="
305
305
  - !ruby/object:Gem::Version
306
- version: 0.2.2
306
+ version: 0.2.3
307
307
  type: :runtime
308
308
  prerelease: false
309
309
  version_requirements: !ruby/object:Gem::Requirement
@@ -313,7 +313,7 @@ dependencies:
313
313
  version: '0.2'
314
314
  - - ">="
315
315
  - !ruby/object:Gem::Version
316
- version: 0.2.2
316
+ version: 0.2.3
317
317
  - !ruby/object:Gem::Dependency
318
318
  name: therubyracer
319
319
  requirement: !ruby/object:Gem::Requirement