gem_lookup 1.0.0 → 1.2.1

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: 51612222b09b861d0448add7b96f2f83bd9c53df77c9eff3dc8c89ee67c717e2
4
- data.tar.gz: 27ae8d9adf7bf3b18d6d104c3fae84b1e897438b6118ed1fb66c89c42b80daf6
3
+ metadata.gz: ea4c29684d8d8e1793d83c9701977286699eda4c5af38f3be1b31f710828d3eb
4
+ data.tar.gz: c9d2b95d49487ab2f20958d1ff4b84a2ea98718dc239433e69a6026efcd83336
5
5
  SHA512:
6
- metadata.gz: 3f044675c1498ab060f2bd121dd9bc96f3953b939090fb1e0f47c7e633c22430ba7c247ad13e9a4692c728f7cdc3c7024aa0cbcdfdf4876fa9a03f3d968c25b9
7
- data.tar.gz: 4691f287d685c9f1b586d480923cacef9cbe4361fbef71d29e50a3dc0bc88416f50ce92ddce2b79ae6bf60932d875969918586988633abb2b8efdfc9e81b00c7
6
+ metadata.gz: ca6b3577faba2d35db8bb4c0ecef4ce24b37d6f575e363e5b27201d4bafeecc3707b7f917ba443a8e463f2ed1156a6082925fc64b9c0a83832d450ef83785a6e
7
+ data.tar.gz: d4d157f702b630d14d1cd7527b0141a3a5383cb0960d2b2ade4c3cb3d30ac86547f4345444d898c3e632a6b58a7030aaf433c2f5eebf18133cea497dfff2d309
data/CHANGELOG.md CHANGED
@@ -5,6 +5,34 @@ 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.2.1] - 2021-07-22
9
+
10
+ ### Changed
11
+
12
+ * Replaced colorization of light cyan with light blue.
13
+
14
+ ## [1.2.0] - 2021-07-14
15
+
16
+ ### Added
17
+
18
+ * The license(s) are now displayed as the :briefcase: / License(s).
19
+
20
+ ## [1.1.0] - 2021-07-14
21
+
22
+ ### Added
23
+
24
+ * The RubyGems url is now displayed as the :compass: / `Location`.
25
+
26
+ ## [1.0.1] - 2021-07-14
27
+
28
+ ### Fixed
29
+
30
+ * `Bundler.require` is no longer called when `ENV['APP_ENV']` is set to `production`.
31
+ * Zeitwerk ignores specs if `ENV['APP_ENV']` is set to `production`.
32
+ * Add `require_relative 'gem_lookup/version'` to `lib/gem_lookup.rb`.
33
+ * Satisfies Zeitwerk's need for the `GemLookup` constant to be defined in the file.
34
+ * Solves a `GemLookup::Help.version` constant check, as this module had not yet been defined.
35
+
8
36
  ## [1.0.0] - 2021-07-14
9
37
 
10
38
  ### Added
data/README.md CHANGED
@@ -66,6 +66,8 @@ $ gems pry
66
66
  => 🔎 Looking up: pry
67
67
  => 💎 pry is at 0.14.1
68
68
  ==> 📅 April 12, 2021
69
+ ==> 💼 MIT
70
+ ==> 🧭 https://rubygems.org/gems/pry
69
71
  ==> 🏠 http://pry.github.io
70
72
  ==> 🔗 https://github.com/pry/pry
71
73
  ==> 📑 https://github.com/pry/pry/blob/master/CHANGELOG.md
@@ -80,6 +82,8 @@ $ gems --wordy pry
80
82
  => Looking up: pry
81
83
  => Gem: pry is at 0.14.1
82
84
  ==> Updated: April 12, 2021
85
+ ==> License: MIT
86
+ ==> Location: https://rubygems.org/gems/pry
83
87
  ==> Homepage: http://pry.github.io
84
88
  ==> Source Code: https://github.com/pry/pry
85
89
  ==> Changelog: https://github.com/pry/pry/blob/master/CHANGELOG.md
@@ -154,28 +158,40 @@ Since there is a [rate limit](#rate-limit), passing less gems than that will cau
154
158
 
155
159
  ```sh
156
160
  $ gems pry rspec sentry-ruby rails
157
- => Gems: 4
158
- => 🔎 Looking up: pry, rspec, sentry-ruby, rails
161
+ => 🤔 4 gems
162
+ => 🔎 pry, rspec, sentry-ruby, rails
163
+ => 💎 pry is at 0.14.1
164
+ ==> 📅 April 12, 2021
165
+ ==> 💼 MIT
166
+ ==> 🧭 https://rubygems.org/gems/pry
167
+ ==> 🏠 http://pry.github.io
168
+ ==> 🔗 https://github.com/pry/pry
169
+ ==> 📑 https://github.com/pry/pry/blob/master/CHANGELOG.md
170
+ ==> 💌 Unavailable
159
171
  => 💎 rspec is at 3.10.0
160
172
  ==> 📅 October 30, 2020
173
+ ==> 💼 MIT
174
+ ==> 🧭 https://rubygems.org/gems/rspec
161
175
  ==> 🏠 http://github.com/rspec
162
176
  ==> 🔗 https://github.com/rspec/rspec
163
- ==> 📑 No changelog
164
- => 💎 sentry-ruby is at 4.5.1
165
- ==> 📅 June 4, 2021
177
+ ==> 📑 Unavailable
178
+ ==> 💌 https://groups.google.com/forum/#!forum/rspec
179
+ => 💎 sentry-ruby is at 4.6.1
180
+ ==> 📅 July 8, 2021
181
+ ==> 💼 Apache-2.0
182
+ ==> 🧭 https://rubygems.org/gems/sentry-ruby
166
183
  ==> 🏠 https://github.com/getsentry/sentry-ruby
167
184
  ==> 🔗 https://github.com/getsentry/sentry-ruby
168
185
  ==> 📑 https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
169
- => 💎 pry is at 0.14.1
170
- ==> 📅 April 12, 2021
171
- ==> 🏠 http://pry.github.io
172
- ==> 🔗 https://github.com/pry/pry
173
- ==> 📑 https://github.com/pry/pry/blob/master/CHANGELOG.md
174
- => 💎 rails is at 6.1.3.2
175
- ==> 📅 May 5, 2021
186
+ ==> 💌 Unavailable
187
+ => 💎 rails is at 6.1.4
188
+ ==> 📅 June 24, 2021
189
+ ==> 💼 MIT
190
+ ==> 🧭 https://rubygems.org/gems/rails
176
191
  ==> 🏠 https://rubyonrails.org
177
- ==> 🔗 https://github.com/rails/rails/tree/v6.1.3.2
178
- ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.3.2
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
179
195
  ```
180
196
 
181
197
  #### Batch Mode
@@ -186,126 +202,205 @@ between batches, so as to respect the rate limit.
186
202
 
187
203
  ```sh
188
204
  $ gems byebug pinglish rspec rubocop rubocop-rspec rubocop-rails sentry-ruby sentry-rails pry byebug typhoeus faraday Faraday rails pagy clowne discard aasm logidze GLOBALIZE lockbox factory_BOT faker site_prism nokogiri simplecov
189
- => Gems: 24
190
- => 🧺 Batch: 1 of 3
191
- => 🔎 Looking up: byebug, pinglish, rspec, rubocop, rubocop-rspec, rubocop-rails, sentry-ruby, sentry-rails, pry, typhoeus
192
- => 💎 pinglish is at 0.2.1
193
- ==> 📅 November 13, 2014
194
- ==> 🏠 https://github.com/jbarnette/pinglish
195
- ==> 📑 No changelog
196
- => 💎 sentry-rails is at 4.5.1
197
- ==> 📅 June 4, 2021
205
+ => 🤔 24 gems
206
+ => 🧺 1 of 3
207
+ => 🔎 byebug, pinglish, rspec, rubocop, rubocop-rspec, rubocop-rails, sentry-ruby, sentry-rails, pry, typhoeus
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
214
+ ==> 📑 Unavailable
215
+ ==> 💌 https://groups.google.com/forum/#!forum/rspec
216
+ => 💎 rubocop-rspec is at 2.4.0
217
+ ==> 📅 June 9, 2021
218
+ ==> 💼 MIT
219
+ ==> 🧭 https://rubygems.org/gems/rubocop-rspec
220
+ ==> 🏠 https://github.com/rubocop/rubocop-rspec
221
+ ==> 🔗 Unavailable
222
+ ==> 📑 https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md
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
198
236
  ==> 🏠 https://github.com/getsentry/sentry-ruby
199
237
  ==> 🔗 https://github.com/getsentry/sentry-ruby
200
238
  ==> 📑 https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
201
- => 💎 sentry-ruby is at 4.5.1
202
- ==> 📅 June 4, 2021
239
+ ==> 💌 Unavailable
240
+ => 💎 byebug is at 11.1.3
241
+ ==> 📅 April 23, 2020
242
+ ==> 💼 BSD-2-Clause
243
+ ==> 🧭 https://rubygems.org/gems/byebug
244
+ ==> 🏠 https://github.com/deivid-rodriguez/byebug
245
+ ==> 🔗 https://github.com/deivid-rodriguez/byebug
246
+ ==> 📑 Unavailable
247
+ ==> 💌 Unavailable
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
254
+ ==> 📑 Unavailable
255
+ ==> 💌 Unavailable
256
+ => 💎 sentry-ruby is at 4.6.1
257
+ ==> 📅 July 8, 2021
258
+ ==> 💼 Apache-2.0
259
+ ==> 🧭 https://rubygems.org/gems/sentry-ruby
203
260
  ==> 🏠 https://github.com/getsentry/sentry-ruby
204
261
  ==> 🔗 https://github.com/getsentry/sentry-ruby
205
262
  ==> 📑 https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
206
- => 💎 rubocop-rails is at 2.10.1
207
- ==> 📅 May 5, 2021
263
+ ==> 💌 Unavailable
264
+ => 💎 rubocop-rails is at 2.11.3
265
+ ==> 📅 July 11, 2021
266
+ ==> 💼 MIT
267
+ ==> 🧭 https://rubygems.org/gems/rubocop-rails
208
268
  ==> 🏠 https://docs.rubocop.org/rubocop-rails/
209
269
  ==> 🔗 https://github.com/rubocop/rubocop-rails/
210
270
  ==> 📑 https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md
211
- => 💎 rspec is at 3.10.0
212
- ==> 📅 October 30, 2020
213
- ==> 🏠 http://github.com/rspec
214
- ==> 🔗 https://github.com/rspec/rspec
215
- ==> 📑 No changelog
216
- => 💎 rubocop is at 1.16.1
217
- ==> 📅 June 9, 2021
218
- ==> 🏠 https://rubocop.org/
219
- ==> 🔗 https://github.com/rubocop/rubocop/
220
- ==> 📑 https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
221
- => 💎 rubocop-rspec is at 2.4.0
222
- ==> 📅 June 9, 2021
223
- ==> 🏠 https://github.com/rubocop/rubocop-rspec
224
- ==> 📑 https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md
271
+ ==> 💌 Unavailable
225
272
  => 💎 pry is at 0.14.1
226
273
  ==> 📅 April 12, 2021
274
+ ==> 💼 MIT
275
+ ==> 🧭 https://rubygems.org/gems/pry
227
276
  ==> 🏠 http://pry.github.io
228
277
  ==> 🔗 https://github.com/pry/pry
229
278
  ==> 📑 https://github.com/pry/pry/blob/master/CHANGELOG.md
279
+ ==> 💌 Unavailable
230
280
  => 💎 typhoeus is at 1.4.0
231
281
  ==> 📅 May 8, 2020
282
+ ==> 💼 MIT
283
+ ==> 🧭 https://rubygems.org/gems/typhoeus
232
284
  ==> 🏠 https://github.com/typhoeus/typhoeus
233
285
  ==> 🔗 https://github.com/typhoeus/typhoeus
234
- ==> 📑 No changelog
235
- => 💎 byebug is at 11.1.3
236
- ==> 📅 April 23, 2020
237
- ==> 🏠 https://github.com/deivid-rodriguez/byebug
238
- ==> 🔗 https://github.com/deivid-rodriguez/byebug
239
- ==> 📑 No changelog
240
- => 🧺 Batch: 2 of 3
241
- => 🔎 Looking up: faraday, rails, pagy, clowne, discard, aasm, logidze, globalize, lockbox, factory_bot
242
- => 💎 faraday is at 1.4.2
243
- ==> 📅 May 22, 2021
244
- ==> 🏠 https://lostisland.github.io/faraday
245
- ==> 🔗 https://github.com/lostisland/faraday
246
- ==> 📑 https://github.com/lostisland/faraday/releases/tag/v1.4.2
247
- => 💎 logidze is at 1.2.0
248
- ==> 📅 June 11, 2021
249
- ==> 🏠 http://github.com/palkan/logidze
250
- ==> 🔗 http://github.com/palkan/logidze
251
- ==> 📑 https://github.com/palkan/logidze/blob/master/CHANGELOG.md
286
+ ==> 📑 Unavailable
287
+ ==> 💌 http://groups.google.com/group/typhoeus
288
+ => 🧺 2 of 3
289
+ => 🔎 faraday, rails, pagy, clowne, discard, aasm, logidze, globalize, lockbox, factory_bot
290
+ => 💎 discard is at 1.2.0
291
+ ==> 📅 February 17, 2020
292
+ ==> 💼 MIT
293
+ ==> 🧭 https://rubygems.org/gems/discard
294
+ ==> 🏠 https://github.com/jhawthorn/discard
295
+ ==> 🔗 Unavailable
296
+ ==> 📑 Unavailable
297
+ ==> 💌 Unavailable
298
+ => 💎 rails is at 6.1.4
299
+ ==> 📅 June 24, 2021
300
+ ==> 💼 MIT
301
+ ==> 🧭 https://rubygems.org/gems/rails
302
+ ==> 🏠 https://rubyonrails.org
303
+ ==> 🔗 https://github.com/rails/rails/tree/v6.1.4
304
+ ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.4
305
+ ==> 💌 https://discuss.rubyonrails.org/c/rubyonrails-talk
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
313
+ ==> 💌 Unavailable
252
314
  => 💎 clowne is at 1.3.0
253
315
  ==> 📅 May 12, 2021
316
+ ==> 💼 MIT
317
+ ==> 🧭 https://rubygems.org/gems/clowne
254
318
  ==> 🏠 https://clowne.evilmartians.io/
255
319
  ==> 🔗 http://github.com/clowne-rb/clowne
256
320
  ==> 📑 https://github.com/clowne-rb/clowne/blob/master/CHANGELOG.md
257
- => 💎 discard is at 1.2.0
258
- ==> 📅 February 17, 2020
259
- ==> 🏠 https://github.com/jhawthorn/discard
260
- ==> 📑 No changelog
261
- => 💎 pagy is at 4.8.0
262
- ==> 📅 June 8, 2021
263
- ==> 🏠 https://github.com/ddnexus/pagy
264
- ==> 📑 No changelog
265
- => 💎 globalize is at 6.0.0
266
- ==> 📅 January 11, 2021
267
- ==> 🏠 http://github.com/globalize/globalize
268
- ==> 📑 No changelog
269
- => 💎 factory_bot is at 6.2.0
270
- ==> 📅 May 7, 2021
271
- ==> 🏠 https://github.com/thoughtbot/factory_bot
272
- ==> 📑 No changelog
273
- => 💎 rails is at 6.1.3.2
274
- ==> 📅 May 5, 2021
275
- ==> 🏠 https://rubyonrails.org
276
- ==> 🔗 https://github.com/rails/rails/tree/v6.1.3.2
277
- ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.3.2
278
- => 💎 lockbox is at 0.6.4
279
- ==> 📅 April 6, 2021
280
- ==> 🏠 https://github.com/ankane/lockbox
281
- ==> 📑 No changelog
321
+ ==> 💌 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
282
330
  => 💎 aasm is at 5.2.0
283
331
  ==> 📅 May 1, 2021
332
+ ==> 💼 MIT
333
+ ==> 🧭 https://rubygems.org/gems/aasm
284
334
  ==> 🏠 https://github.com/aasm/aasm
285
335
  ==> 🔗 https://github.com/aasm/aasm
286
- ==> 📑 No changelog
287
- => 🧺 Batch: 3 of 3
288
- => 🔎 Looking up: faker, site_prism, nokogiri, simplecov
289
- => 💎 faker is at 2.18.0
290
- ==> 📅 May 15, 2021
291
- ==> 🏠 https://github.com/faker-ruby/faker
292
- ==> 🔗 https://github.com/faker-ruby/faker
293
- ==> 📑 https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md
336
+ ==> 📑 Unavailable
337
+ ==> 💌 Unavailable
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
343
+ ==> 🔗 Unavailable
344
+ ==> 📑 Unavailable
345
+ ==> 💌 Unavailable
346
+ => 💎 factory_bot is at 6.2.0
347
+ ==> 📅 May 7, 2021
348
+ ==> 💼 MIT
349
+ ==> 🧭 https://rubygems.org/gems/factory_bot
350
+ ==> 🏠 https://github.com/thoughtbot/factory_bot
351
+ ==> 🔗 Unavailable
352
+ ==> 📑 Unavailable
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
362
+ => 💎 faraday is at 1.5.1
363
+ ==> 📅 July 11, 2021
364
+ ==> 💼 MIT
365
+ ==> 🧭 https://rubygems.org/gems/faraday
366
+ ==> 🏠 https://lostisland.github.io/faraday
367
+ ==> 🔗 https://github.com/lostisland/faraday
368
+ ==> 📑 https://github.com/lostisland/faraday/releases/tag/v1.5.1
369
+ ==> 💌 Unavailable
370
+ => 🧺 3 of 3
371
+ => 🔎 faker, site_prism, nokogiri, simplecov
294
372
  => 💎 site_prism is at 3.7.1
295
373
  ==> 📅 February 19, 2021
374
+ ==> 💼 BSD-3-Clause
375
+ ==> 🧭 https://rubygems.org/gems/site_prism
296
376
  ==> 🏠 https://github.com/site-prism/site_prism
297
377
  ==> 🔗 https://github.com/site-prism/site_prism
298
378
  ==> 📑 https://github.com/site-prism/site_prism/blob/main/CHANGELOG.md
299
- => 💎 nokogiri is at 1.11.7
300
- ==> 📅 June 3, 2021
301
- ==> 🏠 https://nokogiri.org
302
- ==> 🔗 https://github.com/sparklemotion/nokogiri
303
- ==> 📑 https://nokogiri.org/CHANGELOG.html
379
+ ==> 💌 Unavailable
304
380
  => 💎 simplecov is at 0.21.2
305
381
  ==> 📅 January 9, 2021
382
+ ==> 💼 MIT
383
+ ==> 🧭 https://rubygems.org/gems/simplecov
306
384
  ==> 🏠 https://github.com/simplecov-ruby/simplecov
307
385
  ==> 🔗 https://github.com/simplecov-ruby/simplecov/tree/v0.21.2
308
386
  ==> 📑 https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md
387
+ ==> 💌 https://groups.google.com/forum/#!forum/simplecov
388
+ => 💎 faker is at 2.18.0
389
+ ==> 📅 May 15, 2021
390
+ ==> 💼 MIT
391
+ ==> 🧭 https://rubygems.org/gems/faker
392
+ ==> 🏠 https://github.com/faker-ruby/faker
393
+ ==> 🔗 https://github.com/faker-ruby/faker
394
+ ==> 📑 https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md
395
+ ==> 💌 Unavailable
396
+ => 💎 nokogiri is at 1.11.7
397
+ ==> 📅 June 3, 2021
398
+ ==> 💼 MIT
399
+ ==> 🧭 https://rubygems.org/gems/nokogiri
400
+ ==> 🏠 https://nokogiri.org
401
+ ==> 🔗 https://github.com/sparklemotion/nokogiri
402
+ ==> 📑 https://nokogiri.org/CHANGELOG.html
403
+ ==> 💌 Unavailable
309
404
  ```
310
405
 
311
406
  #### Non-Existent Gems
@@ -316,14 +411,17 @@ up.
316
411
 
317
412
  ```sh
318
413
  $ gems non-existent rails
319
- => Gems: 2
320
- => 🔎 Looking up: non-existent, rails
414
+ => 🤔 2 gems
415
+ => 🔎 non-existent, rails
321
416
  => 💎 non-existent not found
322
- => 💎 rails is at 6.1.3.2
323
- ==> 📅 May 5, 2021
417
+ => 💎 rails is at 6.1.4
418
+ ==> 📅 June 24, 2021
419
+ ==> 💼 MIT
420
+ ==> 🧭 https://rubygems.org/gems/rails
324
421
  ==> 🏠 https://rubyonrails.org
325
- ==> 🔗 https://github.com/rails/rails/tree/v6.1.3.2
326
- ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.3.2
422
+ ==> 🔗 https://github.com/rails/rails/tree/v6.1.4
423
+ ==> 📑 https://github.com/rails/rails/releases/tag/v6.1.4
424
+ ==> 💌 https://discuss.rubyonrails.org/c/rubyonrails-talk
327
425
  ```
328
426
 
329
427
  #### Timing Out
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)
6
+ Bundler.require(:default, ENV['APP_ENV'].to_sym) unless ENV['APP_ENV'] == 'production'
data/init/zeitwerk.rb CHANGED
@@ -8,6 +8,9 @@ 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
- loader.push_dir(File.join(root_dir, 'spec'))
12
- loader.ignore(File.join(root_dir, '**', '*_spec.rb'))
11
+ if ENV['APP_ENV'] != 'production'
12
+ loader.push_dir(File.join(root_dir, 'spec'))
13
+ loader.ignore(File.join(root_dir, '**', '*_spec.rb'))
14
+ end
15
+
13
16
  loader.setup
