gem_lookup 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4406e9a2cb86197cc76bb546764b41ce078e938b69525e68206b24bd7648c0b9
4
- data.tar.gz: 697c6c5bd42d790d20c6f93057de44bf4b393114f9ad222583c3909989b57411
3
+ metadata.gz: d37077890fa8e9ebfbdbed38a5828d9f95d13fd0615a61ada4e65da4b96ef11e
4
+ data.tar.gz: 64dbe1227bb5497256f1afe0bc36c42ca0a015b88e317b4c944dc0b2f326709a
5
5
  SHA512:
6
- metadata.gz: f859e2ec0accfb8a0f437043cd53589d83ebe56e7c7bffc4e681b75ec186c54b2dab6617f3a04f45c797835a92defb262a67f097c8c1865651eafaed31a4222c
7
- data.tar.gz: 4b5614a668000b060abcf28ead57240f9668279a513cdfb97d14735aaa4cbab61c89c4c5122fbcb7677f4b917e91b1ab8969ea695b3182b5bdb8f1504942c8cb
6
+ metadata.gz: 20dd318394e040658c18dfb9768e65f10e5b6bd0bb89eca9f0f009683be331ce252a0a22f8e24e74b076f806048b0362d3e0c1d14330814e6eea06ab2211934e
7
+ data.tar.gz: 8e4bb2b8000140f97b1016b5b60e4b82f11e479d006b5844c1b1fa07c11dbb8085259dfb75e9aaf5dbfe119d09c20c7fac3282b378153ca1998761a7922a429c
@@ -5,7 +5,7 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- ruby: [2.4, 2.5, 2.6, 2.7, 3.0, head]
8
+ ruby: [2.6, 2.7, 3.0, head]
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -7,6 +7,8 @@ AllCops:
7
7
  Exclude:
8
8
  - 'vendor/**/*'
9
9
 
10
+ Bundler/GemFilename:
11
+ Enabled: false
10
12
  Gemspec/RequiredRubyVersion:
11
13
  Enabled: false
12
14
  Layout/LineLength:
data/CHANGELOG.md CHANGED
@@ -5,6 +5,29 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog][changelog], and this project adheres to
6
6
  [Semantic Versioning][semver].
7
7
 
8
+ ## [1.3.0] - 2022-05-13
9
+
10
+ ### Added
11
+
12
+ * Ruby 3.1 support.
13
+
14
+ ### Removed
15
+
16
+ * Ruby 2.5 support.
17
+ * Ruby 2.4 support.
18
+
19
+ ## [1.2.1] - 2021-07-22
20
+
21
+ ### Changed
22
+
23
+ * Replaced colorization of light cyan with light blue.
24
+
25
+ ## [1.2.0] - 2021-07-14
26
+
27
+ ### Added
28
+
29
+ * The license(s) are now displayed as the :briefcase: / License(s).
30
+
8
31
  ## [1.1.0] - 2021-07-14
9
32
 
10
33
  ### Added
data/README.md CHANGED
@@ -66,6 +66,7 @@ $ gems pry
66
66
  => 🔎 Looking up: pry
67
67
  => 💎 pry is at 0.14.1
68
68
  ==> 📅 April 12, 2021
69
+ ==> 💼 MIT
69
70
  ==> 🧭 https://rubygems.org/gems/pry
70
71
  ==> 🏠 http://pry.github.io
71
72
  ==> 🔗 https://github.com/pry/pry
@@ -81,6 +82,7 @@ $ gems --wordy pry
81
82
  => Looking up: pry
82
83
  => Gem: pry is at 0.14.1
83
84
  ==> Updated: April 12, 2021
85
+ ==> License: MIT
84
86
  ==> Location: https://rubygems.org/gems/pry
85
87
  ==> Homepage: http://pry.github.io
86
88
  ==> Source Code: https://github.com/pry/pry
@@ -160,6 +162,7 @@ $ gems pry rspec sentry-ruby rails
160
162
  => 🔎 pry, rspec, sentry-ruby, rails
