onceover 3.12.1 → 3.12.2

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: bf7fd944c3bc26e87d6fb637545e2a79f7913e88
4
- data.tar.gz: af6d22e661957cae9092b623c9d337e949c4f219
3
+ metadata.gz: 669676be795f40f81d967f4705e6a51ee89f43c9
4
+ data.tar.gz: cb66c5f1ef24bc46129b8e0b283f53cc8f31afc9
5
5
  SHA512:
6
- metadata.gz: aaab1848deba4d517a93debf8ed6d1ccf7d6251afc5974bb1240dcf341fbcfb096c2a88af5182578732bb817eaf78c638f0096073b6beb1193ce365c3af81100
7
- data.tar.gz: ba295a61c754e4fd8c62a75ebacfc68b6fb724a90bc9484277065f1afbe542e3ce3fc50983be58c3adb34c4f1a9ae3629cabc0a9fcda4c1d38a7a311cae88595
6
+ metadata.gz: 6372acccf23b69d9da4e858d3908be54303f89a37a2609c39faad80975f5d9602a8ee075d484a88fd94f75781a4a4d344499ce38320266c7d546ed6da99acc47
7
+ data.tar.gz: 609135fbb0d136743ddcc6ddb0ef371f5dbae7b367fb296deec62323f65f77da0fc3b12dc4cc0066c9b741ec68c87ff3947497d1b7d16bbd456e5857ebc39b48
@@ -640,8 +640,12 @@ class Onceover
640
640
  def find_classname(filename)
641
641
  file = File.new(filename, "r")
642
642
  while (line = file.gets)
643
- if line =~ /^class (\w+(?:::\w+)*)/
644
- return $1
643
+ begin
644
+ if line =~ /^class (\w+(?:::\w+)*)/
645
+ return $1
646
+ end
647
+ rescue ArgumentError => e
648
+ logger.error "ignoring invalid line in file: #{filename} (#{e.message}) - line: '#{line}'"
645
649
  end
646
650
  end
647
651
  return nil
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "onceover"
7
- s.version = "3.12.1"
7
+ s.version = "3.12.2"
8
8
  s.authors = ["Dylan Ratcliffe"]
9
9
  s.email = ["dylan.ratcliffe@puppet.com"]
10
10
  s.homepage = "https://github.com/dylanratcliffe/onceover"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.1
4
+ version: 3.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-17 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake