souls 1.20.13 → 1.21.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e639aa175360aa6f57910310bbc58207ad3bc09cf206553691e3f083fdeb38d1
|
4
|
+
data.tar.gz: e9cc51c8898575c7770075953e1b2b96252f22cfb66c5bc15b3d88d0b5d49fa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 401cb1d21baff127d966965e55e0ee748e6641353697adfb34076e2872fa5044a9aaf0bb04d774870839323f1f09fccdf83aa8cd8c74847a37f43da17ad51d1d
|
7
|
+
data.tar.gz: 166a6df0a30dc04fe2daa0de866bef1b8fdfa30eafb2ef93d0f387ac2c13d53616ea03b005392ac142a2a75953f11301df68af0d497a5f7595a2595487516923
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module SOULs
|
2
2
|
class SOULsMutation < GraphQL::Schema::RelayClassicMutation
|
3
|
-
def
|
3
|
+
def souls_post(url:, payload: {}, content_type: "application/json")
|
4
4
|
response = Faraday.post(url, payload.to_json, "Content-Type": content_type)
|
5
5
|
response.body
|
6
6
|
end
|
@@ -5,12 +5,12 @@ module SOULs
|
|
5
5
|
attr_accessor :schedule
|
6
6
|
end
|
7
7
|
|
8
|
-
def
|
8
|
+
def souls_post(url:, payload: {}, content_type: "application/json")
|
9
9
|
response = Faraday.post(url, payload.to_json, "Content-Type": content_type)
|
10
10
|
response.body
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def souls_check_user_permissions(user, obj, method)
|
14
14
|
raise(StandardError, "Invalid or Missing Token") unless user
|
15
15
|
|
16
16
|
policy_class = obj.class.name + "Policy"
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.21.0
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.21.0
|