m3u8 0.6.8 → 0.6.9

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: b4e584f9677b6f81c20f52ee7829611fb1586139
4
- data.tar.gz: 33f822204530d6af5339426a4d986b5edf21ed2c
3
+ metadata.gz: a4f00671fa34a2515f395b91535721e0f9c8801d
4
+ data.tar.gz: 6444a8131f48f8534837def5f39cef7e0dc132ca
5
5
  SHA512:
6
- metadata.gz: 330864a27a4338191fa141e861f4bb1a7e88984af9f0a4a70e647157be5c43c75cad442d6e76c0b7743004f82769e9bcabc453c47b2ba49184aa2e7d3e23f243
7
- data.tar.gz: bf442b7d7e652a5a2e7935a4b1f9d8d2ec455f9ae87c4e21d8329b4dd6ec36770d0e3ffe0d1e29b723bf72633569291baf2397b574295f53635fdd2b8ac3eb57
6
+ metadata.gz: 70cc595f2f165d3d2f337437f88b9d0021fb74cf764e4393949e83fe2470ea55f40b95f64ef3772a0f572875f6773acdf0e1ad122a9011a2587daf3c93584d87
7
+ data.tar.gz: 6bb1ca0567ff9ce9b69accedda38d154050bb9c9e72fcd910694fd4a6c1399c3f69da2c686ddc14e3015f86a61fa1cd06ded8cc5f4373a4c8d82350712081cf3
@@ -1,8 +1,7 @@
1
1
  language: ruby
2
- sudo: false
2
+ sudo: true
3
3
  rvm:
4
- - 2.2.3
5
- - 2.1.7
6
- - 2.0.0
4
+ - 2.3.0
5
+ - 2.2.4
7
6
 
8
7
  script: rspec spec
@@ -1,41 +1,84 @@
1
- #### 0.6.8 (4/12/2016) - Merged pull request #16 from [ghn](https://github.com/ghn). Fixes issue #12 to support parsing #EXT-X-PROGRAM-DATE-TIME correctly in media segments.
1
+ 0.6.9 (4/24/2016) - Merged pull request #17 from [ghn](https://github.com/ghn). Removes return when parsing next line in playlist.
2
2
 
3
- #### 0.6.7 (4/8/2016) - Merged pull request #15 from [jviney](https://github.com/jviney). Fix: Always render the duration as a decimal integer.
3
+ ***
4
+
5
+ 0.6.8 (4/12/2016) - Merged pull request #16 from [ghn](https://github.com/ghn). Fixes issue #12 to support parsing `#EXT-X-PROGRAM-DATE-TIME` correctly in media segments.
6
+
7
+ ***
8
+
9
+ 0.6.7 (4/8/2016) - Merged pull request #15 from [jviney](https://github.com/jviney). Fix: Always render the duration as a decimal integer.
10
+
11
+ ***
12
+
13
+ 0.6.6 (3/30/2016) - Merged pull request #14 from [raphi](https://github.com/raphi). Adds support for non-standard name attribute on `#EXT-X-STREAM-INF` tags.
14
+
15
+ ***
16
+
17
+ 0.6.5 (3/18/2016) - Merged pull requests #11 from [jviney](https://github.com/jviney). Adds codec string for main profile level 4.1.
18
+
19
+ ***
20
+
21
+ 0.6.4 (2/21/2016) - Merged pull requests #8, #9, and #10 from [jviney](https://github.com/jviney). Adds `FRAME-RATE` attribute to `PlayListItem`, fixes `NONE` option for `CLOSED-CAPTIONS` attribute.
22
+
23
+ ***
24
+
25
+ 0.6.3 (2/17/2016) - Merged pull request #7 from [jviney](https://github.com/jviney), fixing bug with require order.
26
+
27
+ ***
28
+
29
+ 0.6.2 (2/16/2016) - Added support for `EXT-X-SESSION-KEY` tags. Merged pulled request #6 from [jviney](https://github.com/jviney), fixing bug with codec string value.
30
+
31
+ ***
4
32
 
5
- #### 0.6.6 (3/30/2016) - Merged pull request #14 from [raphi](https://github.com/raphi). Adds support for non-standard name attribute on #EXT-X-STREAM-INF tags.
33
+ 0.6.1 (8/15/2015) - Added support for `EXT-X-PROGRAM-DATE-TIME` tags.
6
34
 
7
- #### 0.6.5 (3/18/2016) - Merged pull requests #11 from [jviney](https://github.com/jviney). Adds codec string for main profile level 4.1.
35
+ ***
8
36
 
9
- #### 0.6.4 (2/21/2016) - Merged pull requests #8, #9, and #10 from [jviney](https://github.com/jviney). Adds FRAME-RATE attribute to PlayListItem, fixes NONE option for CLOSED-CAPTIONS attribute.
37
+ 0.6.0 (6/20/2015) - Added support for `EXT-X-MAP` tags, introduced `ByteRange` class to handled shared byterange parsing/serialization functionality. **Breaking changes**: SegmentItem now exposes a single byterange instance accessor rather than byterange_length and byterange_start, made all parse methods static for consistency (ex: MediaItem.parse).
10
38
 
11
- #### 0.6.3 (2/17/2016) - Merged pull request #7 from [jviney](https://github.com/jviney), fixing bug with require order.
39
+ ***
12
40
 
13
- #### 0.6.2 (2/16/2016) - Added support for EXT-X-SESSION-KEY tags. Merged pulled request #6 from [jviney](https://github.com/jviney), fixing bug with codec string value.
41
+ 0.5.3 (2/24/2015) - [stan3](https://github.com/stan3) fixed issue recently introduced in Reader where `EXT-X-STREAM-INF` missing resolution would break parsing.
14
42
 
15
- #### 0.6.1 (8/15/2015) - Added support for EXT-X-PROGRAM-DATE-TIME tags.
43
+ ***
16
44
 
17
- #### 0.6.0 (6/20/2015) - Added support for EXT-X-MAP tags, introduced ByteRange class to handled shared byterange parsing/serialization functionality. Breaking changes: SegmentItem now exposes a single byterange instance accessor rather than byterange_length and byterange_start, made all parse methods static for consistency (ex: MediaItem.parse).
45
+ 0.5.2 (2/18/2015) - Fix issue where `PlaylistItem` method `average_bandwidth` would default to 0 instead of nil when not present in m3u8 being parsed.
18
46
 
19
- #### 0.5.3 (2/24/2015) - [stan3](https://github.com/stan3) fixed issue recently introduced in Reader where EXT-X-STREAM-INF missing resolution would break parsing.
47
+ ***
20
48
 
21
- #### 0.5.2 (2/18/2015) - Fix issue where PlaylistItem.average_bandwidth would default to 0 instead of nil when not present in m3u8 being parsed.
49
+ 0.5.1 (2/16/2015) - [takashisite](https://github.com/takashisite) added support for [EXT-X-DISCONTINUITY](https://tools.ietf.org/html/draft-pantos-http-live-streaming-14#section-4.3.2.3). Added support for [EXT-X-KEY](https://tools.ietf.org/html/draft-pantos-http-live-streaming-14#section-4.3.2.4) (keys for encrypted segments).
22
50
 
23
- #### 0.5.1 (2/16/2015) - [takashisite](https://github.com/takashisite) added support for [EXT-X-DISCONTINUITY](https://tools.ietf.org/html/draft-pantos-http-live-streaming-14#section-4.3.2.3). Added support for [EXT-X-KEY](https://tools.ietf.org/html/draft-pantos-http-live-streaming-14#section-4.3.2.4) (keys for encrypted segments).
24
51
  ***
25
- #### 0.5.0 (2/10/2015) - BREAKING: renamed PlaylistItem.playlist to PlaylistItem.uri, MediaItem.group to MediaItem.group_id, and PlaylistItem.bitrate to PlaylistItem.bandwidth so attributes more closely match the spec. Added support for EXT-X-I-FRAME-STREAM-INF, EXT-X-I-FRAMES-ONLY, EXT-X-BYTERANGE, and EXT-X-SESSION-DATA.
52
+
53
+ 0.5.0 (2/10/2015) - **BREAKING**: renamed PlaylistItem.playlist to PlaylistItem.uri, MediaItem.group to MediaItem.group_id, and PlaylistItem.bitrate to PlaylistItem.bandwidth so attributes more closely match the spec. Added support for EXT-X-I-FRAME-STREAM-INF, EXT-X-I-FRAMES-ONLY, EXT-X-BYTERANGE, and EXT-X-SESSION-DATA.
54
+
26
55
  ***
27
- #### 0.4.0 (1/20/2015) - BREAKING: Playlist.audio is now Playlist.audio_codec, audio now represents the newly supported AUDIO attribute, please update your code accordingly. Added support for all EXT-X-MEDIA attributes as well as the following EXT-X-STREAM-INF attributes: AVERAGE-BANDWIDTH, AUDIO, VIDEO, SUBTILES, and CLOSED-CAPTIONS. This means the library now supports alternate audio / camera angles as well as subtitles and closed captions. The EXT-X-PLAYLIST-TYPE attribute is now supported as Playlist.type. [elsurudo](https://github.com/elsurudo) added support for comments/titles in SegmentItems. A bug was also fixed in Reader that prevented reuse of the instance.
56
+
57
+ 0.4.0 (1/20/2015) - **BREAKING**: Playlist.audio is now Playlist.audio_codec, audio now represents the newly supported AUDIO attribute, please update your code accordingly. Added support for all `EXT-X-MEDIA` attributes as well as the following `EXT-X-STREAM-INF` attributes: `AVERAGE-BANDWIDTH`, `AUDIO`, `VIDEO`, `SUBTILES`, and `CLOSED-CAPTIONS`. This means the library now supports alternate audio / camera angles as well as subtitles and closed captions. The `EXT-X-PLAYLIST-TYPE` attribute is now supported as Playlist.type. [elsurudo](https://github.com/elsurudo) added support for comments/titles in SegmentItems. A bug was also fixed in Reader that prevented reuse of the instance.
28
58
  ***
29
- #### 0.3.2 (1/16/2015) - PROGRAM-ID was removed in protocol version 6, if not provided it will now be omitted with a fix implemented by [elsurudo](https://github.com/elsurudo).
59
+
60
+ 0.3.2 (1/16/2015) - PROGRAM-ID was removed in protocol version 6, if not provided it will now be omitted with a fix implemented by [elsurudo](https://github.com/elsurudo).
61
+
30
62
  ***
31
- #### 0.3.1 (1/15/2015) - [DaKaZ](https://github.com/DaKaZ) added duration method to Playlist to get the total length of segments contained within it.
63
+
64
+ 0.3.1 (1/15/2015) - [DaKaZ](https://github.com/DaKaZ) added duration method to `Playlist` to get the total length of segments contained within it.
65
+
32
66
  ***
33
- #### 0.3.0 (11/26/2014) - DEPRECIATED add_playlist and add_segment on Playlist, manipulate the items array directly instead. Extracted writing of playlists to it's own Writer class (only use directly if you want more control over the process). Added read convience method to Playlist so Reader doesn't have to be used directly unless more control is desired. Simplified validation and other aspects during this refactoring.
67
+
68
+ 0.3.0 (11/26/2014) - **DEPRECIATED** `add_playlist` and `add_segment` on `Playlist`, manipulate the items array directly instead. Extracted writing of playlists to it's own Writer class (only use directly if you want more control over the process). Added read convience method to Playlist so Reader doesn't have to be used directly unless more control is desired. Simplified validation and other aspects during this refactoring.
69
+
34
70
  ***
35
- #### 0.2.1 (11/26/2014) - Moved codec generation / validation to PlaylistItem, allowing for the flexibility to either specify :audio, :level, :profile when creating new instances (codecs value will be automatically generated) or just set the codecs attribute directly.
71
+
72
+ 0.2.1 (11/26/2014) - Moved codec generation / validation to `PlaylistItem`, allowing for the flexibility to either specify `:audio`, `:level`, `:profile` when creating new instances (codecs value will be automatically generated) or just set the codecs attribute directly.
73
+
36
74
  ***
37
- #### 0.2.0 (11/25/2014) - Added ability to parse m3u8 playlists with new Reader class. Introduced two new classes to represent the items that make up a Playlist: PlaylistItem and SegmentItem.
75
+
76
+ 0.2.0 (11/25/2014) - Added ability to parse m3u8 playlists with new `Reader` class. Introduced two new classes to represent the items that make up a Playlist: `PlaylistItem` and `SegmentItem`.
77
+
38
78
  ***
39
- #### 0.1.3 (11/23/2014) - Fixed bug in codec string generation.
79
+
80
+ 0.1.3 (11/23/2014) - Fixed bug in codec string generation.
81
+
40
82
  ***
41
- #### 0.1.0 (10/06/2014) - Initial release, provides ability to generate m3u8 playlists (master and segments).
83
+
84
+ 0.1.0 (10/06/2014) - Initial release, provides ability to generate m3u8 playlists (master and segments).
@@ -161,7 +161,7 @@ module M3u8
161
161
  end
162
162
 
163
163
  def parse_next_line(line)
164
- value = line.delete("\n")
164
+ value = line.delete("\n").delete("\r")
165
165
  if master
166
166
  item.uri = value
167
167
  else
@@ -1,4 +1,4 @@
1
1
  # M3u8 provides parsing, generation, and validation of m3u8 playlists
2
2
  module M3u8
3
- VERSION = '0.6.8'
3
+ VERSION = '0.6.9'
4
4
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency 'bundler'
22
22
  spec.add_development_dependency 'rake'
23
- spec.add_development_dependency 'rspec', '~> 3.4'
23
+ spec.add_development_dependency 'rspec', '>=3.0'
24
24
  spec.add_development_dependency 'coveralls'
25
25
  spec.add_development_dependency 'guard'
26
26
  spec.add_development_dependency 'guard-rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: m3u8
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Deckard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-12 00:00:00.000000000 Z
11
+ date: 2016-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.4'
47
+ version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.4'
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: coveralls
57
57
  requirement: !ruby/object:Gem::Requirement