mr_video 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 88882
1
+ 94735
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mr_video
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-29 00:00:00.000000000 Z
12
+ date: 2014-06-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rails-based front-end for the popular VCR gem. It allows you to browse
15
15
  cassettes and episodes. HTTP body content from episodes can be viewed in the browser,
@@ -38,6 +38,7 @@ files:
38
38
  - app/controllers/mr_video/mr_video_controller.rb
39
39
  - app/models/mr_video/cassette.rb
40
40
  - app/models/mr_video/episode.rb
41
+ - app/presenters/mr_video/episodes/show_presenter.rb
41
42
  - app/views/layouts/mr_video.html.erb
42
43
  - app/views/mr_video/cassettes/destroy.js.erb
43
44
  - app/views/mr_video/cassettes/index.html.erb
@@ -52,8 +53,8 @@ files:
52
53
  - MIT-LICENSE
53
54
  - Rakefile
54
55
  - README.md
55
- - spec/controllers/video_store/cassettes_controller_spec.rb
56
- - spec/controllers/video_store/episodes_controller_spec.rb
56
+ - spec/controllers/mr_video/cassettes_controller_spec.rb
57
+ - spec/controllers/mr_video/episodes_controller_spec.rb
57
58
  - spec/dummy/app/assets/javascripts/application.js
58
59
  - spec/dummy/app/assets/stylesheets/application.css
59
60
  - spec/dummy/app/controllers/application_controller.rb
@@ -90,6 +91,7 @@ files:
90
91
  - spec/dummy/script/rails
91
92
  - spec/dummy/tmp/cache/assets/BC5/340/sprockets%2F011f96233377718645eef75033490731
92
93
  - spec/dummy/tmp/cache/assets/BDC/290/sprockets%2F03520429830109b18adc104487330f65
94
+ - spec/dummy/tmp/cache/assets/C16/390/sprockets%2F4cf60215483abdb40567234431686381
93
95
  - spec/dummy/tmp/cache/assets/C2D/510/sprockets%2F20b2ed248141350042180775bd7ca300
94
96
  - spec/dummy/tmp/cache/assets/C33/7B0/sprockets%2F279f3425616908db21248ef7c0377697
95
97
  - spec/dummy/tmp/cache/assets/C45/3B0/sprockets%2Fc56cb6a022490005d187389a831e2571
@@ -116,6 +118,7 @@ files:
116
118
  - spec/dummy/tmp/cache/assets/CFF/B30/sprockets%2F48e1115402264fa234aabcb489ee518b
117
119
  - spec/dummy/tmp/cache/assets/D14/700/sprockets%2Fce8e69a02c907e441390a9c86b13df90
118
120
  - spec/dummy/tmp/cache/assets/D16/7D0/sprockets%2F475812a15ca9d81ff39dd6ab61482d75
121
+ - spec/dummy/tmp/cache/assets/D17/540/sprockets%2F285be457ed7bf44f92c29160f3c08f05
119
122
  - spec/dummy/tmp/cache/assets/D26/B40/sprockets%2F5bdcd40a041fa14d4469b4a190161f3e
120
123
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
121
124
  - spec/dummy/tmp/cache/assets/D38/F40/sprockets%2Fd48477e04ed5bf10a5fc7c10130a679e
@@ -156,7 +159,6 @@ files:
156
159
  - spec/models/mr_video/episode_spec.rb
157
160
  - spec/rails_helper.rb
158
161
  - spec/spec_helper.rb
159
- - spec/support/coveralls.rb
160
162
  homepage: https://github.com/quidproquo/mr_video
161
163
  licenses: []
162
164
  post_install_message:
@@ -182,8 +184,8 @@ signing_key:
182
184
  specification_version: 3
183
185
  summary: Rails-based front-end for the popular VCR gem.
184
186
  test_files:
185
- - spec/controllers/video_store/cassettes_controller_spec.rb
186
- - spec/controllers/video_store/episodes_controller_spec.rb
187
+ - spec/controllers/mr_video/cassettes_controller_spec.rb
188
+ - spec/controllers/mr_video/episodes_controller_spec.rb
187
189
  - spec/dummy/app/assets/javascripts/application.js
