format_parser 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -0
  3. data/.travis.yml +1 -0
  4. data/README.md +14 -11
  5. data/format_parser.gemspec +11 -10
  6. data/lib/care.rb +9 -17
  7. data/lib/format_parser.rb +11 -13
  8. data/lib/format_parser/version.rb +1 -1
  9. data/lib/io_constraint.rb +3 -3
  10. data/lib/io_utils.rb +4 -10
  11. data/lib/parsers/aiff_parser.rb +9 -10
  12. data/lib/parsers/dpx_parser.rb +42 -42
  13. data/lib/parsers/dsl.rb +2 -2
  14. data/lib/parsers/exif_parser.rb +3 -8
  15. data/lib/parsers/fdx_parser.rb +3 -3
  16. data/lib/parsers/gif_parser.rb +3 -5
  17. data/lib/parsers/jpeg_parser.rb +4 -8
  18. data/lib/parsers/moov_parser.rb +8 -6
  19. data/lib/parsers/moov_parser/decoder.rb +105 -122
  20. data/lib/parsers/mp3_parser.rb +36 -46
  21. data/lib/parsers/mp3_parser/id3_v1.rb +7 -13
  22. data/lib/parsers/mp3_parser/id3_v2.rb +6 -6
  23. data/lib/parsers/png_parser.rb +5 -12
  24. data/lib/parsers/psd_parser.rb +2 -2
  25. data/lib/parsers/tiff_parser.rb +10 -12
  26. data/lib/parsers/wav_parser.rb +3 -3
  27. data/lib/read_limiter.rb +3 -7
  28. data/lib/remote_io.rb +3 -6
  29. data/spec/care_spec.rb +10 -10
  30. data/spec/file_information_spec.rb +1 -3
  31. data/spec/format_parser_spec.rb +6 -6
  32. data/spec/io_utils_spec.rb +7 -7
  33. data/spec/parsers/exif_parser_spec.rb +2 -3
  34. data/spec/parsers/gif_parser_spec.rb +1 -1
  35. data/spec/parsers/jpeg_parser_spec.rb +0 -1
  36. data/spec/parsers/moov_parser_spec.rb +2 -3
  37. data/spec/parsers/png_parser_spec.rb +1 -1
  38. data/spec/parsers/tiff_parser_spec.rb +0 -1
  39. data/spec/parsers/wav_parser_spec.rb +3 -3
  40. data/spec/read_limiter_spec.rb +0 -1
  41. data/spec/remote_fetching_spec.rb +34 -20
  42. data/spec/remote_io_spec.rb +20 -21
  43. data/spec/spec_helper.rb +2 -2
  44. metadata +19 -4
@@ -1,6 +1,6 @@
1
1
  require 'simplecov'
2
2
  SimpleCov.start do
3
- add_filter "/spec/"
3
+ add_filter '/spec/'
4
4
  end
5
5
 
6
6
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
@@ -21,7 +21,7 @@ RSpec.configure do |c|
21
21
  c.extend SpecHelpers # makes fixtures_dir available for example groups too
22
22
  end
23
23
 
24
- RSpec.shared_examples "an IO object compatible with IOConstraint" do
24
+ RSpec.shared_examples 'an IO object compatible with IOConstraint' do
25
25
  it 'responds to the same subset of public instance methods' do
26
26
  requisite_methods = FormatParser::IOConstraint.public_instance_methods - Object.public_instance_methods
27
27
  requisite_methods.each do |requisite|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: format_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Berman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-01-21 00:00:00.000000000 Z
12
+ date: 2018-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ks
@@ -123,6 +123,20 @@ dependencies:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0.9'
126
+ - !ruby/object:Gem::Dependency
127
+ name: wetransfer_style
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '='
131
+ - !ruby/object:Gem::Version
132
+ version: 0.4.0
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - '='
138
+ - !ruby/object:Gem::Version
139
+ version: 0.4.0
126
140
  description: |-
127
141
  A Ruby library for prying open files you can convert to a previewable format, such as video, image and audio files. It includes
128
142
  a number of parser modules that try to recover metadata useful for post-processing and layout while reading the absolute
@@ -136,6 +150,7 @@ extra_rdoc_files: []
136
150
  files:
137
151
  - ".gitignore"
138
152
  - ".rspec"
153
+ - ".rubocop.yml"
139
154
  - ".travis.yml"
140
155
  - CODE_OF_CONDUCT.md
141
156
  - CONTRIBUTING.md
@@ -197,7 +212,7 @@ licenses:
197
212
  metadata:
198
213
  allowed_push_host: https://rubygems.org
199
214
  post_install_message: "\n -----------------------------------------------------------------------------\n
200
- \ | ATTENTION: format_parser v0.2.0 introduces changes to the gem's interface.|\n
215
+ \ | ALERT: format_parser **v0.3.0** introduces changes to the gem's interface.|\n
201
216
  \ | See https://github.com/WeTransfer/format_parser#basic-usage |\n
202
217
  \ | for up-to-date usage instructions. Thank you for using format_parser! :) |\n
203
218
  \ -----------------------------------------------------------------------------\n
@@ -217,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
232
  version: '0'
218
233
  requirements: []
219
234
  rubyforge_project:
220
- rubygems_version: 2.5.1
235
+ rubygems_version: 2.5.2
221
236
  signing_key:
222
237
  specification_version: 4
223
238
  summary: A library for efficient parsing of file metadata