songkick-transport 1.10.0 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd1492f22e6d92c333c9020af25be71d79ed1e74
4
- data.tar.gz: 735d399c0e155a6fe504c66c553b862e1ed7b3f7
3
+ metadata.gz: 0fcdee184d275b052c905e2ac432d44fd9537119
4
+ data.tar.gz: a5734e06ba187e5732933e0317ec250ba0e1c19c
5
5
  SHA512:
6
- metadata.gz: cbc9a6317cf7da6da37d6273be86dc23ea8974b5589b833414fe186028b4cccb4f4cb29ef70ab605f00ed20c57b6351efb1be7b00ad10dafe1eb9960c223685b
7
- data.tar.gz: e1ca03fc8ee17b8b547785d802488597beca3af8afe4c0d9a0c7847455cb44f428b268501cfab0f3ec43127bf6450a05ea53ab103aa0dd3d366521d13d334924
6
+ metadata.gz: f7b4bdef2b4a12f85627e396255d294b601af05dc74feec90fbc33d1ca21928c8d6ff0f8f3061b8eac92cff7a6058528d4946d5754143923e2a30351d51f181c
7
+ data.tar.gz: 04418c68863395f6ee958a34e13fd45b473423765207f186d9a6244969f85a78fa07f404e6249dc9c95ca7890edcceba63b68f251785caa4ad1c86f105f9be47
@@ -107,8 +107,11 @@ module Songkick
107
107
 
108
108
  def http
109
109
  r = (@http ||= self.class.new_transport)
110
- r.with_headers(self.class.get_with_headers) if !self.class.get_with_headers.empty?
111
- r
110
+ if self.class.get_with_headers.any?
111
+ r.with_headers(self.class.get_with_headers)
112
+ else
113
+ r
114
+ end
112
115
  end
113
116
 
114
117
  def stub_transport(http)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: songkick-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lucraft
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-02-16 00:00:00.000000000 Z
17
+ date: 2016-02-17 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: multipart-post