data/lib/gem_lookup.rb CHANGED
@@ -1,3 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative '../booster_pack'
4
+
5
+ # Requiring satisfies Zeitwerk's need for GemLookup to be defined in this file.
6
+ # It also solves a GemLookup::Help.version constant check, as this had yet to be loaded.
7
+ require_relative 'gem_lookup/version'
@@ -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,8 @@ 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])
57
+ output.push "==> 🧭 #{json[:project_uri]}"
56
58
  output.push "==> 🏠 #{json[:homepage_uri]}"
57
59
  output.push source_code(source_code_uri: json[:source_code_uri])
58
60
  output.push changelog(changelog_uri: json[:changelog_uri])
@@ -61,6 +63,15 @@ module GemLookup
61
63
  end
62
64
  # rubocop:enable Metrics/AbcSize
63
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
+
64
75
  # Generates the "Source Code" string
65
76
  # @param source_code_uri [String] the source code uri.
66
77
  # @return [String] the repository string.
@@ -77,7 +88,7 @@ module GemLookup
77
88
  # @return [String] the changelog string.
78
89
  def changelog(changelog_uri:)
79
90
  if changelog_uri && !changelog_uri.empty?
80
- "==> 📑 #{changelog_uri}".light_cyan
91
+ "==> 📑 #{changelog_uri}".light_blue
81
92
  else
82
93
  '==> 📑 Unavailable'.light_red
83
94
  end
@@ -88,7 +99,7 @@ module GemLookup
88
99
  # @return [String] the mailing list string.
89
100
  def mailing_list(mailing_list_uri:)
90
101
  if mailing_list_uri && !mailing_list_uri.empty?
91
- "==> 💌 #{mailing_list_uri}".light_cyan
102
+ "==> 💌 #{mailing_list_uri}".light_blue
92
103
  else
93
104
  '==> 💌 Unavailable'.light_red
94
105
  end
@@ -4,114 +4,131 @@ require 'colorize'
4
4
  require 'date'
5
5
 
6
6
  module GemLookup
7
- module Serializers::Wordy
8
- class << self
9
- # Outputs the emoji-based format for the gem
10
- # @param json [Hash] the json hash, with symbolized keys.
11
- def display(json:)
12
- if json[:timeout]
13
- puts timed_out(gem_name: json[:name])
14
- elsif json[:exists]
15
- puts gem_details(json: json)
16
- else
17
- puts not_found(gem_name: json[:name])
7
+ module Serializers
8
+ class Wordy < Interface
9
+ class << self
10
+ # Outputs the emoji-based format for the gem
11
+ # @param json [Hash] the json hash, with symbolized keys.
12
+ def display(json:)
13
+ if json[:timeout]
14
+ puts timed_out(gem_name: json[:name])
15
+ elsif json[:exists]
16
+ puts gem_details(json: json)
17
+ else
18
+ puts not_found(gem_name: json[:name])
19
+ end
18
20
  end
