invofox-api-ruby 0.1.5 → 0.1.6

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: 1b55f4b8789b73ae12c82c5959381d2dc5c3b9bc138d73b5e847e9140ff514c4
4
- data.tar.gz: 8ef148c97df52929f954811a7faf5bcc69e2d32e329f81fa9f734030e729ebbc
3
+ metadata.gz: '09b93437ed2e9c8b33197deb7a12532679f752c68f3e76334e1673d75dbde952'
4
+ data.tar.gz: af0b1f44118d7c75218190913a2d48a25f8ea697240b7dff505dde5e489e5285
5
5
  SHA512:
6
- metadata.gz: cc40d27baa239bfa4c5206b22f63aee504388d9108ec774e3cbcc5053080516cab363d034858246173145d0afe9343a6732b5481763ae8a05a4a597adde559a8
7
- data.tar.gz: ec9d940fbac909d5e3394ff15e99a6c5afb02b1f19c17d98fe4fd59a2b53df6fa11799522b8bb0068600fc4fd7d184aad0b0330e624e6631493ebc5df2c68693
6
+ metadata.gz: 11754d4c55fcaf3538f80f4d45e59eed2677019441df7fd9a94764d1ee4fae4f31ae1e5c4a53cc707bc318baa045dd2d0fb6141aab5fb0b3b1bc30ce589ada7f
7
+ data.tar.gz: dc6ae033bf91b65aea2fdf280c295a34e3a90ffc78ee440c5cd61350e9b88a0e04bf94c1ef36291d36b82940275e14ae323593be11b1eb5f17c240b2b67016e3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invofox-api-ruby (0.1.4)
4
+ invofox-api-ruby (0.1.6)
5
5
  rest-client (~> 2.0.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -33,6 +33,7 @@ You can set a `logger` as well.
33
33
  Changelog
34
34
  ---------
35
35
 
36
+ * v.0.1.5 Added support for document's update_public_state endpoint.
36
37
  * v.0.1.5 Fixes an issue sending booleans in POST and PUT requests.
37
38
  * v.0.1.4 Ensure using JSON as content type.
38
39
  * v.0.1.3 Increase timeout to 5m.
@@ -64,6 +64,19 @@ class Invofox::Document < Invofox::Resource
64
64
  end
65
65
  end
66
66
 
67
+ def update_public_state(id:, public_state:)
68
+ Invofox.api_call(
69
+ clazz: self,
70
+ method: :put,
71
+ path: "/documents/#{id}/publicState",
72
+ params: {
73
+ publicState: public_state
74
+ }
75
+ ) do |response_body|
76
+ response_body['result']
77
+ end
78
+ end
79
+
67
80
  def update_type(id:, type:)
68
81
  Invofox.api_call(
69
82
  clazz: self,
@@ -1,3 +1,3 @@
1
1
  module Invofox
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invofox-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Bellonch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
11
+ date: 2024-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client