asker-tool 2.2.4 → 2.2.5

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: 03472461b2c0fd2304386ed597031005721f01c704aa60faab99b877b2f1f391
4
- data.tar.gz: 7ed5998cb07871d582458a05df781ba538b871135dd3a423d91939835a90c461
3
+ metadata.gz: d29f94512a3e39c8bca78635cf2dd2e8fe17af08a0051e06891d2215b53156c1
4
+ data.tar.gz: c7171059dff700353dbdcf95b7156ace478c8636c66fff6710980d1f057c3522
5
5
  SHA512:
6
- metadata.gz: a3f9036a18868f4a7d38789770f2a63d27072c48831727af59b0c3ad6f0ef056427d0ab351f07e77c8e2323dbba820fe2cebc00d9b2d509209c1d99fe96719cc
7
- data.tar.gz: '08f4c7f94bc0aec827a199cb4e641f02a96b470b53ac08270cbfdcef192084e2d8b61a94c11a3f267bfa932acbd51c0bd0b26d303b6fb7dabef8421dc468f818'
6
+ metadata.gz: f03b51754a35ef5db35b7b6d90431dd6e274ca5944d15e9ea80bf1ac65968576e7e2569758c936f71b56da7c69c0239ae8e48157788b5fe944960213f283fecb
7
+ data.tar.gz: 813968477e5f6346fc21a28670dc3a151bc390dc97b62f9945954a5b902ec275cef2460a3b1df3fda9ae989dce4663d8afe0def00adc54b2f73d799ce6482bca
@@ -14,10 +14,23 @@ module CheckTable
14
14
  elsif !line.start_with? ' %table'
15
15
  @outputs[index][:state] = :err
16
16
  @outputs[index][:msg] = 'Write 4 spaces before %table'
17
+ end
18
+
19
+ unless line.include? "%table{"
20
+ @outputs[index][:state] = :err
21
+ @outputs[index][:msg] = "table must be next to { (Without spaces)"
22
+ end
23
+
24
+ unless line.include? "fields:"
25
+ @outputs[index][:state] = :err
26
+ @outputs[index][:msg] = "fields must be next to : (Without spaces)"
27
+ end
28
+
29
+ # TODO
17
30
  #else not /\s+%table{\s?fields:\s?'[A-Za-z,áéíóú]*'\s?}/.match(line)
18
31
  # @outputs[index][:state] = :err
19
32
  # @outputs[index][:msg] = 'Table#fields malformed!'
20
- end
33
+ #end
21
34
  end
22
35
 
23
36
  def check_row(line, index)
data/lib/asker/version.rb CHANGED
@@ -1,9 +1,10 @@
1
1
 
2
2
  # Global parameters
3
3
  module Version
4
- VERSION = '2.2.4'
4
+ MAJOR_NUMBER = '2.2'
5
+ VERSION = "#{MAJOR_NUMBER}.5"
5
6
  NAME = 'asker'
6
7
  GEM = 'asker-tool'
7
8
  CONFIGFILE = 'asker.ini'
8
- HOMEPAGE = "https://github.com/teuton-software/#{NAME}/tree/v2.2\#readme"
9
+ HOMEPAGE = "https://github.com/teuton-software/#{NAME}/tree/v#{MAJOR_NUMBER}\#readme"
9
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asker-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Vargas Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml
@@ -278,14 +278,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
278
278
  requirements:
279
279
  - - ">="
280
280
  - !ruby/object:Gem::Version
281
- version: 2.6.9
281
+ version: 2.5.5
282
282
  required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  requirements:
284
284
  - - ">="
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubygems_version: 3.1.6
288
+ rubyforge_project:
289
+ rubygems_version: 2.7.6.3
289
290
  signing_key:
290
291
  specification_version: 4
291
292
  summary: Asker generates questions from input definitions file.