19
- end
20
21
 
21
- # Outputs the number of gems being queried.
22
- # @param num [Numeric] the number of gems.
23
- def gem_count(num:)
24
- puts "=> Query: #{num} gems".light_cyan
25
- end
22
+ # Outputs the number of gems being queried.
23
+ # @param num [Numeric] the number of gems.
24
+ def gem_count(num:)
25
+ puts "=> Query: #{num} gems".light_blue
26
+ end
26
27
 
27
- # Outputs the current batch and total number of batches
28
- # @param num [Numeric] the current batch number.
29
- # @param total [Numeric] the total number of batches.
30
- def batch_iterator(num:, total:)
31
- puts "=> Batch: #{num} of #{total}".yellow
32
- end
28
+ # Outputs the current batch and total number of batches
29
+ # @param num [Numeric] the current batch number.
30
+ # @param total [Numeric] the total number of batches.
31
+ def batch_iterator(num:, total:)
32
+ puts "=> Batch: #{num} of #{total}".yellow
33
+ end
33
34
 
34
- # Outputs the list of gems being looked up from the batch.
35
- # @param batch [Array] the array of gems.
36
- def querying(batch:)
37
- puts "=> Looking up: #{batch.join(", ")}".light_yellow
38
- end
35
+ # Outputs the list of gems being looked up from the batch.
36
+ # @param batch [Array] the array of gems.
37
+ def querying(batch:)
38
+ puts "=> Looking up: #{batch.join(", ")}".light_yellow
39
+ end
39
40
 
40
- # Returns if the serializer is meant to be used to stream content.
41
- # @return [Boolean] whether the serializer is meant for streaming content.
42
- def streaming?
43
- true
44
- end
41
+ # Returns if the serializer is meant to be used to stream content.
42
+ # @return [Boolean] whether the serializer is meant for streaming content.
43
+ def streaming?
44
+ true
45
+ end
45
46
 
46
- private
47
-
48
- # rubocop:disable Metrics/AbcSize
49
- # Returns the emoji-based format for the gem.
50
- # @param json [Hash] the json hash, with symbolized keys.
51
- def gem_details(json:)
52
- [].tap do |output|
53
- output.push "=> Gem: #{json[:name]} is at #{json[:version]}".green
54
- output.push "==> Updated: #{convert_date(date: json[:version_created_at])}"
55
- output.push "==> Homepage: #{json[:homepage_uri]}"
56
- output.push source_code(source_code_uri: json[:source_code_uri])
57
- output.push changelog(changelog_uri: json[:changelog_uri])
58
- output.push mailing_list(mailing_list_uri: json[:mailing_list_uri])
59
- end.join "\n"
60
- end
61
- # rubocop:enable Metrics/AbcSize
62
-
63
- # Generates the "Source Code" string
64
- # @param source_code_uri [String] the source code uri.
65
- # @return [String] the repository string.
66
- def source_code(source_code_uri:)
67
- if source_code_uri && !source_code_uri.empty?
68
- "==> Source Code: #{source_code_uri}"
69
- else
70
- '==> Source Code: Unavailable'.light_red
47
+ private
48
+
49
+ # rubocop:disable Metrics/AbcSize
50
+ # Returns the emoji-based format for the gem.
51
+ # @param json [Hash] the json hash, with symbolized keys.
52
+ def gem_details(json:)
53
+ [].tap do |output|
54
+ output.push "=> Gem: #{json[:name]} is at #{json[:version]}".green
55
+ output.push "==> Updated: #{convert_date(date: json[:version_created_at])}"
56
+ output.push license(licenses: json[:licenses])
57
+ output.push "==> Location: #{json[:project_uri]}"
58
+ output.push "==> Homepage: #{json[:homepage_uri]}"
59
+ output.push source_code(source_code_uri: json[:source_code_uri])
60
+ output.push changelog(changelog_uri: json[:changelog_uri])
61
+ output.push mailing_list(mailing_list_uri: json[:mailing_list_uri])
62
+ end.join "\n"
71
63
  end
