diff --git a/lib/gems-status/utils.rb b/lib/gems-status/utils.rb
index <HASH>..<HASH> 100644
--- a/lib/gems-status/utils.rb
+++ b/lib/gems-status/utils.rb
@@ -148,7 +148,7 @@ module GemsStatus
         self.log_error(name, e.message)
         return nil
       end
-      license = Gem::Format.from_file_by_path(gem_file_path).spec.license
+      license = Gem::Package.new(gem_file_path).spec.license
       if !license || license.empty?
         if @@known_licenses[name]
           if @@known_licenses[name][version]
replace Gem::Format.from_file_by_path with Gem::Package.new

looks like the former got deprectated by the latter