card-mod-layout 0.11.3 → 0.11.4

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: 62c0720a0b689dae88a4d60d91c1271db8611f0fd809bd654c91ebcc224e8e2f
4
- data.tar.gz: 9558cf4b99c0fdf4e965b4ee0e0cd624114de92900382d54450b35eaaa0280c2
3
+ metadata.gz: 3ad213fb8bb10d22946344dda30fe69a2fc358d29d2f581362b801b46a442db1
4
+ data.tar.gz: b4645a27d2e91c3a7bfb166b0c92029a9532b7e774acc99a0927d62cdf925beb
5
5
  SHA512:
6
- metadata.gz: adbd104ba339df7d90aea4e82391f24706e62178912586a2348d7d32f258a240c623cb54c7ffe808bd05a0f2dd97ce655ca3a42a9842743a11fd85710c398b94
7
- data.tar.gz: 4f28dc100ccb5246184bc0b19289031e3d36300e195304c4a3cc085c180e1c35892e00c652e0fde2bd6cda6ab3125851d9821e7bc8ce09d4be9fb3cb0cfdb462
6
+ metadata.gz: c200ef7955e314127e0a9877586cf14cb4e73db84a6d3084261afe70034748b1ec85ff612924446c4ce5e3dfb5425aeebd2e303e9c2a24439b6f4d490c6c2130
7
+ data.tar.gz: 91ea8260c7d1f61ab7d75be4e98f68e6055d0089be9a3ccf1d9fe44ba90185b2f66f35c169cee8aff47643aa38f2acef84305841fb73f593ba8d2ba3dc73688b
data/lib/card/layout.rb CHANGED
@@ -7,18 +7,18 @@ class Card
7
7
 
8
8
  def layout_class layout
9
9
  if layout.respond_to? :call
10
- Card::Layout::ProcLayout
10
+ ProcLayout
11
11
  elsif card_layout? layout
12
- Card::Layout::CardLayout
12
+ CardLayout
13
13
  elsif code_layout? layout
14
- Card::Layout::CodeLayout
14
+ CodeLayout
15
15
  else
16
- Card::Layout::UnknownLayout
16
+ UnknownLayout
17
17
  end
18
18
  end
19
19
 
20
20
  def card_layout? name
21
- Card.fetch_type_id(name).in? [Card::LayoutTypeID, Card::HtmlID, Card::BasicID]
21
+ Card.fetch_type_id(name).in? [LayoutTypeID, HtmlID, BasicID]
22
22
  rescue ArgumentError, Card::Error::CodenameNotFound => _e
23
23
  false
24
24
  end
@@ -1,18 +1,18 @@
1
1
  class Card
2
2
  class Layout
3
3
  class UnknownLayout < Layout
4
+ delegate :t, to: Cardio
5
+
4
6
  def render
5
7
  @format.output [header, text]
6
8
  end
7
9
 
8
10
  def header
9
- @format.content_tag :h1, @format.tr(:unknown_layout,
10
- scope: "card-mod-format", name: @layout)
11
+ @format.content_tag :h1, t(:layout_unknown_layout, name: @layout)
11
12
  end
12
13
 
13
14
  def text
14
- @format.tr(:available_layouts, scope: "card-mod-format",
15
- available_layouts: self.class.built_in_layouts)
15
+ t :layout_available_layouts, available_layouts: self.class.built_in_layouts
16
16
  end
17
17
  end
18
18
  end
data/set/all/overlay.rb CHANGED
@@ -59,8 +59,7 @@ format :html do
59
59
  end
60
60
 
61
61
  def overlay_delete_button
62
- opts = { no_success: true }.merge OVERLAY_CLOSE_OPTS
63
- delete_button opts
62
+ delete_button OVERLAY_CLOSE_OPTS.merge(success: {})
64
63
  end
65
64
 
66
65
  def overlay_save_and_close_button
@@ -80,7 +80,7 @@ format :html do
80
80
  end
81
81
 
82
82
  def account_link_text purpose
83
- voo.title || tr(purpose, scope: "card-mod-account")
83
+ voo.title || t("account_#{purpose}")
84
84
  end
85
85
 
86
86
  def nav_link_class type
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-01 00:00:00.000000000 Z
13
+ date: 2021-05-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.101.3
21
+ version: 1.101.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.101.3
28
+ version: 1.101.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-account
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.11.3
35
+ version: 0.11.4
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.11.3
42
+ version: 0.11.4
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-session
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.11.3
49
+ version: 0.11.4
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.11.3
56
+ version: 0.11.4
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org