qrfy 0.1.3 → 0.1.5

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: 634ff44453b42953d6bea4223c061c0a52607821df7e7dedbfac1e2a0c23910a
4
- data.tar.gz: 8756388a6aace8a06c15a7dc08fac38ca48fb0db4252a5cf9a70bd646102cdaf
3
+ metadata.gz: 49f5cb811626d02a105b6f2140337067a95f2d14ee12f3543643fd45c5c9ac83
4
+ data.tar.gz: ae54ca1dcf584965ccae5c4cf520bef3c5b92a041fc60b3beed0126cb7628cac
5
5
  SHA512:
6
- metadata.gz: ff56fbfac0864ea1df2b26e1c11f89b8f2e024f2609da7baf371881631648974b874e0ba68bcbe46f0222909d3b0d2cd764ea11e2201f87eef845665052d2823
7
- data.tar.gz: 76476f955ea46eab5bdcebbe4be06ee37fcf7526fb3186aea85fe61105874cffe2265e523cc7f541189a5a39d3d481f72c9e47981a4c0265a33dd974d45fcab9
6
+ metadata.gz: 4663f81e82b34656bc12adf775d9f659d2174fc75ee9e6de32b1c12db5c3b1c44100f7b4e517bd40789205ec25b40a256cc74c31c0a84e4884f30bc06d0785f1
7
+ data.tar.gz: 52cc2abbed599a10608246750d9d5a478de8bb1f1c554a0379318265e1bb2e2da2ff36d7f0f42c96efc9e7215bdcc6e76ce2db0b6ddda47757677d808c43901f
data/README.md CHANGED
@@ -68,11 +68,11 @@ folder_id = client.folders.create({ name: "My first folder" })
68
68
 
69
69
  This gem follows the exception error handling. All errors raised by this gem inherits from `Qrfy::Errors::Base` class and belong to the following categories:
70
70
 
71
- * `Qrfy::Errors::RecordInvalid`
72
- * `Qrfy::Errors::Unauthorized`
73
- * `Qrfy::Errors::RecordNotFound`
74
- * `Qrfy::Errors::TooManyRequests`
75
- * `Qrfy::Errors::InternalServerError`
71
+ * Qrfy::Errors::RecordInvalid
72
+ * Qrfy::Errors::Unauthorized
73
+ * Qrfy::Errors::RecordNotFound
74
+ * Qrfy::Errors::TooManyRequests
75
+ * Qrfy::Errors::InternalServerError
76
76
 
77
77
  ## Development
78
78
 
@@ -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
 
data/lib/qrfy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qrfy
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.5"
5
5
  end
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.3
4
+ version: 0.1.5
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-22 00:00:00.000000000 Z
11
+ date: 2024-08-28 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.3
92
- changelog_uri: https://github.com/w-zygmuntowicz/qrfy/releases/tag/v0.1.3
91
+ source_code_uri: https://github.com/w-zygmuntowicz/qrfy/tree/v0.1.5
92
+ changelog_uri: https://github.com/w-zygmuntowicz/qrfy/releases/tag/v0.1.5
93
93
  post_install_message:
94
94
  rdoc_options: []
95
95
  require_paths:
@@ -98,14 +98,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 2.7.8
101
+ version: 2.7.0
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.5.6
108
+ rubygems_version: 3.5.5
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Wrapper for qrfy.com API.