Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename RUNTIME_CALL pattern to ADD_DEPENDENCY_CALL

  • Loading branch information...
commit bc9ae8fccd856039352fcebe72c6cedc7372d22b 1 parent 0caea27
@laserlemon laserlemon authored
View
2  lib/gemnasium/parser/gemspec.rb
@@ -18,7 +18,7 @@ def dependencies
private
def runtime_matches
- @runtime_matches ||= matches(Patterns::RUNTIME_CALL)
+ @runtime_matches ||= matches(Patterns::ADD_DEPENDENCY_CALL)
end
def matches(pattern)
View
2  lib/gemnasium/parser/patterns.rb
@@ -31,7 +31,7 @@ module Patterns
GEMSPEC_CALL = /^\s*gemspec(?:\s+(?<opts>#{OPTIONS}))?\s*$/
- RUNTIME_CALL = /^\s*\w+\.add(?<type>_runtime|_development)?_dependency\s*\(?\s*(?<q1>["'])(?<name>#{GEM_NAME})\k<q1>(?:\s*,\s*#{REQUIREMENTS})?\s*\)?\s*$/
+ ADD_DEPENDENCY_CALL = /^\s*\w+\.add(?<type>_runtime|_development)?_dependency\s*\(?\s*(?<q1>["'])(?<name>#{GEM_NAME})\k<q1>(?:\s*,\s*#{REQUIREMENTS})?\s*\)?\s*$/
def self.options(string)
{}.tap do |hash|
Please sign in to comment.
Something went wrong with that request. Please try again.