pnote_client 1.0.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.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +98 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/config.json +26 -0
  12. data/exe/pnote_to_json +64 -0
  13. data/lib/pnote_client/converters/hml_to_pnote_converter.rb +195 -0
  14. data/lib/pnote_client/converters/pnote_to_json_converter.rb +96 -0
  15. data/lib/pnote_client/display/console_display.rb +37 -0
  16. data/lib/pnote_client/documents/hml/binary_item.rb +20 -0
  17. data/lib/pnote_client/documents/hml/char.rb +27 -0
  18. data/lib/pnote_client/documents/hml/equation.rb +33 -0
  19. data/lib/pnote_client/documents/hml/image.rb +28 -0
  20. data/lib/pnote_client/documents/hml/paragraph.rb +84 -0
  21. data/lib/pnote_client/documents/hml/paragraph_reader.rb +29 -0
  22. data/lib/pnote_client/documents/hml/rectangle.rb +39 -0
  23. data/lib/pnote_client/documents/hml/style.rb +21 -0
  24. data/lib/pnote_client/documents/hml/table.rb +55 -0
  25. data/lib/pnote_client/documents/hml/table_cell.rb +49 -0
  26. data/lib/pnote_client/documents/hml/table_row.rb +34 -0
  27. data/lib/pnote_client/documents/hml.rb +60 -0
  28. data/lib/pnote_client/documents/pnote/chapter.rb +27 -0
  29. data/lib/pnote_client/documents/pnote/concept.rb +26 -0
  30. data/lib/pnote_client/documents/pnote/exercise.rb +10 -0
  31. data/lib/pnote_client/documents/pnote/image.rb +16 -0
  32. data/lib/pnote_client/documents/pnote/practice.rb +25 -0
  33. data/lib/pnote_client/documents/pnote/problem.rb +50 -0
  34. data/lib/pnote_client/documents/pnote/sub_chapter.rb +32 -0
  35. data/lib/pnote_client/documents/pnote/teacher_comment.rb +22 -0
  36. data/lib/pnote_client/documents/pnote.rb +20 -0
  37. data/lib/pnote_client/utils/string_util.rb +10 -0
  38. data/lib/pnote_client/version.rb +3 -0
  39. data/lib/pnote_client.rb +4 -0
  40. data/pnote_client.gemspec +35 -0
  41. metadata +155 -0
@@ -0,0 +1,4 @@
1
+ require "pnote_client/version"
2
+
3
+ module PnoteClient
4
+ end
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pnote_client/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pnote_client"
8
+ spec.version = PnoteClient::VERSION
9
+ spec.authors = ["bluesh55"]
10
+ spec.email = ["bluesh55@naver.com"]
11
+
12
+ spec.summary = %q{Convert PNote(.hml) file to json file}
13
+ spec.homepage = "https://github.com/PrivateCoach/pnote_client"
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ else
21
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ end
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.12"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rspec", "~> 3.0"
32
+
33
+ spec.add_dependency "nokogiri"
34
+ spec.add_dependency "hwp_script_to_latex", "~> 1.0"
35
+ end
metadata ADDED
@@ -0,0 +1,155 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pnote_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - bluesh55
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-01-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: hwp_script_to_latex
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ description:
84
+ email:
85
+ - bluesh55@naver.com
86
+ executables:
87
+ - pnote_to_json
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - config.json
101
+ - exe/pnote_to_json
102
+ - lib/pnote_client.rb
103
+ - lib/pnote_client/converters/hml_to_pnote_converter.rb
104
+ - lib/pnote_client/converters/pnote_to_json_converter.rb
105
+ - lib/pnote_client/display/console_display.rb
106
+ - lib/pnote_client/documents/hml.rb
107
+ - lib/pnote_client/documents/hml/binary_item.rb
108
+ - lib/pnote_client/documents/hml/char.rb
109
+ - lib/pnote_client/documents/hml/equation.rb
110
+ - lib/pnote_client/documents/hml/image.rb
111
+ - lib/pnote_client/documents/hml/paragraph.rb
112
+ - lib/pnote_client/documents/hml/paragraph_reader.rb
113
+ - lib/pnote_client/documents/hml/rectangle.rb
114
+ - lib/pnote_client/documents/hml/style.rb
115
+ - lib/pnote_client/documents/hml/table.rb
116
+ - lib/pnote_client/documents/hml/table_cell.rb
117
+ - lib/pnote_client/documents/hml/table_row.rb
118
+ - lib/pnote_client/documents/pnote.rb
119
+ - lib/pnote_client/documents/pnote/chapter.rb
120
+ - lib/pnote_client/documents/pnote/concept.rb
121
+ - lib/pnote_client/documents/pnote/exercise.rb
122
+ - lib/pnote_client/documents/pnote/image.rb
123
+ - lib/pnote_client/documents/pnote/practice.rb
124
+ - lib/pnote_client/documents/pnote/problem.rb
125
+ - lib/pnote_client/documents/pnote/sub_chapter.rb
126
+ - lib/pnote_client/documents/pnote/teacher_comment.rb
127
+ - lib/pnote_client/utils/string_util.rb
128
+ - lib/pnote_client/version.rb
129
+ - pnote_client.gemspec
130
+ homepage: https://github.com/PrivateCoach/pnote_client
131
+ licenses:
132
+ - MIT
133
+ metadata:
134
+ allowed_push_host: https://rubygems.org
135
+ post_install_message:
136
+ rdoc_options: []
137
+ require_paths:
138
+ - lib
139
+ required_ruby_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ requirements: []
150
+ rubyforge_project:
151
+ rubygems_version: 2.6.14
152
+ signing_key:
153
+ specification_version: 4
154
+ summary: Convert PNote(.hml) file to json file
155
+ test_files: []