gem_lookup 1.0.1 โ 1.1.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 +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +167 -100
- data/lib/gem_lookup/serializers/emoji.rb +1 -0
- data/lib/gem_lookup/serializers/wordy.rb +95 -92
- data/lib/gem_lookup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4406e9a2cb86197cc76bb546764b41ce078e938b69525e68206b24bd7648c0b9
|
|
4
|
+
data.tar.gz: 697c6c5bd42d790d20c6f93057de44bf4b393114f9ad222583c3909989b57411
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f859e2ec0accfb8a0f437043cd53589d83ebe56e7c7bffc4e681b75ec186c54b2dab6617f3a04f45c797835a92defb262a67f097c8c1865651eafaed31a4222c
|
|
7
|
+
data.tar.gz: 4b5614a668000b060abcf28ead57240f9668279a513cdfb97d14735aaa4cbab61c89c4c5122fbcb7677f4b917e91b1ab8969ea695b3182b5bdb8f1504942c8cb
|
data/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,19 @@ 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.1.0] - 2021-07-14
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
* The RubyGems url is now displayed as the :compass: / `Location`.
|
|
13
|
+
|
|
8
14
|
## [1.0.1] - 2021-07-14
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
11
17
|
|
|
12
18
|
* `Bundler.require` is no longer called when `ENV['APP_ENV']` is set to `production`.
|
|
13
19
|
* Zeitwerk ignores specs if `ENV['APP_ENV']` is set to `production`.
|
|
14
|
-
* Add `require_relative 'gem_lookup/version' to `lib/gem_lookup.rb`.
|
|
20
|
+
* Add `require_relative 'gem_lookup/version'` to `lib/gem_lookup.rb`.
|
|
15
21
|
* Satisfies Zeitwerk's need for the `GemLookup` constant to be defined in the file.
|
|
16
22
|
* Solves a `GemLookup::Help.version` constant check, as this module had not yet been defined.
|
|
17
23
|
|
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
|
+
==> ๐งญ https://rubygems.org/gems/pry
|
|
69
70
|
==> ๐ http://pry.github.io
|
|
70
71
|
==> ๐ https://github.com/pry/pry
|
|
71
72
|
==> ๐ https://github.com/pry/pry/blob/master/CHANGELOG.md
|
|
@@ -80,6 +81,7 @@ $ gems --wordy pry
|
|
|
80
81
|
=> Looking up: pry
|
|
81
82
|
=> Gem: pry is at 0.14.1
|
|
82
83
|
==> Updated: April 12, 2021
|
|
84
|
+
==> Location: https://rubygems.org/gems/pry
|
|
83
85
|
==> Homepage: http://pry.github.io
|
|
84
86
|
==> Source Code: https://github.com/pry/pry
|
|
85
87
|
==> Changelog: https://github.com/pry/pry/blob/master/CHANGELOG.md
|
|
@@ -154,28 +156,36 @@ Since there is a [rate limit](#rate-limit), passing less gems than that will cau
|
|
|
154
156
|
|
|
155
157
|
```sh
|
|
156
158
|
$ gems pry rspec sentry-ruby rails
|
|
157
|
-
=>
|
|
158
|
-
=> ๐
|
|
159
|
+
=> ๐ค 4 gems
|
|
160
|
+
=> ๐ pry, rspec, sentry-ruby, rails
|
|
161
|
+
=> ๐ pry is at 0.14.1
|
|
162
|
+
==> ๐
April 12, 2021
|
|
163
|
+
==> ๐งญ https://rubygems.org/gems/pry
|
|
164
|
+
==> ๐ http://pry.github.io
|
|
165
|
+
==> ๐ https://github.com/pry/pry
|
|
166
|
+
==> ๐ https://github.com/pry/pry/blob/master/CHANGELOG.md
|
|
167
|
+
==> ๐ Unavailable
|
|
159
168
|
=> ๐ rspec is at 3.10.0
|
|
160
169
|
==> ๐
October 30, 2020
|
|
170
|
+
==> ๐งญ https://rubygems.org/gems/rspec
|
|
161
171
|
==> ๐ http://github.com/rspec
|
|
162
172
|
==> ๐ https://github.com/rspec/rspec
|
|
163
|
-
==> ๐
|
|
164
|
-
|
|
165
|
-
|
|
173
|
+
==> ๐ Unavailable
|
|
174
|
+
==> ๐ 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
|
+
=> ๐ sentry-ruby is at 4.6.1
|
|
183
|
+
==> ๐
July 8, 2021
|
|
184
|
+
==> ๐งญ https://rubygems.org/gems/sentry-ruby
|
|
166
185
|
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
167
186
|
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
168
187
|
==> ๐ https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
|
|
169
|
-
|
|
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
|
|
176
|
-
==> ๐ 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
|
|
188
|
+
==> ๐ Unavailable
|
|
179
189
|
```
|
|
180
190
|
|
|
181
191
|
#### Batch Mode
|
|
@@ -186,126 +196,181 @@ between batches, so as to respect the rate limit.
|
|
|
186
196
|
|
|
187
197
|
```sh
|
|
188
198
|
$ 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
|
-
=> ๐
|
|
199
|
+
=> ๐ค 24 gems
|
|
200
|
+
=> ๐งบ 1 of 3
|
|
201
|
+
=> ๐ byebug, pinglish, rspec, rubocop, rubocop-rspec, rubocop-rails, sentry-ruby, sentry-rails, pry, typhoeus
|
|
192
202
|
=> ๐ pinglish is at 0.2.1
|
|
193
203
|
==> ๐
November 13, 2014
|
|
204
|
+
==> ๐งญ https://rubygems.org/gems/pinglish
|
|
194
205
|
==> ๐ https://github.com/jbarnette/pinglish
|
|
195
|
-
==>
|
|
196
|
-
|
|
197
|
-
==>
|
|
198
|
-
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
199
|
-
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
200
|
-
==> ๐ https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
|
|
201
|
-
=> ๐ sentry-ruby is at 4.5.1
|
|
202
|
-
==> ๐
June 4, 2021
|
|
203
|
-
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
204
|
-
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
205
|
-
==> ๐ https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
|
|
206
|
-
=> ๐ rubocop-rails is at 2.10.1
|
|
207
|
-
==> ๐
May 5, 2021
|
|
208
|
-
==> ๐ https://docs.rubocop.org/rubocop-rails/
|
|
209
|
-
==> ๐ https://github.com/rubocop/rubocop-rails/
|
|
210
|
-
==> ๐ 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
|
|
206
|
+
==> ๐ Unavailable
|
|
207
|
+
==> ๐ Unavailable
|
|
208
|
+
==> ๐ Unavailable
|
|
221
209
|
=> ๐ rubocop-rspec is at 2.4.0
|
|
222
210
|
==> ๐
June 9, 2021
|
|
211
|
+
==> ๐งญ https://rubygems.org/gems/rubocop-rspec
|
|
223
212
|
==> ๐ https://github.com/rubocop/rubocop-rspec
|
|
213
|
+
==> ๐ Unavailable
|
|
224
214
|
==> ๐ https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md
|
|
215
|
+
==> ๐ Unavailable
|
|
216
|
+
=> ๐ byebug is at 11.1.3
|
|
217
|
+
==> ๐
April 23, 2020
|
|
218
|
+
==> ๐งญ https://rubygems.org/gems/byebug
|
|
219
|
+
==> ๐ https://github.com/deivid-rodriguez/byebug
|
|
220
|
+
==> ๐ https://github.com/deivid-rodriguez/byebug
|
|
221
|
+
==> ๐ Unavailable
|
|
222
|
+
==> ๐ 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
|
|
228
|
+
==> ๐ 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
|
+
==> ๐ Unavailable
|
|
237
|
+
=> ๐ sentry-ruby is at 4.6.1
|
|
238
|
+
==> ๐
July 8, 2021
|
|
239
|
+
==> ๐งญ https://rubygems.org/gems/sentry-ruby
|
|
240
|
+
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
241
|
+
==> ๐ https://github.com/getsentry/sentry-ruby
|
|
242
|
+
==> ๐ https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
|
|
243
|
+
==> ๐ Unavailable
|
|
225
244
|
=> ๐ pry is at 0.14.1
|
|
226
245
|
==> ๐
April 12, 2021
|
|
246
|
+
==> ๐งญ https://rubygems.org/gems/pry
|
|
227
247
|
==> ๐ http://pry.github.io
|
|
228
248
|
==> ๐ https://github.com/pry/pry
|
|
229
249
|
==> ๐ https://github.com/pry/pry/blob/master/CHANGELOG.md
|
|
250
|
+
==> ๐ Unavailable
|
|
230
251
|
=> ๐ typhoeus is at 1.4.0
|
|
231
252
|
==> ๐
May 8, 2020
|
|
253
|
+
==> ๐งญ https://rubygems.org/gems/typhoeus
|
|
232
254
|
==> ๐ https://github.com/typhoeus/typhoeus
|
|
233
255
|
==> ๐ https://github.com/typhoeus/typhoeus
|
|
234
|
-
==> ๐
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
==>
|
|
238
|
-
==>
|
|
239
|
-
==>
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
==>
|
|
245
|
-
==>
|
|
246
|
-
==>
|
|
256
|
+
==> ๐ Unavailable
|
|
257
|
+
==> ๐ 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
|
+
=> ๐งบ 2 of 3
|
|
273
|
+
=> ๐ faraday, rails, pagy, clowne, discard, aasm, logidze, globalize, lockbox, factory_bot
|
|
274
|
+
=> ๐ discard is at 1.2.0
|
|
275
|
+
==> ๐
February 17, 2020
|
|
276
|
+
==> ๐งญ https://rubygems.org/gems/discard
|
|
277
|
+
==> ๐ https://github.com/jhawthorn/discard
|
|
278
|
+
==> ๐ Unavailable
|
|
279
|
+
==> ๐ Unavailable
|
|
280
|
+
==> ๐ 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
|
+
=> ๐ rails is at 6.1.4
|
|
296
|
+
==> ๐
June 24, 2021
|
|
297
|
+
==> ๐งญ https://rubygems.org/gems/rails
|
|
298
|
+
==> ๐ https://rubyonrails.org
|
|
299
|
+
==> ๐ https://github.com/rails/rails/tree/v6.1.4
|
|
300
|
+
==> ๐ https://github.com/rails/rails/releases/tag/v6.1.4
|
|
301
|
+
==> ๐ https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
247
302
|
=> ๐ logidze is at 1.2.0
|
|
248
303
|
==> ๐
June 11, 2021
|
|
304
|
+
==> ๐งญ https://rubygems.org/gems/logidze
|
|
249
305
|
==> ๐ http://github.com/palkan/logidze
|
|
250
306
|
==> ๐ http://github.com/palkan/logidze
|
|
251
307
|
==> ๐ https://github.com/palkan/logidze/blob/master/CHANGELOG.md
|
|
308
|
+
==> ๐ Unavailable
|
|
252
309
|
=> ๐ clowne is at 1.3.0
|
|
253
310
|
==> ๐
May 12, 2021
|
|
311
|
+
==> ๐งญ https://rubygems.org/gems/clowne
|
|
254
312
|
==> ๐ https://clowne.evilmartians.io/
|
|
255
313
|
==> ๐ http://github.com/clowne-rb/clowne
|
|
256
314
|
==> ๐ https://github.com/clowne-rb/clowne/blob/master/CHANGELOG.md
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
==>
|
|
260
|
-
==>
|
|
261
|
-
=> ๐ pagy is at 4.8.0
|
|
262
|
-
==> ๐
June 8, 2021
|
|
315
|
+
==> ๐ Unavailable
|
|
316
|
+
=> ๐ pagy is at 4.10.1
|
|
317
|
+
==> ๐
June 24, 2021
|
|
318
|
+
==> ๐งญ https://rubygems.org/gems/pagy
|
|
263
319
|
==> ๐ https://github.com/ddnexus/pagy
|
|
264
|
-
==>
|
|
265
|
-
|
|
266
|
-
==>
|
|
320
|
+
==> ๐ Unavailable
|
|
321
|
+
==> ๐ Unavailable
|
|
322
|
+
==> ๐ Unavailable
|
|
323
|
+
=> ๐ globalize is at 6.0.1
|
|
324
|
+
==> ๐
June 23, 2021
|
|
325
|
+
==> ๐งญ https://rubygems.org/gems/globalize
|
|
267
326
|
==> ๐ http://github.com/globalize/globalize
|
|
268
|
-
==>
|
|
327
|
+
==> ๐ Unavailable
|
|
328
|
+
==> ๐ Unavailable
|
|
329
|
+
==> ๐ Unavailable
|
|
269
330
|
=> ๐ factory_bot is at 6.2.0
|
|
270
331
|
==> ๐
May 7, 2021
|
|
332
|
+
==> ๐งญ https://rubygems.org/gems/factory_bot
|
|
271
333
|
==> ๐ https://github.com/thoughtbot/factory_bot
|
|
272
|
-
==>
|
|
273
|
-
|
|
274
|
-
==>
|
|
275
|
-
|
|
276
|
-
==>
|
|
277
|
-
==>
|
|
278
|
-
|
|
279
|
-
==>
|
|
280
|
-
==>
|
|
281
|
-
==>
|
|
282
|
-
=>
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
==>
|
|
286
|
-
==>
|
|
287
|
-
|
|
288
|
-
|
|
334
|
+
==> ๐ Unavailable
|
|
335
|
+
==> ๐ Unavailable
|
|
336
|
+
==> ๐ Unavailable
|
|
337
|
+
=> ๐ faraday is at 1.5.1
|
|
338
|
+
==> ๐
July 11, 2021
|
|
339
|
+
==> ๐งญ https://rubygems.org/gems/faraday
|
|
340
|
+
==> ๐ https://lostisland.github.io/faraday
|
|
341
|
+
==> ๐ https://github.com/lostisland/faraday
|
|
342
|
+
==> ๐ https://github.com/lostisland/faraday/releases/tag/v1.5.1
|
|
343
|
+
==> ๐ Unavailable
|
|
344
|
+
=> ๐งบ 3 of 3
|
|
345
|
+
=> ๐ faker, site_prism, nokogiri, simplecov
|
|
346
|
+
=> ๐ simplecov is at 0.21.2
|
|
347
|
+
==> ๐
January 9, 2021
|
|
348
|
+
==> ๐งญ https://rubygems.org/gems/simplecov
|
|
349
|
+
==> ๐ https://github.com/simplecov-ruby/simplecov
|
|
350
|
+
==> ๐ https://github.com/simplecov-ruby/simplecov/tree/v0.21.2
|
|
351
|
+
==> ๐ https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md
|
|
352
|
+
==> ๐ https://groups.google.com/forum/#!forum/simplecov
|
|
289
353
|
=> ๐ faker is at 2.18.0
|
|
290
354
|
==> ๐
May 15, 2021
|
|
355
|
+
==> ๐งญ https://rubygems.org/gems/faker
|
|
291
356
|
==> ๐ https://github.com/faker-ruby/faker
|
|
292
357
|
==> ๐ https://github.com/faker-ruby/faker
|
|
293
358
|
==> ๐ https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md
|
|
294
|
-
|
|
295
|
-
==> ๐
February 19, 2021
|
|
296
|
-
==> ๐ https://github.com/site-prism/site_prism
|
|
297
|
-
==> ๐ https://github.com/site-prism/site_prism
|
|
298
|
-
==> ๐ https://github.com/site-prism/site_prism/blob/main/CHANGELOG.md
|
|
359
|
+
==> ๐ Unavailable
|
|
299
360
|
=> ๐ nokogiri is at 1.11.7
|
|
300
361
|
==> ๐
June 3, 2021
|
|
362
|
+
==> ๐งญ https://rubygems.org/gems/nokogiri
|
|
301
363
|
==> ๐ https://nokogiri.org
|
|
302
364
|
==> ๐ https://github.com/sparklemotion/nokogiri
|
|
303
365
|
==> ๐ https://nokogiri.org/CHANGELOG.html
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
==>
|
|
307
|
-
==>
|
|
308
|
-
==>
|
|
366
|
+
==> ๐ 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
|
|
309
374
|
```
|
|
310
375
|
|
|
311
376
|
#### Non-Existent Gems
|
|
@@ -316,14 +381,16 @@ up.
|
|
|
316
381
|
|
|
317
382
|
```sh
|
|
318
383
|
$ gems non-existent rails
|
|
319
|
-
=>
|
|
320
|
-
=> ๐
|
|
384
|
+
=> ๐ค 2 gems
|
|
385
|
+
=> ๐ non-existent, rails
|
|
321
386
|
=> ๐ non-existent not found
|
|
322
|
-
=> ๐ rails is at 6.1.
|
|
323
|
-
==> ๐
|
|
387
|
+
=> ๐ rails is at 6.1.4
|
|
388
|
+
==> ๐
June 24, 2021
|
|
389
|
+
==> ๐งญ https://rubygems.org/gems/rails
|
|
324
390
|
==> ๐ https://rubyonrails.org
|
|
325
|
-
==> ๐ https://github.com/rails/rails/tree/v6.1.
|
|
326
|
-
==> ๐ https://github.com/rails/rails/releases/tag/v6.1.
|
|
391
|
+
==> ๐ https://github.com/rails/rails/tree/v6.1.4
|
|
392
|
+
==> ๐ https://github.com/rails/rails/releases/tag/v6.1.4
|
|
393
|
+
==> ๐ https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
327
394
|
```
|
|
328
395
|
|
|
329
396
|
#### Timing Out
|
|
@@ -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 "==> ๐งญ #{json[:project_uri]}"
|
|
56
57
|
output.push "==> ๐ #{json[:homepage_uri]}"
|
|
57
58
|
output.push source_code(source_code_uri: json[:source_code_uri])
|
|
58
59
|
output.push changelog(changelog_uri: json[:changelog_uri])
|
|
@@ -4,114 +4,117 @@ 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_cyan
|
|
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
|
+
private
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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 "==> Location: #{json[:project_uri]}"
|
|
57
|
+
output.push "==> Homepage: #{json[:homepage_uri]}"
|
|
58
|
+
output.push source_code(source_code_uri: json[:source_code_uri])
|
|
59
|
+
output.push changelog(changelog_uri: json[:changelog_uri])
|
|
60
|
+
output.push mailing_list(mailing_list_uri: json[:mailing_list_uri])
|
|
61
|
+
end.join "\n"
|
|
62
|
+
end
|
|
63
|
+
# rubocop:enable Metrics/AbcSize
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
# Generates the "Source Code" string
|
|
66
|
+
# @param source_code_uri [String] the source code uri.
|
|
67
|
+
# @return [String] the repository string.
|
|
68
|
+
def source_code(source_code_uri:)
|
|
69
|
+
if source_code_uri && !source_code_uri.empty?
|
|
70
|
+
"==> Source Code: #{source_code_uri}"
|
|
71
|
+
else
|
|
72
|
+
'==> Source Code: Unavailable'.light_red
|
|
73
|
+
end
|
|
71
74
|
end
|
|
72
|
-
end
|
|
73
75
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
# Generates the "changelog" string
|
|
77
|
+
# @param changelog_uri [String] the changelog uri.
|
|
78
|
+
# @return [String] the changelog string.
|
|
79
|
+
def changelog(changelog_uri:)
|
|
80
|
+
if changelog_uri && !changelog_uri.empty?
|
|
81
|
+
"==> Changelog: #{changelog_uri}".light_cyan
|
|
82
|
+
else
|
|
83
|
+
'==> Changelog: Unavailable'.light_red
|
|
84
|
+
end
|
|
82
85
|
end
|
|
83
|
-
end
|
|
84
86
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
# Generates the "mailing list" string
|
|
88
|
+
# @param mailing_list_uri [String] the mailing list uri.
|
|
89
|
+
# @return [String] the mailing list string.
|
|
90
|
+
def mailing_list(mailing_list_uri:)
|
|
91
|
+
if mailing_list_uri && !mailing_list_uri.empty?
|
|
92
|
+
"==> Mailing List: #{mailing_list_uri}".light_cyan
|
|
93
|
+
else
|
|
94
|
+
'==> Mailing List: Unavailable'.light_red
|
|
95
|
+
end
|
|
93
96
|
end
|
|
94
|
-
end
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
# Generates the "gem lookup timed out" string
|
|
99
|
+
# @param gem_name [String] the name of the gem that the lookup timed out on.
|
|
100
|
+
# @return [String] the gem lookup timed out string.
|
|
101
|
+
def timed_out(gem_name:)
|
|
102
|
+
"=> Gem: #{gem_name} lookup timed out".red
|
|
103
|
+
end
|
|
102
104
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
# Generates the "gem not found" string.
|
|
106
|
+
# @param gem_name [String] the name of the gem that was not found.
|
|
107
|
+
# @return [String] the gem not found string.
|
|
108
|
+
def not_found(gem_name:)
|
|
109
|
+
"=> Gem: #{gem_name} not found".red
|
|
110
|
+
end
|
|
109
111
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
# Parses the passed date/datetime string into the desired format, aka "November 13, 2014".
|
|
113
|
+
# @param date [String] the date to be parsed.
|
|
114
|
+
# @return [String] the formatted date.
|
|
115
|
+
def convert_date(date:)
|
|
116
|
+
Date.parse(date).strftime '%B %-d, %Y'
|
|
117
|
+
end
|
|
115
118
|
end
|
|
116
119
|
end
|
|
117
120
|
end
|
data/lib/gem_lookup/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gem_lookup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Mills
|
|
@@ -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
|
|
105
|
+
source_code_uri: https://github.com/trueheart78/gem_lookup/tree/v1.1.0
|
|
106
106
|
post_install_message:
|
|
107
107
|
rdoc_options: []
|
|
108
108
|
require_paths:
|