groupon_api 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dc02f3c034cda3d2345c54e370b34ca41336c08
4
- data.tar.gz: 67a41e735f33bb84458721443c54266e29ce414f
3
+ metadata.gz: d5b751c7d9af33598617ccc0a882fbee366614ea
4
+ data.tar.gz: 4ca23d3334015cafeb8044f5fb6c851209e175b9
5
5
  SHA512:
6
- metadata.gz: ab4d4dd7254dc0c4944bc99c5a68887bacacd4cb83d99eb2cd1c8fc37d8a259e88a5676160aeca83d448228c65e99d22ecd38cba1fb13baa1a14a806e86e9cc9
7
- data.tar.gz: ff0116e4de614c0415ed0cd91815a76280fe5d0adcb0a61742c986b597c7400c74cb4aeffe1f5fbbbc5ea2205e60fc6f989344b396bdbd191f48ac181a868061
6
+ metadata.gz: a1ebb42c332ba1f4a15886f9261664a4af48a3bef9395a8214e6dbc678439f27322921b187aeecff89a4e7393e01cc0a826874d9ee05df6d1e829daa41fa23ea
7
+ data.tar.gz: d25fc1d11c3b9fee56438f4fa4723178f4daf55b7c0da4e2a0f1e19384f93485b39aa4eed557fd646d01d345104734b364b26c464017fabff3009c67be1c732c
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # GrouponApi
2
+ [![Gem Version](https://badge.fury.io/rb/groupon_api.svg)](http://badge.fury.io/rb/groupon_api)
2
3
 
3
4
  Groupon API gem
4
5
 
@@ -3,8 +3,8 @@ module GrouponApi
3
3
  raise ::ArgumentError, 'param :ts_token cannot be nil' if GrouponApi.config.ts_token.nil?
4
4
  raise ::ArgumentError, 'param :ts_token must match /US_AFF_0_\d+_212556_0/' unless GrouponApi.config.ts_token.match(API_KEY_FORMAT)
5
5
 
6
- params.merge!(GrouponApi.config.deals)
7
6
  params.merge!(tsToken: GrouponApi.config.ts_token)
7
+ params.merge!(GrouponApi.config.deals) if GrouponApi.config.deals.kind_of?(Hash)
8
8
 
9
9
  GrouponApi::Request.call('deals', params)
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module GrouponApi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupon_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Liff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport