giphyrb 0.2.1 → 0.2.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/giphyrb.rb +1 -1
  3. data/lib/response.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28476508077c9a3104e73b7950cff9bb157651a9
4
- data.tar.gz: b461c649458865a3bc69f7c3aa0485ddc474854a
3
+ metadata.gz: 7a520135b83c55232493f8b857923b1674e18026
4
+ data.tar.gz: dcc3ff6248c8abad6269280d7601ca0a8075ad22
5
5
  SHA512:
6
- metadata.gz: '09ccf6f52f57cefd611a4158d97101866b5bc1aa8349e1026607f68dea180d41fbbf022c4621ed98be2928b74e2bf5bc000df6cc3382857ac08e8a67be5c9630'
7
- data.tar.gz: 21400e4c36e5b4e3772e1272846147e7e76fa07673ebaed5097815496eaf3fc451b4219e48a857621ec49d0edfdde91f5a26cd7f8e393087774eba29edb94115
6
+ metadata.gz: f6a611b0f5120fc426bd0176465770e55651de1ef093409faac90841be1b8ed3ff8a9c0397c2d3fc43c68042c9e5479087f833ccaed7e572111066cd907ba0e3
7
+ data.tar.gz: 28b3cf0d675aa49d771028399dfd70fae3a54e224d74b92c66886e087d3d473e70660bc829cf74296c3a639d5bd9099c4a332c9951d39462d2f4d758112bcc46
data/lib/giphyrb.rb CHANGED
@@ -12,7 +12,7 @@ module GiphyRB
12
12
 
13
13
  ENDPOINT = 'http://api.giphy.com'
14
14
  API_VERSION = 'v1'
15
- VERSION = '0.2.1'
15
+ VERSION = '0.2.2'
16
16
  DESCRIPTION ='A simple Giphy API Wrapper supporting Stickers API and Stickers packs (untested)'
17
17
 
18
18
  # Initialize the client
data/lib/response.rb CHANGED
@@ -20,7 +20,7 @@ module GiphyRB
20
20
  end
21
21
 
22
22
  def generate_gifs(gifs)
23
- gifs = [].push(gifs) unless gifs['type'] == nil
23
+ gifs = [].push(gifs) unless gifs.class == Array
24
24
  @gifs = []
25
25
  gifs.each do |gif|
26
26
  @gifs.push Parts::Gif.new(gif)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giphyrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Whaxion
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-11 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple Giphy API Wrapper supporting Stickers API and Stickers packs
14
14
  (untested)