Skip to content

Commit

Permalink
Added product_design category
Browse files Browse the repository at this point in the history
Fixed reading name and URL
Re-recorded some tests
  • Loading branch information
Sergei Shevlyagin committed Mar 27, 2013
1 parent 01e0f2e commit 1eebe41
Show file tree
Hide file tree
Showing 37 changed files with 31,651 additions and 28,634 deletions.
1 change: 1 addition & 0 deletions lib/kickstarter/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Kickstarter
:comics => "comics",
:dance => "dance",
:design => "design",
:product_design => "product%20design",
:fashion => "fashion",
:film_video => "film%20&%20video",
:food => "food",
Expand Down
4 changes: 2 additions & 2 deletions lib/kickstarter/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ def id
end

def name
@name ||= details_page.css("h1#title a").inner_html
@name ||= details_page.css("h2#title a").inner_html
end

def description
@description ||= details_page.xpath('//meta[@property="og:description"]/@content').first.value
end

def url
@url ||= details_page.css("h1#title a").attr('href').value
@url ||= details_page.css("h2#title a").attr('href').value
end

# Note: Not all projects are assigned short_urls.
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'money'

VCR.configure do |c|
c.default_cassette_options = { :record => :all }
c.cassette_library_dir = 'spec/vcr'
c.hook_into :webmock
end
Expand Down
828 changes: 575 additions & 253 deletions spec/vcr/profile/benignkingdom.yml

Large diffs are not rendered by default.

1,018 changes: 699 additions & 319 deletions spec/vcr/profile/bildersee.yml

Large diffs are not rendered by default.

848 changes: 594 additions & 254 deletions spec/vcr/profile/breadpig.yml

Large diffs are not rendered by default.

903 changes: 621 additions & 282 deletions spec/vcr/profile/pennyarcade.yml

Large diffs are not rendered by default.

1,490 changes: 763 additions & 727 deletions spec/vcr/profile/ryanestrada.yml

Large diffs are not rendered by default.

1,873 changes: 925 additions & 948 deletions spec/vcr/profile/smudge.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5,573 changes: 2,781 additions & 2,792 deletions spec/vcr/projects/1461411552/elite-dangerous.yml

Large diffs are not rendered by default.

3,027 changes: 1,527 additions & 1,500 deletions spec/vcr/projects/1607016995/pixel-perfect-mike-tysons-punch-out.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,445 changes: 1,238 additions & 1,207 deletions spec/vcr/projects/1858685678/kern-and-burn-the-book.yml

Large diffs are not rendered by default.

737 changes: 325 additions & 412 deletions spec/vcr/projects/1946927951/jackpot-1/widget/card_html.yml

Large diffs are not rendered by default.

2,476 changes: 1,254 additions & 1,222 deletions spec/vcr/projects/2pp/minecraft-the-story-of-mojang.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,911 changes: 1,470 additions & 1,441 deletions spec/vcr/projects/64409699/ftl-faster-than-light.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,904 changes: 1,446 additions & 1,458 deletions spec/vcr/projects/benignkingdom/benign-kingdom-spring-2013.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3,197 changes: 1,606 additions & 1,591 deletions spec/vcr/projects/doublefine/double-fine-adventure.yml

Large diffs are not rendered by default.

1,978 changes: 1,349 additions & 629 deletions spec/vcr/projects/fchimero/the-shape-of-design.yml

Large diffs are not rendered by default.

3,295 changes: 1,889 additions & 1,406 deletions spec/vcr/projects/fts-media/doctor-who-50th-anniversary-documentary-whooligans.yml

Large diffs are not rendered by default.

2,670 changes: 1,344 additions & 1,326 deletions spec/vcr/projects/georgegaspar/omfg-series-1.yml

Large diffs are not rendered by default.

2,531 changes: 1,277 additions & 1,254 deletions spec/vcr/projects/goodonpaper/the-manual.yml

Large diffs are not rendered by default.

2,362 changes: 1,197 additions & 1,165 deletions spec/vcr/projects/jaybill/refillable-bamboo-notebook.yml

Large diffs are not rendered by default.

3,045 changes: 1,532 additions & 1,513 deletions spec/vcr/projects/jonrosenberg/goats-book-iv-inhuman-resources.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

236 changes: 105 additions & 131 deletions spec/vcr/projects/obsidian/project-eternity/widget/card_html.yml

Large diffs are not rendered by default.

1,689 changes: 1,163 additions & 526 deletions spec/vcr/projects/remag/re-magazine.yml

Large diffs are not rendered by default.

2,591 changes: 1,286 additions & 1,305 deletions spec/vcr/projects/silentjames/dee-an-illustrated-story.yml

Large diffs are not rendered by default.

3,091 changes: 1,560 additions & 1,531 deletions spec/vcr/projects/weiner/science-ruining-everything-since-1543-an-smbc-coll.yml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3,419 changes: 1,731 additions & 1,688 deletions spec/vcr/projects/zefrank/a-show-with-ze-frank.yml

Large diffs are not rendered by default.

0 comments on commit 1eebe41

Please sign in to comment.