vidibus-fileinfo 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,11 +67,11 @@ module Vidibus
67
67
  end
68
68
  end
69
69
 
70
- # Return pixel aspect ratio defined as PAR.
70
+ # Return pixel aspect ratio defined as PAR or SAR.
71
71
  # If no value is defined, 1.0 will be returned.
72
72
  def pixel_aspect_ratio
73
73
  ar = 1.0
74
- if matches = @raw_metadata.match(/PAR\s+([0-9]+):([0-9]+)/)
74
+ if matches = @raw_metadata.match(/(?:P|S)AR\s+([0-9]+):([0-9]+)/)
75
75
  w = $1.to_f
76
76
  h = $2.to_f
77
77
  if w > 0 && h > 0
@@ -1,5 +1,5 @@
1
1
  module Vidibus
2
2
  module Fileinfo
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-fileinfo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Pankratz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-13 00:00:00 +02:00
18
+ date: 2012-04-20 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency