asker-tool 2.1.6 → 2.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 180880dc684b6b39dabf66bf31366cee9e8b9793af6e92d256948edf36f5fcc7
|
4
|
+
data.tar.gz: 9c6cd45c7b3ec9b9dbde3d720092a8eabcbc98f3dd4056a413247cdd0d7b3a2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1238e0b8c18a6a37f0731479d39039559c1f2adb7b3c8372c1965f81bb9e946ed37637e7e420d6e188a0811d9da9f652eda53b6c8dd67d4d7f6a79bebf7bb2b7
|
7
|
+
data.tar.gz: fbefae58aa69fd054a900945867c88082548042d7306227fedb1f553b48773e4fb0354913ff5bfa029c206679b7d38f4562212798dd7814de98f319d0ae71d63
|
data/lib/asker/application.rb
CHANGED
@@ -8,8 +8,8 @@ require 'rainbow'
|
|
8
8
|
class Application
|
9
9
|
include Singleton
|
10
10
|
|
11
|
-
VERSION = '2.1.
|
12
|
-
NAME = 'asker'
|
11
|
+
VERSION = '2.1.7' # Application version
|
12
|
+
NAME = 'asker' # Application name
|
13
13
|
GEM = 'asker-tool' # Gem name
|
14
14
|
attr_reader :config
|
15
15
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../project'
|
4
4
|
require_relative '../formatter/question_gift_formatter'
|
@@ -13,6 +13,11 @@ module ConceptAIGiftExporter
|
|
13
13
|
concepts_ai.each { |concept_ai| export(concept_ai, project) }
|
14
14
|
end
|
15
15
|
|
16
|
+
##
|
17
|
+
# Export 1 concept_ai from project
|
18
|
+
# @param concept_ai (ConceptAI)
|
19
|
+
# @param project (Project)
|
20
|
+
# rubocop:disable Metrics/AbcSize
|
16
21
|
private_class_method def self.export(concept_ai, project)
|
17
22
|
return unless concept_ai.process?
|
18
23
|
|
@@ -24,8 +29,13 @@ module ConceptAIGiftExporter
|
|
24
29
|
end
|
25
30
|
end
|
26
31
|
end
|
32
|
+
# rubocop:enable Metrics/AbcSize
|
27
33
|
|
28
|
-
|
34
|
+
##
|
35
|
+
# Convert Concept name into gift format head
|
36
|
+
# @param name (String)
|
37
|
+
# @return String
|
38
|
+
private_class_method def self.head(name)
|
29
39
|
s = "\n"
|
30
40
|
s += '// ' + '=' * 50 + "\n"
|
31
41
|
s += "// Concept name: #{name}\n"
|
@@ -1,7 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: false
|
2
2
|
|
3
3
|
# Transform Questions into Gift format
|
4
4
|
module QuestionGiftFormatter
|
5
|
+
##
|
6
|
+
# Convert question object into gift formatted string
|
7
|
+
# @param question (Question)
|
8
|
+
# @return String
|
5
9
|
def self.to_s(question)
|
6
10
|
@question = question
|
7
11
|
# Return question using gift format
|
@@ -52,6 +56,10 @@ module QuestionGiftFormatter
|
|
52
56
|
s
|
53
57
|
end
|
54
58
|
|
59
|
+
##
|
60
|
+
# Sanitize gift text
|
61
|
+
# @param input (String)
|
62
|
+
# @return String
|
55
63
|
def self.sanitize(input = '')
|
56
64
|
output = input.dup
|
57
65
|
output.gsub!("#", "\\#")
|
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.1.
|
4
|
+
version: 2.1.7
|
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: 2020-
|
11
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|