mobile_workflow 0.6.21 → 0.6.22
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: 15803a733ac27c65f4abddf88dce1147aca5c2ca75b5c783c0e1a75f242755c9
|
4
|
+
data.tar.gz: ef3d92ad7e2a184bb2982b14d6c882e9145e5ed91ba6cbf29af655db156b89c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abdfd2cf2f74eaff5eccbac2818d1e19cef70d2a9d300e924e72bfaddddcfee4bc403daa6f48fbe931115268978651951f492ee501f0d3645847dccf7e378c54
|
7
|
+
data.tar.gz: 33e6c55c6da66aea09bcc17741e417c1bd6c2a4e213572736db4e7e84f86b5d09cb79b760a475a6322524d3cee1980d29a7f979af6c9e2bce90aada3ccab44fc
|
@@ -6,12 +6,13 @@ module MobileWorkflow
|
|
6
6
|
def binary_urls(object)
|
7
7
|
return unless params["binaries"]
|
8
8
|
|
9
|
-
params["binaries"].
|
10
|
-
|
9
|
+
params["binaries"].map do |binary|
|
10
|
+
object_attribute = binary["identifier"]
|
11
|
+
extension = binary["mimetype"].split('/')[1] # i.e. image/jpg --> jpg, video/mp4 --> mp4
|
11
12
|
|
12
13
|
{
|
13
14
|
"identifier" => binary["identifier"],
|
14
|
-
"url" => presigned_url("#{object.class.name.underscore}/#{object.id}/#{
|
15
|
+
"url" => presigned_url("#{object.class.name.underscore}/#{object.id}/#{object_attribute}.#{extension}"),
|
15
16
|
"method" => "PUT"
|
16
17
|
}
|
17
18
|
end
|
@@ -52,6 +52,9 @@ module MobileWorkflow
|
|
52
52
|
def generate_models
|
53
53
|
say "Loading OpenAPI Spec: #{open_api_spec_path}"
|
54
54
|
say "Generating models"
|
55
|
+
|
56
|
+
copy_file("app/models/application_record.rb")
|
57
|
+
|
55
58
|
model_name_to_properties.each_pair do |model_name, model_properties|
|
56
59
|
|
57
60
|
if doorkeeper_oauth?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile_workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|