card-mod-monkey 0.11.4 → 0.11.5
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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf08a404dd8d20b4322edbb742a7c180661bc3ca25fff2cc107ee8f4ddf07b3b
|
4
|
+
data.tar.gz: 6e96647c29e6b4f2d5308fc6bf1e3c7d2487d70cafb208fcc2a3eca675e9177c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a8587510083860d0f40fb2fb810e4e4b94bfa71c7fcad267ab9f2182f3455e0eba65de2ed62c7b06431b48d1b0cfdd824da0aa00ddd032726c51968bb7f9a63
|
7
|
+
data.tar.gz: 622fd587ca7756eb15a8b7ecef97fc05ac57e244eb67192142d98b3d7dff6b6694ac004141afdda96d3fe4d3f6aa6d123852bf965fe91f07faa80c0ad217c0d6
|
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.5
|
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-05-
|
13
|
+
date: 2021-05-10 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.5
|
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.5
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: colorize
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|