161
163
  => 💎 pry is at 0.14.1
162
164
  ==> 📅 April 12, 2021
165
+ ==> 💼 MIT
163
166
  ==> 🧭 https://rubygems.org/gems/pry
164
167
  ==> 🏠 http://pry.github.io
165
168
  ==> 🔗 https://github.com/pry/pry
@@ -167,25 +170,28 @@ $ gems pry rspec sentry-ruby rails
167
170
  ==> 💌 Unavailable
168
171
  => 💎 rspec is at 3.10.0
169
172
  ==> 📅 October 30, 2020
173
+ ==> 💼 MIT
170
174
  ==> 🧭 https://rubygems.org/gems/rspec
171
175
  ==> 🏠 http://github.com/rspec
172
176
  ==> 🔗 https://github.com/rspec/rspec
173
177
  ==> 📑 Unavailable
174
178
  ==> 💌 https://groups.google.com/forum/#!forum/rspec
175
- => 💎 rails is at 6.1.4
176
- ==> 📅 June 24, 2021
177
- ==> 🧭 https://rubygems.org/gems/rails
178
- ==> 🏠 https://rubyonrails.org
179
- ==> 🔗 https://github.com/rails/rails/tree/v6.1.4
180
- ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.4
181
- ==> 💌 https://discuss.rubyonrails.org/c/rubyonrails-talk
182
179
  => 💎 sentry-ruby is at 4.6.1
183
180
  ==> 📅 July 8, 2021
181
+ ==> 💼 Apache-2.0
184
182
  ==> 🧭 https://rubygems.org/gems/sentry-ruby
185
183
  ==> 🏠 https://github.com/getsentry/sentry-ruby
186
184
  ==> 🔗 https://github.com/getsentry/sentry-ruby
187
185
  ==> 📑 https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
188
186
  ==> 💌 Unavailable
