card-mod-monkey 0.11.3 → 0.11.7

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: '08e5f46a03f6ceb9def2b883a4271136fc45805893e2a8ac2d6db15bfd79684c'
4
- data.tar.gz: 6b64bc5af361cf8eac19ad08a1be44596420e3de76daf8c1cc1faf41eb18ee6d
3
+ metadata.gz: 37ba3a6d432f1a32766625546c6745da2886ffee4a772b990433ca66ade6f30c
4
+ data.tar.gz: 27d46f2594ecf13531d480fccf22cdd38514fa81ecc0af272a362e455984c55c
5
5
  SHA512:
6
- metadata.gz: 94691b67a8da3b804666fe0cb68f03c75bf38a7e79f51178fbe4d0a099c0869abba0cf7e454880b95f483368a0790ffa0c0268a35365f9d9d383136a838949a4
7
- data.tar.gz: b82fbe198b9d27a5fa9d366f5bb8e6fdb3fa6d248921645088b5c2598a5392ae44e684e8c4382df7b31d65480ce8c69cb0c98d41e58bcd956f97d72723465706
6
+ metadata.gz: 98c804dc4fa85200264b23ad9a0e4c7b31271685744d3b114cb0daca9abf7dc8bfb982f210d7c579709ac3b3e22b90ce5e28ce2acc0ffb7ead3b53c04cd23254
7
+ data.tar.gz: 6daadf6c5d3f72c089016ce14f506226bbc05ddae2eaf42c1a3b947aff9dd4da61f580977fa5d92a2647d5f34a42ac0704697bce8ed1999f62a8b608491c86ac
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("../pry/intro.txt", __FILE__)
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 + "v ", depth
43
+ print_events event[:before], "#{space}v ", depth
44
44
  elsif event[:around]
45
- print_events event[:around], space + "vv ", depth
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 + "^ ", depth
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" => set_patterns_breadcrumb(subject))],
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.3
4
+ version: 0.11.7
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-08-01 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.3
21
+ version: 1.101.7
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.7
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.88'
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.88'
70
+ version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: better_errors
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.1.4
181
+ rubygems_version: 3.1.6
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: dev support for mod developers (monkeys)