asker-tool 2.1.6 → 2.1.7

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: 31954f483d7ed78c542d50fcbfd3ce9419d49cca87a89a6dd717e9832e870386
4
- data.tar.gz: 2dc8133f935ec289cafa318392d2575542f3083c165d0e86b6902ef7fbc2a427
3
+ metadata.gz: 180880dc684b6b39dabf66bf31366cee9e8b9793af6e92d256948edf36f5fcc7
4
+ data.tar.gz: 9c6cd45c7b3ec9b9dbde3d720092a8eabcbc98f3dd4056a413247cdd0d7b3a2e
5
5
  SHA512:
6
- metadata.gz: c107cb11e05e15e635d4fd8e6c8ba04389a2fd70a1e0f03e4f468d61d8bb01b5b45083a9f162c2e0221359fefef14fa96f02f78af32b74a074fb7f673fceb0a1
7
- data.tar.gz: 7f7e4305c1c2ec88e81245d3402f27f5ae1590b87ddfa45932cc19dfcf8c4d3d6d9d6326cbf6e03941194e71ceb65922bf85ca15f5dce6d1abc97293295ac6d5
6
+ metadata.gz: 1238e0b8c18a6a37f0731479d39039559c1f2adb7b3c8372c1965f81bb9e946ed37637e7e420d6e188a0811d9da9f652eda53b6c8dd67d4d7f6a79bebf7bb2b7
7
+ data.tar.gz: fbefae58aa69fd054a900945867c88082548042d7306227fedb1f553b48773e4fb0354913ff5bfa029c206679b7d38f4562212798dd7814de98f319d0ae71d63
@@ -8,8 +8,8 @@ require 'rainbow'
8
8
  class Application
9
9
  include Singleton
10
10
 
11
- VERSION = '2.1.6' # Application version
12
- NAME = 'asker' # Application name
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
- # encoding: utf-8
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
- def self.head(name)
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
- # encoding: utf-8
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.6
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-03-12 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml