renuo-cli 1.2.1 → 1.3.0

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: 916bb3572a9f88a7481012829a626f93eedf3c74645e52bd056f1410275dc994
4
- data.tar.gz: 3f2c3817e7a6204d2f6c6b488d48eeab5836e83d2473140adac443cd1fd06810
3
+ metadata.gz: 6083bc5f242e1e49b852209eaa66be5bd898a8f8226ef9d523ce426d6e59c4c1
4
+ data.tar.gz: 8526584a55c4f23bf752376c37f1f5181eda26498ee4f4ecb87b6db11bb659a1
5
5
  SHA512:
6
- metadata.gz: 26f22188ef2495fd4867ad349e31aa9925f29cf2b2d5cfbcc651b67c1d3ae941653535ea7010d4da55928dbb8005fa02235e1f66e3e1194c01c67336d71c6992
7
- data.tar.gz: 2bf324d6cb7e9c2693f0ab9d4fd1242395358911cc6e6cc392851ae4d5a15bf396fe956b323ea077c2347d21a1e366dec0480ec9f0f86a61eea8c2345210658d
6
+ metadata.gz: bfacf407aa10729c13ab22c15c805c06c36064e826e20b80114a603988d8efe89ccf4551f6032f442ac9aa9e91f56715e6e18ab1d93cf1d2679777249627668d
7
+ data.tar.gz: 9608e1284e4311c9e69bd404fb45b27d2fcc5cb6d81595c9b438548ead38fbd1ce82e87dea85c78756abf693cf927ad8bc12e57d795a828d4bd212fc6ae6ebc3
@@ -1,5 +1,6 @@
1
1
  require 'renuo/cli/version'
2
2
  require 'rubygems'
3
+ require 'gems'
3
4
  require 'colorize'
4
5
  require 'renuo/cli/app/name_display'
5
6
  require 'renuo/cli/app/local_storage'
@@ -18,7 +19,19 @@ module Renuo
18
19
  def start
19
20
  require 'commander/import'
20
21
  program :version, Renuo::Cli::VERSION
21
- program :description, 'renuo CLI'
22
+ program :description, 'Renuo CLI'
23
+
24
+ info = Gems.info Renuo::Cli::NAME
25
+
26
+ if Gem::Version.new(Renuo::Cli::VERSION) < Gem::Version.new(info['version'])
27
+ say "You are running the version #{Renuo::Cli::VERSION} but the brand new #{info['version']} is available. 🎉"
28
+ if agree("Why don't you update with `gem update renuo-cli`? I can run it for you. 💪")
29
+ system("gem update #{Renuo::Cli::NAME}")
30
+ abort 'Nice! I updated myself. 🤩 Now you can run the command again.'
31
+ end
32
+ abort('Good. Just do it yourself then...😒')
33
+ exit
34
+ end
22
35
 
23
36
  command 'display-name'.to_sym do |c|
24
37
  c.syntax = 'renuo display-name [options]'
@@ -1,5 +1,6 @@
1
1
  module Renuo
2
2
  module Cli
3
- VERSION = '1.2.1'.freeze
3
+ VERSION = '1.3.0'.freeze
4
+ NAME = 'renuo-cli'.freeze
4
5
  end
5
6
  end
@@ -3,12 +3,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'renuo/cli/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = 'renuo-cli'
6
+ spec.name = Renuo::Cli::NAME
7
7
  spec.version = Renuo::Cli::VERSION
8
8
  spec.authors = ['Renuo AG']
9
9
  spec.email = ['info@renuo.ch']
10
10
 
11
- spec.summary = 'The Renuo CLI automates some commonly used workflows by providing a command line interface.'
11
+ spec.summary = 'The Renuo CLI automates some common workflows.'
12
12
  spec.description = 'The Renuo CLI automates some commonly used workflows by providing a command line interface.'
13
13
  spec.homepage = 'https://github.com/renuo/renuo-cli'
14
14
  spec.license = 'MIT'
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency 'colorize', '~> 0'
21
21
  spec.add_dependency 'commander', '~> 4.0'
22
+ spec.add_dependency 'gems', '~> 1.1'
22
23
  spec.add_dependency 'redcarpet', '~> 3.0'
23
24
 
24
25
  spec.add_development_dependency 'aruba', '~> 0.14.5'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renuo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renuo AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: gems
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.1'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: redcarpet
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -262,6 +276,5 @@ rubyforge_project:
262
276
  rubygems_version: 2.7.3
263
277
  signing_key:
264
278
  specification_version: 4
265
- summary: The Renuo CLI automates some commonly used workflows by providing a command
266
- line interface.
279
+ summary: The Renuo CLI automates some common workflows.
267
280
  test_files: []