mobile_workflow 0.6.21 → 0.6.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 974cb70825d3d8b73af77e17adaedf222d6e67e0b0940c0d7158dac1d3c12c3e
4
- data.tar.gz: 35588fbd42ae9dacf7e0e0162df48d7442126c7e874efc14fa1fd440b7989dfb
3
+ metadata.gz: 15803a733ac27c65f4abddf88dce1147aca5c2ca75b5c783c0e1a75f242755c9
4
+ data.tar.gz: ef3d92ad7e2a184bb2982b14d6c882e9145e5ed91ba6cbf29af655db156b89c3
5
5
  SHA512:
6
- metadata.gz: b54532ff2c16360d7ec9b9bdd8e5b0fe22b793a41cad4c090a447c35c11f961949ab948c78afb89063eccc9c6f5622abc8db42812ee096734b9235916f45c537
7
- data.tar.gz: 67d3a4b2889644571377b9bd1ef69a56ce5e0bc577e053cdd2f5915c877163632fd4b27354c8182af26e26e729d3de73d9bc47c1b165aee9381ae3d7d097b019
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"].collect do |binary|
10
- extension = binary["mimetype"].split('/')[1] # i.e. image/jpg --> image, video/mp4 --> video
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}/#{binary["identifier"]}.#{extension}"),
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?
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.6.21'
2
+ VERSION = '0.6.22'
3
3
  RUBY_VERSION = '2.7.2'
4
4
  RAILS_VERSION = '6.1.0'
5
5
  end
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.21
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-06 00:00:00.000000000 Z
11
+ date: 2021-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails