asker-tool 2.2.4 → 2.2.5
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/lib/asker/check_input/check_table.rb +14 -1
- data/lib/asker/version.rb +3 -2
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d29f94512a3e39c8bca78635cf2dd2e8fe17af08a0051e06891d2215b53156c1
|
|
4
|
+
data.tar.gz: c7171059dff700353dbdcf95b7156ace478c8636c66fff6710980d1f057c3522
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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/
|
|
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
|
+
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-
|
|
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.
|
|
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
|
-
|
|
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.
|