187
+ => 💎 rails is at 6.1.4
188
+ ==> 📅 June 24, 2021
189
+ ==> 💼 MIT
190
+ ==> 🧭 https://rubygems.org/gems/rails
191
+ ==> 🏠 https://rubyonrails.org
192
+ ==> 🔗 https://github.com/rails/rails/tree/v6.1.4
193
+ ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.4
194
+ ==> 💌 https://discuss.rubyonrails.org/c/rubyonrails-talk
189
195
  ```
190
196
 
191
197
  #### Batch Mode
@@ -199,50 +205,73 @@ $ gems byebug pinglish rspec rubocop rubocop-rspec rubocop-rails sentry-ruby sen
199
205
  => 🤔 24 gems
200
206
  => 🧺 1 of 3
201
207
  => 🔎 byebug, pinglish, rspec, rubocop, rubocop-rspec, rubocop-rails, sentry-ruby, sentry-rails, pry, typhoeus
202
- => 💎 pinglish is at 0.2.1
203
- ==> 📅 November 13, 2014
204
- ==> 🧭 https://rubygems.org/gems/pinglish
205
- ==> 🏠 https://github.com/jbarnette/pinglish
206
- ==> 🔗 Unavailable
208
+ => 💎 rspec is at 3.10.0
209
+ ==> 📅 October 30, 2020
210
+ ==> 💼 MIT
211
+ ==> 🧭 https://rubygems.org/gems/rspec
212
+ ==> 🏠 http://github.com/rspec
213
+ ==> 🔗 https://github.com/rspec/rspec
207
214
  ==> 📑 Unavailable
208
- ==> 💌 Unavailable
215
+ ==> 💌 https://groups.google.com/forum/#!forum/rspec
209
216
  => 💎 rubocop-rspec is at 2.4.0
210
217
  ==> 📅 June 9, 2021
218
+ ==> 💼 MIT
211
219
  ==> 🧭 https://rubygems.org/gems/rubocop-rspec
212
220
  ==> 🏠 https://github.com/rubocop/rubocop-rspec
213
221
  ==> 🔗 Unavailable
214
222
  ==> 📑 https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md
215
223
  ==> 💌 Unavailable
224
+ => 💎 rubocop is at 1.18.3
225
+ ==> 📅 July 6, 2021
226
+ ==> 💼 MIT
227
+ ==> 🧭 https://rubygems.org/gems/rubocop
228
+ ==> 🏠 https://rubocop.org/
229
+ ==> 🔗 https://github.com/rubocop/rubocop/
230
+ ==> 📑 https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
231
+ ==> 💌 Unavailable
232
+ => 💎 sentry-rails is at 4.6.1
233
+ ==> 📅 July 8, 2021
234
+ ==> 💼 Apache-2.0
235
+ ==> 🧭 https://rubygems.org/gems/sentry-rails
236
+ ==> 🏠 https://github.com/getsentry/sentry-ruby
237
+ ==> 🔗 https://github.com/getsentry/sentry-ruby
238
+ ==> 📑 https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
239
+ ==> 💌 Unavailable
216
240
  => 💎 byebug is at 11.1.3
217
241
  ==> 📅 April 23, 2020
242
+ ==> 💼 BSD-2-Clause
218
243
  ==> 🧭 https://rubygems.org/gems/byebug
219
244
  ==> 🏠 https://github.com/deivid-rodriguez/byebug
220
245
  ==> 🔗 https://github.com/deivid-rodriguez/byebug
221
246
  ==> 📑 Unavailable
222
247
  ==> 💌 Unavailable
223
- => 💎 rspec is at 3.10.0
224
- ==> 📅 October 30, 2020
225
- ==> 🧭 https://rubygems.org/gems/rspec
226
- ==> 🏠 http://github.com/rspec
227
- ==> 🔗 https://github.com/rspec/rspec
248
+ => 💎 pinglish is at 0.2.1
249
+ ==> 📅 November 13, 2014
250
+ ==> 💼 None
251
+ ==> 🧭 https://rubygems.org/gems/pinglish
252
+ ==> 🏠 https://github.com/jbarnette/pinglish
253
+ ==> 🔗 Unavailable
228
254
  ==> 📑 Unavailable
229
- ==> 💌 https://groups.google.com/forum/#!forum/rspec
230
- => 💎 rubocop-rails is at 2.11.3
231
- ==> 📅 July 11, 2021
232
- ==> 🧭 https://rubygems.org/gems/rubocop-rails
233
- ==> 🏠 https://docs.rubocop.org/rubocop-rails/
234
- ==> 🔗 https://github.com/rubocop/rubocop-rails/
235
- ==> 📑 https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md
236
255
  ==> 💌 Unavailable
237
256
  => 💎 sentry-ruby is at 4.6.1
238
257
  ==> 📅 July 8, 2021
258
+ ==> 💼 Apache-2.0
239
259
  ==> 🧭 https://rubygems.org/gems/sentry-ruby
240
260
  ==> 🏠 https://github.com/getsentry/sentry-ruby
241
261
  ==> 🔗 https://github.com/getsentry/sentry-ruby
242
262
  ==> 📑 https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
243
263
  ==> 💌 Unavailable
264
+ => 💎 rubocop-rails is at 2.11.3
265
+ ==> 📅 July 11, 2021
266
+ ==> 💼 MIT
267
+ ==> 🧭 https://rubygems.org/gems/rubocop-rails
268
+ ==> 🏠 https://docs.rubocop.org/rubocop-rails/
269
+ ==> 🔗 https://github.com/rubocop/rubocop-rails/
270
+ ==> 📑 https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md
271
+ ==> 💌 Unavailable
244
272
  => 💎 pry is at 0.14.1
245
273
  ==> 📅 April 12, 2021
274
+ ==> 💼 MIT
246
275
  ==> 🧭 https://rubygems.org/gems/pry
247
276
  ==> 🏠 http://pry.github.io
248
277
  ==> 🔗 https://github.com/pry/pry
@@ -250,92 +279,89 @@ $ gems byebug pinglish rspec rubocop rubocop-rspec rubocop-rails sentry-ruby sen
250
279
  ==> 💌 Unavailable
251
280
  => 💎 typhoeus is at 1.4.0
252
281
  ==> 📅 May 8, 2020
282
+ ==> 💼 MIT
253
283
  ==> 🧭 https://rubygems.org/gems/typhoeus
254
284
  ==> 🏠 https://github.com/typhoeus/typhoeus
255
285
  ==> 🔗 https://github.com/typhoeus/typhoeus
256
286
  ==> 📑 Unavailable
257
287
  ==> 💌 http://groups.google.com/group/typhoeus
258
- => 💎 rubocop is at 1.18.3
259
- ==> 📅 July 6, 2021
260
- ==> 🧭 https://rubygems.org/gems/rubocop
261
- ==> 🏠 https://rubocop.org/
262
- ==> 🔗 https://github.com/rubocop/rubocop/
263
- ==> 📑 https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
264
- ==> 💌 Unavailable
265
- => 💎 sentry-rails is at 4.6.1
266
- ==> 📅 July 8, 2021
267
- ==> 🧭 https://rubygems.org/gems/sentry-rails
268
- ==> 🏠 https://github.com/getsentry/sentry-ruby
269
- ==> 🔗 https://github.com/getsentry/sentry-ruby
270
- ==> 📑 https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
271
- ==> 💌 Unavailable
272
288
  => 🧺 2 of 3
273
289
  => 🔎 faraday, rails, pagy, clowne, discard, aasm, logidze, globalize, lockbox, factory_bot
274
290
  => 💎 discard is at 1.2.0
275
291
  ==> 📅 February 17, 2020
292
+ ==> 💼 MIT
276
293
  ==> 🧭 https://rubygems.org/gems/discard
277
294
  ==> 🏠 https://github.com/jhawthorn/discard
278
295
  ==> 🔗 Unavailable
279
296
  ==> 📑 Unavailable
280
297
  ==> 💌 Unavailable
281
- => 💎 aasm is at 5.2.0
282
- ==> 📅 May 1, 2021
283
- ==> 🧭 https://rubygems.org/gems/aasm
284
- ==> 🏠 https://github.com/aasm/aasm
285
- ==> 🔗 https://github.com/aasm/aasm
286
- ==> 📑 Unavailable
287
- ==> 💌 Unavailable
288
- => 💎 lockbox is at 0.6.5
289
- ==> 📅 July 7, 2021
290
- ==> 🧭 https://rubygems.org/gems/lockbox
291
- ==> 🏠 https://github.com/ankane/lockbox
292
- ==> 🔗 Unavailable
293
- ==> 📑 Unavailable
294
- ==> 💌 Unavailable
295
298
  => 💎 rails is at 6.1.4
296
299
  ==> 📅 June 24, 2021
300
+ ==> 💼 MIT
297
301
  ==> 🧭 https://rubygems.org/gems/rails
298
302
  ==> 🏠 https://rubyonrails.org
299
303
  ==> 🔗 https://github.com/rails/rails/tree/v6.1.4
300
304
  ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.4
301
305
  ==> 💌 https://discuss.rubyonrails.org/c/rubyonrails-talk
302
- => 💎 logidze is at 1.2.0
303
- ==> 📅 June 11, 2021
304
- ==> 🧭 https://rubygems.org/gems/logidze
305
- ==> 🏠 http://github.com/palkan/logidze
306
- ==> 🔗 http://github.com/palkan/logidze
307
- ==> 📑 https://github.com/palkan/logidze/blob/master/CHANGELOG.md
306
+ => 💎 pagy is at 4.10.1
307
+ ==> 📅 June 24, 2021
308
+ ==> 💼 MIT
309
+ ==> 🧭 https://rubygems.org/gems/pagy
310
+ ==> 🏠 https://github.com/ddnexus/pagy
311
+ ==> 🔗 Unavailable
312
+ ==> 📑 Unavailable
308
313
  ==> 💌 Unavailable
309
314
  => 💎 clowne is at 1.3.0
310
315
  ==> 📅 May 12, 2021
316
+ ==> 💼 MIT
311
317
  ==> 🧭 https://rubygems.org/gems/clowne
312
318
  ==> 🏠 https://clowne.evilmartians.io/
313
319
  ==> 🔗 http://github.com/clowne-rb/clowne
314
320
  ==> 📑 https://github.com/clowne-rb/clowne/blob/master/CHANGELOG.md
315
321
  ==> 💌 Unavailable
316
- => 💎 pagy is at 4.10.1
317
- ==> 📅 June 24, 2021
318
- ==> 🧭 https://rubygems.org/gems/pagy
319
- ==> 🏠 https://github.com/ddnexus/pagy
320
- ==> 🔗 Unavailable
322
+ => 💎 logidze is at 1.2.0
323
+ ==> 📅 June 11, 2021
324
+ ==> 💼 MIT
325
+ ==> 🧭 https://rubygems.org/gems/logidze
326
+ ==> 🏠 http://github.com/palkan/logidze
327
+ ==> 🔗 http://github.com/palkan/logidze
328
+ ==> 📑 https://github.com/palkan/logidze/blob/master/CHANGELOG.md
329
+ ==> 💌 Unavailable
330
+ => 💎 aasm is at 5.2.0
331
+ ==> 📅 May 1, 2021
332
+ ==> 💼 MIT
333
+ ==> 🧭 https://rubygems.org/gems/aasm
334
+ ==> 🏠 https://github.com/aasm/aasm
335
+ ==> 🔗 https://github.com/aasm/aasm
321
336
  ==> 📑 Unavailable
322
337
  ==> 💌 Unavailable
323
- => 💎 globalize is at 6.0.1
324
- ==> 📅 June 23, 2021
325
- ==> 🧭 https://rubygems.org/gems/globalize
326
- ==> 🏠 http://github.com/globalize/globalize
338
+ => 💎 lockbox is at 0.6.5
339
+ ==> 📅 July 7, 2021
340
+ ==> 💼 MIT
341
+ ==> 🧭 https://rubygems.org/gems/lockbox
342
+ ==> 🏠 https://github.com/ankane/lockbox
327
343
  ==> 🔗 Unavailable
328
344
  ==> 📑 Unavailable
329
345
  ==> 💌 Unavailable
330
346
  => 💎 factory_bot is at 6.2.0
331
347
  ==> 📅 May 7, 2021
348
+ ==> 💼 MIT
332
349
  ==> 🧭 https://rubygems.org/gems/factory_bot
333
350
  ==> 🏠 https://github.com/thoughtbot/factory_bot
334
351
  ==> 🔗 Unavailable
335
352
  ==> 📑 Unavailable
336
353
  ==> 💌 Unavailable
354
+ => 💎 globalize is at 6.0.1
355
+ ==> 📅 June 23, 2021
356
+ ==> 💼 MIT
357
+ ==> 🧭 https://rubygems.org/gems/globalize
358
+ ==> 🏠 http://github.com/globalize/globalize
359
+ ==> 🔗 Unavailable
360
+ ==> 📑 Unavailable
361
+ ==> 💌 Unavailable
337
362
  => 💎 faraday is at 1.5.1
338
363
  ==> 📅 July 11, 2021
364
+ ==> 💼 MIT
339
365
  ==> 🧭 https://rubygems.org/gems/faraday
340
366
  ==> 🏠 https://lostisland.github.io/faraday
341
367
  ==> 🔗 https://github.com/lostisland/faraday
@@ -343,8 +369,17 @@ $ gems byebug pinglish rspec rubocop rubocop-rspec rubocop-rails sentry-ruby sen
343
369
  ==> 💌 Unavailable
344
370
  => 🧺 3 of 3
345
371
  => 🔎 faker, site_prism, nokogiri, simplecov
372
+ => 💎 site_prism is at 3.7.1
373
+ ==> 📅 February 19, 2021
374
+ ==> 💼 BSD-3-Clause
375
+ ==> 🧭 https://rubygems.org/gems/site_prism
376
+ ==> 🏠 https://github.com/site-prism/site_prism
377
+ ==> 🔗 https://github.com/site-prism/site_prism
378
+ ==> 📑 https://github.com/site-prism/site_prism/blob/main/CHANGELOG.md
379
+ ==> 💌 Unavailable
346
380
  => 💎 simplecov is at 0.21.2
347
381
  ==> 📅 January 9, 2021
382
+ ==> 💼 MIT
348
383
  ==> 🧭 https://rubygems.org/gems/simplecov
349
384
  ==> 🏠 https://github.com/simplecov-ruby/simplecov
350
385
  ==> 🔗 https://github.com/simplecov-ruby/simplecov/tree/v0.21.2
@@ -352,6 +387,7 @@ $ gems byebug pinglish rspec rubocop rubocop-rspec rubocop-rails sentry-ruby sen
352
387
  ==> 💌 https://groups.google.com/forum/#!forum/simplecov
353
388
  => 💎 faker is at 2.18.0
354
389
  ==> 📅 May 15, 2021
390
+ ==> 💼 MIT
355
391
  ==> 🧭 https://rubygems.org/gems/faker
356
392
  ==> 🏠 https://github.com/faker-ruby/faker
357
393
  ==> 🔗 https://github.com/faker-ruby/faker
@@ -359,18 +395,12 @@ $ gems byebug pinglish rspec rubocop rubocop-rspec rubocop-rails sentry-ruby sen
359
395
  ==> 💌 Unavailable
360
396
  => 💎 nokogiri is at 1.11.7
361
397
  ==> 📅 June 3, 2021
398
+ ==> 💼 MIT
362
399
  ==> 🧭 https://rubygems.org/gems/nokogiri
363
400
  ==> 🏠 https://nokogiri.org
364
401
  ==> 🔗 https://github.com/sparklemotion/nokogiri
365
402
  ==> 📑 https://nokogiri.org/CHANGELOG.html
366
403
  ==> 💌 Unavailable
367
- => 💎 site_prism is at 3.7.1
368
- ==> 📅 February 19, 2021
369
- ==> 🧭 https://rubygems.org/gems/site_prism
370
- ==> 🏠 https://github.com/site-prism/site_prism
371
- ==> 🔗 https://github.com/site-prism/site_prism
372
- ==> 📑 https://github.com/site-prism/site_prism/blob/main/CHANGELOG.md
373
- ==> 💌 Unavailable
374
404
  ```
375
405
 
376
406
  #### Non-Existent Gems
@@ -386,6 +416,7 @@ $ gems non-existent rails
386
416
  => 💎 non-existent not found
387
417
  => 💎 rails is at 6.1.4
388
418
  ==> 📅 June 24, 2021
419
+ ==> 💼 MIT
389
420
  ==> 🧭 https://rubygems.org/gems/rails
390
421
  ==> 🏠 https://rubyonrails.org
391
422
  ==> 🔗 https://github.com/rails/rails/tree/v6.1.4
data/gem_lookup.gemspec CHANGED
@@ -18,11 +18,12 @@ Gem::Specification.new do |spec|
18
18
  spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
19
19
 
20
20
  spec.metadata = {
21
- 'bug_tracker_uri' => 'https://github.com/trueheart78/gem_lookup/issues',
22
- 'changelog_uri' => 'https://github.com/trueheart78/gem_lookup/blob/main/CHANGELOG.md',
23
- 'documentation_uri' => spec.homepage,
24
- 'homepage_uri' => spec.homepage,
25
- 'source_code_uri' => "https://github.com/trueheart78/gem_lookup/tree/v#{GemLookup::VERSION}"
21
+ 'bug_tracker_uri' => 'https://github.com/trueheart78/gem_lookup/issues',
22
+ 'changelog_uri' => 'https://github.com/trueheart78/gem_lookup/blob/main/CHANGELOG.md',
23
+ 'documentation_uri' => spec.homepage,
24
+ 'homepage_uri' => spec.homepage,
25
+ 'source_code_uri' => "https://github.com/trueheart78/gem_lookup/tree/v#{GemLookup::VERSION}",
26
+ 'rubygems_mfa_required' => 'true'
26
27
  }
