buildlogparser 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/buildlogparser +11 -13
- data/lib/buildlogparser/version.rb +2 -2
- 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: fb24a7d365529129348303b744a00d3eedeae902
|
4
|
+
data.tar.gz: 6fc6bbdd8e5742872ef4acd6d8e65c699c55f258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6507122ba63a44041a03e91a2cf233c2b2c6cdc94c57aafe223a7db2ddc2c9111c8d4987049d2ab919ee2b9c0e12ecd9913641da4699731c07a96a332d22ce89
|
7
|
+
data.tar.gz: 8505eb1fb3d4171a7db944a5e38d78ccc43611cd181897dc2aee129d43263171097b02007580e0f20260691134ef6b1b86867a3c52e13e53e219eec5c30d4094
|
data/CHANGELOG.md
CHANGED
data/bin/buildlogparser
CHANGED
@@ -121,19 +121,17 @@ where [options] are:
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
-
|
125
|
-
opts = ApplicationLogic.parseComandLine(ARGV)
|
124
|
+
opts = ApplicationLogic.parseComandLine(ARGV)
|
126
125
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
126
|
+
# load the file into memory and parse it
|
127
|
+
logtext = IO.read(opts[:inputfile])
|
128
|
+
parser = BuildLogParser.getParser(opts[:type])
|
129
|
+
result = BuildLogParser.parse(opts[:type],parser,logtext)
|
131
130
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
end
|
131
|
+
# save data to the output file
|
132
|
+
result = ApplicationLogic.formatResult(result, opts[:format])
|
133
|
+
if opts[:outputfile] then
|
134
|
+
File.open(opts[:outputfile], 'w') {|f| f.write result }
|
135
|
+
else
|
136
|
+
puts result
|
139
137
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright (C) 2017 Mario Werner <nioshd@gmail.com>
|
2
|
+
# Copyright (C) 2017-2018 Mario Werner <nioshd@gmail.com>
|
3
3
|
#
|
4
4
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
5
5
|
# this software and associated documentation files (the "Software"), to deal in
|
@@ -22,7 +22,7 @@ module BuildLogParser
|
|
22
22
|
module VERSION #:nodoc:
|
23
23
|
MAJOR = 0
|
24
24
|
MINOR = 3
|
25
|
-
PATCH =
|
25
|
+
PATCH = 1
|
26
26
|
|
27
27
|
STRING = [MAJOR, MINOR, PATCH].join('.')
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildlogparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Werner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|