lib/skippy/project.rb in skippy-0.4.1.a vs lib/skippy/project.rb in skippy-0.4.2.a

- old
+ new

@@ -34,10 +34,11 @@ # @return [Skippy::Project] def self.current_or_fail project = current raise ProjectNotFoundError, project.filename unless project.exist? + project end # Initialize a project for the provided path. If the path is within a project # path the base path of the project will be found. Otherwise it's assumed that @@ -106,12 +107,12 @@ def sources @config.get(:sources, defaults[:sources]) end # @return [String] - def to_json - JSON.pretty_generate(@config) + def to_json(*args) + JSON.pretty_generate(@config, *args) end private # @return [Hash] @@ -139,9 +140,10 @@ pathname = Pathname.new(path) loop do project_file = pathname.join(PROJECT_FILENAME) return pathname if project_file.exist? break if pathname.root? + pathname = pathname.parent end nil end