dealmap 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -0
- data/lib/dealmap.rb +2 -2
- data/lib/dealmap/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -49,6 +49,11 @@ Dealmap uses a [`Hashie::Mash`](https://github.com/intridea/hashie) for return v
|
|
49
49
|
|
50
50
|
* Initial version
|
51
51
|
|
52
|
+
### 0.0.4 - March 13, 2011
|
53
|
+
|
54
|
+
* Documentation update
|
55
|
+
|
56
|
+
|
52
57
|
## Under the hood
|
53
58
|
* [`Faraday`](https://github.com/technoweenie/faraday) REST client
|
54
59
|
* [`Typhoeus`](https://github.com/dbalatero/typhoeus) HTTP library
|
data/lib/dealmap.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'typhoeus'
|
2
2
|
require 'nokogiri'
|
3
|
-
require
|
3
|
+
require 'core_ext/string'
|
4
4
|
require 'hashie/mash'
|
5
5
|
require 'faraday'
|
6
6
|
|
@@ -28,7 +28,7 @@ module Dealmap
|
|
28
28
|
# @option options [Fixnum] :si Start index of the deals. Used for paging through the results. Optional. Default value is 0 - which means start from the beginning.
|
29
29
|
# @option options [Fixnum] :ps Page size. Used for paging through the deal results. Optional. Default page size is 20. Maximum number of deals per page is 100.
|
30
30
|
# @option options [Fixnum] :a {http://apiwiki.thedealmap.com/index.php/Center%27d_Activity Center'd Activity}. Used to filter the results based on the type of activity. For example, send 1 for kid-friendly deals and 8 for romantic deals etc.
|
31
|
-
# @option options [
|
31
|
+
# @option options [Fixnum] :c {http://apiwiki.thedealmap.com/index.php/Deal_capability Deal capability}. Used to filter the results based on the deal type. For example, to get daily deals only, send c=16.
|
32
32
|
# @option options [String] :ed Expiration date. Used to filter the deals based on their expiration date. For example to get deals that are expiring soon (say by April 22nd 2010), you send ed=2010-04-22
|
33
33
|
# @return [Array, Fixnum] An array of Hashie::Mash objects representing deals. An integer representing the total number of deals available for retrieval. Note, this value and the size of the results array may differ, as *total* represents all available deals, not only the ones returned in your query.
|
34
34
|
#
|
data/lib/dealmap/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dealmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Joshua Deeden
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-15 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|