188
190
  - spec/dummy/app/assets/stylesheets/application.css
189
191
  - spec/dummy/app/controllers/application_controller.rb
@@ -220,6 +222,7 @@ test_files:
220
222
  - spec/dummy/script/rails
221
223
  - spec/dummy/tmp/cache/assets/BC5/340/sprockets%2F011f96233377718645eef75033490731
222
224
  - spec/dummy/tmp/cache/assets/BDC/290/sprockets%2F03520429830109b18adc104487330f65
225
+ - spec/dummy/tmp/cache/assets/C16/390/sprockets%2F4cf60215483abdb40567234431686381
223
226
  - spec/dummy/tmp/cache/assets/C2D/510/sprockets%2F20b2ed248141350042180775bd7ca300
224
227
  - spec/dummy/tmp/cache/assets/C33/7B0/sprockets%2F279f3425616908db21248ef7c0377697
225
228
  - spec/dummy/tmp/cache/assets/C45/3B0/sprockets%2Fc56cb6a022490005d187389a831e2571
@@ -246,6 +249,7 @@ test_files:
246
249
  - spec/dummy/tmp/cache/assets/CFF/B30/sprockets%2F48e1115402264fa234aabcb489ee518b
247
250
  - spec/dummy/tmp/cache/assets/D14/700/sprockets%2Fce8e69a02c907e441390a9c86b13df90
248
251
  - spec/dummy/tmp/cache/assets/D16/7D0/sprockets%2F475812a15ca9d81ff39dd6ab61482d75
252
+ - spec/dummy/tmp/cache/assets/D17/540/sprockets%2F285be457ed7bf44f92c29160f3c08f05
249
253
  - spec/dummy/tmp/cache/assets/D26/B40/sprockets%2F5bdcd40a041fa14d4469b4a190161f3e
250
254
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
251
255
  - spec/dummy/tmp/cache/assets/D38/F40/sprockets%2Fd48477e04ed5bf10a5fc7c10130a679e
@@ -286,4 +290,3 @@ test_files:
286
290
  - spec/models/mr_video/episode_spec.rb
287
291
  - spec/rails_helper.rb
288
292
  - spec/spec_helper.rb
289
- - spec/support/coveralls.rb
@@ -1,54 +0,0 @@
1
- require 'rails_helper'
2
-
3
- describe MrVideo::EpisodesController do
4
- routes { MrVideo::Engine.routes }
5
-
6
- render_views
7
-
8
- describe '#show' do
9
- let(:cassette) { MrVideo::Cassette.find('bell_house')}
10
- let(:cassette_id) { cassette.id }
11
- let(:id) { cassette.episodes[0].id }
12
- let(:params) { {
13
- cassette_id: cassette_id,
14
- id: id
15
- } }
16
- let(:show) { get(:show, params) }
17
-
18
- subject { show }
19
-
20
- before do
21
- show
22
- end
23
-
24
- it { should be_success }
25
- end
26
-
27
- describe '#destroy' do
28
- let(:cassette_id) { 'bell_house' }
29
- let(:id) { 0 }
30
- let(:params) { {
31
- cassette_id: cassette_id,
32
- id: id
33
- } }
34
- let(:cassette) { double(:cassette) }
35
- let(:episode) { double(:episode, id: id) }
36
- let(:destroy) { xhr(:post, :destroy, params) }
37
-
38
- subject { destroy }
39
-
40
- before do
41
- expect(MrVideo::Cassette).to receive(:find).with(cassette_id) { cassette }
42
- expect(cassette).to receive(:find_episode_by_id).with(id.to_s) { episode }
43
- allow(episode).to receive(:destroy)
44
- destroy
45
- end
46
-
47
- it { should be_success }
48
-
49
- it 'should destroy the episode' do
50
- expect(episode).to have_received(:destroy)
51
- end
52
- end # #destroy
53
-
54
- end # MrVideo::EpisodesController
@@ -1,2 +0,0 @@
1
- require 'coveralls'
2
- Coveralls.wear!