card-mod-monkey 0.11.2 → 0.12.0

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: 5266f2ed21a270426a439245594ae74dac9d5a5fdf41938e97c2da9a1746452d
4
- data.tar.gz: 70190fc32c0d27392347d85061116c314b2846c9bc7d21130150dec73fc6e5b0
3
+ metadata.gz: 3e86165bccd19bf34fc749b1e001b785fe4fc1fcf09a0a5fb034c1610f304830
4
+ data.tar.gz: a1614e036b87aa16b74c79f1cf08675afcd6e9002adf57aef7769c7ddf75729d
5
5
  SHA512:
6
- metadata.gz: 90583b56ff609d890c73871f80530956204eee827b7bf02990e10ccec5d1fd70202f944d16dac1a65aa408d22944986a47443c9198a8ff142cf82a0234871e06
7
- data.tar.gz: 73ba48e63d94080edfac7ca28bb93e894ee54592c36bea5f7e7ddfb163145fcbff84de1bafe0ea00da1a13e33d754dacf434a8ae6795c6f37c61dc06a998c6d3
6
+ metadata.gz: 36703271e8ebc2daa7c5a91e4440ef297965d58fce4f81ad61d4676345c42f8ebbf00d5d2b1f20807c2b9690be0722c81b312dbb8f51e85a7df9923432c726bb
7
+ data.tar.gz: b088d4fd99acf598e866c34f1febb641a0c5c6225981da828bd47aa9790cb29510e78903dae69e64ba1ff2a43cb6e1c959475b0029052e317d25c8553fd4c966
@@ -1,5 +1,5 @@
1
1
  require "colorize"
2
- require "html2haml"
2
+ # require "html2haml"
3
3
  # require "sprockets"
4
4
  # require "phantomjs"
5
5
  require "better_errors"
data/lib/cardio/pry.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "coderay"
2
+
1
3
  module Cardio
2
4
  # These commands are available in the console when using binding.pry for breakpoints.
3
5
  module Pry
@@ -59,6 +61,7 @@ module Cardio
59
61
  def puts *args
60
62
  text = args.first
61
63
  return super unless args.size == 1 && htmlish?(text)
64
+
62
65
  html = Nokogiri::XML text, &:noblanks
63
66
  puts_html(html, text) { |*super_args| super(*super_args) }
64
67
  end
@@ -105,7 +108,7 @@ module Cardio
105
108
  @_user ||= Card.fetch "Joe User"
106
109
  end
107
110
 
108
- intro = File.read File.expand_path("../pry/intro.txt", __FILE__)
111
+ intro = File.read File.expand_path("pry/intro.txt", __dir__)
109
112
  puts intro
110
113
  end
111
114
  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.2
4
+ version: 0.12.0
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-03-15 00:00:00.000000000 Z
13
+ date: 2021-07-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,126 +18,126 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.101.2
21
+ version: 1.102.0
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.2
28
+ version: 1.102.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: colorize
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ">="
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '0'
35
+ version: '0.8'
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'
42
+ version: '0.8'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: html2haml
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '0'
49
+ version: '2.2'
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'
56
+ version: '2.2'
57
57
  - !ruby/object:Gem::Dependency
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: '1.17'
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: '1.17'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: better_errors
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '0'
77
+ version: '2.9'
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '0'
84
+ version: '2.9'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: pry-rails
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ">="
89
+ - - "~>"
90
90
  - !ruby/object:Gem::Version
91
- version: '0'
91
+ version: '0.3'
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">="
96
+ - - "~>"
97
97
  - !ruby/object:Gem::Version
98
- version: '0'
98
+ version: '0.3'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: pry-rescue
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ">="
103
+ - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: '0'
105
+ version: '1.5'
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">="
110
+ - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: '0'
112
+ version: '1.5'
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: pry-stack_explorer
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">="
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: '0'
119
+ version: '0.6'
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ">="
124
+ - - "~>"
125
125
  - !ruby/object:Gem::Version
126
- version: '0'
126
+ version: '0.6'
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: pry-byebug
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ">="
131
+ - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: '0'
133
+ version: '3.9'
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ">="
138
+ - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: '0'
140
+ version: '3.9'
141
141
  description: ''
142
142
  email:
143
143
  - info@decko.org
@@ -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.0.3
181
+ rubygems_version: 3.2.15
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: dev support for mod developers (monkeys)