pnote_client 2.1.1 → 2.1.2

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: 6768e747c37505e8606dd774b8ff50bed95eaa2c76673aa6ab26ad39a640f7f5
4
- data.tar.gz: 87eee8422ea2646fbe047558f4839915c5128258a87fd5c4ab305db9fa51d516
3
+ metadata.gz: 56175a9e244dbff020f95ccb9a529fd775b66741ea82d1995b21bc23e87350e6
4
+ data.tar.gz: 2f4a7a25fbd08fb809144365a2742f4e361fa89588658860c3c3901addf98e49
5
5
  SHA512:
6
- metadata.gz: d6cede281e8d80463854ee8beb831b675b262de076393ec39458c21d053f8fbe2e66c323cd1858ba25888d77a7bca9c6709f671d3558ac0d772d54048e9163ee
7
- data.tar.gz: 30a5fe6cc5bdda30450e4dbd94c3641c6d93847de1d871491a8a7c6ef0bcc58d3a6fc4ceb2308036857c5a36756e985baea7eae8954dc4fce702c7896bb12eea
6
+ metadata.gz: ef3eec00f3f55bf208e7c0cc345248d4e3855c30274a304b95207fd9e2a128f55a36eb0054a1fe0a43b2bb2feaf8417afffa3263408a722e387c8e04aa507e29
7
+ data.tar.gz: ee794b2e3a306fc9e773ff6f1e274e97f409267405a647707c5a3767219749159177f2e23ecc73c34eb7c8f3e5a75062af8c906c7503e591ef8547e90f9b29aa
@@ -11,11 +11,13 @@ module PnoteClient
11
11
 
12
12
  def initialize(
13
13
  question: nil, answer: nil, explaination: nil,
14
- choices: nil, choice: nil, teacher_comments: [], tip: nil
14
+ choices: nil, teacher_comments: [], tip: nil
15
15
  )
16
16
 
17
- @question, @answer, @explaination, @choices, @choice, @teacher_comments, @tip =
18
- question, answer, explaination, choices, choice, teacher_comments, tip
17
+ @question, @answer, @explaination, @choices, @teacher_comments, @tip =
18
+ question, answer, explaination, choices, teacher_comments, tip
19
+ @choice = nil
20
+ @answer_line = nil
19
21
  end
20
22
 
21
23
  def add_question_line(new_line)
@@ -23,7 +25,7 @@ module PnoteClient
23
25
  end
24
26
 
25
27
  def add_answer_line(new_line)
26
- @answer = add_line(@answer, new_line)
28
+ @answer_line = add_line(@answer_line, new_line)
27
29
  end
28
30
 
29
31
  def add_explaination_line(new_line)
@@ -35,8 +37,8 @@ module PnoteClient
35
37
  end
36
38
 
37
39
  def answer
38
- return nil if @answer.nil?
39
- return @answer.match(/\s*\[정답\]\s*(.*)/).to_a[1]&.strip
40
+ return @answer if @answer
41
+ return @answer_line.match(/\s*\[정답\]\s*(.*)/).to_a[1]&.strip
40
42
  end
41
43
 
42
44
  def choices
@@ -1,3 +1,3 @@
1
1
  module PnoteClient
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pnote_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bluesh55