subdl 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. data/lib/subdl.rb +2 -2
  2. metadata +1 -1
@@ -34,7 +34,7 @@ class MovieFile
34
34
  def initialize filename
35
35
  @filename = filename
36
36
  text = File.basename filename
37
- remove_year_from text
37
+ text = remove_year_from text
38
38
 
39
39
  if m = /^(.*)\.S(\d\d)E(\d\d)/.match(text)
40
40
  @show = m[1].gsub '.', ' '
@@ -45,7 +45,7 @@ class MovieFile
45
45
  end
46
46
 
47
47
  def remove_year_from text
48
- text.gsub! /\.20\d\d/, ''
48
+ text.gsub /\.20\d\d/, ''
49
49
  end
50
50
 
51
51
  def remove_leading_zeros text
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: