diamante 0.3.0 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7607a260666a965bd57829cb9fb3955b0aab16b04f88475662238af66efcb2bb
4
- data.tar.gz: f394a8fafab95e0fece4367014bc09ce5e45c2df92a8216b31c3da5e5d137d4c
3
+ metadata.gz: 288aed404fb038dee74c68ba18b3f440b2bd35a5352c4cf8563f47b6ae83fc19
4
+ data.tar.gz: 41f7b9f1cd727c194464a0a4e0afdcb991970901be0cc90ee1248658309f4bbf
5
5
  SHA512:
6
- metadata.gz: d125e9bf5ef1c98df9eb90320192cc09977e4a84f35bf7b33b160da0be5a1a8bad47e54b0b6b857e3df51d9d77201625c23b606377453a44615cfec2f672c829
7
- data.tar.gz: efaf5b5b80af5c8dd5da9f84570834742bed9db047d610466e32564f2925b167737ed82184e6dab4c9c51d247ebb5d36c19a39a5b88dc9cc045f0595ec287f9b
6
+ metadata.gz: d84787b23effc6c0846318cef9111cdfc7a77f4b4b2945dfe5637497d94c7fbbc6ca8ecb909b8f736f73fe3c85745795917d965e77b706f908ea339c53b8f197
7
+ data.tar.gz: 6a4c1fd2eb9e45351af02e9f1f77bdcc7cc8fd8d26b5ecf25bb81a3bf43eafd2486d700661f3899848779add7dc9df1dcada86cce5b80120d4cfdb5f6e76ada5
@@ -14,10 +14,11 @@ module Diamante
14
14
  FileUtils.cp(source_file, dirpath)
15
15
  puts "--> Create file : #{dirpath}/config.yaml"
16
16
  else
17
- puts "Error: El archivo no existe en la ruta esperada: #{source_file}"
17
+ puts "[Project.new] No file!! #{source_file}"
18
18
  end
19
+ puts "... INFO: Customize the value of <fg/files> param!"
19
20
  rescue StandardError => e
20
- puts "Error: #{e.message}"
21
+ puts "[Project.new] #{e.message}"
21
22
  end
22
23
  end
23
- end
24
+ end
@@ -33,7 +33,7 @@ module Diamante
33
33
  def render
34
34
  lines = @slide
35
35
  row = (@height / 2) - (lines.size / 2)
36
- max_with = lines.map(&:length).max
36
+ max_with = lines.map(&:length).max || 0
37
37
  col = (@width / 2) - (max_with / 2)
38
38
 
39
39
  lines.each_with_index do |text, index|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Diamante
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diamante
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Vargas Ruiz