lib/thinreports/layout/format.rb in thinreports-0.10.1 vs lib/thinreports/layout/format.rb in thinreports-0.10.2
- old
+ new
@@ -11,10 +11,9 @@
page_width: %w[report width],
page_height: %w[report height],
page_orientation: %w[report orientation]
class << self
- # rubocop:disable Metrics/AbcSize
def build(filename)
schema = JSON.parse(read_file(filename))
schema_version = Layout::Version.new(schema['version'])
unless schema_version.compatible?