lockstep_rails 0.3.74 → 0.3.76

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: 911c3903517344a7853c2bfb5c23857f4be16f6d8a6a96064ec6d5567cb5dfa3
4
- data.tar.gz: 32831226db82f62df9f1943436e22204e793d221fd622f7df7d5d3bb4c72f8aa
3
+ metadata.gz: 0c3c88ee9aa9177c90d734f4d2c9682587acdeeb0b0ca1a951ca4df44092f2a4
4
+ data.tar.gz: ccb52d89afff655ae31598a4b9a0d6851bab7a74eb3a86ba003e0bd8c614537b
5
5
  SHA512:
6
- metadata.gz: 8e13d83274513f7b1939243c66062f305fae374a2c6c1ab9bd6b113fabdaca6de71e1cd8fb7c82040e63b818c23c2aa0444210b79848d4b02f7086d8a270a2c7
7
- data.tar.gz: 26cc1f14b52406d0a3630702539b6c8a9e4eb1ecdf8b0e957996fe83c755fe92a281c22a81ed81bc7b1e48eea34e2f0cce611aa89a382d3562c4380f1fab3d90
6
+ metadata.gz: a321dd8c20045349b5b793efaa32c9ee68229323ba332e432e8bd6243e03c49f361e59dd6fe79d42ed09b6810c7464c98a1bb9a42077decd6daf2ddb988e13a3
7
+ data.tar.gz: aacd20a3dcb7c23e6742d41e8f999e1c7fe04ffa5fab4ee10f862c1dbfa5b615e31ee44aebe3ff6ae5abfe0f3c10d327f55f2a0438074ede85c0e8df9bb97163
@@ -337,8 +337,7 @@ class Lockstep::Query
337
337
  end
338
338
 
339
339
  def count
340
- criteria[:count] = true
341
- execute
340
+ with_clone { criteria[:count] = true }.execute
342
341
  end
343
342
 
344
343
  # Find a Lockstep::ApiRecord object by ID
@@ -1,5 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Lockstep::Attachment < Lockstep::ApiRecord
2
- self.model_name_uri = "v1/Attachments"
3
- self.id_ref = "attachment_id"
4
+ self.model_name_uri = 'v1/Attachments'
5
+ self.id_ref = 'attachment_id'
4
6
  load_schema(Schema::Attachment)
7
+
8
+ def download_url
9
+ response = resource.get "#{id}/download-url"
10
+ JSON.parse(response.body)['downloadLink']
11
+ end
5
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LockstepRails
4
- VERSION = '0.3.74'
4
+ VERSION = '0.3.76'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.74
4
+ version: 0.3.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-24 00:00:00.000000000 Z
11
+ date: 2023-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails