renuo-cli 0.1.2 → 0.2.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
- SHA1:
3
- metadata.gz: 2ed7c101c3bf20e4393c68e160a0e655f75e76e5
4
- data.tar.gz: 57c77bf81bb5a5ea8982df1e1f5c1ed6f77d90bc
2
+ SHA256:
3
+ metadata.gz: 58d443df0bdb7b235f2302b2985a61e22ed4c632b3d7c94b851f15d949c73f84
4
+ data.tar.gz: b5f3dd938a626821eed89bd77e7b258e5e54b474ba6177ad33a613532e0dedd0
5
5
  SHA512:
6
- metadata.gz: a54c328f982d751e28b27c83269eaa45fb6651480eea8dfc7ea9bd1a504bbb449e50be128efbcfbc13536e361a3ff90a6a2f16e94256b75434290a7fc778bd9d
7
- data.tar.gz: d8c4b7c5ac694bcafde1c66546b89b3ec73efc0bbd79f6384f9b35af6e0704a7e49a00efb27a7a1154c064c1c5bc3ff5bfdc9483b3e0242b84d913fbdbbf2e2f
6
+ metadata.gz: db75471beea7f88065f351fed2798bc668ec7bb5ad839fc8bc9194c501cdd1ee84a045392985d26b55d73ad567d249cc24bf8866d1dc58ed3a48f48981fdb7f0
7
+ data.tar.gz: 4a7b98a910765d0c0b5c68d5bb87b1fae595575d71e76e65615a455c881a01cb4dfd64f4127d807f05bd0533d8829702a5d2e47ad5eefc9e89d22afd9576daf5
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.5.0
data/bin/setup CHANGED
@@ -2,6 +2,7 @@
2
2
  set -euo pipefail
3
3
  IFS=$'\n\t'
4
4
 
5
+ gem install bundler --conservative
5
6
  bundle install
6
7
  ln -s ../../bin/check .git/hooks/pre-commit
7
8
 
@@ -5,11 +5,10 @@ class ReleaseProject
5
5
 
6
6
  def run(args)
7
7
  project_name, @update_type, @version = args
8
-
9
8
  validate_update_type(@update_type, @version)
10
9
  @version = validate_version(@version)
11
10
  validate_project_name(project_name)
12
-
11
+ compare_develop_master(project_name)
13
12
  release(project_name, @update_type, @version)
14
13
  ensure
15
14
  cleanup
@@ -47,6 +46,12 @@ class ReleaseProject
47
46
  end
48
47
  end
49
48
 
49
+ def compare_develop_master(project_name)
50
+ say('Please double-check what is going to be deployed.')
51
+ system "open https://github.com/#{project_name}/compare/master...develop"
52
+ abort unless agree('Are you fine with those changes?')
53
+ end
54
+
50
55
  def release(project_name, update_type, version)
51
56
  version ||= update_version_number(current_version(project_name), update_type)
52
57
 
@@ -1,5 +1,5 @@
1
1
  module Renuo
2
2
  module Cli
3
- VERSION = '0.1.2'.freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
5
5
  end
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: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renuo AG
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  requirements: []
261
261
  rubyforge_project:
262
- rubygems_version: 2.6.12
262
+ rubygems_version: 2.7.3
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: The Renuo CLI automates some commonly used workflows by providing a command