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 +4 -4
- data/lib/card/layout.rb +5 -5
- data/lib/card/layout/unknown_layout.rb +4 -4
- data/set/all/overlay.rb +1 -2
- data/set/self/account_links.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ad213fb8bb10d22946344dda30fe69a2fc358d29d2f581362b801b46a442db1
|
4
|
+
data.tar.gz: b4645a27d2e91c3a7bfb166b0c92029a9532b7e774acc99a0927d62cdf925beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
+
ProcLayout
|
11
11
|
elsif card_layout? layout
|
12
|
-
|
12
|
+
CardLayout
|
13
13
|
elsif code_layout? layout
|
14
|
-
|
14
|
+
CodeLayout
|
15
15
|
else
|
16
|
-
|
16
|
+
UnknownLayout
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
def card_layout? name
|
21
|
-
Card.fetch_type_id(name).in? [
|
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,
|
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
|
-
|
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
data/set/self/account_links.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
56
|
+
version: 0.11.4
|
57
57
|
description: ''
|
58
58
|
email:
|
59
59
|
- info@decko.org
|