You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/qbxml/qbxml.rb
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,8 @@ def parse_schema(key, version)
86
86
end
87
87
88
88
defselect_schema(schema_key,version)
89
+
# Try to handle it if a user gave us a numeric version. Assume 1 decimal.
90
+
version='%.1f' % versionifversion.is_a?(Numeric)
89
91
raise"invalid schema '#{schema_key}', must be one of #{SCHEMAS.keys.inspect}"if !SCHEMAS.has_key?(schema_key)
90
92
raise"invalid version '#{version}' for schema #{schema_key}, must be one of #{SCHEMAS[schema_key].keys.inspect}"if !SCHEMAS[schema_key].has_key?(version)
0 commit comments