gtfs 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gtfs/url_source.rb +1 -1
- data/lib/gtfs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8461ad499c7b97ddbf033b7de524d70f4feb3124
|
4
|
+
data.tar.gz: 34450799b95f8ea0050c8a2807c3e628da6c667b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef1c09d1a040186d1ae491da0babba251e0c3e2a422d3f006fee922704c19831527c44b15178e0d02989800d130d033109d35e7c4133fa1e04bfd6d590b6d6f
|
7
|
+
data.tar.gz: d7d5946f0c1a09c15ff8c934270c84a66a13dfd968c5698b1f0a07088881f97963f0e341105834795d934056d9bdc6cad5a68097f6be9f8fe9733598ccb5b59e
|
data/lib/gtfs/url_source.rb
CHANGED
@@ -6,7 +6,7 @@ module GTFS
|
|
6
6
|
|
7
7
|
def load_archive(source_url)
|
8
8
|
Dir.mktmpdir do |tmp|
|
9
|
-
file_name = File.join(tmp, "/gtfs_temp_#{Time.now}.zip")
|
9
|
+
file_name = File.join(tmp, "/gtfs_temp_#{Time.now.strftime('%Y%jT%H%M%S%z')}.zip")
|
10
10
|
uri = URI.parse(source_url)
|
11
11
|
response = Net::HTTP.get_response(uri)
|
12
12
|
open(file_name, 'wb') do |file|
|
data/lib/gtfs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nerdEd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|