qrfy 0.1.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 634ff44453b42953d6bea4223c061c0a52607821df7e7dedbfac1e2a0c23910a
4
- data.tar.gz: 8756388a6aace8a06c15a7dc08fac38ca48fb0db4252a5cf9a70bd646102cdaf
3
+ metadata.gz: 985a599c89b54c8fd265920861db773663c88a91bbf45b6871069ab0961a1a34
4
+ data.tar.gz: acb83f8b2948e389cab4742a6ed882834401dae511fce129c67b60b2c055c620
5
5
  SHA512:
6
- metadata.gz: ff56fbfac0864ea1df2b26e1c11f89b8f2e024f2609da7baf371881631648974b874e0ba68bcbe46f0222909d3b0d2cd764ea11e2201f87eef845665052d2823
7
- data.tar.gz: 76476f955ea46eab5bdcebbe4be06ee37fcf7526fb3186aea85fe61105874cffe2265e523cc7f541189a5a39d3d481f72c9e47981a4c0265a33dd974d45fcab9
6
+ metadata.gz: 79d7fe6fd9b56d81d1c9d421228762bcbc4a32588d13147ca9e029db6c31fc6b4ea13fc92773fee0ab511608ef4103967663d0f2aca337dd4d82052a26a17642
7
+ data.tar.gz: a1c8ec20d7f67bcb1dcbb87a24d1a2f6704448e936785d6b0283b5bc82ecff1f441bd7596913ecb27940e181a09363a3906ab657d91ff148250763130cb5813b
@@ -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.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Zygmuntowicz
@@ -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.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: