dealmap 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ *.swp
6
+ *.swo
7
+ coverage
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in dealmap.gemspec
4
+ gemspec
data/README.md ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require 'bundler'
2
+ require 'rspec/core/rake_task'
3
+ RSpec::Core::RakeTask.new(:spec)
4
+ task :test => :spec
5
+ task :default => :spec
6
+
7
+ Bundler::GemHelper.install_tasks
data/dealmap.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "dealmap/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "dealmap"
7
+ s.version = Dealmap::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Joshua Deeden"]
10
+ s.email = ["jdeeden@gmail.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{Quick and dirty DealMap API client}
13
+ s.description = %q{A very simple client for the DealMap API}
14
+
15
+ s.rubyforge_project = "dealmap"
16
+ s.add_development_dependency('rake', '~> 0.8')
17
+ s.add_development_dependency('rspec', '~> 2.5')
18
+ s.add_development_dependency('simplecov', '~> 0.4')
19
+ s.add_development_dependency('vcr', '~> 1.7.0')
20
+ s.add_development_dependency('fakeweb')
21
+ s.add_development_dependency('yard', '~> 0.6')
22
+ s.add_runtime_dependency("faraday", '~> 0.5.7')
23
+ s.add_runtime_dependency("typhoeus", '~> 0.2.4')
24
+ s.add_runtime_dependency('nokogiri', '~> 1.4')
25
+ s.add_runtime_dependency('hashie', '~> 1.0.0')
26
+
27
+ s.files = `git ls-files`.split("\n")
28
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
29
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
30
+ s.require_paths = ["lib"]
31
+ end
data/lib/dealmap.rb ADDED
@@ -0,0 +1,66 @@
1
+ require 'typhoeus'
2
+ require 'nokogiri'
3
+ require "ext/string"
4
+ require 'hashie/mash'
5
+ require 'faraday'
6
+
7
+ module Dealmap
8
+ class Client
9
+ attr :api_key, :conn
10
+ def initialize(api_key)
11
+ raise Dealmap::ApiKeyMissingError, "You must supply an API key" if api_key.nil?
12
+ @api_key = api_key
13
+ @conn = Faraday.new(:url => 'http://api.thedealmap.com') do |builder|
14
+ builder.adapter :typhoeus
15
+ builder.adapter :logger
16
+ end
17
+ end
18
+
19
+ def search_deals(options = {})
20
+ options = options.merge(:key => api_key)
21
+ response = conn.get("/search/deals/") { |req| req.params = options }
22
+ doc = Nokogiri::XML(response.body)
23
+ results = doc.search("Deal")
24
+ total = doc.search("TotalResults").first.text.to_i
25
+ deals = []
26
+ results.each do |deal|
27
+ attrs = Hashie::Mash.new
28
+ deal.children.map do |child|
29
+ attrs[child.name.underscore] = child.text.strip.rstrip
30
+ end
31
+ deals << attrs
32
+ end
33
+ return deals, total
34
+ end
35
+
36
+ def search_businesess(options = {})
37
+ options = options.merge(:key => api_key)
38
+ response = conn.get("/search/businesses/") { |req| req.params = options }
39
+ doc = Nokogiri::XML(response.body)
40
+ results = doc.search("Business")
41
+ total = doc.search("TotalResults").first.text.to_i
42
+ businesses = []
43
+ results.each do |business|
44
+ attrs = Hashie::Mash.new
45
+ business.children.map do |child|
46
+ attrs[child.name.underscore] = child.text.strip.rstrip
47
+ end
48
+ businesses << attrs
49
+ end
50
+ return businesses, total
51
+ end
52
+
53
+ def details(deal_id, options = {})
54
+ options = options.merge(:key => api_key)
55
+ response = conn.get("/deals/#{deal_id}") { |req| req.params = options }
56
+ doc = Nokogiri::XML(response.body)
57
+ deal = doc.search("Deal").first
58
+ attrs = Hashie::Mash.new
59
+ deal.children.each do |attr|
60
+ attrs[attr.name.underscore] = attr.text.strip.rstrip
61
+ end
62
+ return attrs
63
+ end
64
+ end
65
+ class ApiKeyMissingError < StandardError; end
66
+ end
@@ -0,0 +1,3 @@
1
+ module Dealmap
2
+ VERSION = "0.0.2"
3
+ end
data/lib/ext/string.rb ADDED
@@ -0,0 +1,12 @@
1
+ class String
2
+ def underscore
3
+ word = self.to_s.dup
4
+ word.gsub!(/::/, '/')
5
+ word.gsub!(/([A-Z]+)([A-Z][a-z])/,'\1_\2')
6
+ word.gsub!(/([a-z\d])([A-Z])/,'\1_\2')
7
+ word.tr!("-", "_")
8
+ word.downcase!
9
+ word
10
+ end
11
+ end
12
+
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://api.thedealmap.com:80/search/deals/?l=Miami%2C%20FL&key=12345
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ cache-control:
14
+ - no-cache
15
+ content-type:
16
+ - application/xml; charset=utf-8
17
+ date:
18
+ - Sun, 13 Mar 2011 23:38:10 GMT
19
+ server:
20
+ - Microsoft-IIS/7.0
21
+ set-cookie:
22
+ - ASP.NET_SessionId=scxlylafompbewq5usdcxmqk; path=/; HttpOnly
23
+ x-aspnet-version:
24
+ - 2.0.50727
25
+ content-length:
26
+ - "31057"
27
+ connection:
28
+ - keep-alive
29
+ body: <Deals xmlns="http://thedealmap.com/api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Message/><Results><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>2829 Bird Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Trijungle</BusinessName><Capability>211</Capability><Category>Shopping,Athletic Apparel</Category><City>Miami</City><Country/><Currency>1</Currency><DealSource>Groupon</DealSource><DealType>8</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>30</DiscountedValue><EffectiveTime>2011-03-12T02:01:00</EffectiveTime><ExpirationTime>2011-03-13T20:59:00</ExpirationTime><FaceValue>60</FaceValue><ID>5-EE22936BCFB0E2E1C6AE028D3A17928A</ID><IconUrl/><ImageUrl>http://www.groupon.com/images/site_images/0684/4652/TriJungle.jpg</ImageUrl><Keywords/><Latitude>25.7354356627911</Latitude><Longitude>-80.2389967348427</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=5-EE22936BCFB0E2E1C6AE028D3A17928A&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>$30 For $60 Worth Of Athletic Apparel And Gear At Trijungle</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=5-EE22936BCFB0E2E1C6AE028D3A17928A</TransactionUrl><YouSave>50 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>1410 20Th St</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Clay World</BusinessName><Capability>211</Capability><Category>Arts and Entertainment,Arts/Crafts/Hobbies</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>Groupon</DealSource><DealType>8</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>40</DiscountedValue><EffectiveTime>2011-03-12T02:01:00</EffectiveTime><ExpirationTime>2011-03-13T20:59:00</ExpirationTime><FaceValue>80</FaceValue><ID>5-9BB32CC58D4889C2E1F41CC71BA8E156</ID><IconUrl/><ImageUrl>http://www.groupon.com/images/site_images/0684/3798/Clay-World.jpg</ImageUrl><Keywords/><Latitude>25.7954950165004</Latitude><Longitude>-80.1438664086163</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=5-9BB32CC58D4889C2E1F41CC71BA8E156&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>$40 For Clay-Sculpting Class At Clay World ($80 Value) In Miami Beach</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=5-9BB32CC58D4889C2E1F41CC71BA8E156</TransactionUrl><YouSave>50 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>413 Washington Avenue</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>The Dining Room</BusinessName><Capability>211</Capability><Category>Restaurant,North American</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>LivingSocial</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>25</DiscountedValue><EffectiveTime>2011-03-11T04:20:00</EffectiveTime><ExpirationTime>2011-03-14T01:59:00</ExpirationTime><FaceValue>50</FaceValue><ID>9-099D63B43E10485A3B0F25A81292A826</ID><IconUrl/><ImageUrl>https://a248.e.akamai.net/si.lscdn.net/imgs/a43bd184-a559-4f33-92c4-357d67cf77ae/535_q60.jpg</ImageUrl><Keywords/><Latitude>25.7739146</Latitude><Longitude>-80.1341354</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=9-099D63B43E10485A3B0F25A81292A826&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone>3053978444</Phone><State>FL</State><Tags/><Terms/><Title>$50 To Spend On Food And Drink</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=9-099D63B43E10485A3B0F25A81292A826</TransactionUrl><YouSave>50 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>3661 S. Miami Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Tropicalaser</BusinessName><Capability>211</Capability><Category>Beauty,Hair Removal</Category><City>Miami</City><Country/><Currency>1</Currency><DealSource>LivingSocial</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>99</DiscountedValue><EffectiveTime>2011-03-11T04:20:00</EffectiveTime><ExpirationTime>2011-03-14T01:59:00</ExpirationTime><FaceValue>600</FaceValue><ID>9-AD5F91D024839BC010F6A516E1938A14</ID><IconUrl/><ImageUrl>https://a248.e.akamai.net/si.lscdn.net/imgs/462ef97c-40d7-42a9-80cb-af97ca3433b8/535_q60.jpg</ImageUrl><Keywords/><Latitude>25.7403825</Latitude><Longitude>-80.2125747</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=9-AD5F91D024839BC010F6A516E1938A14&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone>3053848655</Phone><State>FL</State><Tags/><Terms/><Title>Three Laser Hair-Removal Sessions</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=9-AD5F91D024839BC010F6A516E1938A14</TransactionUrl><YouSave>84 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>3500 Coral Way</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>3Med Health Institute</BusinessName><Capability>211</Capability><Category>Beauty,Med Spa</Category><City>Coral Gables</City><Country/><Currency>1</Currency><DealSource>LivingSocial</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>89</DiscountedValue><EffectiveTime>2011-03-11T04:20:00</EffectiveTime><ExpirationTime>2011-03-14T01:59:00</ExpirationTime><FaceValue>250</FaceValue><ID>9-FA918B172480D6CCC8648B474F57A50F</ID><IconUrl/><ImageUrl>https://a248.e.akamai.net/si.lscdn.net/imgs/4cfa43be-3eb0-4826-8aad-a1d92c7685f7/535_q60.jpg</ImageUrl><Keywords/><Latitude>25.749469</Latitude><Longitude>-80.250596</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=9-FA918B172480D6CCC8648B474F57A50F&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone>3054434126</Phone><State>FL</State><Tags/><Terms/><Title>One ($89) Or Three ($199) Lipolaser Treatments</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=9-FA918B172480D6CCC8648B474F57A50F</TransactionUrl><YouSave>64 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>1680 Michigan Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Pics Boutique</BusinessName><Capability>210</Capability><Category>Photo Finishing Retail</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>Dealon</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>99</DiscountedValue><EffectiveTime>2011-03-10T21:02:00</EffectiveTime><ExpirationTime>2011-03-13T23:59:00</ExpirationTime><FaceValue>199</FaceValue><ID>130-46D045FF5190F6EA93739DA6C0AA19BC</ID><IconUrl/><ImageUrl>https://www.dealon.com/images/coupons/6789_image_4d77f42129fae.jpg</ImageUrl><Keywords/><Latitude>25.7913265284151</Latitude><Longitude>-80.1388094387949</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=130-46D045FF5190F6EA93739DA6C0AA19BC&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone>7542462101</Phone><State>FL</State><Tags/><Terms/><Title>$99 For A $199, One-Hour Professional Photo Shoot</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=130-46D045FF5190F6EA93739DA6C0AA19BC</TransactionUrl><YouSave>50 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>5</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Himistry Grooming, Inc.</BusinessName><Capability>146</Capability><Category/><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>Dealon</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>25</DiscountedValue><EffectiveTime>2011-03-10T01:02:00</EffectiveTime><ExpirationTime>2011-03-13T23:59:00</ExpirationTime><FaceValue>50</FaceValue><ID>130-EBBAC19A6A88726FF7927A79610BF6BE</ID><IconUrl/><ImageUrl>https://www.dealon.com/images/coupons/6778_image_4d779a5653a1d.jpg</ImageUrl><Keywords/><Latitude>25.8102718088776</Latitude><Longitude>-80.1439985074103</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=130-EBBAC19A6A88726FF7927A79610BF6BE&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone>3053570840</Phone><State>FL</State><Tags/><Terms/><Title>$25 For $50 In Skin Care Products And More For Men At Himistry.Com</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=130-EBBAC19A6A88726FF7927A79610BF6BE</TransactionUrl><YouSave>50 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>444 Brickell Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Astor &amp; Black Custom Clothier</BusinessName><Capability>146</Capability><Category>Other</Category><City>Miami</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>499</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>1000</FaceValue><ID>134-1AE5F0F9234A9AFF247DC7890DC6676C</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6845/68452757/orig.jpg?53_1299597816000</ImageUrl><Keywords/><Latitude>25.7690887525678</Latitude><Longitude>-80.1900139823556</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-1AE5F0F9234A9AFF247DC7890DC6676C&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Astor &amp; Black Custom Clothier - Tailored Suit &amp; Collared Shirt</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-1AE5F0F9234A9AFF247DC7890DC6676C</TransactionUrl><YouSave>50 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>4441 Collins Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Scarpetta</BusinessName><Capability>210</Capability><Category>Other</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>25</DiscountedValue><EffectiveTime>2011-03-13T09:00:00</EffectiveTime><ExpirationTime>2011-03-20T09:00:00</ExpirationTime><FaceValue>150</FaceValue><ID>134-20A380A31007A4295600387E41AC2FFA</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6683/66833401/orig.jpg?53_1298568691000</ImageUrl><Keywords/><Latitude>25.8174246735871</Latitude><Longitude>-80.1232003234327</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-20A380A31007A4295600387E41AC2FFA&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Scarpetta - $150 Worth Of Cuisine For $25</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-20A380A31007A4295600387E41AC2FFA</TransactionUrl><YouSave>83 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>612 Lincoln Rd</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Kilwin's Chocolates</BusinessName><Capability>146</Capability><Category>Other</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>6</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>14</FaceValue><ID>134-518FCA39CD98E22BF64EB05D132F1676</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6860/68604274/orig.jpg?53_1299627979000</ImageUrl><Keywords/><Latitude>25.7905014976859</Latitude><Longitude>-80.1344525255263</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-518FCA39CD98E22BF64EB05D132F1676&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Kilwin's Chocolates - Two Caramel Apples</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-518FCA39CD98E22BF64EB05D132F1676</TransactionUrl><YouSave>57 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>7251 N.E. 2Nd Avenue</AddressLine><Affiliation/><BDescription/><BusinessID>b/1/EFF849B6F8E3F0AC4A255A96F8B87C4F</BusinessID><BusinessName>Gaucho Ranch</BusinessName><Capability>146</Capability><Category>food products retail</Category><City>Miami</City><Country/><Currency>1</Currency><DealSource>YourBestDeals</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>15</DiscountedValue><EffectiveTime>2011-03-09T07:00:00</EffectiveTime><ExpirationTime>2011-03-29T17:00:00</ExpirationTime><FaceValue>35</FaceValue><ID>139-076A0C97D09CF1A0EC3E19C7F2529F2B</ID><IconUrl/><ImageUrl>http://www.yourbestdeals.com/images/0f2aa230-7697-4ceb-89e2-76deea8b790d.jpg</ImageUrl><Keywords/><Latitude>25.841653</Latitude><Longitude>-80.19188</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=139-076A0C97D09CF1A0EC3E19C7F2529F2B&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone>3057510775</Phone><State>FL</State><Tags/><Terms/><Title>Gaucho Ranch - Purchase Online And We Ship! 100% Grass Fed Beef! $15 Will Get You $35 Worth! (We Ship Throughout The United States)</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=139-076A0C97D09CF1A0EC3E19C7F2529F2B</TransactionUrl><YouSave>57 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine/><Affiliation/><BDescription/><BusinessID/><BusinessName>1On1 Yoga</BusinessName><Capability>210</Capability><Category>Yoga Instruction</Category><City/><Country/><Currency>1</Currency><DealSource>DailyDealster</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>19</DiscountedValue><EffectiveTime>2011-03-10T21:00:00</EffectiveTime><ExpirationTime>2011-03-13T21:00:00</ExpirationTime><FaceValue>131</FaceValue><ID>190-8D1D181F6366648F482BFFE759170EBD</ID><IconUrl/><ImageUrl>http://www.dailydealster.com/system/illustrations/17233/original/17233.jpg?1295628502</ImageUrl><Keywords/><Latitude>25.834097</Latitude><Longitude>-80.120251</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=190-8D1D181F6366648F482BFFE759170EBD&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone>7862167735</Phone><State/><Tags/><Terms/><Title>Two Private Lessons And Three Group Classes For Only $19.00 At 1On1 Yoga Studio, Miami Beach</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=190-8D1D181F6366648F482BFFE759170EBD</TransactionUrl><YouSave>85 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>612 Lincoln Rd</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Kilwin's Chocolates</BusinessName><Capability>130</Capability><Category>Other</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>8</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>15</FaceValue><ID>134-0AAF8544D65E88517AD814403D06206F</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6860/68604274/orig.jpg?53_1299627979000</ImageUrl><Keywords/><Latitude>25.7905014976859</Latitude><Longitude>-80.1344525255263</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-0AAF8544D65E88517AD814403D06206F&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Kilwin's Chocolates - Two 8 Oz. Slices Of Fudge</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-0AAF8544D65E88517AD814403D06206F</TransactionUrl><YouSave>47 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>1 Washington Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Michael Carballo's South Beach Bootcamp</BusinessName><Capability>194</Capability><Category>Other</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>45</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>75</FaceValue><ID>134-593D8EF3132DBA7EEC5EC3F9DA0CCE4D</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6860/68604436/orig.jpg?53_1299628080000</ImageUrl><Keywords/><Latitude>25.7665991596878</Latitude><Longitude>-80.1340306643397</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-593D8EF3132DBA7EEC5EC3F9DA0CCE4D&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Michael Carballo's South Beach Bootcamp - Five Group Boot Camp Sessions</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-593D8EF3132DBA7EEC5EC3F9DA0CCE4D</TransactionUrl><YouSave>40 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>2700 N Miami Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Jimmy'z Kitchen</BusinessName><Capability>130</Capability><Category>Other</Category><City>Miami</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>20</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>34</FaceValue><ID>134-9727B0838446B73153D0222C8D77E1A8</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6860/68604107/orig.jpg?53_1299627877000</ImageUrl><Keywords/><Latitude>25.802341690287</Latitude><Longitude>-80.1950815971941</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-9727B0838446B73153D0222C8D77E1A8&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Jimmy'z Kitchen - Jimmy'z Dinner</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-9727B0838446B73153D0222C8D77E1A8</TransactionUrl><YouSave>41 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>2377 Collins Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Cutler Salon</BusinessName><Capability>130</Capability><Category>Other</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>66</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>110</FaceValue><ID>134-B26B785AD8646E05664846706B9AEFC0</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6863/68630528/orig.jpg?53_1299679468000</ImageUrl><Keywords/><Latitude>25.7997356727719</Latitude><Longitude>-80.1274385489523</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-B26B785AD8646E05664846706B9AEFC0&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Cutler Salon - Haircut With Stylist</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-B26B785AD8646E05664846706B9AEFC0</TransactionUrl><YouSave>40 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>444 Brickell Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Michael Carballo's South Beach Bootcamp</BusinessName><Capability>130</Capability><Category>Other</Category><City>Miami</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>45</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>75</FaceValue><ID>134-BD4E0C52A7D0B7876CA10F40DFE31B54</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6860/68604436/orig.jpg?53_1299628080000</ImageUrl><Keywords/><Latitude>25.7690887525678</Latitude><Longitude>-80.1900139823556</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-BD4E0C52A7D0B7876CA10F40DFE31B54&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Michael Carballo's South Beach Bootcamp - Five Group Boot Camp Sessions</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-BD4E0C52A7D0B7876CA10F40DFE31B54</TransactionUrl><YouSave>40 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>2377 Collins Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Cutler Salon</BusinessName><Capability>130</Capability><Category>Other</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>89</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>150</FaceValue><ID>134-DBAF60E42F407BA3F8796A95E09DC50F</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6863/68630528/orig.jpg?53_1299679468000</ImageUrl><Keywords/><Latitude>25.7997356727719</Latitude><Longitude>-80.1274385489523</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-DBAF60E42F407BA3F8796A95E09DC50F&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Cutler Salon - Highlights</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-DBAF60E42F407BA3F8796A95E09DC50F</TransactionUrl><YouSave>41 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>2700 N Miami Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Jimmy'z Kitchen</BusinessName><Capability>130</Capability><Category>Other</Category><City>Miami</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>11</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>18</FaceValue><ID>134-E4D27D8D6D7F82048A279C974F3968F6</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6860/68604107/orig.jpg?53_1299627877000</ImageUrl><Keywords/><Latitude>25.802341690287</Latitude><Longitude>-80.1950815971941</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-E4D27D8D6D7F82048A279C974F3968F6&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Jimmy'z Kitchen - Jimmy'z Lunch</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-E4D27D8D6D7F82048A279C974F3968F6</TransactionUrl><YouSave>39 %</YouSave><ZipCode/></Deal><Deal><Activity>0</Activity><AddedBy/><AdditionalDiscountCouponCode/><AdditionalDiscountCouponEffectiveTime>0001-01-01T00:00:00</AdditionalDiscountCouponEffectiveTime><AdditionalDiscountCouponExpirationTime>0001-01-01T00:00:00</AdditionalDiscountCouponExpirationTime><AdditionalDiscountDealUnit>0</AdditionalDiscountDealUnit><AdditionalDiscountedValue>0</AdditionalDiscountedValue><AddressLine>2377 Collins Ave</AddressLine><Affiliation/><BDescription/><BusinessID/><BusinessName>Cutler Salon</BusinessName><Capability>130</Capability><Category>Other</Category><City>Miami Beach</City><Country/><Currency>1</Currency><DealSource>GiltCity</DealSource><DealType>16</DealType><DealUnit>1</DealUnit><Description/><DiscountedValue>33</DiscountedValue><EffectiveTime>2011-03-09T11:00:00</EffectiveTime><ExpirationTime>2011-03-16T11:00:00</ExpirationTime><FaceValue>65</FaceValue><ID>134-FF67B37B04D1DBC8AE580C31D2FE18E9</ID><IconUrl/><ImageUrl>http://cdn1.gilt.com/images/share/uploads/0000/0000/6863/68630528/orig.jpg?53_1299679468000</ImageUrl><Keywords/><Latitude>25.7997356727719</Latitude><Longitude>-80.1274385489523</Longitude><MoreInfoLink>http://www.thedealmap.com/deal/?dealid=134-FF67B37B04D1DBC8AE580C31D2FE18E9&amp;s=12345&amp;utm_campaign=api</MoreInfoLink><Phone/><State>FL</State><Tags/><Terms/><Title>Cutler Salon - Blowout</Title><TrackingUrl/><TransactionUrl>http://www.thedealmap.com/x/?s=12345&amp;id=134-FF67B37B04D1DBC8AE580C31D2FE18E9</TransactionUrl><YouSave>49 %</YouSave><ZipCode/></Deal></Results><TotalResults>562</TotalResults></Deals>
30
+ http_version: "1.1"
@@ -0,0 +1,26 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+ describe Dealmap::Client do
3
+ context "initialization" do
4
+ it "should raise an ApiKeyMissingError if no API key is given" do
5
+ expect { Dealmap::Client.new(nil) }.to raise_error(Dealmap::ApiKeyMissingError)
6
+ end
7
+ end
8
+
9
+
10
+ context "api" do
11
+ before(:all) do
12
+ api_key="12345"
13
+ @client = Dealmap::Client.new(api_key)
14
+ end
15
+ context "search deals" do
16
+ use_vcr_cassette
17
+ before do
18
+ @results, @total = @client.search_deals(:l => "Miami, FL")
19
+ @deal = @results.first
20
+ end
21
+ specify { @results.size.should == 20 }
22
+ specify { @total.should == 562 }
23
+ specify { @deal.id.should == "5-EE22936BCFB0E2E1C6AE028D3A17928A" }
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,20 @@
1
+ require 'simplecov'
2
+ SimpleCov.start do
3
+ add_group 'Dealmap', 'lib/dealmap'
4
+ add_group 'Specs', 'spec'
5
+ end
6
+
7
+ require File.expand_path('../../lib/dealmap', __FILE__)
8
+ require 'rubygems'
9
+ require 'rspec'
10
+ require 'vcr'
11
+
12
+ VCR.config do |c|
13
+ c.cassette_library_dir = 'spec/cassettes'
14
+ c.stub_with :typhoeus
15
+ c.default_cassette_options = { :record => :new_episodes }
16
+ end
17
+
18
+ RSpec.configure do |c|
19
+ c.extend VCR::RSpec::Macros
20
+ end
metadata ADDED
@@ -0,0 +1,176 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dealmap
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.2
6
+ platform: ruby
7
+ authors:
8
+ - Joshua Deeden
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-03-12 23:00:00 -05:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rake
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: "0.8"
25
+ type: :development
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: "2.5"
36
+ type: :development
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: simplecov
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: "0.4"
47
+ type: :development
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: vcr
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ version: 1.7.0
58
+ type: :development
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: fakeweb
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ type: :development
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: yard
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ version: "0.6"
80
+ type: :development
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: faraday
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: 0.5.7
91
+ type: :runtime
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: typhoeus
95
+ prerelease: false
96
+ requirement: &id008 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 0.2.4
102
+ type: :runtime
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: nokogiri
106
+ prerelease: false
107
+ requirement: &id009 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: "1.4"
113
+ type: :runtime
114
+ version_requirements: *id009
115
+ - !ruby/object:Gem::Dependency
116
+ name: hashie
117
+ prerelease: false
118
+ requirement: &id010 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ~>
122
+ - !ruby/object:Gem::Version
123
+ version: 1.0.0
124
+ type: :runtime
125
+ version_requirements: *id010
126
+ description: A very simple client for the DealMap API
127
+ email:
128
+ - jdeeden@gmail.com
129
+ executables: []
130
+
131
+ extensions: []
132
+
133
+ extra_rdoc_files: []
134
+
135
+ files:
136
+ - .gitignore
137
+ - Gemfile
138
+ - README.md
139
+ - Rakefile
140
+ - dealmap.gemspec
141
+ - lib/dealmap.rb
142
+ - lib/dealmap/version.rb
143
+ - lib/ext/string.rb
144
+ - spec/cassettes/Dealmap_Client/api/search_deals.yml
145
+ - spec/client/client_spec.rb
146
+ - spec/spec_helper.rb
147
+ has_rdoc: true
148
+ homepage: ""
149
+ licenses: []
150
+
151
+ post_install_message:
152
+ rdoc_options: []
153
+
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: "0"
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: "0"
168
+ requirements: []
169
+
170
+ rubyforge_project: dealmap
171
+ rubygems_version: 1.6.2
172
+ signing_key:
173
+ specification_version: 3
174
+ summary: Quick and dirty DealMap API client
175
+ test_files: []
176
+