Skip to content

Commit

Permalink
Update ParsePackwerk.package_from_path sig so it always returns a pac…
Browse files Browse the repository at this point in the history
…kage (#10)
  • Loading branch information
Alex Evanczuk authored Sep 12, 2022
1 parent a542956 commit d3b2ea7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
parse_packwerk (0.12.0)
parse_packwerk (0.12.1)
sorbet-runtime

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/parse_packwerk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.yml
Configuration.fetch
end

sig { params(file_path: T.any(Pathname, String)).returns(T.nilable(Package)) }
sig { params(file_path: T.any(Pathname, String)).returns(Package) }
def self.package_from_path(file_path)
path_string = file_path.to_s
@package_from_path = T.let(@package_from_path, T.nilable(T::Hash[String, Package]))
Expand Down
2 changes: 1 addition & 1 deletion parse_packwerk.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = "parse_packwerk"
spec.version = '0.12.0'
spec.version = '0.12.1'
spec.authors = ['Gusto Engineers']
spec.email = ['[email protected]']
spec.summary = 'A low-dependency gem for parsing and writing packwerk YML files'
Expand Down

0 comments on commit d3b2ea7

Please sign in to comment.