sigsurv 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -11,8 +11,10 @@ install it as:
11
11
 
12
12
  ## Usage
13
13
 
14
+ ```
14
15
  $ cd yourapp
15
16
  $ sigsurv
17
+ ```
16
18
 
17
19
  ## Contributing
18
20
 
@@ -5,7 +5,8 @@ module Sigsurv
5
5
  def self.analyze(directory)
6
6
  Dir["#{directory}/**/*\.rb"].map do |file_path|
7
7
  contents = IO.read(file_path)
8
- [file_path, contents.scan(/#{SYMBOLS.keys.join("|")}/).map{|x| SYMBOLS[x.to_sym]}.join]
8
+ regex = Regexp.new(SYMBOLS.keys.map{|k| "\\b#{k}\\b"}.join("|"))
9
+ [file_path, contents.scan(regex).map{|x| SYMBOLS[x.to_sym]}.join]
9
10
  end
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Sigsurv
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sigsurv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: