razsell 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
data/lib/razsell/item.rb CHANGED
@@ -15,5 +15,9 @@ module Razsell
15
15
  end
16
16
  end
17
17
  end
18
+
19
+ def to_hash
20
+ @values
21
+ end
18
22
  end
19
23
  end
data/razsell.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{razsell}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jamal Hansen"]
12
- s.date = %q{2010-02-16}
12
+ s.date = %q{2010-02-18}
13
13
  s.description = %q{Queries Zazzle RSS feed for data.}
14
14
  s.email = %q{jamal.hansen@gmail.com}
15
15
  s.extra_rdoc_files = [
data/test/results_test.rb CHANGED
@@ -63,6 +63,19 @@ class ResultsTest < Test::Unit::TestCase
63
63
  should "have the correct rating" do
64
64
  assert_equal "g", @item.rating
65
65
  end
66
+
67
+ should "convert to hash" do
68
+ hash = @item.to_hash
69
+ assert_equal "Ladies Rockstar TShirt", hash[:title]
70
+ assert_equal "http://www.zazzle.com/ladies_rockstar_tshirt-235898004129790991?gl=kungfutees", hash[:guid]
71
+ assert_equal Time.parse("Sat, 02 May 2009 13:06:08 GMT").to_s, hash[:pub_date].to_s
72
+ assert_equal "http://www.zazzle.com/ladies_rockstar_tshirt-235898004129790991?gl=kungfutees", hash[:link]
73
+ assert_equal "kungfutees", hash[:author]
74
+ assert_equal "Ladies are Rockstar Coders too!", hash[:description]
75
+ assert_equal "http://rlv.zcache.com/ladies_rockstar_tshirt-p235898004129790991ojnq_125.jpg", hash[:thumbnail_url]
76
+ assert_equal "http://rlv.zcache.com/ladies_rockstar_tshirt-p235898004129790991ojnq_500.jpg", hash[:content_url]
77
+ assert_equal 6, hash[:keywords].length
78
+ end
66
79
  end
67
80
  end
68
81
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: razsell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamal Hansen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-16 00:00:00 -06:00
12
+ date: 2010-02-18 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency