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 +4 -4
- data/lib/imgurapi/session.rb +1 -1
- data/lib/imgurapi/version.rb +1 -1
- data/spec/imgurapi/session_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fda507412af818f2fc5361b5520902b896fc1f7
|
4
|
+
data.tar.gz: 36c5cd2fa00841257ebde9472290ec00933a1f1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a2fb0ba8987812018a0d8d84c64c8763ab72c29fc998d4a7f4f651cfbc463725f74d4ad637b6fc0f93f4879cdd4b95bed4c54db17384fdc3e68a0701c1a12b4
|
7
|
+
data.tar.gz: 3f994238c9e34e7ea1277ea1a82ae4511a31ddfb172022cbde73d40c14fc144464e5d372212b5edb31b53ff80085f4633a020c41c271bf1f42aa3c8a4e2c6427
|
data/lib/imgurapi/session.rb
CHANGED
@@ -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
|
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]
|
data/lib/imgurapi/version.rb
CHANGED
@@ -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',
|
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
|