asciidoctor-question 0.5.1 → 0.5.2

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
  SHA1:
3
- metadata.gz: e953e7acc96768c7a0bf6269ac5d4fef7fc89911
4
- data.tar.gz: e4155bf3aff37139c12f3e90dbba5b8ecae354b7
3
+ metadata.gz: 1fda0c48e43f51b0a28e26a467a1501dd4b369e8
4
+ data.tar.gz: d2f0cb4dada1abfcd72211790ab8dea7d9c14f55
5
5
  SHA512:
6
- metadata.gz: 1094ab9aab12b8ca1e36315a87c0a0eb8942d3a559ccb5547d2914d0dcbf8a0e959dcb4ff48c89c721ef22a532a36c1241eaebc82646e9923d47acadc4b93a7a
7
- data.tar.gz: b8e0fa01311471f3ffa07f9dbe12bdaf10bd1e6194e91edb24b200871fcc7a7e768f086c41deb9aa029c44ed2d30f73044dc7c8b08a00489b294c955a120f1dd
6
+ metadata.gz: 84e78411dde3f70eabc20b7f8f93e66673b3f946438dd1c12c70bf1bad3b9fa5ac18ccae01496586ef555e771180ba2d049fd9816d37348326998fbc7a481aba
7
+ data.tar.gz: 0e9d738061d68b3dad00d79687b005bed5adcc91fe61e2b7d5af23376f8381c5272ed89fb03ede988e9efc861bcadb0cc17219b842a4e1ae82f6248e36883a63
@@ -9,9 +9,10 @@ module Asciidoctor
9
9
  class QuestionBlockProcessor < Extensions::BaseProcessor
10
10
  name_positional_attributes [:type, :shuffle]
11
11
 
12
+
12
13
  def initialize name = nil, config = {}
13
14
  super name, config
14
- @id = 0
15
+ @@id = 0
15
16
  end
16
17
 
17
18
  def process(parent, source, tag)
@@ -20,7 +21,7 @@ module Asciidoctor
20
21
 
21
22
  type = tag[:type]
22
23
  type = tag[:type] = 'mc' if type == 'mc' or type == 'multiplechoice' or type == 'multiple_choice'
23
- tag[:id] = @id = @id + 1
24
+ tag[:id] = @@id = @@id + 1
24
25
 
25
26
  tag[:solution] = has_solution parent
26
27
 
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Question
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
@@ -1,2 +1,61 @@
1
- :solution:
2
- include::2016WS.OOP.35Fragen.adoc[]
1
+
2
+ [question, gap]
3
+ ====
4
+ Lorem __ipsum__ dolor sit amet, consetetur __sadipscing__ elitr,
5
+ sed diam nonumy eirmod __tempor invidunt ut__ labore et dolore
6
+ magna aliquyam erat, sed diam voluptua. At vero eos et
7
+ accusam et justo duo dolores et ea rebum.
8
+
9
+ [source,ruby]
10
+ ----
11
+ Stet clita kasd gubergren, no sea takimata __sanctus__ est Lorem ipsum dolor sit amet.
12
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
13
+ sed diam nonumy eirmod tempor __invidunt__ ut labore et
14
+ dolore magna aliquyam erat, sed diam voluptua.
15
+ ----
16
+
17
+ At vero eos et __accusam__ et justo duo dolores et ea rebum.
18
+ Stet clita kasd gubergren, no sea takimata __sanctus__ est Lorem ipsum dolor sit amet.
19
+ ====
20
+
21
+ [question, mc]
22
+ ====
23
+ Das hier ist eine Frage:
24
+ ----
25
+ test
26
+ ----
27
+
28
+ - [ ] Hallo 1234
29
+ pkfsepgkdsjghü ojsoip jhsotjhotsjoh std oh sodn hodnh adinhididnhdtd dp dknwodh snmhd öndpishdod mdhopj
30
+ - [*] test
31
+ ====
32
+
33
+ [question, mc, shuffle]
34
+ ....
35
+ ====
36
+ test
37
+ ====
38
+
39
+ - [ ] Hallo 1234
40
+ pkfsepgkdsjghü ojsoip jhsotjhotsjoh std oh sodn hodnh adinhididnhdtd dp dknwodh snmhd öndpishdod mdhopj
41
+ - [*] test
42
+ ....
43
+
44
+ [question, mc, shuffle]
45
+ --
46
+ Das hier ist eine Frage:
47
+ ====
48
+ test
49
+ ====
50
+
51
+ - [*] 0
52
+ - [ ] 1
53
+ - [*] 2
54
+ - [ ] 3
55
+ - [*] 4
56
+ - [ ] 5
57
+ - [*] 6
58
+ - [ ] 7
59
+ - [*] 8
60
+ - [ ] 9
61
+ --
@@ -1,6 +1,5 @@
1
1
  require 'asciidoctor-pdf'
2
2
  require_relative '../lib/asciidoctor-question'
3
3
 
4
- #Asciidoctor.convert_file 'test/test.adoc', {:safe => :safe}
4
+ Asciidoctor.convert_file 'test/test.adoc', {:safe => :safe, :solution => ''}
5
5
  Asciidoctor.convert_file 'test/test.adoc', {:safe => :safe, :backend => 'pdf'}
6
- #Asciidoctor.convert_file 'test/2016WS.OOP.Klausur1.adoc', {:safe => :safe, :solution => '', :backend => 'pdf'}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-question
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Hoppe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-30 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.6.8
133
+ rubygems_version: 2.6.12
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: An extension.rb for asciidoctor-question that adds support for multiple choice