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 +4 -4
- data/README.md +1 -1
- data/lib/spektrum-log/reader.rb +4 -2
- data/lib/spektrum-log/version.rb +1 -1
- data/spec/spec_helper.rb +3 -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: 9330857443ccd589a06d1f4875f59a668ce8ab27
|
4
|
+
data.tar.gz: ab6ad743c25f8dc939702cc4f57bbbdb18f64ceb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/spektrum-log/reader.rb
CHANGED
@@ -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
|
10
|
+
def initialize uri
|
9
11
|
headers = []
|
10
12
|
headers_complete = false
|
11
13
|
records = []
|
12
14
|
@flights = []
|
13
15
|
|
14
|
-
|
16
|
+
open(uri, 'rb') do |file|
|
15
17
|
loop do
|
16
18
|
first4 = file.read(4)
|
17
19
|
if first4.nil?
|
data/lib/spektrum-log/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|