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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02905a39c4007f34bf819b85348eb480615e0c0f
4
- data.tar.gz: 5088d03cf417c140dc8b34d142c8c8a340382bf3
3
+ metadata.gz: ccda7b2ddbfb35697808562a8201ac17466b26e9
4
+ data.tar.gz: 8e91f5a41cfe728dd263084536914510b0901654
5
5
  SHA512:
6
- metadata.gz: 90222bbd50e2102cab247035842d093ed8c20ecca3d2a236bd204f256b5b1c30c6ad5fe835be70305b920b906a09cef4492ea642dc4423745b269f2d92c556c1
7
- data.tar.gz: f178d4e7913bf8d3ed33e63e3b14203382076df29ea5699a656c99cd46b0455ab41db86346cc075fa71854e1c3e7e1b58ea5f05ee6d0a8d220ac9ecd27c7fc1b
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
 
@@ -1,3 +1,3 @@
1
1
  module VatsimOnline
2
- VERSION = "0.7.4.1"
2
+ VERSION = "0.7.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vatsim_online
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4.1
4
+ version: 0.7.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svilen Vassilev