format_parser 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45efce1fcb5395b66713b4704911473a6aaf6beab8dced2275299d05d42f051c
4
- data.tar.gz: 760d1d686400e97cb58296bbf06862be7a19fedd6b2684075530c089d6685eac
3
+ metadata.gz: d4af7a44806408b096543ba55fd7221b009c140766fc6dd27030bcd2fe09fa8e
4
+ data.tar.gz: 26da12681820653b7e36caf755185de9ed838e7b81656490b1a8c26d47535699
5
5
  SHA512:
6
- metadata.gz: 0f3b357ff7b4121c4cad07a82ca94f13a4e92f3657e8984aa61a1c1a67f6144f726174a09b3b99c3c29b75dcd4c81970a5613e0e5a79e7c4eef52dbcdb779a50
7
- data.tar.gz: 712e87ef7d506abcf7096d16c738058320dac9c1f2b2557ce08c6576748b37d3041bbe3d43260dcf846bfa7062a5de2840e30782e8c8edaabd15a6b19146d344
6
+ metadata.gz: 94fd6c621c5116f9ce4dcd6319a6ebc5ef5018d074f51b57222ae39e42b9d2c0a33bf08d17dbac28361da97315494094f84a9000a3094d9f6109058084797889
7
+ data.tar.gz: b4805092400b37c33dd3fbf81c2404851386150e9e0d29682a66dd8feb4bc0205ccda29913954d1a4196ce47e935d2f818e92ae532837ada6db6fdadc5d6211b
@@ -1,3 +1,9 @@
1
+ ## 0.18.0
2
+ * Mark m4v as one of the filename extensions likely to parse via the MOOV parser
3
+ * Adopt [Hippocratic license v. 1.2](https://firstdonoharm.dev/version/1/2/license.html)
4
+ Note that this might make the license conditions unacceptable for your project. If that is the case,
5
+ you can use the 0.17.X branch of the library which stays under the original, exact MIT license.
6
+
1
7
  ## 0.17.0
2
8
  * Remove parser factories. A parser should respond to `likely_match?` and `call`. If a parser has to be instantiated anew for
3
9
  every call the parser should take care of instantiating itself.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017 WeTransfer
1
+ Copyright (c) 2019 WeTransfer
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -8,8 +8,28 @@ distribute, sublicense, and/or sell copies of the Software, and to
8
8
  permit persons to whom the Software is furnished to do so, subject to
9
9
  the following conditions:
10
10
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
11
+ * The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ * No Harm: The software may not be used by anyone for systems or
15
+ activities that actively and knowingly endanger, harm, or otherwise
16
+ threaten the physical, mental, economic, or general well-being of
17
+ other individuals or groups, in violation of the United Nations
18
+ Universal Declaration of Human Rights
19
+ (https://www.un.org/en/universal-declaration-human-rights/).
20
+
21
+ * Services: If the Software is used to provide a service to others, the
22
+ licensee shall, as a condition of use, require those others not to use
23
+ the service in any way that violates the No Harm clause above.
24
+
25
+ * Enforceability: If any portion or provision of this License shall to
26
+ any extent be declared illegal or unenforceable by a court of
27
+ competent jurisdiction, then the remainder of this License, or the
28
+ application of such portion or provision in circumstances other than
29
+ those as to which it is so declared illegal or unenforceable, shall
30
+ not be affected thereby, and each portion and provision of this
31
+ Agreement shall be valid and enforceable to the fullest extent
32
+ permitted by law.
13
33
 
14
34
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
35
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
@@ -17,4 +37,8 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
37
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
38
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
39
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
40
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41
+
42
+ This Hippocratic License is an Ethical Source license
43
+ (https://ethicalsource.dev) derived from the MIT License, amended to
44
+ limit the impact of the unethical use of open source software.
data/README.md CHANGED
@@ -177,3 +177,10 @@ Unless specified otherwise in this section the fixture files are MIT licensed an
177
177
 
178
178
  ### .key
179
179
  - The `keynote_recognized_as_jpeg.key` file was created by the project maintainers
180
+
181
+ ## Copyright
182
+
183
+ Copyright (c) 2019 WeTransfer.
184
+
185
+ `format_parser` is distributed under the conditions of the [Hippocratic License](https://firstdonoharm.dev/version/1/2/license.html)
186
+ - See LICENSE.txt for further details.
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = FormatParser::VERSION
9
9
  spec.authors = ['Noah Berman', 'Julik Tarkhanov']
10
10
  spec.email = ['noah@noahberman.org', 'me@julik.nl']
11
- spec.licenses = ['MIT']
11
+ spec.licenses = ['MIT (Hippocratic)']
12
12
  spec.summary = 'A library for efficient parsing of file metadata'
13
13
  spec.description = "A Ruby library for prying open files you can convert to a previewable format, such as video, image and audio files. It includes
14
14
  a number of parser modules that try to recover metadata useful for post-processing and layout while reading the absolute
@@ -1,3 +1,3 @@
1
1
  module FormatParser
2
- VERSION = '0.17.0'
2
+ VERSION = '0.18.0'
3
3
  end
@@ -12,7 +12,7 @@ class FormatParser::MOOVParser
12
12
  }
13
13
 
14
14
  def likely_match?(filename)
15
- filename =~ /\.(mov|m4a|ma4|mp4|aac)$/i
15
+ filename =~ /\.(mov|m4a|ma4|mp4|aac|m4v)$/i
16
16
  end
17
17
 
18
18
  def call(io)
@@ -104,4 +104,8 @@ describe FormatParser::MOOVParser do
104
104
  expect(result.width_px).to eq(160)
105
105
  expect(result.height_px).to eq(90)
106
106
  end
107
+
108
+ it 'provides filename hints' do
109
+ expect(subject).to be_likely_match('file.m4v')
110
+ end
107
111
  end
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.17.0
4
+ version: 0.18.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: 2019-09-16 00:00:00.000000000 Z
12
+ date: 2019-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ks