mitake_api 0.0.7 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mitake_api/client.rb +3 -1
- data/lib/mitake_api/message.rb +1 -1
- data/lib/mitake_api/sms_provider.rb +1 -1
- data/lib/mitake_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5fbf3400b6875274c994d4577ba3c06feda91edf8f954f2c6aea293b36b6fff
|
4
|
+
data.tar.gz: 67197ddd5ca48b73616f53ded5e93c3722198d0439ea5b152aa6080838f5a262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 659db976dba4e5541777173d1e00d0acd66d0c05d3f3071c619c0e2fe6656ec66bcb02ff1a4faf269dc18ba7f2ab531a1807bcf4de77420754d7495ec2ed4a69
|
7
|
+
data.tar.gz: 471ccab8cc9ab1bd203f76a1f3a0e3b0cc7281d817caf2eae827a7b68c1e8b30e3f14caca9c97ada0a5b27c5639498b85a031271e702924c13422ca110e4b933
|
data/lib/mitake_api/client.rb
CHANGED
@@ -9,6 +9,7 @@ module MitakeApi
|
|
9
9
|
@username = settings[:username]
|
10
10
|
@password = settings[:password]
|
11
11
|
@charset = settings[:charset] || 'UTF8'
|
12
|
+
@callback_url = settings[:callback_url]
|
12
13
|
@url = "https://#{settings[:url]&.gsub(%r{https?://}, '')}"
|
13
14
|
end
|
14
15
|
|
@@ -33,7 +34,8 @@ module MitakeApi
|
|
33
34
|
def credentials
|
34
35
|
{
|
35
36
|
username: @username,
|
36
|
-
password: @password
|
37
|
+
password: @password,
|
38
|
+
response: @callback_url
|
37
39
|
}
|
38
40
|
end
|
39
41
|
end
|
data/lib/mitake_api/message.rb
CHANGED
@@ -12,7 +12,7 @@ module MitakeApi
|
|
12
12
|
|
13
13
|
def deliver!(message)
|
14
14
|
@message = message
|
15
|
-
client = Client.new(url: @url, username: @username, password: @password)
|
15
|
+
client = Client.new(url: @url, username: @username, password: @password, callback_url: @callback_url)
|
16
16
|
client.send_message(message)
|
17
17
|
end
|
18
18
|
end
|
data/lib/mitake_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mitake_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arthur Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|