verto 0.4.0 → 0.4.1

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: 3d8e4c4c7f370860515641f6e6ef1434b9b7d8d99dba5e141d8fec5aaf267293
4
- data.tar.gz: 7a1cb951a8ed2bce249ab18b2e27297161d2324db77ab288eb9d2dbd677837f8
3
+ metadata.gz: ed9bf230e2f05778e872e49ed062ae6b069235a194e4cdc74c06ed08faab26a0
4
+ data.tar.gz: e06f2544c3f702faf14fed52d7bb1a482be1805180ede8499f14c3406107bcb5
5
5
  SHA512:
6
- metadata.gz: 7c0965949b73fb2327d943b28b89d796d5e3e7e5358f805c0767778f5b3c15bf10fe6b73af7284e4e800f3314fa7e36d533fef80a263aef1e6ab20b63d3a8f11
7
- data.tar.gz: c4b35bf0353b9dfecfdf869edb8aa560616a5c04c46e934876f3e27721d1cf1ed528afd7374bcffe15b6fdc1230a2556e1781b9671b3a4e19b65c6a7886c4d0b
6
+ metadata.gz: a99b9c1f1185820ed94d45bf5800e000374d338f46b312b70246dc639dad7d6ae159ac6f5e131abb8add7e60afd3cbe5a687557e976378ee24f3699d91fa55b8
7
+ data.tar.gz: 5328c4654c58d98110d7367e30ba89218e2bb083b5594c3e58356ea72c9849097e92cbb859dfa90189fb3a768a7c7b8fa57eb04aeb065bd47e08a14f22907b0c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- verto (0.4.0)
4
+ verto (0.4.1)
5
5
  dry-auto_inject (~> 0.7)
6
6
  dry-configurable (~> 0.8)
7
7
  dry-container (~> 0.7)
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.0'
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.0'
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.0'
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.0'
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, with `verto init` or following the next example:
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.0'
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
- version_up_options = options.select { |key,value| value == true }.keys.map(&:to_sym) & [:major, :minor, :patch]
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 = version_up_options.reduce(version) { |version, up_option| version.up(up_option) }
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
@@ -1,3 +1,3 @@
1
1
  module Verto
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor