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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8abf1dc870973835bdd3d806b96d5b37347f8ce
4
- data.tar.gz: 99cebe6d0b9398756a3a95410ac36b825bf6dc1f
3
+ metadata.gz: c4374cc03295ab390644122b5c1f2c159c68f425
4
+ data.tar.gz: ce9cb4b1293335e0e2b92b6ce56f5642b4136429
5
5
  SHA512:
6
- metadata.gz: 5ca10812db198b482d5f7f7f5cba25ff72540cc3e1c4c65f483740f14c2b150189643b3e3165df28b444f8d420fe57522005e827a0c9f8af29b8487c62e1fd7a
7
- data.tar.gz: 588dbf9b7a3a0551670abcea3eccfdf4cec9a91d4e26bfd8540a245f7b99b4804ae1a36999a05b533bc85f85048bd5d28824b437f2f39f32a8d151884e3eabc2
6
+ metadata.gz: 492fdacbd09881465e49790bcfd3c169c5755d5e2884fcf233f3fc46df14cd062d1ef5c586c1fee9a5ed2b8a8274b8a7d4438399bfc9cc258848defb14f70cf8
7
+ data.tar.gz: b62cb61d1e2190c5ea44eed06c9f0d5d47b98e74bc25ac2ff061a4f29c855795f7b9e14c836352ef33231567e72f2fc398f4fbedcb26c590ad1791d151b594e5
@@ -1,3 +1,3 @@
1
1
  module SimpsonsWorld
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -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
 
@@ -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/)
@@ -1,7 +1,7 @@
1
1
  module Helpers
2
2
 
3
3
  def season_data season: 1
4
- [ season, (1..EPISODE_COUNT).map { |i|
4
+ [ season, (1..EPISODE_COUNT).map { |i|
5
5
  [i, { title: "Episode #{i}", description: "Description #{i}", url: "/path/s#{season}-e#{i}" }]
6
6
  }.to_h ]
7
7
  end
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.0
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-05-18 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler