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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 757a90669873992e6241a8400856a00197bd5bea
4
- data.tar.gz: db4761b42cbe5a9504cd7d290e058634ac1b9463
3
+ metadata.gz: fb24a7d365529129348303b744a00d3eedeae902
4
+ data.tar.gz: 6fc6bbdd8e5742872ef4acd6d8e65c699c55f258
5
5
  SHA512:
6
- metadata.gz: 8d63d5828411da6e36c5862d770fc82ca0219e32d8e04c06d8e643af7f376efca0c73a8fe91fd1eb88ff3809f770a6a5b172efe90539ce3d0df89f3dd0e94e63
7
- data.tar.gz: 9f5368ec79edbe6f861c2bb6329d0e24f7a367325af8a6eba036cd0e7747798781f1e2cb3a2f63c230ce759fccd3969fe4bb943fb35bd341763bc5bc02df724f
6
+ metadata.gz: 6507122ba63a44041a03e91a2cf233c2b2c6cdc94c57aafe223a7db2ddc2c9111c8d4987049d2ab919ee2b9c0e12ecd9913641da4699731c07a96a332d22ce89
7
+ data.tar.gz: 8505eb1fb3d4171a7db944a5e38d78ccc43611cd181897dc2aee129d43263171097b02007580e0f20260691134ef6b1b86867a3c52e13e53e219eec5c30d4094
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.1 (11.05.2018)
4
+
5
+ * Fixed broken __FILE__ check in command line tool.
6
+
3
7
  ## v0.3.0 (09.05.2018)
4
8
 
5
9
  * Added a registry which maps string names to parser functions.
data/bin/buildlogparser CHANGED
@@ -121,19 +121,17 @@ where [options] are:
121
121
  end
122
122
  end
123
123
 
124
- if $0 == __FILE__ then
125
- opts = ApplicationLogic.parseComandLine(ARGV)
124
+ opts = ApplicationLogic.parseComandLine(ARGV)
126
125
 
127
- # load the file into memory and parse it
128
- logtext = IO.read(opts[:inputfile])
129
- parser = BuildLogParser.getParser(opts[:type])
130
- result = BuildLogParser.parse(opts[:type],parser,logtext)
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
- # save data to the output file
133
- result = ApplicationLogic.formatResult(result, opts[:format])
134
- if opts[:outputfile] then
135
- File.open(opts[:outputfile], 'w') {|f| f.write result }
136
- else
137
- puts result
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 = 0
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler