asker-tool 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asker/application.rb +2 -2
- data/lib/asker/cli.rb +1 -1
- data/lib/asker/exporter/concept_ai_moodle_exporter.rb +2 -2
- data/lib/asker/exporter/concept_doc_exporter.rb +1 -1
- data/lib/asker/exporter/data_gift_exporter.rb +2 -2
- data/lib/asker/logger.rb +2 -2
- data/lib/asker/skeleton.rb +2 -2
- data/lib/asker/version.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7f736e5274c55a3df6b996fa7b21e0d14aa2ff7cccd58c5010712a5e89315ac
|
4
|
+
data.tar.gz: df2db7cde8ee7efb0950c88dadf15586b5b163c5aaa57dabf4533241f17306d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4acbbfb6318306f2b2651435f8da5f0355ca84843a530bee1a3f14495392f2add6670fb6f4e026768cf4c2cfbc5d2e327ea67981129c97f6f114beda898b0955
|
7
|
+
data.tar.gz: f8d240b4fead9a936b0c44a0ae7ffa8bed257e9e7d419786356fafc58d95164b2ca43cc5d43eb2576bdef1264d9e18106671bdf5651fcbf8d6d68170b67d12a0
|
data/lib/asker/application.rb
CHANGED
@@ -16,10 +16,10 @@ class Application
|
|
16
16
|
|
17
17
|
def reset
|
18
18
|
filename = File.join(Dir.pwd,
|
19
|
-
|
19
|
+
Asker::CONFIGFILE)
|
20
20
|
filename = File.join(File.dirname(__FILE__),
|
21
21
|
'files',
|
22
|
-
|
22
|
+
Asker::CONFIGFILE) unless File.exist? filename
|
23
23
|
|
24
24
|
begin
|
25
25
|
@config = IniFile.load(filename)
|
data/lib/asker/cli.rb
CHANGED
@@ -14,8 +14,8 @@ module ConceptAIMoodleExporter
|
|
14
14
|
file.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
|
15
15
|
file.write("<quiz>\n")
|
16
16
|
file.write("<!--\n#{('=' * 50)}\n")
|
17
|
-
file.write(" Created by : #{
|
18
|
-
file.write(" (version #{
|
17
|
+
file.write(" Created by : #{Asker::NAME}")
|
18
|
+
file.write(" (version #{Asker::VERSION})\n")
|
19
19
|
file.write(" File : #{project.get(:moodlename)}\n")
|
20
20
|
file.write(" Time : #{Time.new}\n")
|
21
21
|
file.write(" Author : David Vargas Ruiz\n")
|
@@ -11,7 +11,7 @@ module ConceptDocExporter
|
|
11
11
|
def self.export_all(concepts, project)
|
12
12
|
file = File.new(project.get(:lessonpath), 'w')
|
13
13
|
file.write('=' * 50 + "\n")
|
14
|
-
file.write("Created by : #{
|
14
|
+
file.write("Created by : #{Asker::NAME} (version #{Asker::VERSION})\n")
|
15
15
|
file.write("File : #{project.get(:lessonname)}\n")
|
16
16
|
file.write("Time : #{Time.new}\n")
|
17
17
|
file.write("Author : David Vargas Ruiz\n")
|
@@ -14,8 +14,8 @@ module DataGiftExporter
|
|
14
14
|
def self.export_all(data, project)
|
15
15
|
file = File.open(project.get(:outputpath), 'w')
|
16
16
|
file.write('// ' + ('=' * 50) + "\n")
|
17
|
-
file.write("// Created by : #{
|
18
|
-
file.write(" (version #{
|
17
|
+
file.write("// Created by : #{Asker::NAME}")
|
18
|
+
file.write(" (version #{Asker::VERSION})\n")
|
19
19
|
file.write("// File : #{project.get(:outputname)}\n")
|
20
20
|
file.write("// Time : #{Time.new}\n")
|
21
21
|
file.write("// Author : David Vargas Ruiz\n")
|
data/lib/asker/logger.rb
CHANGED
@@ -33,8 +33,8 @@ class Logger
|
|
33
33
|
def self.create(logpath, logname)
|
34
34
|
@logfile = File.open(logpath, 'w')
|
35
35
|
@logfile.write('=' * 50 + "\n")
|
36
|
-
@logfile.write("Created by : #{
|
37
|
-
@logfile.write(" (version #{
|
36
|
+
@logfile.write("Created by : #{Asker::NAME}")
|
37
|
+
@logfile.write(" (version #{Asker::VERSION})\n")
|
38
38
|
@logfile.write("File : #{logname}\n")
|
39
39
|
@logfile.write("Time : #{Time.new}\n")
|
40
40
|
@logfile.write("Author : David Vargas Ruiz\n")
|
data/lib/asker/skeleton.rb
CHANGED
@@ -34,8 +34,8 @@ module Skeleton
|
|
34
34
|
# Create default configuration files
|
35
35
|
def self.create_configuration
|
36
36
|
puts "\n[INFO] Creating configuration files"
|
37
|
-
src = File.join(File.dirname(__FILE__), 'files',
|
38
|
-
dst = File.join(
|
37
|
+
src = File.join(File.dirname(__FILE__), 'files', Asker::CONFIGFILE)
|
38
|
+
dst = File.join(Asker::CONFIGFILE)
|
39
39
|
copyfile(src, dst)
|
40
40
|
end
|
41
41
|
|
data/lib/asker/version.rb
CHANGED
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.4.
|
4
|
+
version: 2.4.2
|
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-04-
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|