27
28
 
28
29
  # Specify which files should be added to the gem when it is released.
data/init/bundler.rb CHANGED
@@ -3,4 +3,4 @@
3
3
  require 'rubygems'
4
4
  require 'bundler'
5
5
 
6
- Bundler.require(:default, ENV['APP_ENV'].to_sym) unless ENV['APP_ENV'] == 'production'
6
+ Bundler.require(:default, ENV['APP_ENV'].to_sym) unless ENV.fetch('APP_ENV', nil) == 'production'
data/init/zeitwerk.rb CHANGED
@@ -8,7 +8,7 @@ root_dir = File.expand_path(File.dirname(File.dirname(__FILE__)))
8
8
 
9
9
  loader.push_dir(File.join(root_dir, 'lib'))
10
10
 
11
- if ENV['APP_ENV'] != 'production'
11
+ if ENV.fetch('APP_ENV', nil) != 'production'
12
12
  loader.push_dir(File.join(root_dir, 'spec'))
13
13
  loader.ignore(File.join(root_dir, '**', '*_spec.rb'))
14
14
  end
@@ -22,7 +22,7 @@ module GemLookup
22
22
  # Outputs the number of gems being queried.
23
23
  # @param num [Numeric] the number of gems.
24
24
  def gem_count(num:)
