blitzcrank 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/lib/blitzcrank/version.rb +1 -1
- data/lib/blitzcrank/video.rb +2 -2
- data/spec/lib/tv_show_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 552000bd49ce23d50fd83f34df85e28ec4884564
|
4
|
+
data.tar.gz: 85d4b68b4e947395acd0d683a5f3a3e84fde435c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3010cb68ca50706c731d15276fcf323c9534289b6a09262652fa56b1dce0bb2b8cf16715defde4445d3e488546796b1a53b8c16cfb6d72a319275c51c8816fe0
|
7
|
+
data.tar.gz: edf80f28051be3fab4f043821952d2d6a001267601cc68fd8a99ab08dfeb08dc6725d29ec8552d25dda43a790f59ac47362d25333a25add00fa55fb4fa97819f
|
data/lib/blitzcrank/version.rb
CHANGED
data/lib/blitzcrank/video.rb
CHANGED
@@ -2,8 +2,8 @@ require "imdb"
|
|
2
2
|
module Blitzcrank
|
3
3
|
class Video
|
4
4
|
|
5
|
-
TV_SHOW_REGEX = /(
|
6
|
-
MOVIE_REGEX = /^(
|
5
|
+
TV_SHOW_REGEX = /(.*?)[\. ]s?(\d{1,2})[ex](\d{2})/i # Supports s01e01, 1x03
|
6
|
+
MOVIE_REGEX = /^(.*?).(\d{4}|dvdrip)/i
|
7
7
|
|
8
8
|
def self.with_path(file_path)
|
9
9
|
file_name = Video.file_name(file_path)
|
data/spec/lib/tv_show_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require File.join(File.dirname(__FILE__), "../../lib/blitzcrank.rb")
|
2
2
|
|
3
3
|
module Blitzcrank
|
4
4
|
describe TVShow do
|
@@ -38,7 +38,7 @@ module Blitzcrank
|
|
38
38
|
|
39
39
|
it "correctly gets the local path for a TV show" do
|
40
40
|
tv_shows.each_with_index do |video, i|
|
41
|
-
expect(video.local_path).to eql("TV/Season #{tv_show_seasons[i]}/#{
|
41
|
+
expect(video.local_path).to eql("TV/#{tv_show_names[i]}/Season #{tv_show_seasons[i]}/#{video.file_name}")
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blitzcrank
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pyro2927
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|