lib/spoom/coverage/snapshot.rb in spoom-1.1.0 vs lib/spoom/coverage/snapshot.rb in spoom-1.1.1
- old
+ new
@@ -11,10 +11,11 @@
prop :version_runtime, T.nilable(String), default: nil
prop :duration, Integer, default: 0
prop :commit_sha, T.nilable(String), default: nil
prop :commit_timestamp, T.nilable(Integer), default: nil
prop :files, Integer, default: 0
+ prop :rbi_files, Integer, default: 0
prop :modules, Integer, default: 0
prop :classes, Integer, default: 0
prop :singleton_classes, Integer, default: 0
prop :methods_without_sig, Integer, default: 0
prop :methods_with_sig, Integer, default: 0
@@ -44,10 +45,11 @@
snapshot.version_runtime = obj.fetch("version_runtime", nil)
snapshot.duration = obj.fetch("duration", 0)
snapshot.commit_sha = obj.fetch("commit_sha", nil)
snapshot.commit_timestamp = obj.fetch("commit_timestamp", nil)
snapshot.files = obj.fetch("files", 0)
+ snapshot.rbi_files = obj.fetch("rbi_files", 0)
snapshot.modules = obj.fetch("modules", 0)
snapshot.classes = obj.fetch("classes", 0)
snapshot.singleton_classes = obj.fetch("singleton_classes", 0)
snapshot.methods_with_sig = obj.fetch("methods_with_sig", 0)
snapshot.methods_without_sig = obj.fetch("methods_without_sig", 0)
@@ -84,10 +86,10 @@
printl("Sorbet runtime: #{snapshot.version_runtime}") if snapshot.version_runtime
printn
end
printl("Content:")
indent
- printl("files: #{snapshot.files}")
+ printl("files: #{snapshot.files} (including #{snapshot.rbi_files} RBIs)")
printl("modules: #{snapshot.modules}")
printl("classes: #{snapshot.classes - snapshot.singleton_classes}")
printl("methods: #{methods}")
dedent
printn