udise_school_report_reader 0.1.1 → 0.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3a0528c7285f01601b2e348c5ea1befbc60d1a607fc55ea0ac91db0e534ccaf
|
|
4
|
+
data.tar.gz: dbd125e9caed2e95bf6267d01d042dfa562b117d65af88eba4dd34368739269a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4002ca7f7fc2e3e0732e89350331f9ae9c5ed1ae29ca587150cd9ae06857e7fff348a678ced30be0a651d3fd11442643be38055e3e002d843ed33159f9ed3012
|
|
7
|
+
data.tar.gz: d90bb351393e2b6128b16a2fbebd874b9e9553c93ba12be916700193b9a661923c9ea6fea840cc1eba0347083601cc3b9e547a46362b70773a05091208705e8d
|
|
@@ -21,6 +21,10 @@ module UdiseSchoolReportReader
|
|
|
21
21
|
|
|
22
22
|
private
|
|
23
23
|
|
|
24
|
+
def self.template_path
|
|
25
|
+
File.expand_path('../../../template.yml', __FILE__)
|
|
26
|
+
end
|
|
27
|
+
|
|
24
28
|
def self.extract_data(pdf_path)
|
|
25
29
|
reader = PDF::Reader.new(pdf_path)
|
|
26
30
|
|
|
@@ -127,7 +131,7 @@ module UdiseSchoolReportReader
|
|
|
127
131
|
lines = compressed_content.split("\n").map { |line| line.strip.gsub(/\\/, '') } # Remove escape characters
|
|
128
132
|
|
|
129
133
|
# Load template as base structure
|
|
130
|
-
data = YAML.load_file(
|
|
134
|
+
data = YAML.load_file(template_path)
|
|
131
135
|
|
|
132
136
|
# Extract data using readers
|
|
133
137
|
basic_info_data = BasicInfoDataReader.read(lines)
|