mr_video 1.0.2 → 1.0.4

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 212a29c4988b04e26b30f30d11e751704b0e731b
4
+ data.tar.gz: df82fe81cb84d11433f20695b9a6477f31dfd01f
5
+ SHA512:
6
+ metadata.gz: 52dd79d455d50ea58be2a50e4fcc67b2836c7ea8e8acd658ae813a9d4021a4caea8558c298463ecdec1c605e3c9466506c7ae3b97d81289cc9d05189bb044d63
7
+ data.tar.gz: 2ec7e11eacf052b75e541751814ea274e5fee76574911f1f33cd35a5c652f4c4440120365b573304526f7951be99367cfdc4c5d1b6dae258439bcf003f1cb0be
@@ -1,6 +1,6 @@
1
1
  module MrVideo
2
2
 
3
- class MrVideoController < ApplicationController
3
+ class MrVideoController < ActionController::Base
4
4
  layout 'mr_video'
5
5
 
6
6
 
@@ -7,11 +7,11 @@ module MrVideo
7
7
  end
8
8
 
9
9
  def id
10
- name
10
+ URI.escape(name, /\//)
11
11
  end
12
12
 
13
13
  def name
14
- @name ||= cassette_path.match(/\/([a-zA-Z0-9_-]+)\.yml/)[1]
14
+ @name ||= cassette_path.sub(self.class.cassette_dir, '').match(/^\/(.+)\.yml$/)[1]
15
15
  end
16
16
 
17
17
  def episodes
@@ -121,7 +121,7 @@ module MrVideo
121
121
 
122
122
  # Class properties:
123
123
 
124
- def self.cassette_paths(name = '*')
124
+ def self.cassette_paths(name = '**/*')
125
125
  Dir.glob(cassette_dir + "/#{name}.yml")
126
126
  end
127
127
 
@@ -131,4 +131,4 @@ module MrVideo
131
131
 
132
132
  end # Cassette class
133
133
 
134
- end # MrVideo module
134
+ end # MrVideo module
@@ -1,5 +1,5 @@
1
1
  module MrVideo
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.4'
3
3
  URL = 'https://github.com/quidproquo/mr_video'
4
4
  NAME = 'Mr. Video'
5
5
  end