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 +4 -4
- data/app/concepts/lockstep/query.rb +1 -2
- data/app/models/lockstep/attachment.rb +9 -2
- data/lib/lockstep_rails/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: 0c3c88ee9aa9177c90d734f4d2c9682587acdeeb0b0ca1a951ca4df44092f2a4
|
4
|
+
data.tar.gz: ccb52d89afff655ae31598a4b9a0d6851bab7a74eb3a86ba003e0bd8c614537b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a321dd8c20045349b5b793efaa32c9ee68229323ba332e432e8bd6243e03c49f361e59dd6fe79d42ed09b6810c7464c98a1bb9a42077decd6daf2ddb988e13a3
|
7
|
+
data.tar.gz: aacd20a3dcb7c23e6742d41e8f999e1c7fe04ffa5fab4ee10f862c1dbfa5b615e31ee44aebe3ff6ae5abfe0f3c10d327f55f2a0438074ede85c0e8df9bb97163
|
@@ -1,5 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class Lockstep::Attachment < Lockstep::ApiRecord
|
2
|
-
self.model_name_uri =
|
3
|
-
self.id_ref =
|
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
|
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.
|
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
|
+
date: 2023-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|