spektrum-log 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cff8b2a019a2b6e62da86cd1420d3b252022b3b6
4
- data.tar.gz: 6b3631843d9548a9632df6f4afa2684e6d3d5330
3
+ metadata.gz: 9330857443ccd589a06d1f4875f59a668ce8ab27
4
+ data.tar.gz: ab6ad743c25f8dc939702cc4f57bbbdb18f64ceb
5
5
  SHA512:
6
- metadata.gz: e1cefbc0896b3c301ab52d91e44bbfa7fe465b54a90e68e54b53daeff4073412d6464e726ea4228e37ac7e5ed779b177351f654fd3c3677484ce4dad6b167f41
7
- data.tar.gz: 7e9568705a713a1039e65e3da9d6f30972bafffad5378649961b41ab415540e745996b4a061fad2f835733504ef4eabcd0abeace1a5768b19238cda6febb1276
6
+ metadata.gz: f40393fb43726714756d89ec8088a7f7ac5ab2e991f3b2710c7c9c20aa9208cefd26fa4c37fb617436fe11224dc7ec4b3c1dc3c874e0ec9aade02d9b712d2514
7
+ data.tar.gz: 45fbe2c0f2a386de2b2c0aa20cc7e35fd228081d7d77498588d949344d4b981753979f1866741a71aa23d1e01bce849ee51b42e3f966e2d16c05f3103f89c373
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Spektrum::Log [![Build Status](https://travis-ci.org/code-lever/spektrum-log.png)](https://travis-ci.org/code-lever/spektrum-log)
1
+ # Spektrum::Log [![Build Status](https://travis-ci.org/code-lever/spektrum-log.png)](https://travis-ci.org/code-lever/spektrum-log) [![Dependency Status](https://gemnasium.com/code-lever/spektrum-log.png)](https://gemnasium.com/code-lever/spektrum-log) [![Code Climate](https://codeclimate.com/github/code-lever/spektrum-log.png)](https://codeclimate.com/github/code-lever/spektrum-log)
2
2
 
3
3
  TODO: Write a gem description
4
4
 
@@ -1,3 +1,5 @@
1
+ require 'open-uri'
2
+
1
3
  module Spektrum
2
4
  module Log
3
5
 
@@ -5,13 +7,13 @@ module Spektrum
5
7
 
6
8
  attr_reader :records, :flights
7
9
 
8
- def initialize filename
10
+ def initialize uri
9
11
  headers = []
10
12
  headers_complete = false
11
13
  records = []
12
14
  @flights = []
13
15
 
14
- File.open(filename, 'rb') do |file|
16
+ open(uri, 'rb') do |file|
15
17
  loop do
16
18
  first4 = file.read(4)
17
19
  if first4.nil?
@@ -1,5 +1,5 @@
1
1
  module Spektrum
2
2
  module Log
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'pathname'
1
2
  require 'spektrum-log'
2
3
 
3
4
  RSpec.configure do |config|
@@ -13,5 +14,6 @@ RSpec.configure do |config|
13
14
  end
14
15
 
15
16
  def data_file(name)
16
- "#{File.dirname(__FILE__)}/../data/#{name}"
17
+ path = Pathname.new("#{File.dirname(__FILE__)}/../data/#{name}")
18
+ path.realpath
17
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spektrum-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Veys
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-02 00:00:00.000000000 Z
11
+ date: 2013-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec