renuo-cli 1.2.1 → 1.3.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/lib/renuo/cli.rb +14 -1
- data/lib/renuo/cli/version.rb +2 -1
- data/renuo-cli.gemspec +3 -2
- metadata +17 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6083bc5f242e1e49b852209eaa66be5bd898a8f8226ef9d523ce426d6e59c4c1
|
|
4
|
+
data.tar.gz: 8526584a55c4f23bf752376c37f1f5181eda26498ee4f4ecb87b6db11bb659a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfacf407aa10729c13ab22c15c805c06c36064e826e20b80114a603988d8efe89ccf4551f6032f442ac9aa9e91f56715e6e18ab1d93cf1d2679777249627668d
|
|
7
|
+
data.tar.gz: 9608e1284e4311c9e69bd404fb45b27d2fcc5cb6d81595c9b438548ead38fbd1ce82e87dea85c78756abf693cf927ad8bc12e57d795a828d4bd212fc6ae6ebc3
|
data/lib/renuo/cli.rb
CHANGED
|
@@ -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, '
|
|
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]'
|
data/lib/renuo/cli/version.rb
CHANGED
data/renuo-cli.gemspec
CHANGED
|
@@ -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 =
|
|
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
|
|
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.
|
|
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-
|
|
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
|
|
266
|
-
line interface.
|
|
279
|
+
summary: The Renuo CLI automates some common workflows.
|
|
267
280
|
test_files: []
|