lib/owners.rb in owners-0.0.8 vs lib/owners.rb in owners-0.0.9
- old
+ new
@@ -1,11 +1,14 @@
+require "delegate"
require "pathname"
require "set"
require "thor"
require_relative "owners/cli"
require_relative "owners/config"
+require_relative "owners/owner"
require_relative "owners/search"
+require_relative "owners/subscription"
require_relative "owners/tree"
require_relative "owners/version"
module Owners
class << self
@@ -23,11 +26,11 @@
# Accepts a list of file paths and returns an array of
# owners that have subscribed to the specified files.
#
# @api public
def for(*files)
- Search.new(files).owners
+ Search.new(files).results
end
# Accepts a git ref and an optional base ref and returns
# an array of owners that have subscribed to the changes.
#
@@ -45,9 +48,9 @@
_, _, sha, file = line.split(/\s+/, 4)
contents = `git show #{sha}`
hash.update(file => contents)
end
- Search.new(files, configs).owners
+ Search.new(files, configs).results
end
end
end