giphy 1.1.0 → 1.1.1

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: 37034eeefabd1bbeb9bc706ed7d6ddf33b647ed3
4
- data.tar.gz: 99a9d9fe92d92c545b1d584e6fd2c06c22e0782d
3
+ metadata.gz: 985230cab97f32c88f2951f8028b6464c442f0a8
4
+ data.tar.gz: 9cc2ebd22ba089407fc8a888117cc6cabd20bbfe
5
5
  SHA512:
6
- metadata.gz: 53f9d90a4f775e8d8e9e846a11f179d86e94a8230206939f74daba6b3e7794c42031b6f1562bb6de767a39185c517b0fa9237f943dd21f034487a496ced9e5f2
7
- data.tar.gz: 8cb649fad8848b1deccb9cc4d984f6581e8950c8271da61a2ced99341aadf428ce62ae8af4019cfa7810880a44f7d3fd6b07440b6913b74756502750b61c9113
6
+ metadata.gz: e1f6f86619faa66ca59d606f368203d37903e96dcfa91018bc09b47da0cbaa56bc3fac1eba9d5ac1cf0b76e9136ef00fb29416455519f51655e5399f0a278907
7
+ data.tar.gz: f4cab1159e1a27b8cc2502228ca09d8f951d4698d3e8136ba2e45539505022450b18bcd2330a097e273bb577f7db4526549814917f4ae7953eb5a349ee361c8b
@@ -30,8 +30,8 @@ module Giphy
30
30
  favorite_gif.new(result)
31
31
  end
32
32
 
33
- def favorites
34
- result = client.favorites
33
+ def favorites(username, options)
34
+ result = client.favorites(username, options)
35
35
  favorite_gif.build_batch_from(result)
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  module Giphy
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -62,9 +62,10 @@ describe Giphy::Search do
62
62
 
63
63
  describe "#favorites" do
64
64
  it "returns a batch of FavoriteGifs from the client result" do
65
- client.stub(favorites: client_result)
65
+ username = 'absurdnoise'
66
+ client.stub(:favorites).with(username, options).and_return(client_result)
66
67
  Giphy::FavoriteGif.stub(:build_batch_from).with(client_result).and_return(response)
67
- expect(subject.favorites).to eq response
68
+ expect(subject.favorites(username, options)).to eq response
68
69
  end
69
70
  end
70
71
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giphy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Sogamoso