simpsons_world 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simpsons_world/version.rb +1 -1
- data/lib/simpsons_world.rb +1 -2
- data/spec/simpsons_world_spec.rb +2 -2
- data/spec/support/helpers.rb +1 -1
- 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: c4374cc03295ab390644122b5c1f2c159c68f425
|
4
|
+
data.tar.gz: ce9cb4b1293335e0e2b92b6ce56f5642b4136429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492fdacbd09881465e49790bcfd3c169c5755d5e2884fcf233f3fc46df14cd062d1ef5c586c1fee9a5ed2b8a8274b8a7d4438399bfc9cc258848defb14f70cf8
|
7
|
+
data.tar.gz: b62cb61d1e2190c5ea44eed06c9f0d5d47b98e74bc25ac2ff061a4f29c855795f7b9e14c836352ef33231567e72f2fc398f4fbedcb26c590ad1791d151b594e5
|
data/lib/simpsons_world.rb
CHANGED
@@ -2,10 +2,9 @@ require "simpsons_world/version"
|
|
2
2
|
require 'simpsons_world/season'
|
3
3
|
require 'simpsons_world/scrape'
|
4
4
|
require 'simpsons_world/view_helpers'
|
5
|
-
require 'pry'
|
6
5
|
|
7
6
|
module SimpsonsWorld
|
8
|
-
DATA_DIR = ENV['environment'] && ENV['environment'] == 'test' ?
|
7
|
+
DATA_DIR = ENV['environment'] && ENV['environment'] == 'test' ?
|
9
8
|
File.join(File.dirname(__FILE__), '..', 'spec', 'data') :
|
10
9
|
File.join(File.dirname(__FILE__), 'data')
|
11
10
|
|
data/spec/simpsons_world_spec.rb
CHANGED
@@ -86,7 +86,7 @@ describe SimpsonsWorld do
|
|
86
86
|
it 'should return the correct episode' do
|
87
87
|
expect( @season.episodes[1] ).to eql(season_one_data[1][1])
|
88
88
|
end
|
89
|
-
|
89
|
+
|
90
90
|
it 'should set the correct path' do
|
91
91
|
expect( @season.episodes[1][:url] ).to eql("/path/s1-e1")
|
92
92
|
end
|
@@ -110,7 +110,7 @@ describe SimpsonsWorld do
|
|
110
110
|
create_season(season_two_data)
|
111
111
|
expect( @view.simpsons_world_episode_url(episode: 6) ).to match(/s2-e1/)
|
112
112
|
end
|
113
|
-
|
113
|
+
|
114
114
|
it 'should return the correct url for a season 1 finale' do
|
115
115
|
create_season(season_two_data)
|
116
116
|
expect( @view.simpsons_world_episode_url(episode: 5) ).to match(/s1-e5/)
|
data/spec/support/helpers.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simpsons_world
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mcianni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|