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 +4 -4
- data/CHANGELOG.md +28 -0
- data/README.md +201 -103
- data/init/bundler.rb +1 -1
- data/init/zeitwerk.rb +5 -2
- data/lib/gem_lookup.rb +4 -0
- data/lib/gem_lookup/serializers/emoji.rb +14 -3
- data/lib/gem_lookup/serializers/wordy.rb +111 -94
- data/lib/gem_lookup/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea4c29684d8d8e1793d83c9701977286699eda4c5af38f3be1b31f710828d3eb
|
4
|
+
data.tar.gz: c9d2b95d49487ab2f20958d1ff4b84a2ea98718dc239433e69a6026efcd83336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
=>
|
158
|
-
=> 🔎
|
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
|
-
==> 📑
|
164
|
-
|
165
|
-
|
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
|
-
|
170
|
-
|
171
|
-
==>
|
172
|
-
==>
|
173
|
-
==>
|
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.
|
178
|
-
==> 📑 https://github.com/rails/rails/releases/tag/v6.1.
|
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
|
-
=>
|
190
|
-
=> 🧺
|
191
|
-
=> 🔎
|
192
|
-
=> 💎
|
193
|
-
==> 📅
|
194
|
-
==>
|
195
|
-
==>
|
196
|
-
|
197
|
-
==>
|
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
|
-
|
202
|
-
|
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
|
-
|
207
|
-
|
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
|
-
|
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
|
-
==> 📑
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
==>
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
==>
|
244
|
-
==>
|
245
|
-
==>
|
246
|
-
|
247
|
-
|
248
|
-
==>
|
249
|
-
==>
|
250
|
-
==>
|
251
|
-
==>
|
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
|
-
|
258
|
-
|
259
|
-
==>
|
260
|
-
==>
|
261
|
-
|
262
|
-
==>
|
263
|
-
==>
|
264
|
-
==> 📑
|
265
|
-
|
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
|
-
==> 📑
|
287
|
-
|
288
|
-
=>
|
289
|
-
|
290
|
-
==>
|
291
|
-
==>
|
292
|
-
==>
|
293
|
-
==>
|
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
|
-
|
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
|
-
=>
|
320
|
-
=> 🔎
|
414
|
+
=> 🤔 2 gems
|
415
|
+
=> 🔎 non-existent, rails
|
321
416
|
=> 💎 non-existent not found
|
322
|
-
=> 💎 rails is at 6.1.
|
323
|
-
==> 📅
|
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.
|
326
|
-
==> 📑 https://github.com/rails/rails/releases/tag/v6.1.
|
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
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
|
-
|
12
|
-
loader.
|
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".
|
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}".
|
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}".
|
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
|
8
|
-
class
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
|
64
|
+
# rubocop:enable Metrics/AbcSize
|
73
65
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
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
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
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
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
data/lib/gem_lookup/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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
|