ruql-olx 0.0.3 → 0.0.4

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: 76998a04ff820500209dd5edd8bf3fee5a1eb06425367b31ce02583f242c4ec4
4
- data.tar.gz: a54822aa0ccf2cf6999af1bf9ecd14a044a740820eaac184b3a7d52ebde5277b
3
+ metadata.gz: 732474b425a8989e006956ceaee36c759a36143ec9a1e67ac070330c385f0f60
4
+ data.tar.gz: dce4d80985b1dad67bc58a91524ad4dad82ed2e08102936aaa44af4f41d0b2ab
5
5
  SHA512:
6
- metadata.gz: bd0bcd4bab32b7ede92f8120402085e30cf9ac03d46a6951cfaf18a0ba586ebda7638866c3e38e14ddc5a9d2a41bde931c42b76255dd06ada456cc67f75e220f
7
- data.tar.gz: 706b36d71e9c5e5b8d2889ce736743e1e584eefecee42a4a61e9da0c1f13d3013965d418ba48bc10e22661a0d097d645a53a60afa640abaf995935ebf5f8441e
6
+ metadata.gz: c20ae7d9d9408d513afe18f89082385bc3b1422261b0f4d0cb5ddcbb7222f99067165c85b0088c734d2959a91a9726d8de4ed329403873e8017018db8a061559
7
+ data.tar.gz: 6e2b2598310651cc827d876cb1e757af60fa49a9d601929340a177cc94809f990a31c3d5a3469f90b1446b5f978a84655290f1cf58f94f06c0d1cc8377f7a7fe
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruql-olx (0.0.3)
4
+ ruql-olx (0.0.4)
5
5
  builder (~> 3.0)
6
6
  ruql (~> 1.0, >= 1.0.2)
7
7
 
@@ -17,7 +17,6 @@ module Ruql
17
17
  @course_name = find_course_name
18
18
  @created_files = [] # to delete in case of error, or list created
19
19
  @modified_files = []
20
- @quiz_filehandle = nil
21
20
  @problem_ids = []
22
21
  @sequential_id = uuid()
23
22
  @vertical_id = uuid()
@@ -38,7 +37,6 @@ module Ruql
38
37
  end
39
38
 
40
39
  def add_quiz
41
- quiz_vertical = uuid()
42
40
  begin
43
41
  create_sequential
44
42
  create_vertical
@@ -23,6 +23,7 @@ module Ruql
23
23
  },
24
24
  dryrun: @dryrun)
25
25
  end
26
+ @question_number = 1
26
27
  @groupselect = (options.delete('--group-select') || 1_000_000).to_i
27
28
  @output = ''
28
29
  @h = nil # XML Builder object
@@ -97,6 +98,7 @@ eos
97
98
  else
98
99
  @output << question_xml << "\n"
99
100
  end
101
+ @question_number += 1
100
102
  end
101
103
  end
102
104
 
@@ -109,7 +111,7 @@ eos
109
111
  end
110
112
 
111
113
  def render_multiple_choice(q)
112
- @h.problem(display_name: 'MultipleChoice', markdown: 'null') do
114
+ @h.problem(display_name: "Question #{@question_number}", markdown: 'null') do
113
115
  @h.multiplechoiceresponse do
114
116
  render_question_text(q)
115
117
  @h.choicegroup(type: 'MultipleChoice') do
@@ -120,7 +122,7 @@ eos
120
122
  end
121
123
 
122
124
  def render_select_multiple(q)
123
- @h.problem(display_name: 'Checkboxes', markdown: 'null') do
125
+ @h.problem(display_name: "Question #{@question_number}", markdown: 'null') do
124
126
  @h.choiceresponse do
125
127
  render_question_text(q)
126
128
  @h.checkboxgroup do
@@ -1,5 +1,5 @@
1
1
  module Ruql
2
2
  class Olx
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruql-olx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armando Fox
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-05 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruql
@@ -125,7 +125,7 @@ metadata:
125
125
  allowed_push_host: https://rubygems.org
126
126
  homepage_uri: https://github.com/saasbook/ruql-olx
127
127
  source_code_uri: https://github.com/saasbook/ruql-olx
128
- post_install_message:
128
+ post_install_message:
129
129
  rdoc_options: []
130
130
  require_paths:
131
131
  - lib
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubygems_version: 3.0.8
144
- signing_key:
144
+ signing_key:
145
145
  specification_version: 4
146
146
  summary: OLX renderer for RuQL
147
147
  test_files: []