html_cs_run_parse 0.1.2 → 0.1.3

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/html_cs_run_parse.rb +17 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a85162b3dbc3c21ce3bf5ac3b08cd51b031149bb9f8d144798750c8898ba797
4
- data.tar.gz: 4092ef5c6a92d1df3bedde729c9f5bbc0f4eef73e157373fecf197ac4e0a424c
3
+ metadata.gz: 4a0750c64fc312e38341c1b622eb7e14399c735727ad1756a46d101f5aa44151
4
+ data.tar.gz: 24c8084595d8094ddccccf7f409848f7d617554ec7a918c15cd9dc7db95fe287
5
5
  SHA512:
6
- metadata.gz: 7541cc4046bfef670d81b1a26c3f0f4f88114058ddc947b715d94c85734d0cc49eb6a42911f0382a5c908348a7bd49e89aee1e97190758ec5d655de0b6cdd9ca
7
- data.tar.gz: d8fdfe4a6235c05bb7ed7ba8f1aa2833a1b65d97e4fef4148f5d40f26de9bfa2b613c95f2fa476cc4dfd9de706689e399b0d2370b5eaeaa6d38d8e495f94a085
6
+ metadata.gz: 43f459df89f1010ec5f9c8c166c284b506b97e07614f7913641e9b2c2638046bd484926a9af2d98663ffa97b86c2786b507f41fabc11f92a02b7335337a6d2de
7
+ data.tar.gz: 50a279b7625aec3d67146d98d84b96d5820167afa0931d049e63b6952659b697d5e1b95f9f7740f3cdd1e55a08a37ed4d3b0199999ca98f958d427d94f477e0c
@@ -15,6 +15,23 @@ class HTMLCS
15
15
  }
16
16
  end
17
17
 
18
+ def self.create_empty_directories(root_directory_name)
19
+ html_input_location = root_directory_name + "/input"
20
+ html_output_location = root_directory_name + "/output"
21
+ html_file_location = root_directory_name + "/output/files"
22
+ if Dir.exist?(html_input_location) == false
23
+ Dir.mkdir(html_input_location)
24
+ Dir.mkdir(html_output_location)
25
+ Dir.mkdir(html_file_location)
26
+ end
27
+ [html_input_location, html_output_location, html_file_location].each { |location|
28
+ Dir.glob("#{location}/**").each { |file|
29
+ if file.include?('.txt') || file.include?('.png') || file.include?('.html') || file.include?('.csv')
30
+ File.delete(file)
31
+ end
32
+ } }
33
+ end
34
+
18
35
  def self.compile_html_cs(data_location)
19
36
  exec = Execution.new
20
37
  exec.build(data_location)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_cs_run_parse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerren Every
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-26 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec