Skip to content

Commit

Permalink
Updated version. Fixed linting offenses.
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinTanasoiu committed Aug 22, 2023
1 parent d585078 commit cda216e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/format_parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module FormatParser
VERSION = '2.7.0'
VERSION = '2.7.1'
end
1 change: 0 additions & 1 deletion lib/parsers/mp3_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
8 changes: 5 additions & 3 deletions spec/format_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
9 changes: 4 additions & 5 deletions spec/remote_fetching_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -140,7 +140,6 @@
expect(file_information.nature).to eq(nature)
expect(file_information.format == expected_format).to be_truthy
end

end
end
}
Expand Down

0 comments on commit cda216e

Please sign in to comment.