mr_video 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/controllers/mr_video/mr_video_controller.rb +1 -1
- data/app/models/mr_video/cassette.rb +4 -4
- data/lib/mr_video/constants.rb +1 -1
- data/spec/dummy/log/development.log +1163 -0
- data/spec/dummy/log/test.log +1017 -0
- data/spec/dummy/tmp/pids/server.pid +1 -1
- data/spec/fixtures/vcr_cassettes/dummy_cassette.yml +3 -3
- data/spec/fixtures/vcr_cassettes/test_subdirectory/dummy_cassette_2.yml +12100 -0
- data/spec/models/mr_video/cassette_spec.rb +12 -1
- data/spec/rails_helper.rb +0 -1
- metadata +16 -16
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
|
@@ -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(
|
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
|
data/lib/mr_video/constants.rb
CHANGED