72
- end
64
+ # rubocop:enable Metrics/AbcSize
73
65
 
74
- # Generates the "changelog" string
75
- # @param changelog_uri [String] the changelog uri.
76
- # @return [String] the changelog string.
77
- def changelog(changelog_uri:)
78
- if changelog_uri && !changelog_uri.empty?
79
- "==> Changelog: #{changelog_uri}".light_cyan
80
- else
81
- '==> Changelog: Unavailable'.light_red
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
82
77
  end
83
- end
84
78
 
85
- # Generates the "mailing list" string
86
- # @param mailing_list_uri [String] the mailing list uri.
87
- # @return [String] the mailing list string.
88
- def mailing_list(mailing_list_uri:)
89
- if mailing_list_uri && !mailing_list_uri.empty?
90
- "==> Mailing List: #{mailing_list_uri}".light_cyan
91
- else
92
- '==> Mailing List: Unavailable'.light_red
79
+ # Generates the "Source Code" string
80
+ # @param source_code_uri [String] the source code uri.
81
+ # @return [String] the repository string.
82
+ def source_code(source_code_uri:)
83
+ if source_code_uri && !source_code_uri.empty?
84
+ "==> Source Code: #{source_code_uri}"
85
+ else
86
+ '==> Source Code: Unavailable'.light_red
87
+ end
93
88
  end
94
- end
95
89
 
96
- # Generates the "gem lookup timed out" string
97
- # @param gem_name [String] the name of the gem that the lookup timed out on.
98
- # @return [String] the gem lookup timed out string.
99
- def timed_out(gem_name:)
100
- "=> Gem: #{gem_name} lookup timed out".red
101
- end
90
+ # Generates the "changelog" string
91
+ # @param changelog_uri [String] the changelog uri.
92
+ # @return [String] the changelog string.
93
+ def changelog(changelog_uri:)
94
+ if changelog_uri && !changelog_uri.empty?
95
+ "==> Changelog: #{changelog_uri}".light_blue
96
+ else
97
+ '==> Changelog: Unavailable'.light_red
98
+ end
99
+ end
102
100
 
103
- # Generates the "gem not found" string.
104
- # @param gem_name [String] the name of the gem that was not found.
105
- # @return [String] the gem not found string.
106
- def not_found(gem_name:)
107
- "=> Gem: #{gem_name} not found".red
108
- end
101
+ # Generates the "mailing list" string
102
+ # @param mailing_list_uri [String] the mailing list uri.
103
+ # @return [String] the mailing list string.
104
+ def mailing_list(mailing_list_uri:)
105
+ if mailing_list_uri && !mailing_list_uri.empty?
106
+ "==> Mailing List: #{mailing_list_uri}".light_blue
107
+ else
108
+ '==> Mailing List: Unavailable'.light_red
109
+ end
110
+ end
111
+
112
+ # Generates the "gem lookup timed out" string
113
+ # @param gem_name [String] the name of the gem that the lookup timed out on.
114
+ # @return [String] the gem lookup timed out string.
115
+ def timed_out(gem_name:)
116
+ "=> Gem: #{gem_name} lookup timed out".red
117
+ end
109
118
 
110
- # Parses the passed date/datetime string into the desired format, aka "November 13, 2014".
111
- # @param date [String] the date to be parsed.
112
- # @return [String] the formatted date.
113
- def convert_date(date:)
114
- Date.parse(date).strftime '%B %-d, %Y'
119
+ # Generates the "gem not found" string.
120
+ # @param gem_name [String] the name of the gem that was not found.
121
+ # @return [String] the gem not found string.
122
+ def not_found(gem_name:)
123
+ "=> Gem: #{gem_name} not found".red
124
+ end
125
+
126
+ # Parses the passed date/datetime string into the desired format, aka "November 13, 2014".
127
+ # @param date [String] the date to be parsed.
128
+ # @return [String] the formatted date.
129
+ def convert_date(date:)
130
+ Date.parse(date).strftime '%B %-d, %Y'
131
+ end
115
132
  end
116
133
  end
117
134
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GemLookup
4
4
  # @return [String] the current version of the gem.
5
- VERSION = '1.0.0'
5
+ VERSION = '1.2.1'
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.0.0
4
+ version: 1.2.1
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: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -102,7 +102,7 @@ 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.0.0
105
+ source_code_uri: https://github.com/trueheart78/gem_lookup/tree/v1.2.1
106
106
  post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.2.19
121
+ rubygems_version: 3.2.24
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Retrieves gem-related information from https://rubygems.org