25
- puts "=> 🤔 #{num} gems".light_cyan
25
+ puts "=> 🤔 #{num} gems".light_blue
26
26
  end
27
27
 
28
28
  # Outputs the current batch and total number of batches
@@ -53,6 +53,7 @@ module GemLookup
53
53
  [].tap do |output|
54
54
  output.push "=> 💎 #{json[:name]} is at #{json[:version]}".green
55
55
  output.push "==> 📅 #{convert_date(date: json[:version_created_at])}"
56
+ output.push license(licenses: json[:licenses])
56
57
  output.push "==> 🧭 #{json[:project_uri]}"
57
58
  output.push "==> 🏠 #{json[:homepage_uri]}"
58
59
  output.push source_code(source_code_uri: json[:source_code_uri])
@@ -62,6 +63,15 @@ module GemLookup
62
63
  end
63
64
  # rubocop:enable Metrics/AbcSize
64
65
 
66
+ # Generates the "License(s)" string
67
+ # @param licenses [Array] the licenses.
68
+ # @return [String] the assigned license(s) string.
69
+ def license(licenses:)
70
+ return '==> 💼 None' unless licenses.any?
71
+
72
+ "==> 💼 #{licenses.join(", ")}"
73
+ end
74
+
65
75
  # Generates the "Source Code" string
