gem_lookup 1.1.0 โ 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +106 -75
- data/lib/gem_lookup/serializers/emoji.rb +10 -0
- data/lib/gem_lookup/serializers/wordy.rb +14 -0
- 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: 2976c673e60604074127024d9d215216716d88d7c4e5171ec999687e0d1833c9
|
4
|
+
data.tar.gz: 749fcbd0c545af2aff1ab70521347fb2145ca995da5029b892ea9a74e5f6352a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67eec1ae007ffe02d578db7d34069bf62716223f996d291a58d4155ed4ca2dcc8caed3dd9a398083e1adb5ab481d7c79f751da62d10318a6101ddfd9bd7d271b
|
7
|
+
data.tar.gz: 4ffe8aaa18aec93dcef77a66e5039e6995d924e457c3e6603204e126c6a9b6d1a86b25adff9d23400eacf547c86caf4703f222417ec25366d99276c7b30b4999
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ 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.0] - 2021-07-14
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
* The license(s) are now displayed as the :briefcase: / License(s).
|
13
|
+
|
8
14
|
## [1.1.0] - 2021-07-14
|
9
15
|
|
10
16
|
### 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
|
-
=> ๐
|
203
|
-
==> ๐
|
204
|
-
==>
|
205
|
-
==>
|
206
|
-
==>
|
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
|
-
==> ๐
|
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
|
-
=> ๐
|
224
|
-
==> ๐
|
225
|
-
==>
|
226
|
-
==>
|
227
|
-
==>
|
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
|
-
=> ๐
|
303
|
-
==> ๐
June
|
304
|
-
==>
|
305
|
-
==>
|
306
|
-
==>
|
307
|
-
==>
|
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
|
-
=> ๐
|
317
|
-
==> ๐
June
|
318
|
-
==>
|
319
|
-
==>
|
320
|
-
==>
|
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
|
-
=> ๐
|
324
|
-
==> ๐
|
325
|
-
==>
|
326
|
-
==>
|
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
|
@@ -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.
|
@@ -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.
|
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.
|
4
|
+
version: 1.2.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.
|
105
|
+
source_code_uri: https://github.com/trueheart78/gem_lookup/tree/v1.2.0
|
106
106
|
post_install_message:
|
107
107
|
rdoc_options: []
|
108
108
|
require_paths:
|