data_collector 0.68.0 → 0.68.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 +4 -4
- data/lib/data_collector/config_file.rb +1 -1
- data/lib/data_collector/input.rb +1 -1
- data/lib/data_collector/output.rb +1 -1
- data/lib/data_collector/runner.rb +1 -1
- data/lib/data_collector/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7257506a86cb80be6b499c9f79082053918837dbd1eb6c5d996bd849234ed0e9
|
|
4
|
+
data.tar.gz: 7fdbe13406108ad66a9c52c56fd5cd045e3d73134c567ccbae8b0b60b91e6f99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2482d368901a44f036efb73059e7d3aa34e1568c2f8d583ba009dc94fce64452e896c026d22be0ef177454385f228068df47f7e1cfe277b43671ab9df7648dc4
|
|
7
|
+
data.tar.gz: 41858adc38fe511a22f27717c1344cc671883f84fe8bb87f7ccc539c28caa361be46ffcec2f5d98896b61cc8787ca62ee98d6019582c0faa7ac18ef4713f4714
|
|
@@ -110,7 +110,7 @@ module DataCollector
|
|
|
110
110
|
private
|
|
111
111
|
def self.interpret_yaml_with_expressions(yaml_file, variables = {})
|
|
112
112
|
# Read the YAML file content
|
|
113
|
-
content = File.read(yaml_file)
|
|
113
|
+
content = File.read(yaml_file, encoding: "bom|utf-8")
|
|
114
114
|
|
|
115
115
|
# Process any :key: "${expression}" patterns
|
|
116
116
|
processed_content = content.gsub(/:key:\s*"?\$\{([^}]+)\}"?/) do |match|
|
data/lib/data_collector/input.rb
CHANGED
|
@@ -270,7 +270,7 @@ module DataCollector
|
|
|
270
270
|
options['file_extention'] = ".#{options['file_type']}"
|
|
271
271
|
raise DataCollector::Error, "#{uri.to_s} not found" unless File.exist?("#{absolute_path}")
|
|
272
272
|
unless options.has_key?('raw') && options['raw'] == true
|
|
273
|
-
@raw = data = File.read("#{absolute_path}")
|
|
273
|
+
@raw = data = File.read("#{absolute_path}", encoding: "bom|utf-8")
|
|
274
274
|
|
|
275
275
|
case options['file_extention']
|
|
276
276
|
when '.jsonld'
|
|
@@ -168,7 +168,7 @@ module DataCollector
|
|
|
168
168
|
data[:response_date] = DateTime.now.xmlschema
|
|
169
169
|
|
|
170
170
|
#ERB.new(File.read(erb_file), 0, '>').result(binding)
|
|
171
|
-
ERB.new(File.read(erb_file),
|
|
171
|
+
ERB.new(File.read(erb_file, encoding: "bom|utf-8"), trim_mode: '-').result(binding)
|
|
172
172
|
rescue Exception => e
|
|
173
173
|
raise "unable to transform to text: #{e.message}"
|
|
174
174
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: data_collector
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.68.
|
|
4
|
+
version: 0.68.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mehmet Celik
|
|
@@ -408,7 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
408
408
|
- !ruby/object:Gem::Version
|
|
409
409
|
version: '0'
|
|
410
410
|
requirements: []
|
|
411
|
-
rubygems_version:
|
|
411
|
+
rubygems_version: 4.0.18
|
|
412
412
|
specification_version: 4
|
|
413
413
|
summary: ETL helper library
|
|
414
414
|
test_files: []
|