card-mod-monkey 0.11.1 → 0.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cardio/pry.rb +2 -1
- data/set/all/event_viz.rb +3 -3
- data/set/all/view_viz.rb +2 -0
- data/set/right/debug.rb +2 -3
- metadata +15 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6a08b9b5ac1307134e1a7d61f6fe4330353fbb10ff48e78c417dde743f0fc8
|
4
|
+
data.tar.gz: 343d919c513e092763c8208397d5a83c51ef7e7972469941070f49d635f3171a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60f36f3094b52f5f44059b4fe9d353adc55e27099fd233d5d87db98e3bcde667b186fc53c3ea56a249dab518f8d9e4395ee10420eb896d0313293e0a999665fc
|
7
|
+
data.tar.gz: fb675a2bcd93759dcd5a8ae832f2a52196e5cec14e12668913b9b9cb99785e40d4ddff537f656e03a4fb31f3a62bab1a92e0d05f8e7df6eaab5ef4291ae34961
|
data/lib/cardio/pry.rb
CHANGED
@@ -59,6 +59,7 @@ module Cardio
|
|
59
59
|
def puts *args
|
60
60
|
text = args.first
|
61
61
|
return super unless args.size == 1 && htmlish?(text)
|
62
|
+
|
62
63
|
html = Nokogiri::XML text, &:noblanks
|
63
64
|
puts_html(html, text) { |*super_args| super(*super_args) }
|
64
65
|
end
|
@@ -105,7 +106,7 @@ module Cardio
|
|
105
106
|
@_user ||= Card.fetch "Joe User"
|
106
107
|
end
|
107
108
|
|
108
|
-
intro = File.read File.expand_path("
|
109
|
+
intro = File.read File.expand_path("pry/intro.txt", __dir__)
|
109
110
|
puts intro
|
110
111
|
end
|
111
112
|
end
|
data/set/all/event_viz.rb
CHANGED
@@ -40,9 +40,9 @@ end
|
|
40
40
|
|
41
41
|
def print_event_pre event, depth, space
|
42
42
|
if event[:before]
|
43
|
-
print_events event[:before], space
|
43
|
+
print_events event[:before], "#{space}v ", depth
|
44
44
|
elsif event[:around]
|
45
|
-
print_events event[:around], space
|
45
|
+
print_events event[:around], "#{space}vv ", depth
|
46
46
|
else
|
47
47
|
""
|
48
48
|
end
|
@@ -55,7 +55,7 @@ end
|
|
55
55
|
def print_event_post event, depth, space
|
56
56
|
return "" unless event[:after]
|
57
57
|
|
58
|
-
print_events event[:after], space
|
58
|
+
print_events event[:after], "#{space}^ ", depth
|
59
59
|
end
|
60
60
|
|
61
61
|
def events_branch hash, kind, filter
|
data/set/all/view_viz.rb
CHANGED
@@ -5,9 +5,11 @@ format :html do
|
|
5
5
|
views =
|
6
6
|
format_class.instance_methods.map do |method|
|
7
7
|
next unless method.to_s =~ /^_view_(.+)$/
|
8
|
+
|
8
9
|
Regexp.last_match(1)
|
9
10
|
end.compact
|
10
11
|
next unless views.present?
|
12
|
+
|
11
13
|
format_class.name =~ /^Card(::Set)?::(.+?)$/ #::(\w+Format)
|
12
14
|
hash[Regexp.last_match(2)] = views
|
13
15
|
end
|
data/set/right/debug.rb
CHANGED
@@ -12,7 +12,7 @@ format :html do
|
|
12
12
|
def core_section_config subject
|
13
13
|
[["Sets", tabs("set modules" => set_modules_accordion(subject),
|
14
14
|
"all modules" => singleton_modules_list(subject),
|
15
|
-
"patterns"
|
15
|
+
"patterns" => set_patterns_breadcrumb(subject))],
|
16
16
|
["Views", tabs("by format" => subformat(subject)._render_views_by_format,
|
17
17
|
"by name" => subformat(subject)._render_views_by_name)],
|
18
18
|
["Events", tabs(create: "<pre>#{subject.events(:create)}</pre>",
|
@@ -21,7 +21,6 @@ format :html do
|
|
21
21
|
["Cache/DB Comparison", cache_comparison_table(subject)]]
|
22
22
|
end
|
23
23
|
|
24
|
-
# rubocop:disable AccessorMethodName
|
25
24
|
def set_modules_accordion subject
|
26
25
|
sets = subject.set_modules.each_with_object({}) do |sm, hash|
|
27
26
|
ans = sm.ancestors
|
@@ -35,7 +34,6 @@ format :html do
|
|
35
34
|
links = subject.patterns.reverse.map { |pattern| link_to_card pattern.to_s }
|
36
35
|
breadcrumb links
|
37
36
|
end
|
38
|
-
# rubocop:enable AccessorMethodName
|
39
37
|
|
40
38
|
def singleton_modules_list subject
|
41
39
|
all_mods = subject.singleton_class.ancestors.map(&:to_s)
|
@@ -47,6 +45,7 @@ format :html do
|
|
47
45
|
cache_card = Card.fetch(subject.key)
|
48
46
|
db_card = Card.find_by_key(subject.key)
|
49
47
|
return unless cache_card && db_card
|
48
|
+
|
50
49
|
table(
|
51
50
|
%i[name updated_at updater_id content inspect].map do |field|
|
52
51
|
[field.to_s,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-monkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.6
|
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-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.101.
|
21
|
+
version: 1.101.6
|
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.6
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: colorize
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,16 +58,16 @@ dependencies:
|
|
58
58
|
name: rubocop
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0
|
63
|
+
version: '0'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '0
|
70
|
+
version: '0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: better_errors
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,10 +153,15 @@ files:
|
|
153
153
|
- set/all/event_viz.rb
|
154
154
|
- set/all/view_viz.rb
|
155
155
|
- set/right/debug.rb
|
156
|
-
homepage:
|
156
|
+
homepage: https://decko.org
|
157
157
|
licenses:
|
158
158
|
- GPL-3.0
|
159
159
|
metadata:
|
160
|
+
source_code_uri: https://github.com/decko-commons/decko
|
161
|
+
homepage_uri: https://decko.org
|
162
|
+
bug_tracker_uri: https://github.com/decko-commons/decko/issues
|
163
|
+
wiki_uri: https://decko.org
|
164
|
+
documentation_url: http://docs.decko.org/
|
160
165
|
card-mod: monkey
|
161
166
|
post_install_message:
|
162
167
|
rdoc_options: []
|
@@ -173,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
178
|
- !ruby/object:Gem::Version
|
174
179
|
version: '0'
|
175
180
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
181
|
+
rubygems_version: 3.1.4
|
177
182
|
signing_key:
|
178
183
|
specification_version: 4
|
179
184
|
summary: dev support for mod developers (monkeys)
|