vatsim_online 0.7.4.1 → 0.7.4.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 +4 -4
- data/lib/vatsim_online/data_downloader.rb +20 -10
- data/lib/vatsim_online/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccda7b2ddbfb35697808562a8201ac17466b26e9
|
4
|
+
data.tar.gz: 8e91f5a41cfe728dd263084536914510b0901654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b2c7626b580ef8a215acbbf8f32af92ed99ef3f95c9c0568eeff2ced137650172109c9fd27186404bb4670bce2522e0d25eba371f3c8e701c105e3d4c60788
|
7
|
+
data.tar.gz: 14a4c16e851efe4145f24ebaf16872366317d24ad6d893e03443551d139239eee33ec6975b2d3dd52674fadbe74145044cd966d2c63b05ad581c57c148db8b6a
|
@@ -82,20 +82,30 @@ module VatsimTools
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def gem_data_file
|
85
|
-
path = File.realpath("lib/vatsim_online/vatsim_data.txt")
|
86
|
-
gem_data = File.open(path, :encoding => 'iso-8859-15').read
|
87
|
-
data = Tempfile.new('vatsim_data', :encoding => 'iso-8859-15')
|
88
|
-
data.write(gem_data.gsub(/["]/, '\s').force_encoding('iso-8859-15'))
|
89
|
-
File.rename data.path, "#{Dir.tmpdir}/vatsim_data.txt"
|
85
|
+
# path = File.realpath("lib/vatsim_online/vatsim_data.txt")
|
86
|
+
# gem_data = File.open(path, :encoding => 'iso-8859-15').read
|
87
|
+
# data = Tempfile.new('vatsim_data', :encoding => 'iso-8859-15')
|
88
|
+
# data.write(gem_data.gsub(/["]/, '\s').force_encoding('iso-8859-15'))
|
89
|
+
# File.rename data.path, "#{Dir.tmpdir}/vatsim_data.txt"
|
90
|
+
|
91
|
+
source = File.join(Gem.loaded_specs["vatsim_online"].full_gem_path, "spec", "vatsim_data.txt")
|
92
|
+
target = "#{Dir.tmpdir}/vatsim_data.txt"
|
93
|
+
FileUtils.cp_r source, target
|
94
|
+
|
90
95
|
File.chmod(0777, LOCAL_DATA)
|
91
96
|
end
|
92
97
|
|
93
98
|
def dummy_status
|
94
|
-
path = File.realpath("lib/vatsim_online/vatsim_status.txt")
|
95
|
-
gem_data = File.open(path, :encoding => 'iso-8859-15').read
|
96
|
-
data = Tempfile.new('vatsim_status', :encoding => 'iso-8859-15')
|
97
|
-
data.write(gem_data.gsub(/["]/, '\s').force_encoding('iso-8859-15'))
|
98
|
-
File.rename data.path, "#{Dir.tmpdir}/vatsim_status.txt"
|
99
|
+
# path = File.realpath("lib/vatsim_online/vatsim_status.txt")
|
100
|
+
# gem_data = File.open(path, :encoding => 'iso-8859-15').read
|
101
|
+
# data = Tempfile.new('vatsim_status', :encoding => 'iso-8859-15')
|
102
|
+
# data.write(gem_data.gsub(/["]/, '\s').force_encoding('iso-8859-15'))
|
103
|
+
# File.rename data.path, "#{Dir.tmpdir}/vatsim_status.txt"
|
104
|
+
|
105
|
+
source = File.join(Gem.loaded_specs["vatsim_online"].full_gem_path, "spec", "vatsim_status.txt")
|
106
|
+
target = "#{Dir.tmpdir}/vatsim_status.txt"
|
107
|
+
FileUtils.cp_r source, target
|
108
|
+
|
99
109
|
File.chmod(0777, LOCAL_STATUS)
|
100
110
|
end
|
101
111
|
|