media_info 0.3.0 → 0.4.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
  SHA1:
3
- metadata.gz: 19a9752cf16b8f2a8ec40091fe12ec898ef376d0
4
- data.tar.gz: c8e4d3ee7ec7d26f6adff8a2749f6a39e1d2f3b0
3
+ metadata.gz: 6beba212c506de045e9cb91461a672be7ffa37e9
4
+ data.tar.gz: 61d7b9785fd8809a7802f2c1351fc29f703d94dd
5
5
  SHA512:
6
- metadata.gz: 7187750bd8218ddf3b694b48a655a2c9685d1984ff6dce9f97f8d83b8f232111ef12bc933660a1ea809069870e8212b7134f604656a9c528c3589b2d169dccd4
7
- data.tar.gz: ad0fa5ffdf92fb8c4f480869df07be36a94c17066d8311a0f05bc5b3d63473c5e88362f791bc6d638cbcdd053455479d3d6f33b8eb7c85f0a83c3bbe16813232
6
+ metadata.gz: 3f67c1315b512fad29c0782ecc4c46fcd8adcf1c3ab0bd37b8e644a9b89084b2085ab1164e9ffcc0e5b3684338ffa19423334ac72635e3c96c0e773cf8cec6b4
7
+ data.tar.gz: c018f63727aeb738f1b1c7e7727d42a1d33ed0dbf4c598c2497f7d147f0a6b42860a6d324e8ffb342c5ad488a526023fc9b8cf0ecf87d8c30caa5e7dffb01ff0
@@ -42,34 +42,62 @@ module MediaInfo
42
42
  stream?(:other)
43
43
  end
44
44
 
45
- def general
45
+ def generals
46
46
  search_stream(:general)
47
47
  end
48
48
 
49
- def video
49
+ def videos
50
50
  search_stream(:video)
51
51
  end
52
52
 
53
- def audio
53
+ def audios
54
54
  search_stream(:audio)
55
55
  end
56
56
 
57
- def text
57
+ def texts
58
58
  search_stream(:text)
59
59
  end
60
60
 
61
- def image
61
+ def images
62
62
  search_stream(:image)
63
63
  end
64
64
 
65
- def menu
65
+ def menus
66
66
  search_stream(:menu)
67
67
  end
68
68
 
69
- def other
69
+ def others
70
70
  search_stream(:other)
71
71
  end
72
72
 
73
+ def general
74
+ generals.first
75
+ end
76
+
77
+ def video
78
+ videos.first
79
+ end
80
+
81
+ def audio
82
+ audios.first
83
+ end
84
+
85
+ def text
86
+ texts.first
87
+ end
88
+
89
+ def image
90
+ images.first
91
+ end
92
+
93
+ def menu
94
+ menus.first
95
+ end
96
+
97
+ def other
98
+ others.first
99
+ end
100
+
73
101
  private
74
102
 
75
103
  def stream?(type)
@@ -53,7 +53,7 @@ module MediaInfo
53
53
 
54
54
  def initialize(params = {})
55
55
  @_others = {}
56
- @raw_attributes = params
56
+ @_raw = params
57
57
 
58
58
  params.each do |key, value|
59
59
  unless respond_to?(key)
@@ -70,7 +70,7 @@ module MediaInfo
70
70
  end
71
71
 
72
72
  def raw_attributes
73
- @raw_attributes
73
+ @_raw
74
74
  end
75
75
 
76
76
  private
@@ -1,7 +1,7 @@
1
1
  module MediaInfo
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 3
4
+ MINOR = 4
5
5
  TINY = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: media_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radovan Smitala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-08 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler