diff --git a/lib/format_parser/version.rb b/lib/format_parser/version.rb index d171bae6..5cd3d07a 100644 --- a/lib/format_parser/version.rb +++ b/lib/format_parser/version.rb @@ -1,3 +1,3 @@ module FormatParser - VERSION = '2.7.0' + VERSION = '2.7.1' end diff --git a/lib/parsers/mp3_parser.rb b/lib/parsers/mp3_parser.rb index 8e16f928..7c33d8d9 100644 --- a/lib/parsers/mp3_parser.rb +++ b/lib/parsers/mp3_parser.rb @@ -95,7 +95,6 @@ def call(raw_io) io.seek(ignore_bytes_at_head) - maybe_xing_header, initial_frames = parse_mpeg_frames(io) return if initial_frames.empty? diff --git a/spec/format_parser_spec.rb b/spec/format_parser_spec.rb index bc794a34..2b505a40 100644 --- a/spec/format_parser_spec.rb +++ b/spec/format_parser_spec.rb @@ -199,9 +199,11 @@ it 'ensures that MP3 parser is the last one among all' do parsers = FormatParser.parsers_for( [:audio, :image, :document, :text, :video, :archive], - [:aac, :aiff, :arw, :bmp, :cr2, :cr3, :dpx, :fdx, :flac, :gif, :heif, :heic, - :jpg, :json, :m3u, :mov, :mp3, :mp4, :m4a, :m4b, :m4p, :m4r, :m4v, :mpg, - :mpeg, :nef, :ogg, :pdf, :png, :psd, :rw2, :tif, :wav, :webp, :zip] + [ + :aac, :aiff, :arw, :bmp, :cr2, :cr3, :dpx, :fdx, :flac, :gif, :heif, :heic, + :jpg, :json, :m3u, :mov, :mp3, :mp4, :m4a, :m4b, :m4p, :m4r, :m4v, :mpg, + :mpeg, :nef, :ogg, :pdf, :png, :psd, :rw2, :tif, :wav, :webp, :zip + ] ) parser_class_names = parsers.map { |parser| parser.class.name } diff --git a/spec/remote_fetching_spec.rb b/spec/remote_fetching_spec.rb index 59b96caa..c8575d15 100644 --- a/spec/remote_fetching_spec.rb +++ b/spec/remote_fetching_spec.rb @@ -117,10 +117,10 @@ describe "correctly parses files over HTTP without filename hint" do nature_fixture_dirs = { - :document => ['PDF'], - :audio => ['AAC', 'AIFF', 'FLAC', 'MP3', 'WAV'], - :video => ['MOV', 'MP4'], - :image => ['ARW', 'CR2', 'CR3', 'GIF', 'JPG', 'NEF', 'PNG', 'PSD', 'RW2', 'TIF', 'WEBP'] + document: ['PDF'], + audio: ['AAC', 'AIFF', 'FLAC', 'MP3', 'WAV'], + video: ['MOV', 'MP4'], + image: ['ARW', 'CR2', 'CR3', 'GIF', 'JPG', 'NEF', 'PNG', 'PSD', 'RW2', 'TIF', 'WEBP'] } nature_fixture_dirs.each { |nature, dirs| dirs.each do |file_type_dir| @@ -140,7 +140,6 @@ expect(file_information.nature).to eq(nature) expect(file_information.format == expected_format).to be_truthy end - end end }