vatsim_online 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/lib/vatsim_online/data_downloader.rb +2 -0
- data/lib/vatsim_online/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -16,6 +16,7 @@ module VatsimTools
|
|
16
16
|
status = Tempfile.new('vatsim_status')
|
17
17
|
File.rename status.path, LOCAL_STATUS
|
18
18
|
File.open(LOCAL_STATUS, "w+") {|f| f.write(Curl::Easy.perform(STATUS_URL).body_str) }
|
19
|
+
File.chmod(0777, LOCAL_STATUS)
|
19
20
|
end
|
20
21
|
|
21
22
|
def read_status_tempfile
|
@@ -40,6 +41,7 @@ module VatsimTools
|
|
40
41
|
File.rename data.path, LOCAL_DATA
|
41
42
|
data = Curl::Easy.perform(servers.sample).body_str.gsub(/["]/, '\s').encode!('UTF-16', 'UTF-8', :invalid => :replace, :replace => '').encode!('UTF-8', 'UTF-16')
|
42
43
|
File.open(LOCAL_DATA, "w+") {|f| f.write(data)}
|
44
|
+
File.chmod(0777, LOCAL_DATA)
|
43
45
|
end
|
44
46
|
|
45
47
|
def read_local_datafile
|
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.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|