renuo-cli 3.0.0 → 3.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 708171502068c3d1748c92b702a7e0af0c550607bf2b950a8ef082b225996a2d
|
4
|
+
data.tar.gz: 550e4ec36dbfa189ea34bcb2e2e7295ad701ad587b05142d3839484175853194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6a524f253a75c50eedea23a7ac02070897e0c4e5d80256536e390f8b6206dfe78b9400e5ec34f9514b1d62f94a8194b3521ca0f9c097ac64cf4f441bed3bbf9
|
7
|
+
data.tar.gz: '0991a1fe20fae345363b140e671b0ece06a44e3dc4c4d20b788db531d64eb2c24ee924407bd2a405fa6654cc888ea07d4fcc25f02da6a0a73eb956fa9e93917c'
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.5
|
@@ -5,11 +5,10 @@ class ReleaseProject
|
|
5
5
|
|
6
6
|
def run(args)
|
7
7
|
@project_name, @update_type, @version = args
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
compare_develop_main
|
8
|
+
validate_args
|
9
|
+
open_comparison_page
|
10
|
+
checkout_project # in the meantime
|
11
|
+
veto_comparison
|
13
12
|
@version ||= calculate_version
|
14
13
|
release
|
15
14
|
ensure
|
@@ -18,6 +17,12 @@ class ReleaseProject
|
|
18
17
|
|
19
18
|
private
|
20
19
|
|
20
|
+
def validate_args
|
21
|
+
validate_project_name
|
22
|
+
validate_update_type
|
23
|
+
validate_custom_version_format
|
24
|
+
end
|
25
|
+
|
21
26
|
def validate_project_name
|
22
27
|
abort('>> No project name given.') unless @project_name
|
23
28
|
end
|
@@ -49,13 +54,12 @@ class ReleaseProject
|
|
49
54
|
abort('>> Invalid Version Number. Use format X.Y.Z for your version.')
|
50
55
|
end
|
51
56
|
|
52
|
-
def
|
53
|
-
|
54
|
-
open_comparison_page
|
55
|
-
abort unless agree('Are you fine with those changes?')
|
57
|
+
def veto_comparison
|
58
|
+
abort unless agree('Are you fine with the changes you just reviewed in your browser?')
|
56
59
|
end
|
57
60
|
|
58
61
|
def open_comparison_page
|
62
|
+
puts 'Opening browser to double-check what is going to be deployed…'
|
59
63
|
system_command = case RbConfig::CONFIG['host_os']
|
60
64
|
when /mswin|mingw|cygwin/
|
61
65
|
'start'
|
@@ -5,22 +5,22 @@ do
|
|
5
5
|
case $cache_group in
|
6
6
|
|
7
7
|
rails)
|
8
|
-
cache restore nvm-$SEMAPHORE_GIT_BRANCH-$(checksum .nvmrc),nvm-$SEMAPHORE_GIT_BRANCH,nvm-develop
|
9
|
-
cache restore gems-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),gems-$
|
10
|
-
cache restore yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),yarn-cache-$SEMAPHORE_GIT_BRANCH,yarn-cache-develop
|
11
|
-
cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-develop
|
8
|
+
cache restore nvm-$SEMAPHORE_GIT_BRANCH-$(checksum .nvmrc),nvm-$SEMAPHORE_GIT_BRANCH,nvm-develop
|
9
|
+
cache restore gems-$SEMAPHORE_GIT_BRANCH-$(checksum .ruby-version)-$(checksum Gemfile.lock),gems-develop-$(checksum .ruby-version)-$(checksum Gemfile.lock),gems-develop-$(checksum .ruby-version)
|
10
|
+
cache restore yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),yarn-cache-$SEMAPHORE_GIT_BRANCH,yarn-cache-develop
|
11
|
+
cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-develop
|
12
12
|
;;
|
13
13
|
|
14
14
|
python)
|
15
|
-
cache restore requirements-$SEMAPHORE_GIT_BRANCH-$(checksum requirements.txt),requirements-$SEMAPHORE_GIT_BRANCH,requirements-develop
|
15
|
+
cache restore requirements-$SEMAPHORE_GIT_BRANCH-$(checksum requirements.txt),requirements-$SEMAPHORE_GIT_BRANCH,requirements-develop
|
16
16
|
;;
|
17
17
|
|
18
18
|
assets)
|
19
|
-
cache restore packs-$SEMAPHORE_GIT_BRANCH,packs-develop
|
20
|
-
cache restore packstest-$SEMAPHORE_GIT_BRANCH,packstest-develop
|
21
|
-
cache restore assets-$SEMAPHORE_GIT_BRANCH,assets-develop
|
22
|
-
cache restore sprocketscache-$SEMAPHORE_GIT_BRANCH,sprocketscache-develop
|
23
|
-
cache restore webpackercache-$SEMAPHORE_GIT_BRANCH,webpackercache-develop
|
19
|
+
cache restore packs-$SEMAPHORE_GIT_BRANCH,packs-develop
|
20
|
+
cache restore packstest-$SEMAPHORE_GIT_BRANCH,packstest-develop
|
21
|
+
cache restore assets-$SEMAPHORE_GIT_BRANCH,assets-develop
|
22
|
+
cache restore sprocketscache-$SEMAPHORE_GIT_BRANCH,sprocketscache-develop
|
23
|
+
cache restore webpackercache-$SEMAPHORE_GIT_BRANCH,webpackercache-develop
|
24
24
|
;;
|
25
25
|
|
26
26
|
*)
|
@@ -6,7 +6,7 @@ do
|
|
6
6
|
|
7
7
|
rails)
|
8
8
|
cache store nvm-$SEMAPHORE_GIT_BRANCH-$(checksum .nvmrc) $HOME/.nvm
|
9
|
-
cache store gems-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock) vendor/bundle
|
9
|
+
cache store gems-$SEMAPHORE_GIT_BRANCH-$(checksum .ruby-version)-$(checksum Gemfile.lock) vendor/bundle
|
10
10
|
cache store yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) $HOME/.cache/yarn
|
11
11
|
cache store node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock) node_modules
|
12
12
|
;;
|
data/lib/renuo/cli/version.rb
CHANGED
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: 3.
|
4
|
+
version: 3.1.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: 2022-
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -378,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
378
378
|
- !ruby/object:Gem::Version
|
379
379
|
version: '0'
|
380
380
|
requirements: []
|
381
|
-
rubygems_version: 3.
|
381
|
+
rubygems_version: 3.2.32
|
382
382
|
signing_key:
|
383
383
|
specification_version: 4
|
384
384
|
summary: The Renuo CLI automates some common workflows.
|