bddgenx 0.1.48 → 0.1.51

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: a7d7bc3ae1d02d77b8ee28637f1e581df8ecba9be93fe2914a9abfd57dd4df14
4
- data.tar.gz: 772683db306eb7ab0b46566094d1707601752ed35c7b5845dd3eb05dc76c07e3
3
+ metadata.gz: 887584d64b29e9d2eecbedefa011eb4c3cd2c1e7ee8e3e71b2f2d602b9229f34
4
+ data.tar.gz: f58a637a706bb935d3bda39078cfcf22773612a9857bbe86a9af395ca0e7f468
5
5
  SHA512:
6
- metadata.gz: a849a7dc26aa92ea554668b8480be8c57b80dc312faecb0ae0f403d6146073de663ec8cdab6c60695d4759a5e890a89bca376a9d223e273b23dbbdce8f341b10
7
- data.tar.gz: 7060bbc89f69317e7c771201d1e5fd9a66e028a61622bf7a7bcf14c45772f392ee025ab14c4836367a71c20018a299ec276ade9b6762c50bd56e8964834aa4f7
6
+ metadata.gz: 2c0a0dc0277a314964853a723559ea784d0a660de28d2bba7ea3d94c6cc4833df35b76c8d3f09d81896c801c2bd9baf6668efb3afe0ab8599bf7d45588d5cc48
7
+ data.tar.gz: 804cefd2b537ca4f9902a1790b702c7d79f457b5b94e6316d6b5c9793c5d6cafd358e36c999c7ed3804820c34138b938bede09687a1eea0486280b356b5168cf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.48
1
+ 0.1.51
@@ -51,6 +51,7 @@ module Bddgenx
51
51
  def self.gerar_feature(input, override_path = nil)
52
52
  historia = input.is_a?(String) ? Parser.ler_historia(input) : input
53
53
  idioma = historia[:idioma] || 'pt'
54
+ cont = 1
54
55
 
55
56
  # Geração do nome base do arquivo
56
57
  nome_base = historia[:quero]
@@ -103,7 +104,8 @@ module Bddgenx
103
104
  if exemplos.any?
104
105
  # Cenário com Esquema
105
106
  conteudo << " #{tag_line}\n"
106
- conteudo << " #{palavras[:esquema]}: #{historia[:quero]}\n"
107
+ conteudo << " #{palavras[:esquema]}: Exemplo #{cont} \n"
108
+ cont += 1
107
109
 
108
110
  # Passos do cenário
109
111
  passos.each do |p|
@@ -80,7 +80,7 @@ module Bddgenx
80
80
  # Processa cada linha restante para blocos e exemplos
81
81
  linhas.each do |linha|
82
82
  # Início de bloco de exemplos: [EXEMPLO], [EXEMPLOS] ou [EXAMPLES] com tag opcional
83
- if linha =~ /^\[(?:EXEMPLO|EXEMPLOS|EXAMPLES)\](?:@(\w+))?$/i
83
+ if linha =~ /^\[(?:EXEMPLO|EXEMPLOS|EXAMPLES)\](?:@([\w\-]+))?$/i
84
84
  exemplos_mode = true
85
85
  # Cria array de exemplos no último grupo, se ainda não existir
86
86
  historia[:grupos].last[:exemplos] = []
@@ -88,7 +88,7 @@ module Bddgenx
88
88
  end
89
89
 
90
90
  # Início de bloco com tipo definido em TIPOS_BLOCOS e tag opcional
91
- if linha =~ /^\[(#{TIPOS_BLOCOS.join('|')})\](?:@(\w+))?$/i
91
+ if linha =~ /^\[(#{TIPOS_BLOCOS.join('|')})\](?:@([\w\-]+))?$/i
92
92
  exemplos_mode = false
93
93
  tipo = Regexp.last_match(1).upcase
94
94
  tag = Regexp.last_match(2)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bddgenx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.48
4
+ version: 0.1.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Nascimento
@@ -28,28 +28,28 @@ dependencies:
28
28
  name: prawn-table
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.37.0
33
+ version: 0.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.37.0
40
+ version: 0.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: prawn-svg
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.2.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.2.2
55
55
  description: Transforma arquivos .txt com histórias em arquivos .feature, com steps,