hlspider 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -128,7 +128,7 @@ module HLSpider
128
128
  if absolute_url?(p)
129
129
  p
130
130
  elsif @source
131
- @source.sub(/\w*.m3u8/, p)
131
+ @source.sub(/[^\/]*.m3u8/, p)
132
132
  end
133
133
  end
134
134
  end
@@ -1,3 +1,3 @@
1
1
  module HLSpider
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -76,6 +76,11 @@ media-b96000_38.aac?wowzasessionid=1332469433&wowzaaudioonly
76
76
  playlist.playlists[0].must_equal("http://host.com/main/rel/playlist.m3u8")
77
77
  end
78
78
 
79
+ it "should accept playlist names with hifen" do
80
+ playlist = HLSpider::Playlist.new(@variable_playlist, "http://host.com/main/playlist-with-hifen.m3u8")
81
+ playlist.playlists[0].must_equal("http://host.com/main/rel/playlist.m3u8")
82
+ end
83
+
79
84
  it "should accept absolute playlists" do
80
85
  playlist = HLSpider::Playlist.new(@variable_playlist, "http://host.com/main/playlist.m3u8")
81
86
  playlist.playlists[1].must_equal("http://anotherhost.com/playlist3.m3u8")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hlspider
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - brookemckim
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-08 00:00:00 Z
18
+ date: 2013-11-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: minitest