Permalink
Browse files

Added product_design category

Fixed reading name and URL
Re-recorded some tests
  • Loading branch information...
Sergei Shevlyagin
Sergei Shevlyagin committed Mar 27, 2013
1 parent 01e0f2e commit 1eebe41a55b608ecf8464b274d607f28114055ac
Showing with 31,651 additions and 28,634 deletions.
  1. +1 −0 lib/kickstarter/common.rb
  2. +2 −2 lib/kickstarter/project.rb
  3. +1 −0 spec/spec_helper.rb
  4. +575 −253 spec/vcr/profile/benignkingdom.yml
  5. +699 −319 spec/vcr/profile/bildersee.yml
  6. +594 −254 spec/vcr/profile/breadpig.yml
  7. +621 −282 spec/vcr/profile/pennyarcade.yml
  8. +763 −727 spec/vcr/profile/ryanestrada.yml
  9. +925 −948 spec/vcr/profile/smudge.yml
  10. +327 −415 spec/vcr/projects/1343822269/puzzlepork-coming-to-pc-mac-ios-and-android-0/widget/card_html.yml
  11. +2,781 −2,792 spec/vcr/projects/1461411552/elite-dangerous.yml
  12. +1,527 −1,500 spec/vcr/projects/1607016995/pixel-perfect-mike-tysons-punch-out.yml
  13. +328 −415 spec/vcr/projects/1800676131/star-trek-deception-a-fan-film/widget/card_html.yml
  14. +1,238 −1,207 spec/vcr/projects/1858685678/kern-and-burn-the-book.yml
  15. +325 −412 spec/vcr/projects/1946927951/jackpot-1/widget/card_html.yml
  16. +1,254 −1,222 spec/vcr/projects/2pp/minecraft-the-story-of-mojang.yml
  17. +105 −132 spec/vcr/projects/476976342/poems-of-beards-and-other-things-0/widget/card_html.yml
  18. +1,470 −1,441 spec/vcr/projects/64409699/ftl-faster-than-light.yml
  19. +105 −131 spec/vcr/projects/837407022/book-of-da-a-sci-fantasy-graphic-novel/widget/card_html.yml
  20. +105 −131 spec/vcr/projects/872281861/final-frontier-designs-3g-space-suit/widget/card_html.yml
  21. +1,446 −1,458 spec/vcr/projects/benignkingdom/benign-kingdom-spring-2013.yml
  22. +105 −132 spec/vcr/projects/dieselsweeties/diesel-sweeties-ebook-stravaganza-3000/widget/card_html.yml
  23. +1,606 −1,591 spec/vcr/projects/doublefine/double-fine-adventure.yml
  24. +1,349 −629 spec/vcr/projects/fchimero/the-shape-of-design.yml
  25. +1,889 −1,406 spec/vcr/projects/fts-media/doctor-who-50th-anniversary-documentary-whooligans.yml
  26. +1,344 −1,326 spec/vcr/projects/georgegaspar/omfg-series-1.yml
  27. +1,277 −1,254 spec/vcr/projects/goodonpaper/the-manual.yml
  28. +1,197 −1,165 spec/vcr/projects/jaybill/refillable-bamboo-notebook.yml
  29. +1,532 −1,513 spec/vcr/projects/jonrosenberg/goats-book-iv-inhuman-resources.yml
  30. +105 −132 spec/vcr/projects/joylabs/makey-makey-an-invention-kit-for-everyone/widget/card_html.yml
  31. +105 −132 spec/vcr/projects/meacollab/extra-ordinary-comics-vol-1-and-2/widget/card_html.yml
  32. +105 −131 spec/vcr/projects/obsidian/project-eternity/widget/card_html.yml
  33. +1,163 −526 spec/vcr/projects/remag/re-magazine.yml
  34. +1,286 −1,305 spec/vcr/projects/silentjames/dee-an-illustrated-story.yml
  35. +1,560 −1,531 spec/vcr/projects/weiner/science-ruining-everything-since-1543-an-smbc-coll.yml
  36. +105 −132 spec/vcr/projects/zacinaction/kicksat-your-personal-spacecraft-in-space/widget/card_html.yml
  37. +1,731 −1,688 spec/vcr/projects/zefrank/a-show-with-ze-frank.yml
@@ -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",
@@ -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.
View
@@ -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

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 1eebe41

Please sign in to comment.