66
76
  # @param source_code_uri [String] the source code uri.
67
77
  # @return [String] the repository string.
@@ -78,7 +88,7 @@ module GemLookup
78
88
  # @return [String] the changelog string.
79
89
  def changelog(changelog_uri:)
80
90
  if changelog_uri && !changelog_uri.empty?
81
- "==> 📑 #{changelog_uri}".light_cyan
91
+ "==> 📑 #{changelog_uri}".light_blue
82
92
  else
83
93
  '==> 📑 Unavailable'.light_red
84
94
  end
@@ -89,7 +99,7 @@ module GemLookup
89
99
  # @return [String] the mailing list string.
90
100
  def mailing_list(mailing_list_uri:)
91
101
  if mailing_list_uri && !mailing_list_uri.empty?
92
- "==> 💌 #{mailing_list_uri}".light_cyan
102
+ "==> 💌 #{mailing_list_uri}".light_blue
93
103
  else
94
104
  '==> 💌 Unavailable'.light_red
95
105
  end
@@ -22,7 +22,7 @@ module GemLookup
22
22
  # Outputs the number of gems being queried.
23
23
  # @param num [Numeric] the number of gems.
24
24
  def gem_count(num:)
25
- puts "=> Query: #{num} gems".light_cyan
25
+ puts "=> Query: #{num} gems".light_blue
26
26
  end
