flightstats 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -11,13 +11,4 @@
11
11
 
12
12
  require 'flightstats'
13
13
 
14
- FLIGHTSTATS_ACCOUNT_ID = 'my_id'
15
- FLIGHTSTATS_USER_ID = "12345"
16
- FLIGHTSTATS_PASSWORD = "*****"
17
-
18
- # Displays the flight numbers of all the arriving flights
19
- boston = FlightStats.find_by_icao_code("KBOS")
20
- boston.arrivals.each do |flight|
21
- puts flight.number
22
- end
23
-
14
+ FLIGHTSTATS_GUID = 'my_guid'
data/lib/flightstats.rb CHANGED
@@ -15,7 +15,7 @@ module FlightStats
15
15
  end
16
16
 
17
17
  def uri(params, path = nil)
18
- params.merge!(authentication_token)
18
+ params.merge!(authentication_token){ |key,old,new| old }
19
19
  URI.parse(SERVER + (path || PATH) + '?' + params.collect{ |k,v| "#{k}=#{v}"}.join('&'))
20
20
  end
21
21
 
@@ -4,7 +4,7 @@ class FlightStats::DataFeed::File
4
4
  alias :size :bytes
5
5
 
6
6
  def initialize(content = nil)
7
- @content = content
7
+ @content = content if content.is_a?(StringIO) or content.is_a?(File)
8
8
  end
9
9
 
10
10
  def content
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flightstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlightCaster