blackbox 4.0.2 → 4.0.3

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
  SHA1:
3
- metadata.gz: fde3e9a3fdc3bc2b02897631ff2dde9495bb0050
4
- data.tar.gz: 5297f1f2582ace256843ea5a7b3241f63e79991a
3
+ metadata.gz: db0c7a14307af202cc6c2068f5caf3894b4999df
4
+ data.tar.gz: 011e9fe07575b3f2ce88db28cfa473e78249a1f1
5
5
  SHA512:
6
- metadata.gz: 109f7072db0298327d6c29f3560a1d2009b52b47a694fc7bf6198936cc0142bde19dbd237ff2500a81ad9df19eb93f5dbe9e6716b0d72885dc2c6e8037cc5d35
7
- data.tar.gz: 573ca18dc616bd246cd2c7111cde13ab7696e1f49dc3a92273b397f07f27c07e9ea0c737a16f5276ae723af2e299ca92cf78145187048d812f5323151481ba15
6
+ metadata.gz: 593f70ce2fb76cf5512b5c28ce4d81f07a69cd37663b4ce145fa4afefd38be2b32aba6eb41faf3f4827e4467600aaea360850ff7618ff9c26d61c30800a93289
7
+ data.tar.gz: e326e1f013c632cee2dccbff3e7bfb04e5e251dd80dbe8bf1141920e5aaffa4b2dbe4aa269ed0e92cae9a2f67329cb22e83eec483f7372ff4cfeca220ecd7268
data/blackbox.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |gem|
33
33
  gem.add_development_dependency 'rubocop'
34
34
 
35
35
  gem.add_dependency 'gem_update_checker', '~> 0.2.0'
36
- gem.add_dependency 'lolcat', '~> 42.1.43'
36
+ gem.add_dependency 'lolcat', '~> 90.8.8'
37
37
  gem.add_dependency 'rainbow', '~> 2.2.0'
38
38
  gem.add_dependency 'chronic_duration', '~> 0.10.6'
39
39
  gem.add_dependency 'versionomy', '~> 0.5.0'
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "covered_percent": 82.06
3
+ "covered_percent": 82.59
4
4
  }
5
5
  }
@@ -147,6 +147,7 @@
147
147
  "/Users/moe/code/busyloop/blackbox/lib/blackbox/gem.rb": [
148
148
  null,
149
149
  1,
150
+ 1,
150
151
  null,
151
152
  1,
152
153
  1,
@@ -178,7 +179,7 @@
178
179
  null,
179
180
  8,
180
181
  8,
181
- 80,
182
+ 96,
182
183
  null,
183
184
  null,
184
185
  8,
@@ -206,7 +207,7 @@
206
207
  7,
207
208
  7,
208
209
  null,
209
- 0,
210
+ 1,
210
211
  null,
211
212
  null,
212
213
  7,
@@ -608,6 +609,6 @@
608
609
  null
609
610
  ]
610
611
  },
611
- "timestamp": 1482682020
612
+ "timestamp": 1501158215
612
613
  }
613
614
  }
data/coverage/index.html CHANGED
@@ -14,27 +14,27 @@
14
14
  <img src="./assets/0.10.0/loading.gif" alt="loading"/>
15
15
  </div>
16
16
  <div id="wrapper" style="display:none;">
17
- <div class="timestamp">Generated <abbr class="timeago" title="2016-12-25T17:07:00+01:00">2016-12-25T17:07:00+01:00</abbr></div>
17
+ <div class="timestamp">Generated <abbr class="timeago" title="2017-07-27T14:23:35+02:00">2017-07-27T14:23:35+02:00</abbr></div>
18
18
  <ul class="group_tabs"></ul>
19
19
 
20
20
  <div id="content">
21
21
  <div class="file_list_container" id="AllFiles">
22
22
  <h2>
23
23
  <span class="group_name">All Files</span>
24
- (<span class="covered_percent"><span class="yellow">82.06%</span></span>
24
+ (<span class="covered_percent"><span class="yellow">82.59%</span></span>
25
25
  covered at
26
26
  <span class="covered_strength">
27
27
  <span class="green">
28
- 38.51
28
+ 38.42
29
29
  </span>
30
30
  </span> hits/line)
31
31
  </h2>
32
32
  <a name="AllFiles"></a>
33
33
  <div>
34
34
  <b>6</b> files in total.
35
- <b>223</b> relevant lines.
36
- <span class="green"><b>183</b> lines covered</span> and
37
- <span class="red"><b>40</b> lines missed </span>
35
+ <b>224</b> relevant lines.
36
+ <span class="green"><b>185</b> lines covered</span> and
37
+ <span class="red"><b>39</b> lines missed </span>
38
38
  </div>
39
39
  <table class="file_list">
40
40
  <thead>
@@ -62,12 +62,12 @@
62
62
 
63
63
  <tr>
64
64
  <td class="strong"><a href="#192e300fd7769b750c82567439ee016f85516f3d" class="src_link" title="lib/blackbox/gem.rb">lib/blackbox/gem.rb</a></td>
65
- <td class="green strong">96.97 %</td>
66
- <td>93</td>
67
- <td>33</td>
68
- <td>32</td>
69
- <td>1</td>
70
- <td>7.8</td>
65
+ <td class="green strong">100.0 %</td>
66
+ <td>94</td>
67
+ <td>34</td>
68
+ <td>34</td>
69
+ <td>0</td>
70
+ <td>8.1</td>
71
71
  </tr>
72
72
 
73
73
  <tr>
@@ -993,11 +993,11 @@
993
993
  <div class="source_table" id="192e300fd7769b750c82567439ee016f85516f3d">
994
994
  <div class="header">
995
995
  <h3>lib/blackbox/gem.rb</h3>
996
- <h4><span class="green">96.97 %</span> covered</h4>
996
+ <h4><span class="green">100.0 %</span> covered</h4>
997
997
  <div>
998
- <b>33</b> relevant lines.
999
- <span class="green"><b>32</b> lines covered</span> and
1000
- <span class="red"><b>1</b> lines missed.</span>
998
+ <b>34</b> relevant lines.
999
+ <span class="green"><b>34</b> lines covered</span> and
1000
+ <span class="red"><b>0</b> lines missed.</span>
1001
1001
  </div>
1002
1002
  </div>
1003
1003
 
@@ -1013,550 +1013,556 @@
1013
1013
  <li class="covered" data-hits="1" data-linenumber="2">
1014
1014
  <span class="hits">1</span>
1015
1015
 
1016
+ <code class="ruby">require &#39;versionomy&#39;</code>
1017
+ </li>
1018
+
1019
+ <li class="covered" data-hits="1" data-linenumber="3">
1020
+ <span class="hits">1</span>
1021
+
1016
1022
  <code class="ruby">module BB</code>
1017
1023
  </li>
1018
1024
 
1019
- <li class="never" data-hits="" data-linenumber="3">
1025
+ <li class="never" data-hits="" data-linenumber="4">
1020
1026
 
1021
1027
 
1022
1028
  <code class="ruby"> # Gem utilities.</code>
1023
1029
  </li>
1024
1030
 
1025
- <li class="covered" data-hits="1" data-linenumber="4">
1031
+ <li class="covered" data-hits="1" data-linenumber="5">
1026
1032
  <span class="hits">1</span>
1027
1033
 
1028
1034
  <code class="ruby"> module Gem</code>
1029
1035
  </li>
1030
1036
 
1031
- <li class="covered" data-hits="1" data-linenumber="5">
1037
+ <li class="covered" data-hits="1" data-linenumber="6">
1032
1038
  <span class="hits">1</span>
1033
1039
 
1034
1040
  <code class="ruby"> class &lt;&lt; self</code>
1035
1041
  </li>
1036
1042
 
1037
- <li class="never" data-hits="" data-linenumber="6">
1043
+ <li class="never" data-hits="" data-linenumber="7">
1038
1044
 
1039
1045
 
1040
1046
  <code class="ruby"> # Return information about the currently installed gem</code>
1041
1047
  </li>
1042
1048
 
1043
- <li class="never" data-hits="" data-linenumber="7">
1049
+ <li class="never" data-hits="" data-linenumber="8">
1044
1050
 
1045
1051
 
1046
1052
  <code class="ruby"> # version and the latest available version on rubygems.org.</code>
1047
1053
  </li>
1048
1054
 
1049
- <li class="never" data-hits="" data-linenumber="8">
1055
+ <li class="never" data-hits="" data-linenumber="9">
1050
1056
 
1051
1057
 
1052
1058
  <code class="ruby"> #</code>
1053
1059
  </li>
1054
1060
 
1055
- <li class="never" data-hits="" data-linenumber="9">
1061
+ <li class="never" data-hits="" data-linenumber="10">
1056
1062
 
1057
1063
 
1058
1064
  <code class="ruby"> # @param [Hash] opts the options to create a message with.</code>
1059
1065
  </li>
1060
1066
 
1061
- <li class="never" data-hits="" data-linenumber="10">
1067
+ <li class="never" data-hits="" data-linenumber="11">
1062
1068
 
1063
1069
 
1064
1070
  <code class="ruby"> # @option opts [Fixnum] :check_interval how frequently to query rubygems.org (default: 3600)</code>
1065
1071
  </li>
1066
1072
 
1067
- <li class="never" data-hits="" data-linenumber="11">
1073
+ <li class="never" data-hits="" data-linenumber="12">
1068
1074
 
1069
1075
 
1070
1076
  <code class="ruby"> # @option opts [String] :disabling_env_var (default: #{GEMNAME}_DISABLE_VERSION_CHECK)</code>
1071
1077
  </li>
1072
1078
 
1073
- <li class="never" data-hits="" data-linenumber="12">
1079
+ <li class="never" data-hits="" data-linenumber="13">
1074
1080
 
1075
1081
 
1076
1082
  <code class="ruby"> # @option opts [] :from (&#39;nobody&#39;) From address</code>
1077
1083
  </li>
1078
1084
 
1079
- <li class="never" data-hits="" data-linenumber="13">
1085
+ <li class="never" data-hits="" data-linenumber="14">
1080
1086
 
1081
1087
 
1082
1088
  <code class="ruby"> # @return [Hash] result</code>
1083
1089
  </li>
1084
1090
 
1085
- <li class="never" data-hits="" data-linenumber="14">
1091
+ <li class="never" data-hits="" data-linenumber="15">
1086
1092
 
1087
1093
 
1088
1094
  <code class="ruby"> # * :gem_name =&gt; name of current gem</code>
1089
1095
  </li>
1090
1096
 
1091
- <li class="never" data-hits="" data-linenumber="15">
1097
+ <li class="never" data-hits="" data-linenumber="16">
1092
1098
 
1093
1099
 
1094
1100
  <code class="ruby"> # * :gem_installed_version =&gt; installed version</code>
1095
1101
  </li>
1096
1102
 
1097
- <li class="never" data-hits="" data-linenumber="16">
1103
+ <li class="never" data-hits="" data-linenumber="17">
1098
1104
 
1099
1105
 
1100
1106
  <code class="ruby"> # * :gem_latest_version =&gt; latest version on rubygems.org</code>
1101
1107
  </li>
1102
1108
 
1103
- <li class="never" data-hits="" data-linenumber="17">
1109
+ <li class="never" data-hits="" data-linenumber="18">
1104
1110
 
1105
1111
 
1106
1112
  <code class="ruby"> # * :last_checked_for_update =&gt; timestamp of last query to rubygems.org</code>
1107
1113
  </li>
1108
1114
 
1109
- <li class="never" data-hits="" data-linenumber="18">
1115
+ <li class="never" data-hits="" data-linenumber="19">
1110
1116
 
1111
1117
 
1112
1118
  <code class="ruby"> # * :next_check_for_update =&gt; timestamp of next query to rubygems.org</code>
1113
1119
  </li>
1114
1120
 
1115
- <li class="never" data-hits="" data-linenumber="19">
1121
+ <li class="never" data-hits="" data-linenumber="20">
1116
1122
 
1117
1123
 
1118
1124
  <code class="ruby"> # * :gem_update_available =&gt; update available?</code>
1119
1125
  </li>
1120
1126
 
1121
- <li class="never" data-hits="" data-linenumber="20">
1127
+ <li class="never" data-hits="" data-linenumber="21">
1122
1128
 
1123
1129
 
1124
1130
  <code class="ruby"> # * :installed_is_latest =&gt; is installed version == latest available version?</code>
1125
1131
  </li>
1126
1132
 
1127
- <li class="covered" data-hits="1" data-linenumber="21">
1133
+ <li class="covered" data-hits="1" data-linenumber="22">
1128
1134
  <span class="hits">1</span>
1129
1135
 
1130
1136
  <code class="ruby"> def version_info(*_, **opts)</code>
1131
1137
  </li>
1132
1138
 
1133
- <li class="covered" data-hits="8" data-linenumber="22">
1139
+ <li class="covered" data-hits="8" data-linenumber="23">
1134
1140
  <span class="hits">8</span>
1135
1141
 
1136
1142
  <code class="ruby"> ret = {</code>
1137
1143
  </li>
1138
1144
 
1139
- <li class="never" data-hits="" data-linenumber="23">
1145
+ <li class="never" data-hits="" data-linenumber="24">
1140
1146
 
1141
1147
 
1142
1148
  <code class="ruby"> gem_name: :unknown,</code>
1143
1149
  </li>
1144
1150
 
1145
- <li class="never" data-hits="" data-linenumber="24">
1151
+ <li class="never" data-hits="" data-linenumber="25">
1146
1152
 
1147
1153
 
1148
1154
  <code class="ruby"> gem_installed_version: :unknown,</code>
1149
1155
  </li>
1150
1156
 
1151
- <li class="never" data-hits="" data-linenumber="25">
1157
+ <li class="never" data-hits="" data-linenumber="26">
1152
1158
 
1153
1159
 
1154
1160
  <code class="ruby"> gem_latest_version: :unknown,</code>
1155
1161
  </li>
1156
1162
 
1157
- <li class="never" data-hits="" data-linenumber="26">
1163
+ <li class="never" data-hits="" data-linenumber="27">
1158
1164
 
1159
1165
 
1160
1166
  <code class="ruby"> gem_update_available: false,</code>
1161
1167
  </li>
1162
1168
 
1163
- <li class="never" data-hits="" data-linenumber="27">
1169
+ <li class="never" data-hits="" data-linenumber="28">
1164
1170
 
1165
1171
 
1166
1172
  <code class="ruby"> last_checked_for_update: :unknown,</code>
1167
1173
  </li>
1168
1174
 
1169
- <li class="never" data-hits="" data-linenumber="28">
1175
+ <li class="never" data-hits="" data-linenumber="29">
1170
1176
 
1171
1177
 
1172
1178
  <code class="ruby"> next_check_for_update: :unknown,</code>
1173
1179
  </li>
1174
1180
 
1175
- <li class="never" data-hits="" data-linenumber="29">
1181
+ <li class="never" data-hits="" data-linenumber="30">
1176
1182
 
1177
1183
 
1178
1184
  <code class="ruby"> installed_is_latest: true</code>
1179
1185
  </li>
1180
1186
 
1181
- <li class="never" data-hits="" data-linenumber="30">
1187
+ <li class="never" data-hits="" data-linenumber="31">
1182
1188
 
1183
1189
 
1184
1190
  <code class="ruby"> }</code>
1185
1191
  </li>
1186
1192
 
1187
- <li class="never" data-hits="" data-linenumber="31">
1193
+ <li class="never" data-hits="" data-linenumber="32">
1188
1194
 
1189
1195
 
1190
1196
  <code class="ruby"></code>
1191
1197
  </li>
1192
1198
 
1193
- <li class="covered" data-hits="8" data-linenumber="32">
1199
+ <li class="covered" data-hits="8" data-linenumber="33">
1194
1200
  <span class="hits">8</span>
1195
1201
 
1196
1202
  <code class="ruby"> calling_file = caller[0].split(&#39;:&#39;)[0]</code>
1197
1203
  </li>
1198
1204
 
1199
- <li class="covered" data-hits="8" data-linenumber="33">
1205
+ <li class="covered" data-hits="8" data-linenumber="34">
1200
1206
  <span class="hits">8</span>
1201
1207
 
1202
1208
  <code class="ruby"> spec = ::Gem::Specification.find do |s|</code>
1203
1209
  </li>
1204
1210
 
1205
- <li class="covered" data-hits="80" data-linenumber="34">
1206
- <span class="hits">80</span>
1211
+ <li class="covered" data-hits="96" data-linenumber="35">
1212
+ <span class="hits">96</span>
1207
1213
 
1208
1214
  <code class="ruby"> File.fnmatch(File.join(s.full_gem_path, &#39;*&#39;), calling_file)</code>
1209
1215
  </li>
1210
1216
 
1211
- <li class="never" data-hits="" data-linenumber="35">
1217
+ <li class="never" data-hits="" data-linenumber="36">
1212
1218
 
1213
1219
 
1214
1220
  <code class="ruby"> end</code>
1215
1221
  </li>
1216
1222
 
1217
- <li class="never" data-hits="" data-linenumber="36">
1223
+ <li class="never" data-hits="" data-linenumber="37">
1218
1224
 
1219
1225
 
1220
1226
  <code class="ruby"></code>
1221
1227
  </li>
1222
1228
 
1223
- <li class="covered" data-hits="8" data-linenumber="37">
1229
+ <li class="covered" data-hits="8" data-linenumber="38">
1224
1230
  <span class="hits">8</span>
1225
1231
 
1226
1232
  <code class="ruby"> ret[:gem_installed_version] = spec&amp;.version&amp;.to_s || :unknown</code>
1227
1233
  </li>
1228
1234
 
1229
- <li class="covered" data-hits="8" data-linenumber="38">
1235
+ <li class="covered" data-hits="8" data-linenumber="39">
1230
1236
  <span class="hits">8</span>
1231
1237
 
1232
1238
  <code class="ruby"> ret[:gem_name] = spec&amp;.name || :unknown</code>
1233
1239
  </li>
1234
1240
 
1235
- <li class="never" data-hits="" data-linenumber="39">
1241
+ <li class="never" data-hits="" data-linenumber="40">
1236
1242
 
1237
1243
 
1238
1244
  <code class="ruby"></code>
1239
1245
  </li>
1240
1246
 
1241
- <li class="covered" data-hits="8" data-linenumber="40">
1247
+ <li class="covered" data-hits="8" data-linenumber="41">
1242
1248
  <span class="hits">8</span>
1243
1249
 
1244
1250
  <code class="ruby"> opts = { # defaults</code>
1245
1251
  </li>
1246
1252
 
1247
- <li class="never" data-hits="" data-linenumber="41">
1253
+ <li class="never" data-hits="" data-linenumber="42">
1248
1254
 
1249
1255
 
1250
1256
  <code class="ruby"> check_interval: 3600,</code>
1251
1257
  </li>
1252
1258
 
1253
- <li class="never" data-hits="" data-linenumber="42">
1259
+ <li class="never" data-hits="" data-linenumber="43">
1254
1260
 
1255
1261
 
1256
1262
  <code class="ruby"> disabling_env_var: &quot;#{ret[:gem_name].upcase}_DISABLE_VERSION_CHECK&quot;</code>
1257
1263
  </li>
1258
1264
 
1259
- <li class="never" data-hits="" data-linenumber="43">
1265
+ <li class="never" data-hits="" data-linenumber="44">
1260
1266
 
1261
1267
 
1262
1268
  <code class="ruby"> }.merge(opts)</code>
1263
1269
  </li>
1264
1270
 
1265
- <li class="never" data-hits="" data-linenumber="44">
1271
+ <li class="never" data-hits="" data-linenumber="45">
1266
1272
 
1267
1273
 
1268
1274
  <code class="ruby"></code>
1269
1275
  </li>
1270
1276
 
1271
- <li class="covered" data-hits="8" data-linenumber="45">
1277
+ <li class="covered" data-hits="8" data-linenumber="46">
1272
1278
  <span class="hits">8</span>
1273
1279
 
1274
1280
  <code class="ruby"> return ret if ret[:gem_name] == :unknown</code>
1275
1281
  </li>
1276
1282
 
1277
- <li class="covered" data-hits="8" data-linenumber="46">
1283
+ <li class="covered" data-hits="8" data-linenumber="47">
1278
1284
  <span class="hits">8</span>
1279
1285
 
1280
1286
  <code class="ruby"> return ret if ret[:gem_installed_version] == :unknown</code>
1281
1287
  </li>
1282
1288
 
1283
- <li class="covered" data-hits="8" data-linenumber="47">
1289
+ <li class="covered" data-hits="8" data-linenumber="48">
1284
1290
  <span class="hits">8</span>
1285
1291
 
1286
1292
  <code class="ruby"> if opts[:disabling_env_var] &amp;&amp; ENV.include?(opts[:disabling_env_var])</code>
1287
1293
  </li>
1288
1294
 
1289
- <li class="covered" data-hits="1" data-linenumber="48">
1295
+ <li class="covered" data-hits="1" data-linenumber="49">
1290
1296
  <span class="hits">1</span>
1291
1297
 
1292
1298
  <code class="ruby"> ret[:next_check_for_update] = :never</code>
1293
1299
  </li>
1294
1300
 
1295
- <li class="covered" data-hits="1" data-linenumber="49">
1301
+ <li class="covered" data-hits="1" data-linenumber="50">
1296
1302
  <span class="hits">1</span>
1297
1303
 
1298
1304
  <code class="ruby"> return ret</code>
1299
1305
  </li>
1300
1306
 
1301
- <li class="never" data-hits="" data-linenumber="50">
1307
+ <li class="never" data-hits="" data-linenumber="51">
1302
1308
 
1303
1309
 
1304
1310
  <code class="ruby"> end</code>
1305
1311
  </li>
1306
1312
 
1307
- <li class="never" data-hits="" data-linenumber="51">
1313
+ <li class="never" data-hits="" data-linenumber="52">
1308
1314
 
1309
1315
 
1310
1316
  <code class="ruby"></code>
1311
1317
  </li>
1312
1318
 
1313
- <li class="covered" data-hits="7" data-linenumber="52">
1319
+ <li class="covered" data-hits="7" data-linenumber="53">
1314
1320
  <span class="hits">7</span>
1315
1321
 
1316
1322
  <code class="ruby"> require &#39;gem_update_checker&#39;</code>
1317
1323
  </li>
1318
1324
 
1319
- <li class="covered" data-hits="7" data-linenumber="53">
1325
+ <li class="covered" data-hits="7" data-linenumber="54">
1320
1326
  <span class="hits">7</span>
1321
1327
 
1322
1328
  <code class="ruby"> require &#39;tmpdir&#39;</code>
1323
1329
  </li>
1324
1330
 
1325
- <li class="covered" data-hits="7" data-linenumber="54">
1331
+ <li class="covered" data-hits="7" data-linenumber="55">
1326
1332
  <span class="hits">7</span>
1327
1333
 
1328
1334
  <code class="ruby"> require &#39;fileutils&#39;</code>
1329
1335
  </li>
1330
1336
 
1331
- <li class="never" data-hits="" data-linenumber="55">
1337
+ <li class="never" data-hits="" data-linenumber="56">
1332
1338
 
1333
1339
 
1334
1340
  <code class="ruby"></code>
1335
1341
  </li>
1336
1342
 
1337
- <li class="covered" data-hits="7" data-linenumber="56">
1343
+ <li class="covered" data-hits="7" data-linenumber="57">
1338
1344
  <span class="hits">7</span>
1339
1345
 
1340
1346
  <code class="ruby"> statefile_path = File.join(Dir.tmpdir, &quot;#{ret[:gem_name]}-#{ret[:gem_installed_version]}.last_update_check&quot;)</code>
1341
1347
  </li>
1342
1348
 
1343
- <li class="never" data-hits="" data-linenumber="57">
1349
+ <li class="never" data-hits="" data-linenumber="58">
1344
1350
 
1345
1351
 
1346
1352
  <code class="ruby"></code>
1347
1353
  </li>
1348
1354
 
1349
- <li class="covered" data-hits="7" data-linenumber="58">
1355
+ <li class="covered" data-hits="7" data-linenumber="59">
1350
1356
  <span class="hits">7</span>
1351
1357
 
1352
1358
  <code class="ruby"> last_check_at = nil</code>
1353
1359
  </li>
1354
1360
 
1355
- <li class="covered" data-hits="7" data-linenumber="59">
1361
+ <li class="covered" data-hits="7" data-linenumber="60">
1356
1362
  <span class="hits">7</span>
1357
1363
 
1358
1364
  <code class="ruby"> begin</code>
1359
1365
  </li>
1360
1366
 
1361
- <li class="covered" data-hits="7" data-linenumber="60">
1367
+ <li class="covered" data-hits="7" data-linenumber="61">
1362
1368
  <span class="hits">7</span>
1363
1369
 
1364
1370
  <code class="ruby"> last_check_at = File.stat(statefile_path).mtime</code>
1365
1371
  </li>
1366
1372
 
1367
- <li class="never" data-hits="" data-linenumber="61">
1373
+ <li class="never" data-hits="" data-linenumber="62">
1368
1374
 
1369
1375
 
1370
1376
  <code class="ruby"> rescue</code>
1371
1377
  </li>
1372
1378
 
1373
- <li class="missed" data-hits="0" data-linenumber="62">
1374
-
1379
+ <li class="covered" data-hits="1" data-linenumber="63">
1380
+ <span class="hits">1</span>
1375
1381
 
1376
1382
  <code class="ruby"> last_check_at = Time.at(0)</code>
1377
1383
  </li>
1378
1384
 
1379
- <li class="never" data-hits="" data-linenumber="63">
1385
+ <li class="never" data-hits="" data-linenumber="64">
1380
1386
 
1381
1387
 
1382
1388
  <code class="ruby"> end</code>
1383
1389
  </li>
1384
1390
 
1385
- <li class="never" data-hits="" data-linenumber="64">
1391
+ <li class="never" data-hits="" data-linenumber="65">
1386
1392
 
1387
1393
 
1388
1394
  <code class="ruby"></code>
1389
1395
  </li>
1390
1396
 
1391
- <li class="covered" data-hits="7" data-linenumber="65">
1397
+ <li class="covered" data-hits="7" data-linenumber="66">
1392
1398
  <span class="hits">7</span>
1393
1399
 
1394
1400
  <code class="ruby"> ret.merge!(</code>
1395
1401
  </li>
1396
1402
 
1397
- <li class="never" data-hits="" data-linenumber="66">
1403
+ <li class="never" data-hits="" data-linenumber="67">
1398
1404
 
1399
1405
 
1400
1406
  <code class="ruby"> last_checked_for_update: last_check_at,</code>
1401
1407
  </li>
1402
1408
 
1403
- <li class="never" data-hits="" data-linenumber="67">
1409
+ <li class="never" data-hits="" data-linenumber="68">
1404
1410
 
1405
1411
 
1406
1412
  <code class="ruby"> next_check_for_update: last_check_at + opts[:check_interval]</code>
1407
1413
  </li>
1408
1414
 
1409
- <li class="never" data-hits="" data-linenumber="68">
1415
+ <li class="never" data-hits="" data-linenumber="69">
1410
1416
 
1411
1417
 
1412
1418
  <code class="ruby"> )</code>
1413
1419
  </li>
1414
1420
 
1415
- <li class="never" data-hits="" data-linenumber="69">
1421
+ <li class="never" data-hits="" data-linenumber="70">
1416
1422
 
1417
1423
 
1418
1424
  <code class="ruby"></code>
1419
1425
  </li>
1420
1426
 
1421
- <li class="covered" data-hits="7" data-linenumber="70">
1427
+ <li class="covered" data-hits="7" data-linenumber="71">
1422
1428
  <span class="hits">7</span>
1423
1429
 
1424
1430
  <code class="ruby"> return ret if last_check_at + opts[:check_interval] &gt; Time.now &amp;&amp; !opts[:force_check]</code>
1425
1431
  </li>
1426
1432
 
1427
- <li class="never" data-hits="" data-linenumber="71">
1433
+ <li class="never" data-hits="" data-linenumber="72">
1428
1434
 
1429
1435
 
1430
1436
  <code class="ruby"></code>
1431
1437
  </li>
1432
1438
 
1433
- <li class="covered" data-hits="6" data-linenumber="72">
1439
+ <li class="covered" data-hits="6" data-linenumber="73">
1434
1440
  <span class="hits">6</span>
1435
1441
 
1436
1442
  <code class="ruby"> checker = GemUpdateChecker::Client.new(ret[:gem_name], ret[:gem_installed_version])</code>
1437
1443
  </li>
1438
1444
 
1439
- <li class="covered" data-hits="6" data-linenumber="73">
1445
+ <li class="covered" data-hits="6" data-linenumber="74">
1440
1446
  <span class="hits">6</span>
1441
1447
 
1442
1448
  <code class="ruby"> last_check_at = Time.now</code>
1443
1449
  </li>
1444
1450
 
1445
- <li class="never" data-hits="" data-linenumber="74">
1451
+ <li class="never" data-hits="" data-linenumber="75">
1446
1452
 
1447
1453
 
1448
1454
  <code class="ruby"></code>
1449
1455
  </li>
1450
1456
 
1451
- <li class="covered" data-hits="6" data-linenumber="75">
1457
+ <li class="covered" data-hits="6" data-linenumber="76">
1452
1458
  <span class="hits">6</span>
1453
1459
 
1454
1460
  <code class="ruby"> ret.merge!(</code>
1455
1461
  </li>
1456
1462
 
1457
- <li class="never" data-hits="" data-linenumber="76">
1463
+ <li class="never" data-hits="" data-linenumber="77">
1458
1464
 
1459
1465
 
1460
1466
  <code class="ruby"> gem_latest_version: checker.latest_version,</code>
1461
1467
  </li>
1462
1468
 
1463
- <li class="never" data-hits="" data-linenumber="77">
1469
+ <li class="never" data-hits="" data-linenumber="78">
1464
1470
 
1465
1471
 
1466
1472
  <code class="ruby"> last_checked_for_update: last_check_at,</code>
1467
1473
  </li>
1468
1474
 
1469
- <li class="never" data-hits="" data-linenumber="78">
1475
+ <li class="never" data-hits="" data-linenumber="79">
1470
1476
 
1471
1477
 
1472
1478
  <code class="ruby"> next_check_for_update: last_check_at + opts[:check_interval],</code>
1473
1479
  </li>
1474
1480
 
1475
- <li class="never" data-hits="" data-linenumber="79">
1481
+ <li class="never" data-hits="" data-linenumber="80">
1476
1482
 
1477
1483
 
1478
1484
  <code class="ruby"> installed_is_latest: ret[:gem_installed_version] == checker.latest_version,</code>
1479
1485
  </li>
1480
1486
 
1481
- <li class="never" data-hits="" data-linenumber="80">
1487
+ <li class="never" data-hits="" data-linenumber="81">
1482
1488
 
1483
1489
 
1484
- <code class="ruby"> gem_update_available: checker.update_available</code>
1490
+ <code class="ruby"> gem_update_available: Versionomy.parse(ret[:gem_installed_version]) &lt; Versionomy.parse(checker.latest_version)</code>
1485
1491
  </li>
1486
1492
 
1487
- <li class="never" data-hits="" data-linenumber="81">
1493
+ <li class="never" data-hits="" data-linenumber="82">
1488
1494
 
1489
1495
 
1490
1496
  <code class="ruby"> )</code>
1491
1497
  </li>
1492
1498
 
1493
- <li class="never" data-hits="" data-linenumber="82">
1499
+ <li class="never" data-hits="" data-linenumber="83">
1494
1500
 
1495
1501
 
1496
1502
  <code class="ruby"></code>
1497
1503
  </li>
1498
1504
 
1499
- <li class="covered" data-hits="6" data-linenumber="83">
1505
+ <li class="covered" data-hits="6" data-linenumber="84">
1500
1506
  <span class="hits">6</span>
1501
1507
 
1502
1508
  <code class="ruby"> if ret[:installed_is_latest] || opts[:force_check]</code>
1503
1509
  </li>
1504
1510
 
1505
- <li class="covered" data-hits="4" data-linenumber="84">
1511
+ <li class="covered" data-hits="4" data-linenumber="85">
1506
1512
  <span class="hits">4</span>
1507
1513
 
1508
1514
  <code class="ruby"> FileUtils.touch(statefile_path, mtime: Time.now)</code>
1509
1515
  </li>
1510
1516
 
1511
- <li class="never" data-hits="" data-linenumber="85">
1517
+ <li class="never" data-hits="" data-linenumber="86">
1512
1518
 
1513
1519
 
1514
1520
  <code class="ruby"> else</code>
1515
1521
  </li>
1516
1522
 
1517
- <li class="covered" data-hits="2" data-linenumber="86">
1523
+ <li class="covered" data-hits="2" data-linenumber="87">
1518
1524
  <span class="hits">2</span>
1519
1525
 
1520
1526
  <code class="ruby"> ret[:next_check_for_update] = Time.now</code>
1521
1527
  </li>
1522
1528
 
1523
- <li class="never" data-hits="" data-linenumber="87">
1529
+ <li class="never" data-hits="" data-linenumber="88">
1524
1530
 
1525
1531
 
1526
1532
  <code class="ruby"> end</code>
1527
1533
  </li>
1528
1534
 
1529
- <li class="never" data-hits="" data-linenumber="88">
1535
+ <li class="never" data-hits="" data-linenumber="89">
1530
1536
 
1531
1537
 
1532
1538
  <code class="ruby"></code>
1533
1539
  </li>
1534
1540
 
1535
- <li class="covered" data-hits="6" data-linenumber="89">
1541
+ <li class="covered" data-hits="6" data-linenumber="90">
1536
1542
  <span class="hits">6</span>
1537
1543
 
1538
1544
  <code class="ruby"> ret</code>
1539
1545
  </li>
1540
1546
 
1541
- <li class="never" data-hits="" data-linenumber="90">
1547
+ <li class="never" data-hits="" data-linenumber="91">
1542
1548
 
1543
1549
 
1544
1550
  <code class="ruby"> end</code>
1545
1551
  </li>
1546
1552
 
1547
- <li class="never" data-hits="" data-linenumber="91">
1553
+ <li class="never" data-hits="" data-linenumber="92">
1548
1554
 
1549
1555
 
1550
1556
  <code class="ruby"> end</code>
1551
1557
  </li>
1552
1558
 
1553
- <li class="never" data-hits="" data-linenumber="92">
1559
+ <li class="never" data-hits="" data-linenumber="93">
1554
1560
 
1555
1561
 
1556
1562
  <code class="ruby"> end</code>
1557
1563
  </li>
1558
1564
 
1559
- <li class="never" data-hits="" data-linenumber="93">
1565
+ <li class="never" data-hits="" data-linenumber="94">
1560
1566
 
1561
1567
 
1562
1568
  <code class="ruby">end</code>
data/doc/BB.html CHANGED
@@ -79,8 +79,8 @@
79
79
 
80
80
 
81
81
  <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/blackbox/gem.rb<span class="defines">,<br />
83
- lib/blackbox/hash.rb,<br /> lib/blackbox/unix.rb,<br /> lib/blackbox/string.rb,<br /> lib/blackbox/number.rb,<br /> lib/blackbox/crypto.rb,<br /> lib/blackbox/version.rb</span>
82
+ <dd class="r1 last">lib/blackbox/hash.rb<span class="defines">,<br />
83
+ lib/blackbox/gem.rb,<br /> lib/blackbox/unix.rb,<br /> lib/blackbox/string.rb,<br /> lib/blackbox/number.rb,<br /> lib/blackbox/crypto.rb,<br /> lib/blackbox/version.rb</span>
84
84
  </dd>
85
85
 
86
86
  </dl>
@@ -115,7 +115,7 @@
115
115
  <dt id="VERSION-constant" class="">VERSION =
116
116
 
117
117
  </dt>
118
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>4.0.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
118
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>4.0.3</span><span class='tstring_end'>&#39;</span></span></pre></dd>
119
119
 
120
120
  </dl>
121
121
 
@@ -131,7 +131,7 @@
131
131
  </div>
132
132
 
133
133
  <div id="footer">
134
- Generated on Sun Dec 25 17:07:01 2016 by
134
+ Generated on Thu Jul 27 14:23:36 2017 by
135
135
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
136
136
  0.8.7.6 (ruby-2.4.0).
137
137
  </div>
data/doc/BB/Crypto.html CHANGED
@@ -1142,7 +1142,7 @@
1142
1142
  </div>
1143
1143
 
1144
1144
  <div id="footer">
1145
- Generated on Sun Dec 25 17:07:01 2016 by
1145
+ Generated on Thu Jul 27 14:23:36 2017 by
1146
1146
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1147
1147
  0.8.7.6 (ruby-2.4.0).
1148
1148
  </div>
@@ -520,7 +520,7 @@
520
520
  </div>
521
521
 
522
522
  <div id="footer">
523
- Generated on Sun Dec 25 17:07:01 2016 by
523
+ Generated on Thu Jul 27 14:23:36 2017 by
524
524
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
525
525
  0.8.7.6 (ruby-2.4.0).
526
526
  </div>
data/doc/BB/Gem.html CHANGED
@@ -274,7 +274,6 @@ version?</p>
274
274
  <pre class="lines">
275
275
 
276
276
 
277
- 21
278
277
  22
279
278
  23
280
279
  24
@@ -343,10 +342,11 @@ version?</p>
343
342
  87
344
343
  88
345
344
  89
346
- 90</pre>
345
+ 90
346
+ 91</pre>
347
347
  </td>
348
348
  <td>
349
- <pre class="code"><span class="info file"># File 'lib/blackbox/gem.rb', line 21</span>
349
+ <pre class="code"><span class="info file"># File 'lib/blackbox/gem.rb', line 22</span>
350
350
 
351
351
  <span class='kw'>def</span> <span class='id identifier rubyid_version_info'>version_info</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
352
352
  <span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='lbrace'>{</span>
@@ -407,7 +407,7 @@ version?</p>
407
407
  <span class='label'>last_checked_for_update:</span> <span class='id identifier rubyid_last_check_at'>last_check_at</span><span class='comma'>,</span>
408
408
  <span class='label'>next_check_for_update:</span> <span class='id identifier rubyid_last_check_at'>last_check_at</span> <span class='op'>+</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:check_interval</span><span class='rbracket'>]</span><span class='comma'>,</span>
409
409
  <span class='label'>installed_is_latest:</span> <span class='id identifier rubyid_ret'>ret</span><span class='lbracket'>[</span><span class='symbol'>:gem_installed_version</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_checker'>checker</span><span class='period'>.</span><span class='id identifier rubyid_latest_version'>latest_version</span><span class='comma'>,</span>
410
- <span class='label'>gem_update_available:</span> <span class='id identifier rubyid_checker'>checker</span><span class='period'>.</span><span class='id identifier rubyid_update_available'>update_available</span>
410
+ <span class='label'>gem_update_available:</span> <span class='const'>Versionomy</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_ret'>ret</span><span class='lbracket'>[</span><span class='symbol'>:gem_installed_version</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>&lt;</span> <span class='const'>Versionomy</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_checker'>checker</span><span class='period'>.</span><span class='id identifier rubyid_latest_version'>latest_version</span><span class='rparen'>)</span>
411
411
  <span class='rparen'>)</span>
412
412
 
413
413
  <span class='kw'>if</span> <span class='id identifier rubyid_ret'>ret</span><span class='lbracket'>[</span><span class='symbol'>:installed_is_latest</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:force_check</span><span class='rbracket'>]</span>
@@ -428,7 +428,7 @@ version?</p>
428
428
  </div>
429
429
 
430
430
  <div id="footer">
431
- Generated on Sun Dec 25 17:07:01 2016 by
431
+ Generated on Thu Jul 27 14:23:36 2017 by
432
432
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
433
433
  0.8.7.6 (ruby-2.4.0).
434
434
  </div>
data/doc/BB/Hash.html CHANGED
@@ -432,7 +432,7 @@ BB::Hash.flatten_prop_style(input)
432
432
  </div>
433
433
 
434
434
  <div id="footer">
435
- Generated on Sun Dec 25 17:07:01 2016 by
435
+ Generated on Thu Jul 27 14:23:36 2017 by
436
436
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
437
437
  0.8.7.6 (ruby-2.4.0).
438
438
  </div>
data/doc/BB/Number.html CHANGED
@@ -920,7 +920,7 @@ can customize the format in the <code>options</code> hash.</p>
920
920
  </div>
921
921
 
922
922
  <div id="footer">
923
- Generated on Sun Dec 25 17:07:01 2016 by
923
+ Generated on Thu Jul 27 14:23:36 2017 by
924
924
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
925
925
  0.8.7.6 (ruby-2.4.0).
926
926
  </div>
data/doc/BB/String.html CHANGED
@@ -231,7 +231,7 @@
231
231
  </div>
232
232
 
233
233
  <div id="footer">
234
- Generated on Sun Dec 25 17:07:01 2016 by
234
+ Generated on Thu Jul 27 14:23:36 2017 by
235
235
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
236
236
  0.8.7.6 (ruby-2.4.0).
237
237
  </div>
data/doc/BB/Unix.html CHANGED
@@ -411,7 +411,7 @@
411
411
  </div>
412
412
 
413
413
  <div id="footer">
414
- Generated on Sun Dec 25 17:07:01 2016 by
414
+ Generated on Thu Jul 27 14:23:36 2017 by
415
415
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
416
416
  0.8.7.6 (ruby-2.4.0).
417
417
  </div>
data/doc/_index.html CHANGED
@@ -198,7 +198,7 @@
198
198
  </div>
199
199
 
200
200
  <div id="footer">
201
- Generated on Sun Dec 25 17:07:01 2016 by
201
+ Generated on Thu Jul 27 14:23:36 2017 by
202
202
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
203
203
  0.8.7.6 (ruby-2.4.0).
204
204
  </div>
data/doc/file.README.html CHANGED
@@ -95,7 +95,7 @@ BB::String.strip_ansi( ... )
95
95
  </div></div>
96
96
 
97
97
  <div id="footer">
98
- Generated on Sun Dec 25 17:07:01 2016 by
98
+ Generated on Thu Jul 27 14:23:36 2017 by
99
99
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
100
100
  0.8.7.6 (ruby-2.4.0).
101
101
  </div>
data/doc/index.html CHANGED
@@ -95,7 +95,7 @@ BB::String.strip_ansi( ... )
95
95
  </div></div>
96
96
 
97
97
  <div id="footer">
98
- Generated on Sun Dec 25 17:07:01 2016 by
98
+ Generated on Thu Jul 27 14:23:36 2017 by
99
99
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
100
100
  0.8.7.6 (ruby-2.4.0).
101
101
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sun Dec 25 17:07:01 2016 by
106
+ Generated on Thu Jul 27 14:23:36 2017 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.7.6 (ruby-2.4.0).
109
109
  </div>
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module BB
3
- VERSION = '4.0.2'
3
+ VERSION = '4.0.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-22 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 42.1.43
187
+ version: 90.8.8
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 42.1.43
194
+ version: 90.8.8
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rainbow
197
197
  requirement: !ruby/object:Gem::Requirement