atomic_assessments_import 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bcb1d1d253d33265e1fa24e225f694488bd797e389dcfcad7824dc07c86d08d
|
4
|
+
data.tar.gz: f6623caa2e4302059af6c49740b23eff852de582b518d0ff864bf99b6b3408e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8f5bc596f3b219990de4fc6ca5b13f5b94744746c17e349f223cd2301768b8e05369958f98108fc077daee6b0b75b2e261ccf94d9cc1976be58b6bbbcfa2563
|
7
|
+
data.tar.gz: 70b3ee1e7458a73ebbfa0e64118bccf5cc1f32ce2da7017de1fbdff724a78a7e18bb562eeb7a835a115f177bdaf92bff20885af0c689c00ae4f8b33dd012644c
|
@@ -109,6 +109,11 @@ module AtomicAssessmentsImport
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def convert_row(row)
|
112
|
+
source = "<p>CSV Import on #{Time.now.strftime('%Y-%m-%d')}</p>\n"
|
113
|
+
if row["question id"].present?
|
114
|
+
source += "<p>External id: #{row['question id']}</p>\n"
|
115
|
+
end
|
116
|
+
|
112
117
|
question = Questions::Question.load(row)
|
113
118
|
item = {
|
114
119
|
reference: SecureRandom.uuid,
|
@@ -124,6 +129,7 @@ module AtomicAssessmentsImport
|
|
124
129
|
alignment: alignment_urls(row),
|
125
130
|
}.compact,
|
126
131
|
},
|
132
|
+
source: source,
|
127
133
|
description: row["description"] || "",
|
128
134
|
questions: [
|
129
135
|
{
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atomic_assessments_import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Collings
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-03-
|
12
|
+
date: 2025-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|