doing 2.1.42 → 2.1.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +53 -0
- data/Gemfile.lock +4 -4
- data/README.md +1 -1
- data/bin/commands/changes.rb +11 -1
- data/bin/commands/flag.rb +1 -1
- data/bin/commands/grep.rb +12 -2
- data/bin/commands/last.rb +2 -0
- data/bin/commands/on.rb +13 -1
- data/bin/commands/recent.rb +4 -1
- data/bin/commands/show.rb +8 -0
- data/bin/commands/since.rb +6 -2
- data/bin/commands/template.rb +14 -25
- data/bin/commands/today.rb +4 -1
- data/bin/commands/view.rb +36 -73
- data/bin/commands/views.rb +102 -5
- data/bin/commands/yesterday.rb +3 -1
- data/bin/doing +31 -4
- data/docs/doc/Array.html +12 -2
- data/docs/doc/BooleanTermParser/Clause.html +1 -1
- data/docs/doc/BooleanTermParser/Operator.html +1 -1
- data/docs/doc/BooleanTermParser/Query.html +1 -1
- data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
- data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
- data/docs/doc/BooleanTermParser.html +1 -1
- data/docs/doc/Doing/ArrayCleanup.html +316 -0
- data/docs/doc/Doing/ArrayNestedHash.html +1 -1
- data/docs/doc/Doing/ArrayTags.html +1 -1
- data/docs/doc/Doing/CSVExport.html +1 -1
- data/docs/doc/Doing/CalendarImport.html +1 -1
- data/docs/doc/Doing/Change.html +74 -3
- data/docs/doc/Doing/Changes.html +3 -3
- data/docs/doc/Doing/ChronifyArray.html +1 -1
- data/docs/doc/Doing/ChronifyNumeric.html +1 -1
- data/docs/doc/Doing/ChronifyString.html +1 -1
- data/docs/doc/Doing/Color.html +1 -1
- data/docs/doc/Doing/Completion/BashCompletions.html +1 -1
- data/docs/doc/Doing/Completion/FishCompletions.html +1 -1
- data/docs/doc/Doing/Completion/StringUtils.html +1 -1
- data/docs/doc/Doing/Completion/ZshCompletions.html +1 -1
- data/docs/doc/Doing/Completion.html +1 -1
- data/docs/doc/Doing/Configuration.html +80 -1
- data/docs/doc/Doing/DayOneRenderer.html +1 -1
- data/docs/doc/Doing/DayoneExport.html +1 -1
- data/docs/doc/Doing/DoingImport.html +1 -1
- data/docs/doc/Doing/Entry.html +109 -4
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
- data/docs/doc/Doing/Errors/HistoryLimitError.html +1 -1
- data/docs/doc/Doing/Errors/InvalidPlugin.html +1 -1
- data/docs/doc/Doing/Errors/MissingBackupFile.html +1 -1
- data/docs/doc/Doing/Errors/NoResults.html +1 -1
- data/docs/doc/Doing/Errors/PluginException.html +1 -1
- data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
- data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
- data/docs/doc/Doing/Errors.html +1 -1
- data/docs/doc/Doing/HTMLExport.html +1 -1
- data/docs/doc/Doing/Hooks.html +1 -1
- data/docs/doc/Doing/Item.html +1 -1
- data/docs/doc/Doing/ItemDates.html +1 -1
- data/docs/doc/Doing/ItemQuery.html +1 -1
- data/docs/doc/Doing/ItemState.html +1 -1
- data/docs/doc/Doing/ItemTags.html +1 -1
- data/docs/doc/Doing/Items.html +1 -1
- data/docs/doc/Doing/JSONExport.html +1 -1
- data/docs/doc/Doing/Logger.html +1 -1
- data/docs/doc/Doing/MarkdownExport.html +1 -1
- data/docs/doc/Doing/Note.html +1 -1
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +1 -1
- data/docs/doc/Doing/Prompt.html +1 -1
- data/docs/doc/Doing/PromptChoose.html +1 -1
- data/docs/doc/Doing/PromptFZF.html +1 -1
- data/docs/doc/Doing/PromptInput.html +1 -1
- data/docs/doc/Doing/PromptSTD.html +1 -1
- data/docs/doc/Doing/PromptYN.html +1 -1
- data/docs/doc/Doing/Section.html +1 -1
- data/docs/doc/Doing/StringHighlight.html +1 -1
- data/docs/doc/Doing/StringNormalize.html +35 -1
- data/docs/doc/Doing/StringQuery.html +1 -1
- data/docs/doc/Doing/StringTags.html +1 -1
- data/docs/doc/Doing/StringTransform.html +1 -1
- data/docs/doc/Doing/StringTruncate.html +1 -1
- data/docs/doc/Doing/StringURL.html +1 -1
- data/docs/doc/Doing/SymbolNormalize.html +1 -1
- data/docs/doc/Doing/TaskPaperExport.html +1 -1
- data/docs/doc/Doing/TemplateExport.html +1 -1
- data/docs/doc/Doing/TemplateString.html +2 -2
- data/docs/doc/Doing/TimingImport.html +1 -1
- data/docs/doc/Doing/Types.html +23 -18
- data/docs/doc/Doing/Util/Backup.html +1 -1
- data/docs/doc/Doing/Util.html +1 -1
- data/docs/doc/Doing/Version.html +1 -1
- data/docs/doc/Doing/WWID.html +71 -3
- data/docs/doc/Doing.html +2 -2
- data/docs/doc/FalseClass.html +11 -1
- data/docs/doc/GLI/Commands/Help.html +1 -1
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/docs/doc/GLI/Commands.html +1 -1
- data/docs/doc/GLI.html +1 -1
- data/docs/doc/Hash.html +461 -6
- data/docs/doc/Numeric.html +1 -1
- data/docs/doc/Object.html +1 -1
- data/docs/doc/PhraseParser/Operator.html +1 -1
- data/docs/doc/PhraseParser/PhraseClause.html +1 -1
- data/docs/doc/PhraseParser/Query.html +1 -1
- data/docs/doc/PhraseParser/QueryParser.html +1 -1
- data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
- data/docs/doc/PhraseParser/TermClause.html +1 -1
- data/docs/doc/PhraseParser.html +1 -1
- data/docs/doc/Status.html +1 -1
- data/docs/doc/String.html +4 -4
- data/docs/doc/Symbol.html +1 -1
- data/docs/doc/Time.html +68 -3
- data/docs/doc/TrueClass.html +11 -1
- data/docs/doc/_index.html +1 -1
- data/docs/doc/file.README.html +2 -2
- data/docs/doc/index.html +2 -2
- data/docs/doc/method_list.html +511 -407
- data/docs/doc/top-level-namespace.html +3 -1
- data/doing.rdoc +163 -7
- data/lib/completion/_doing.zsh +13 -13
- data/lib/completion/doing.bash +22 -22
- data/lib/completion/doing.fish +24 -1
- data/lib/doing/add_options.rb +40 -1
- data/lib/doing/changelog/change.rb +13 -5
- data/lib/doing/changelog/changes.rb +11 -2
- data/lib/doing/changelog/entry.rb +9 -2
- data/lib/doing/configuration.rb +21 -0
- data/lib/doing/good.rb +18 -1
- data/lib/doing/hash.rb +126 -22
- data/lib/doing/normalize.rb +13 -0
- data/lib/doing/pager.rb +1 -1
- data/lib/doing/types.rb +9 -8
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid/display.rb +4 -1
- data/lib/doing/wwid/filter.rb +6 -3
- data/lib/doing/wwid/wwid.rb +21 -3
- data/lib/doing.rb +9 -0
- metadata +3 -2
data/bin/commands/yesterday.rb
CHANGED
@@ -14,6 +14,7 @@ command :yesterday do |c|
|
|
14
14
|
add_options(:output_template, c, default_template: 'today')
|
15
15
|
add_options(:time_filter, c)
|
16
16
|
add_options(:time_display, c)
|
17
|
+
add_options(:save, c)
|
17
18
|
|
18
19
|
c.action do |_global_options, options, _args|
|
19
20
|
raise InvalidPlugin.new('output', options[:output]) if options[:output] && options[:output] !~ Doing::Plugins.plugin_regex(type: :export)
|
@@ -22,7 +23,8 @@ command :yesterday do |c|
|
|
22
23
|
|
23
24
|
opt = options.clone
|
24
25
|
opt[:order] = Doing.setting(['templates', options[:config_template], 'order'])
|
25
|
-
|
26
|
+
opt[:yesterday] = true
|
26
27
|
Doing::Pager.page @wwid.yesterday(options[:section], options[:times], options[:output], opt).chomp
|
28
|
+
Doing.config.save_view(opt.to_view, options[:save].downcase) if options[:save]
|
27
29
|
end
|
28
30
|
end
|
data/bin/doing
CHANGED
@@ -26,7 +26,7 @@ include Doing::Errors
|
|
26
26
|
|
27
27
|
version Doing::VERSION
|
28
28
|
hide_commands_without_desc true
|
29
|
-
autocomplete_commands
|
29
|
+
autocomplete_commands false
|
30
30
|
wrap_help_text :one_line unless $stdout.isatty
|
31
31
|
|
32
32
|
include Doing::Types
|
@@ -88,14 +88,33 @@ accept TagSortSymbol do |value|
|
|
88
88
|
value.normalize_tag_sort(Doing.config.fetch('tag_sort', :name))
|
89
89
|
end
|
90
90
|
|
91
|
+
accept ExportTemplate do |value|
|
92
|
+
if value !~ Doing::Plugins.plugin_regex(type: :export)
|
93
|
+
raise Doing::Errors::InvalidPlugin.new('output', value)
|
94
|
+
|
95
|
+
end
|
96
|
+
|
97
|
+
tpl = nil
|
98
|
+
|
99
|
+
Doing::Plugins.plugins[:export].each do |k, options|
|
100
|
+
next unless value =~ /^(#{options[:trigger].normalize_trigger})$/i
|
101
|
+
|
102
|
+
tpl = k
|
103
|
+
break
|
104
|
+
end
|
105
|
+
|
106
|
+
tpl.nil? ? 'template' : value
|
107
|
+
end
|
108
|
+
|
91
109
|
accept TemplateName do |value|
|
92
110
|
res = Doing.setting('templates').keys.select { |k| k =~ value.to_rx(distance: 2) }
|
93
|
-
raise InvalidArgument, "Unknown template: #{value}" unless res.good?
|
111
|
+
raise Doing::Errors::InvalidArgument, "Unknown template: #{value}" unless res.good?
|
94
112
|
|
95
113
|
res.group_by(&:length).min.last[0]
|
96
114
|
end
|
97
115
|
|
98
116
|
accept DateBeginString do |value|
|
117
|
+
Doing.original_options[:date_begin] = value
|
99
118
|
res = if value =~ REGEX_TIME
|
100
119
|
value
|
101
120
|
else
|
@@ -107,6 +126,7 @@ accept DateBeginString do |value|
|
|
107
126
|
end
|
108
127
|
|
109
128
|
accept DateEndString do |value|
|
129
|
+
Doing.original_options[:date_end] = value
|
110
130
|
res = if value =~ REGEX_TIME
|
111
131
|
value
|
112
132
|
else
|
@@ -118,6 +138,7 @@ accept DateEndString do |value|
|
|
118
138
|
end
|
119
139
|
|
120
140
|
accept DateRangeString do |value|
|
141
|
+
Doing.original_options[:date_range] = value
|
121
142
|
start, finish = value.split_date_range
|
122
143
|
raise InvalidTimeExpression, 'Invalid range' unless start
|
123
144
|
|
@@ -126,6 +147,7 @@ accept DateRangeString do |value|
|
|
126
147
|
end
|
127
148
|
|
128
149
|
accept DateRangeOptionalString do |value|
|
150
|
+
Doing.original_options[:date_range] = value
|
129
151
|
start, finish = value.split_date_range
|
130
152
|
raise InvalidTimeExpression, 'Invalid range' unless start
|
131
153
|
|
@@ -133,6 +155,7 @@ accept DateRangeOptionalString do |value|
|
|
133
155
|
end
|
134
156
|
|
135
157
|
accept DateIntervalString do |value|
|
158
|
+
Doing.original_options[:date_interval] = value
|
136
159
|
res = value.chronify_qty
|
137
160
|
raise InvalidTimeExpression, 'Invalid time quantity' unless res
|
138
161
|
|
@@ -233,16 +256,20 @@ pre do |global, _command, _options, _args|
|
|
233
256
|
end
|
234
257
|
|
235
258
|
on_error do |exception|
|
236
|
-
|
259
|
+
case exception
|
260
|
+
when GLI::UnknownCommand
|
237
261
|
if ARGV.count > 1
|
262
|
+
exit run(['view'].concat(ARGV.unshift(@command))) if @wwid.get_view(@command, fallback: false)
|
238
263
|
exit run(['now'].concat(ARGV.unshift(@command)))
|
239
264
|
else
|
265
|
+
exit run(['view'].concat(ARGV.unshift(@command))) if @wwid.get_view(@command, fallback: false)
|
266
|
+
|
240
267
|
Doing::Color.coloring = $stdout.isatty
|
241
268
|
Doing.logger.error('Unknown Command:', @command)
|
242
269
|
Doing.logger.output_results
|
243
270
|
false
|
244
271
|
end
|
245
|
-
|
272
|
+
when SystemExit
|
246
273
|
false
|
247
274
|
else
|
248
275
|
# Doing.logger.error('Fatal:', exception)
|
data/docs/doc/Array.html
CHANGED
@@ -106,7 +106,17 @@
|
|
106
106
|
|
107
107
|
</div>
|
108
108
|
|
109
|
-
<div
|
109
|
+
<h2>Overview</h2><div class="docstring">
|
110
|
+
<div class="discussion">
|
111
|
+
<p>Array helpers</p>
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<div class="tags">
|
117
|
+
|
118
|
+
|
119
|
+
</div><div id="subclasses">
|
110
120
|
<h2>Direct Known Subclasses</h2>
|
111
121
|
<p class="children"><span class='object_link'><a href="Doing/Items.html" title="Doing::Items (class)">Doing::Items</a></span>, <span class='object_link'><a href="Doing/Note.html" title="Doing::Note (class)">Doing::Note</a></span></p>
|
112
122
|
</div>
|
@@ -278,7 +288,7 @@ has content</p>
|
|
278
288
|
</div>
|
279
289
|
|
280
290
|
<div id="footer">
|
281
|
-
Generated on
|
291
|
+
Generated on Tue Mar 22 10:06:16 2022 by
|
282
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
283
293
|
0.9.27 (ruby-3.0.1).
|
284
294
|
</div>
|
@@ -283,7 +283,7 @@
|
|
283
283
|
</div>
|
284
284
|
|
285
285
|
<div id="footer">
|
286
|
-
Generated on
|
286
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
287
287
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
288
288
|
0.9.27 (ruby-3.0.1).
|
289
289
|
</div>
|
@@ -162,7 +162,7 @@
|
|
162
162
|
</div>
|
163
163
|
|
164
164
|
<div id="footer">
|
165
|
-
Generated on
|
165
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
166
166
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
167
167
|
0.9.27 (ruby-3.0.1).
|
168
168
|
</div>
|
@@ -407,7 +407,7 @@
|
|
407
407
|
</div>
|
408
408
|
|
409
409
|
<div id="footer">
|
410
|
-
Generated on
|
410
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
411
411
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
412
412
|
0.9.27 (ruby-3.0.1).
|
413
413
|
</div>
|
@@ -125,7 +125,7 @@ parser. In order to do that, a new "clause" node is added to the parse
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
130
|
0.9.27 (ruby-3.0.1).
|
131
131
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.27 (ruby-3.0.1).
|
120
120
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Tue Mar 22 10:06:16 2022 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.27 (ruby-3.0.1).
|
111
111
|
</div>
|
@@ -0,0 +1,316 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Doing::ArrayCleanup
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.27
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "Doing::ArrayCleanup";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (A)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Doing.html" title="Doing (module)">Doing</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">ArrayCleanup</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Doing::ArrayCleanup
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/doing/array/cleanup.rb</dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<h2>
|
95
|
+
Instance Method Summary
|
96
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
97
|
+
</h2>
|
98
|
+
|
99
|
+
<ul class="summary">
|
100
|
+
|
101
|
+
<li class="public ">
|
102
|
+
<span class="summary_signature">
|
103
|
+
|
104
|
+
<a href="#remove_bad-instance_method" title="#remove_bad (instance method)">#<strong>remove_bad</strong> ⇒ Array </a>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
</span>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<span class="summary_desc"><div class='inline'><p>Like Array#compact -- removes nil items, but also removes empty strings, zero or negative numbers and FalseClass items.</p>
|
119
|
+
</div></span>
|
120
|
+
|
121
|
+
</li>
|
122
|
+
|
123
|
+
|
124
|
+
<li class="public ">
|
125
|
+
<span class="summary_signature">
|
126
|
+
|
127
|
+
<a href="#remove_bad!-instance_method" title="#remove_bad! (instance method)">#<strong>remove_bad!</strong> ⇒ Object </a>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
142
|
+
|
143
|
+
</li>
|
144
|
+
|
145
|
+
|
146
|
+
<li class="public ">
|
147
|
+
<span class="summary_signature">
|
148
|
+
|
149
|
+
<a href="#remove_empty-instance_method" title="#remove_empty (instance method)">#<strong>remove_empty</strong> ⇒ Array </a>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
</span>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<span class="summary_desc"><div class='inline'><p>Like Array#compact -- removes nil items, but also removes empty elements.</p>
|
164
|
+
</div></span>
|
165
|
+
|
166
|
+
</li>
|
167
|
+
|
168
|
+
|
169
|
+
<li class="public ">
|
170
|
+
<span class="summary_signature">
|
171
|
+
|
172
|
+
<a href="#remove_empty!-instance_method" title="#remove_empty! (instance method)">#<strong>remove_empty!</strong> ⇒ Object </a>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
</span>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
187
|
+
|
188
|
+
</li>
|
189
|
+
|
190
|
+
|
191
|
+
</ul>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<div id="instance_method_details" class="method_details_list">
|
197
|
+
<h2>Instance Method Details</h2>
|
198
|
+
|
199
|
+
|
200
|
+
<div class="method_details first">
|
201
|
+
<h3 class="signature first" id="remove_bad-instance_method">
|
202
|
+
|
203
|
+
#<strong>remove_bad</strong> ⇒ <tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</h3><div class="docstring">
|
210
|
+
<div class="discussion">
|
211
|
+
<p>Like Array#compact -- removes nil items, but also
|
212
|
+
removes empty strings, zero or negative numbers and FalseClass items</p>
|
213
|
+
|
214
|
+
|
215
|
+
</div>
|
216
|
+
</div>
|
217
|
+
<div class="tags">
|
218
|
+
|
219
|
+
<p class="tag_title">Returns:</p>
|
220
|
+
<ul class="return">
|
221
|
+
|
222
|
+
<li>
|
223
|
+
|
224
|
+
|
225
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
—
|
230
|
+
<div class='inline'><p>Array without "bad" elements</p>
|
231
|
+
</div>
|
232
|
+
|
233
|
+
</li>
|
234
|
+
|
235
|
+
</ul>
|
236
|
+
|
237
|
+
</div>
|
238
|
+
</div>
|
239
|
+
|
240
|
+
<div class="method_details ">
|
241
|
+
<h3 class="signature " id="remove_bad!-instance_method">
|
242
|
+
|
243
|
+
#<strong>remove_bad!</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
</h3>
|
250
|
+
</div>
|
251
|
+
|
252
|
+
<div class="method_details ">
|
253
|
+
<h3 class="signature " id="remove_empty-instance_method">
|
254
|
+
|
255
|
+
#<strong>remove_empty</strong> ⇒ <tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</h3><div class="docstring">
|
262
|
+
<div class="discussion">
|
263
|
+
<p>Like Array#compact -- removes nil items, but also
|
264
|
+
removes empty elements</p>
|
265
|
+
|
266
|
+
|
267
|
+
</div>
|
268
|
+
</div>
|
269
|
+
<div class="tags">
|
270
|
+
|
271
|
+
<p class="tag_title">Returns:</p>
|
272
|
+
<ul class="return">
|
273
|
+
|
274
|
+
<li>
|
275
|
+
|
276
|
+
|
277
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
—
|
282
|
+
<div class='inline'><p>Array without empty elements</p>
|
283
|
+
</div>
|
284
|
+
|
285
|
+
</li>
|
286
|
+
|
287
|
+
</ul>
|
288
|
+
|
289
|
+
</div>
|
290
|
+
</div>
|
291
|
+
|
292
|
+
<div class="method_details ">
|
293
|
+
<h3 class="signature " id="remove_empty!-instance_method">
|
294
|
+
|
295
|
+
#<strong>remove_empty!</strong> ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
</h3>
|
302
|
+
</div>
|
303
|
+
|
304
|
+
</div>
|
305
|
+
|
306
|
+
</div>
|
307
|
+
|
308
|
+
<div id="footer">
|
309
|
+
Generated on Tue Mar 22 10:06:16 2022 by
|
310
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
311
|
+
0.9.27 (ruby-3.0.1).
|
312
|
+
</div>
|
313
|
+
|
314
|
+
</div>
|
315
|
+
</body>
|
316
|
+
</html>
|
@@ -188,7 +188,7 @@
|
|
188
188
|
</div>
|
189
189
|
|
190
190
|
<div id="footer">
|
191
|
-
Generated on
|
191
|
+
Generated on Tue Mar 22 10:06:16 2022 by
|
192
192
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
193
193
|
0.9.27 (ruby-3.0.1).
|
194
194
|
</div>
|
@@ -414,7 +414,7 @@ with</p>
|
|
414
414
|
</div>
|
415
415
|
|
416
416
|
<div id="footer">
|
417
|
-
Generated on
|
417
|
+
Generated on Tue Mar 22 10:06:15 2022 by
|
418
418
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
419
419
|
0.9.27 (ruby-3.0.1).
|
420
420
|
</div>
|
@@ -256,7 +256,7 @@
|
|
256
256
|
</div>
|
257
257
|
|
258
258
|
<div id="footer">
|
259
|
-
Generated on
|
259
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
260
260
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
261
261
|
0.9.27 (ruby-3.0.1).
|
262
262
|
</div>
|
@@ -222,7 +222,7 @@
|
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div id="footer">
|
225
|
-
Generated on
|
225
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
226
226
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.9.27 (ruby-3.0.1).
|
228
228
|
</div>
|
data/docs/doc/Doing/Change.html
CHANGED
@@ -193,6 +193,34 @@
|
|
193
193
|
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute entries.</p>
|
194
194
|
</div></span>
|
195
195
|
|
196
|
+
</li>
|
197
|
+
|
198
|
+
|
199
|
+
<li class="public ">
|
200
|
+
<span class="summary_signature">
|
201
|
+
|
202
|
+
<a href="#prefix=-instance_method" title="#prefix= (instance method)">#<strong>prefix</strong> ⇒ Object </a>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
</span>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<span class="note title writeonly">writeonly</span>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<span class="summary_desc"><div class='inline'><p>Sets the attribute prefix.</p>
|
222
|
+
</div></span>
|
223
|
+
|
196
224
|
</li>
|
197
225
|
|
198
226
|
|
@@ -262,7 +290,7 @@
|
|
262
290
|
<li class="public ">
|
263
291
|
<span class="summary_signature">
|
264
292
|
|
265
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(version, content) ⇒ Change </a>
|
293
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(version, content, prefix: false, only: %i[changed new improved fixed]) ⇒ Change </a>
|
266
294
|
|
267
295
|
|
268
296
|
|
@@ -403,7 +431,7 @@
|
|
403
431
|
<div class="method_details first">
|
404
432
|
<h3 class="signature first" id="initialize-instance_method">
|
405
433
|
|
406
|
-
#<strong>initialize</strong>(version, content) ⇒ <tt><span class='object_link'><a href="" title="Doing::Change (class)">Change</a></span></tt>
|
434
|
+
#<strong>initialize</strong>(version, content, prefix: false, only: %i[changed new improved fixed]) ⇒ <tt><span class='object_link'><a href="" title="Doing::Change (class)">Change</a></span></tt>
|
407
435
|
|
408
436
|
|
409
437
|
|
@@ -496,6 +524,49 @@
|
|
496
524
|
<div class="tags">
|
497
525
|
|
498
526
|
|
527
|
+
</div>
|
528
|
+
</div>
|
529
|
+
|
530
|
+
|
531
|
+
<span id=""></span>
|
532
|
+
<div class="method_details ">
|
533
|
+
<h3 class="signature " id="prefix=-instance_method">
|
534
|
+
|
535
|
+
#<strong>prefix=</strong>(value) ⇒ <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt> <span class="extras">(writeonly)</span>
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
</h3><div class="docstring">
|
542
|
+
<div class="discussion">
|
543
|
+
<p>Sets the attribute prefix</p>
|
544
|
+
|
545
|
+
|
546
|
+
</div>
|
547
|
+
</div>
|
548
|
+
<div class="tags">
|
549
|
+
<p class="tag_title">Parameters:</p>
|
550
|
+
<ul class="param">
|
551
|
+
|
552
|
+
<li>
|
553
|
+
|
554
|
+
<span class='name'>value</span>
|
555
|
+
|
556
|
+
|
557
|
+
<span class='type'></span>
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
—
|
562
|
+
<div class='inline'><p>the value to set the attribute prefix to.</p>
|
563
|
+
</div>
|
564
|
+
|
565
|
+
</li>
|
566
|
+
|
567
|
+
</ul>
|
568
|
+
|
569
|
+
|
499
570
|
</div>
|
500
571
|
</div>
|
501
572
|
|
@@ -607,7 +678,7 @@
|
|
607
678
|
</div>
|
608
679
|
|
609
680
|
<div id="footer">
|
610
|
-
Generated on
|
681
|
+
Generated on Tue Mar 22 10:06:17 2022 by
|
611
682
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
612
683
|
0.9.27 (ruby-3.0.1).
|
613
684
|
</div>
|