pnote_client 2.6.0 → 2.6.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: 0bb3d199f3908b91924336552bc96b99bf2347bfe3d6f74502296e77279f119d
4
- data.tar.gz: 796d96999b57c8e096fcbd894a8591f88f6b25c30baebc21ecb961873a56855b
3
+ metadata.gz: ef0671ef48f1f178c62c17fb7cd687d6fa4c990ccc2085961e4663f661553649
4
+ data.tar.gz: aeef5cd590060501a6019ce3eb3fe8a1c455583960422f820cdbfc4e9bb7cc4c
5
5
  SHA512:
6
- metadata.gz: faded062961626e6a1391f677b3f0b641e2218310ae3176539a0cc5abd34c944435bc3fe25130b7a8961b473528dffec1a230cb9ebbd827b7d34ddfef73fbf5a
7
- data.tar.gz: d4258855df9b53d4a1737194958e3772a3fb7fc9401c6e9032b328fc249d20838b7a8364ca93faf9b0dc4a6b05ad100228f2849f867b3c21622124ce7facf57b
6
+ metadata.gz: 071da98a7d2ad3a4dfa744aca08dc9c279eadbbd86d9e83cafb46d8f0d823b1ad4afb9dc5dede3b0ae8b98ecc774bc198652e7ca79fe7498ec9ddada1bf34d28
7
+ data.tar.gz: 53aed619321622f93a75f16900a01191c9598ec5db9978c7c4d851712bb4163d5c7f5c3a6243cc23568d1cd224d46a0d0f9b26ed56722eb29448881037fba184
@@ -97,15 +97,17 @@ module PnoteClient
97
97
 
98
98
  # 과외노트(각주)
99
99
  footnote_paragraph_reader = Documents::Hml::ParagraphReader.new(paragraph.footnote_paragraphs)
100
- footnote_paragraph_reader.next_paragraph do |footnote_paragraph, prev_footnote_paragraph, is_continuous, index|
100
+ tc_index = 0
101
+ footnote_paragraph_reader.next_paragraph do |footnote_paragraph, prev_footnote_paragraph, is_continuous|
101
102
  case paragraph_type(footnote_paragraph)
102
103
  when :practice_teacher_comment
103
104
  if is_continuous
104
105
  @current_teacher_comment.add_content_line(footnote_paragraph.content) if @current_teacher_comment
105
106
  else
106
- new_teacher_comment = Documents::Pnote::TeacherComment.new(show_time: (index + 1) * @show_time)
107
+ new_teacher_comment = Documents::Pnote::TeacherComment.new(show_time: (tc_index + 1) * @show_time)
107
108
  new_teacher_comment.content = footnote_paragraph.content
108
109
  add_new_teacher_comment_to_practice(@current_practice, new_teacher_comment) if @current_practice
110
+ tc_index += 1
109
111
  end
110
112
  end
111
113
  end
@@ -1,3 +1,3 @@
1
1
  module PnoteClient
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pnote_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bluesh55
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-27 00:00:00.000000000 Z
11
+ date: 2019-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler