imgurapi 3.2.1 → 3.2.2

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: dc8dabbb161b89c8c24be36fe0ce9229bbf95947
4
- data.tar.gz: 8f9d4b79aac9514f49e6d3c9ff29a0a2e519091f
3
+ metadata.gz: 3fda507412af818f2fc5361b5520902b896fc1f7
4
+ data.tar.gz: 36c5cd2fa00841257ebde9472290ec00933a1f1b
5
5
  SHA512:
6
- metadata.gz: 73c32e9b7fda8bd7b13c9601ffa455c9fe135b11644d1f775a7a9c812c45f49856e0106c4c932a1c044906215a68458ab97753e683b11ad1ca93b40951004b80
7
- data.tar.gz: ffbb1013112ac0e84f3f588101a07d0efe08ddef304be8f7cc8426f2be6049b9045cd5c14fd5947a357ec5e1001a509b01142d73c847b2767f585cef1d08a613
6
+ metadata.gz: 9a2fb0ba8987812018a0d8d84c64c8763ab72c29fc998d4a7f4f651cfbc463725f74d4ad637b6fc0f93f4879cdd4b95bed4c54db17384fdc3e68a0701c1a12b4
7
+ data.tar.gz: 3f994238c9e34e7ea1277ea1a82ae4511a31ddfb172022cbde73d40c14fc144464e5d372212b5edb31b53ff80085f4633a020c41c271bf1f42aa3c8a4e2c6427
@@ -6,7 +6,7 @@ module Imgurapi
6
6
  # access_token is optional
7
7
  def initialize(options)
8
8
  required_arguments = %i(client_id client_secret refresh_token)
9
- raise ArgumentError if required_arguments & options.keys != required_arguments
9
+ raise ArgumentError unless required_arguments.all? { |key| options.keys.include? key }
10
10
 
11
11
  @client_id = options[:client_id]
12
12
  @client_secret = options[:client_secret]
@@ -1,5 +1,5 @@
1
1
  module Imgurapi
2
2
 
3
- VERSION = '3.2.1'
3
+ VERSION = '3.2.2'
4
4
 
5
5
  end
@@ -13,7 +13,7 @@ describe Imgurapi::Session do
13
13
  context 'correct credentials' do
14
14
  it do
15
15
  expect(
16
- described_class.new(client_id: 'ID', client_secret: 'SECRET', refresh_token: 'TOKEN')
16
+ described_class.new(client_id: 'ID', refresh_token: 'TOKEN', client_secret: 'SECRET',)
17
17
  ).to be_an_instance_of described_class
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imgurapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Cruz Horts