27
27
 
28
28
  # Outputs the current batch and total number of batches
@@ -53,6 +53,7 @@ module GemLookup
53
53
  [].tap do |output|
54
54
  output.push "=> Gem: #{json[:name]} is at #{json[:version]}".green
55
55
  output.push "==> Updated: #{convert_date(date: json[:version_created_at])}"
56
+ output.push license(licenses: json[:licenses])
56
57
  output.push "==> Location: #{json[:project_uri]}"
57
58
  output.push "==> Homepage: #{json[:homepage_uri]}"
58
59
  output.push source_code(source_code_uri: json[:source_code_uri])
@@ -62,6 +63,19 @@ module GemLookup
62
63
  end
63
64
  # rubocop:enable Metrics/AbcSize
64
65
 
66
+ # Generates the "License(s)" string
67
+ # @param licenses [Array] the licenses.
68
+ # @return [String] the assigned license(s) string.
69
+ def license(licenses:)
70
+ return '==> License: None' unless licenses.any?
71
+
72
+ if licenses.size == 1
73
+ "==> License: #{licenses.first}"
74
+ else
75
+ "==> Licenses: #{licenses.join(", ")}"
76
+ end
77
+ end
78
+
65
79
  # Generates the "Source Code" string
66
80
  # @param source_code_uri [String] the source code uri.
67
81
  # @return [String] the repository string.
@@ -78,7 +92,7 @@ module GemLookup
78
92
  # @return [String] the changelog string.
79
93
  def changelog(changelog_uri:)
80
94
  if changelog_uri && !changelog_uri.empty?
81
- "==> Changelog: #{changelog_uri}".light_cyan
95
+ "==> Changelog: #{changelog_uri}".light_blue
82
96
  else
83
97
  '==> Changelog: Unavailable'.light_red
84
98
  end
@@ -89,7 +103,7 @@ module GemLookup
89
103
  # @return [String] the mailing list string.
90
104
  def mailing_list(mailing_list_uri:)
91
105
  if mailing_list_uri && !mailing_list_uri.empty?
92
- "==> Mailing List: #{mailing_list_uri}".light_cyan
106
+ "==> Mailing List: #{mailing_list_uri}".light_blue
93
107
  else
94
108
  '==> Mailing List: Unavailable'.light_red
95
109
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GemLookup
4
4
  # @return [String] the current version of the gem.
5
- VERSION = '1.1.0'
5
+ VERSION = '1.3.0'
6
6
 
7
7
  # @return [String] the name of the gem
8
8
  NAME = 'gem_lookup'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Mills
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-14 00:00:00.000000000 Z
11
+ date: 2022-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -102,7 +102,8 @@ metadata:
102
102
  changelog_uri: https://github.com/trueheart78/gem_lookup/blob/main/CHANGELOG.md
103
103
  documentation_uri: https://github.com/trueheart78/gem_lookup
104
104
  homepage_uri: https://github.com/trueheart78/gem_lookup
105
- source_code_uri: https://github.com/trueheart78/gem_lookup/tree/v1.1.0
105
+ source_code_uri: https://github.com/trueheart78/gem_lookup/tree/v1.3.0
106
+ rubygems_mfa_required: 'true'
106
107
  post_install_message:
107
108
  rdoc_options: []
108
109
  require_paths:
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  - !ruby/object:Gem::Version
119
120
  version: '0'
120
121
  requirements: []
121
- rubygems_version: 3.2.19
122
+ rubygems_version: 3.3.13
122
123
  signing_key:
123
124
  specification_version: 4
124
125
  summary: Retrieves gem-related information from https://rubygems.org