tmg 0.5.4 → 0.5.5

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: f467a477f7a99744caf4f7c8a562fc320dd4661f1e428e79f9a2d40be3fca29e
4
- data.tar.gz: dc6e554273df6cea215052166917030b58ba5be8ddee24aaacb897842731ab6b
3
+ metadata.gz: 6d72d6a12e80179a13e4012342226fe30949e1b76a9d54b8089d2166b9a12c62
4
+ data.tar.gz: 818144d7f703c72350158cfed69ab13a2eb0f32b0f327fe6bcbf9a2e22f1f0ed
5
5
  SHA512:
6
- metadata.gz: eb82bd055d86191a46fb84e8dac41893efbaf2281e857d95b6fc4ac16bb956a8385df1955f5c9eb6ecd8ab17c8136fb3d35f92a364fb998ecfd65549efaf6362
7
- data.tar.gz: f4ba9adda4d1b1cfab6a7980d560b3fdec8e9bf952041b2c9cea6fa757baa3123036d029850a60e5bf5e15e1975da1562eb1a0ca4b89cdd2920855f57625ecb7
6
+ metadata.gz: 5f3758f80554e58301593dc3b9b47e4388ed4e28f2128474f88678a69721764d38d253758eceea821775389e07b64fc760aae1db63c1054ae55782b8a98384d7
7
+ data.tar.gz: 9736b7c2d40bc3ec8389095865fe73e12830361ca518196330a8050f5e5a27a6710b74f0e73af88ee2d88baff685370f6a9a490e0e540b3d08c5d4c5633fd0ca
data/.travis.yml CHANGED
@@ -1,7 +1,26 @@
1
- ---
2
1
  sudo: false
3
2
  language: ruby
4
3
  cache: bundler
5
4
  rvm:
6
- - 2.5.1
5
+ - 2.5.1
7
6
  before_install: gem install bundler -v 1.16.4
7
+ script:
8
+ - bundle exec rake test
9
+ - bundle exec cucumber features
10
+ deploy:
11
+ provider: rubygems
12
+ api_key:
13
+ secure: qhPrIx1HTfHzPaGLO6EEBL8lcHq0PCXABFy1Bdadi47dW4moE6HezVv+kzncRkAiUWdDy7MfcqQ2gM+9o90PIMwX6vePo8TaYz36O4ml62pzQQpODtvsAZCKZ2ifHNuE+83gmOQuwbutqa3cndDaXkBHu4fs7z3T7K7dnFVLymE8jq+M7RO4/4YVGELylgtG6EuetZ78bdJBAQ1sWVJBTFRHFNO1V4C+8yQm47kxXajm8z0/ItRtKlvWNidUcvjsPT/Pbe48PX9eEVzY5Q7ahWKO6he80KMfVE8sEm+jB//zJa/42zFQQ0JO8MVbOU5V2UuVdCOR7j2axis9pALpgWd40XbY2qw1Dj07HPAfNrQRfZ9Hjccy9Xl0C/mor37a4R99q6vkXAYZ+MweLpgh3HjtM9Ga23jx08AvTVppXa8v0T+kFc/LORLEGbh5SadTlz6HSna6I4yeXoaBvZQvR7apobej2XPkC44vtGWGEQY5bg/uQz5ca++QGAMdlbJfo+jCr6V5LXvh2NjGDZbjkGgn/mumDMpqlzEwRxtNQPJdstG0FKbfxRtkDeFkPSptgYzgIU85t0QKbZwRwiuRWKZZzu90LUYJ8YjUEqvTqHRer8Ra8HiMpZFHKOVv2eKbXlKvjLYbzNqTQ3Ders+OaeoeQktiZY8k1gJxQBiCHgA=
14
+ gem: tmg
15
+ on:
16
+ tags: true
17
+ repo: franccesco/tmg
18
+ after_deploy:
19
+ - gem install tmg
20
+ - tmg info tmg -d
21
+ - tmg about
22
+ env:
23
+ global:
24
+ - secure: rwjvLB9BEZHwa4UIc4N8y8T64fykXaP+FL2epEvLzVKDqxTM68ZrF9IIerHa5XFyMph1crdhfSGBIzFoDDP8KF5zP4fqKoewS4goIFSE+eDWWYcDNtE9U6qWqzyg9mKfsg1K07ftxuaaJ4CJ6NHcbOxn4TGnkhZ1/Kry6vBocj5nyybEVceDTxJgfCut3AoSMdYaGnaPCpF/zzb9C6DZbOp7rwKSrr/LTTn4u0etuO6ZRXo7/o4FzURMy89LCpY8pvcTYdhSPTmBJ6sx4gKlQSHa8QLMRBsaOK+uZUC57cZqT4RL+jfnX19o0tgtPg1ph+T9wncpNEUCOXgz+oHvUu955JuENaklRl2gv7pPdNPdTPcaKjHs6CLjDrBw1IDuu40WgSsZ4GUE6WzZ1gG24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huFASIgFU92xjvQTL76Z0srFOGBcLUz55G4LGTNSJe3vBPhNV6RbVLq7BO9lMPLwuX7jIAp5kKm0CfA/qYhsY0nLOg8sP+Vx2VklZb+pwGybOkbpMH2y/nKHDhRpnl5ApY6zJCbLhrEGBWrHTsCjOxvxbIny/JaM24XKYTE531Z+HfpQFYqQmhf1r1KN8u9CmRFpTM/6VJQoVTo3iCbMnKXcZlyTr6aidQFtLB+yja+JyCg1BJIDRZYrE1GjZZJCRAVphjBFXdR0iGNyuf1saZoC5YsQ8waV7HQ22DZn4fYVrbPo1waMRaJJNLT4ntMqYSAIr6EHHoKoTASwt3/cy95n8kuvCQzY5hMN89suUueIXscY4pir1qO0TgGSYTRzD8QUcvhy6CZ5OKPL9Uxnvr6IyilP9CsN+4Qlk9vY/1HcwXsjLfyhaRRydL9HRjWlR57OVs8trJnx6ac99kGzMS7LgPLKlK3rZN/R/e1ExBEgutHGXm0utmwZE13mbo9EQxCaj0MHA2bUZYysqG7Oq2nJ5OsrGeG/GfEQ5EdPVwd76yiDvwax1gk/u0KUEdRZWkxnsImxku7BhQDW/bA=
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Tmg
2
+ [![Build Status](https://travis-ci.com/franccesco/tmg.svg?branch=master)](https://travis-ci.com/franccesco/tmg)
3
+
2
4
  A CLI built in Ruby to track your gems stats on RubyGems.org.
3
5
 
4
6
  This is mostly a personal project to **keep track of my gems** and also to **checkout the latest version information of another gem.** I grew tired of going to the rubygems.org website or the github repo of a project to check what's the latest version of a gem to add it to my project.
data/assets/tmg_usage.gif CHANGED
Binary file
data/lib/tmg/cli.rb CHANGED
@@ -33,6 +33,9 @@ module Tmg
33
33
  class CLI < Thor
34
34
  default_task :list
35
35
  @@credentials_file = "#{Dir.home}/.gem/credentials"
36
+ if ENV['api_key']
37
+ Gems.configure { |config| config.key = ENV['api_key'] }
38
+ end
36
39
 
37
40
  no_commands do
38
41
  # Non-CLI method to display gem information without duplicating code
data/lib/tmg/cli/list.rb CHANGED
@@ -12,7 +12,7 @@ module Tmg
12
12
  # and homepage.
13
13
  def list
14
14
  unless File.file?(@@credentials_file)
15
- login
15
+ login unless ENV['api_key']
16
16
  end
17
17
  display_gem_info(true, options[:dependencies])
18
18
  end
data/lib/tmg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Tmg
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  BANNER = '''
4
4
  ______ __ __ ______
5
5
  /\__ _\ /\ "-./ \ /\ ___\
data/tmg.gemspec CHANGED
@@ -12,9 +12,6 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{Track your gem stats with ease!}
13
13
  spec.homepage = "https://github.com/franccesco/tmg"
14
14
  spec.license = "MIT"
15
- spec.metadata = {
16
- "wiki_uri" => "https://github.com/franccesco/dmp/wiki"
17
- }
18
15
 
19
16
  # Specify which files should be added to the gem when it is released.
20
17
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franccesco Orozco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -273,8 +273,7 @@ files:
273
273
  homepage: https://github.com/franccesco/tmg
274
274
  licenses:
275
275
  - MIT
276
- metadata:
277
- wiki_uri: https://github.com/franccesco/dmp/wiki
276
+ metadata: {}
278
277
  post_install_message:
279
278
  rdoc_options: []
280
279
  require_paths:
@@ -291,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
290
  version: '0'
292
291
  requirements: []
293
292
  rubyforge_project:
294
- rubygems_version: 2.7.7
293
+ rubygems_version: 2.7.8
295
294
  signing_key:
296
295
  specification_version: 4
297
296
  summary: Track your gem stats with ease!