verto 0.4.0 → 0.4.1
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/Gemfile.lock +1 -1
- data/README.md +6 -6
- data/lib/verto/commands/tag_command.rb +4 -3
- data/lib/verto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed9bf230e2f05778e872e49ed062ae6b069235a194e4cdc74c06ed08faab26a0
|
|
4
|
+
data.tar.gz: e06f2544c3f702faf14fed52d7bb1a482be1805180ede8499f14c3406107bcb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a99b9c1f1185820ed94d45bf5800e000374d338f46b312b70246dc639dad7d6ae159ac6f5e131abb8add7e60afd3cbe5a687557e976378ee24f3699d91fa55b8
|
|
7
|
+
data.tar.gz: 5328c4654c58d98110d7367e30ba89218e2bb083b5594c3e58356ea72c9849097e92cbb859dfa90189fb3a768a7c7b8fa57eb04aeb065bd47e08a14f22907b0c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -32,20 +32,20 @@ You don't need to install verto in your machine, you can run verto via the docke
|
|
|
32
32
|
To use verto in the same way that you use any other cli, you can set an alias in your `.bashrc`, `.zshrc`, etc:
|
|
33
33
|
|
|
34
34
|
```
|
|
35
|
-
alias verto='docker run -v $(pwd):/usr/src/project -it catks/verto:0.4.
|
|
35
|
+
alias verto='docker run -v $(pwd):/usr/src/project -it catks/verto:0.4.1'
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
If you want you can share your git configuration and known_hosts with:
|
|
39
39
|
|
|
40
40
|
```
|
|
41
|
-
alias verto='docker run -v ~/.gitconfig:/etc/gitconfig -v $(pwd):/usr/src/project -v $HOME/.ssh/known_hosts:/root/.ssh/known_hosts -it catks/verto:0.4.
|
|
41
|
+
alias verto='docker run -v ~/.gitconfig:/etc/gitconfig -v $(pwd):/usr/src/project -v $HOME/.ssh/known_hosts:/root/.ssh/known_hosts -it catks/verto:0.4.1'
|
|
42
42
|
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
You can also use your ssh keys with verto container (for git push):
|
|
46
46
|
|
|
47
47
|
```
|
|
48
|
-
alias verto='docker run -v $(pwd):/usr/src/project -v $HOME/.ssh/known_hosts:/root/.ssh/known_hosts -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa -e SSH_PRIVATE_KEY=/root/.ssh/id_rsa -it catks/verto:0.4.
|
|
48
|
+
alias verto='docker run -v $(pwd):/usr/src/project -v $HOME/.ssh/known_hosts:/root/.ssh/known_hosts -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa -e SSH_PRIVATE_KEY=/root/.ssh/id_rsa -it catks/verto:0.4.1'
|
|
49
49
|
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ Or share the git config, known_hosts and ssh_keys:
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
```
|
|
56
|
-
alias verto='docker run -v ~/.gitconfig:/etc/gitconfig -v $(pwd):/usr/src/project -v $HOME/.ssh/known_hosts:/root/.ssh/known_hosts -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa -e SSH_PRIVATE_KEY=/root/.ssh/id_rsa -it catks/verto:0.4.
|
|
56
|
+
alias verto='docker run -v ~/.gitconfig:/etc/gitconfig -v $(pwd):/usr/src/project -v $HOME/.ssh/known_hosts:/root/.ssh/known_hosts -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa -e SSH_PRIVATE_KEY=/root/.ssh/id_rsa -it catks/verto:0.4.1'
|
|
57
57
|
|
|
58
58
|
```
|
|
59
59
|
|
|
@@ -73,12 +73,12 @@ You can run verto right out of the box without any configuration:
|
|
|
73
73
|
|
|
74
74
|
If you need a more specific configuration or want to reflect your development proccess in some way, you can use Verto DSL creating a Vertofile with the configuration.
|
|
75
75
|
|
|
76
|
-
You can create a new Vertofile
|
|
76
|
+
You can create a new Vertofile with `verto init` or following the next example:
|
|
77
77
|
|
|
78
78
|
```ruby
|
|
79
79
|
# Vertofile
|
|
80
80
|
|
|
81
|
-
verto_version '0.4.
|
|
81
|
+
verto_version '0.4.1'
|
|
82
82
|
|
|
83
83
|
context(branch('master')) {
|
|
84
84
|
before_command('tag_up') {
|
|
@@ -35,14 +35,15 @@ module Verto
|
|
|
35
35
|
include Verto.import['tag_repository']
|
|
36
36
|
|
|
37
37
|
def up_version(version, options)
|
|
38
|
-
|
|
38
|
+
up_options = options.select { |key,value| value == true }.keys.map(&:to_sym) & [:major, :minor, :patch]
|
|
39
|
+
up_option = up_options.sort.first
|
|
39
40
|
|
|
40
|
-
new_version =
|
|
41
|
+
new_version = version.up(up_option)
|
|
41
42
|
|
|
42
43
|
if options[:pre_release]
|
|
43
44
|
identifier = pre_release_configured? ? options[:pre_release] : version.pre_release.name
|
|
44
45
|
new_version = new_version.with_pre_release(identifier)
|
|
45
|
-
new_version = new_version.up(:pre_release) if new_version.pre_release.name == version.pre_release.name
|
|
46
|
+
new_version = new_version.up(:pre_release) if new_version.pre_release.name == version.pre_release.name && new_version == version
|
|
46
47
|
end
|
|
47
48
|
|
|
48
49
|
new_version
|
data/lib/verto/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: verto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carlos Atkinson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|