qrfy 0.1.2 → 0.1.4
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 +4 -4
- data/lib/qrfy/resources/qrs.rb +11 -1
- data/lib/qrfy/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 985a599c89b54c8fd265920861db773663c88a91bbf45b6871069ab0961a1a34
|
4
|
+
data.tar.gz: acb83f8b2948e389cab4742a6ed882834401dae511fce129c67b60b2c055c620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d7fe6fd9b56d81d1c9d421228762bcbc4a32588d13147ca9e029db6c31fc6b4ea13fc92773fee0ab511608ef4103967663d0f2aca337dd4d82052a26a17642
|
7
|
+
data.tar.gz: a1c8ec20d7f67bcb1dcbb87a24d1a2f6704448e936785d6b0283b5bc82ecff1f441bd7596913ecb27940e181a09363a3906ab657d91ff148250763130cb5813b
|
data/lib/qrfy/resources/qrs.rb
CHANGED
@@ -9,11 +9,15 @@ module Qrfy
|
|
9
9
|
# A CRUD interface for the actual Qr API calls.
|
10
10
|
class Qrs < Base
|
11
11
|
def batch_delete(ids:)
|
12
|
-
post_request("qrs/batch-delete", body: { ids: ids })
|
12
|
+
post_request("qrs/batch-delete", body: { ids: ids.map(&:to_i) })
|
13
13
|
|
14
14
|
true
|
15
15
|
end
|
16
16
|
|
17
|
+
def delete(id)
|
18
|
+
batch_delete(ids: array_wrap(id))
|
19
|
+
end
|
20
|
+
|
17
21
|
def create(qrs, style: nil, folder_id: nil)
|
18
22
|
qrs = array_wrap(qrs)
|
19
23
|
|
@@ -41,6 +45,12 @@ module Qrfy
|
|
41
45
|
|
42
46
|
response.body
|
43
47
|
end
|
48
|
+
|
49
|
+
def update(id, params)
|
50
|
+
response = put_request("qrs/#{id}", body: params)
|
51
|
+
|
52
|
+
response.body["id"]
|
53
|
+
end
|
44
54
|
end
|
45
55
|
end
|
46
56
|
end
|
data/lib/qrfy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qrfy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wojciech Zygmuntowicz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -88,8 +88,8 @@ licenses:
|
|
88
88
|
- MIT
|
89
89
|
metadata:
|
90
90
|
bug_tracker_uri: https://github.com/w-zygmuntowicz/qrfy/issues
|
91
|
-
source_code_uri: https://github.com/w-zygmuntowicz/qrfy/tree/v0.1.
|
92
|
-
changelog_uri: https://github.com/w-zygmuntowicz/qrfy/releases/tag/v0.1.
|
91
|
+
source_code_uri: https://github.com/w-zygmuntowicz/qrfy/tree/v0.1.4
|
92
|
+
changelog_uri: https://github.com/w-zygmuntowicz/qrfy/releases/tag/v0.1.4
|
93
93
|
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.5.6
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Wrapper for qrfy.com API.
|