files.com 1.1.591 → 1.1.592

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: d8ca6540e4b3def2c14e408668ce2f7dde2b49edcc0ba9bce630b03e51f6261f
4
- data.tar.gz: d0ebbb323ec754b283fe82449a83ed7555cb5e2919d18512f8388c25c40608e8
3
+ metadata.gz: c5f334b518c2ee45abd04383728cedb8da4ed23a5942b03de5577b130c7f0d91
4
+ data.tar.gz: 14f445bc4eec4afad1cd270fa8df89a134ab819b782a9b474f3f6fc36e5c942f
5
5
  SHA512:
6
- metadata.gz: 2a383c3eb911b443e5217a9c8081568f8631a341ff3abd153bf2ed981ade13ffd72cce6db117a37d64192328c1ae9a8c97000e2389a37939f6087138e5e7ffab
7
- data.tar.gz: ee5bd26df86c3b68bb7aa41efc3bfb908fbfd2100b9d04d6389ff3033f42f2b381938bdced758e550cd16839d090df899524237caa293555d28cf428a82d7003
6
+ metadata.gz: 20aa0826c0bbcaf376a5eb31a722f0e07aa79b950a8317687c5c0451465ca5b63200058d0860efb1879e5de25139d6e03a483b8652f4c1d031d199509a1386d2
7
+ data.tar.gz: e9496dc4780b575e8e0003fb865ae5e72058d504fa6fcfedad4392ea2b12af182cd1e0f0ddb647f2064fd943c29d4b155b002d64e052e86ec9620195477f4482
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.591
1
+ 1.1.592
data/docs/style.md CHANGED
@@ -7,6 +7,7 @@
7
7
  "id": 1,
8
8
  "path": "example",
9
9
  "logo": "https://mysite.files.com/...",
10
+ "logo_click_href": "https://www.example.com",
10
11
  "thumbnail": {
11
12
  "name": "My logo",
12
13
  "uri": "https://mysite.files.com/.../my_image.png"
@@ -17,8 +18,9 @@
17
18
  * `id` (int64): Style ID
18
19
  * `path` (string): Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
19
20
  * `logo` (Image): Logo
21
+ * `logo_click_href` (string): URL to open when a public visitor clicks the logo
20
22
  * `thumbnail` (Image): Logo thumbnail
21
- * `file` (file): Logo for custom branding.
23
+ * `file` (file): Logo for custom branding. Required when creating a new style.
22
24
 
23
25
 
24
26
  ---
@@ -40,14 +42,15 @@ Files::Style.find(path)
40
42
 
41
43
  ```
42
44
  Files::Style.update(path,
43
- file: "file"
45
+ logo_click_href: "https://www.example.com"
44
46
  )
45
47
  ```
46
48
 
47
49
  ### Parameters
48
50
 
49
51
  * `path` (string): Required - Style path.
50
- * `file` (file): Required - Logo for custom branding.
52
+ * `file` (file): Logo for custom branding. Required when creating a new style.
53
+ * `logo_click_href` (string): URL to open when a public visitor clicks the logo.
51
54
 
52
55
 
53
56
  ---
@@ -71,14 +74,15 @@ Files::Style.delete(path)
71
74
  style = Files::Style.find(path)
72
75
 
73
76
  style.update(
74
- file: "file"
77
+ logo_click_href: "https://www.example.com"
75
78
  )
76
79
  ```
77
80
 
78
81
  ### Parameters
79
82
 
80
83
  * `path` (string): Required - Style path.
81
- * `file` (file): Required - Logo for custom branding.
84
+ * `file` (file): Logo for custom branding. Required when creating a new style.
85
+ * `logo_click_href` (string): URL to open when a public visitor clicks the logo.
82
86
 
83
87
 
84
88
  ---
@@ -36,6 +36,15 @@ module Files
36
36
  @attributes[:logo] = value
37
37
  end
38
38
 
39
+ # string - URL to open when a public visitor clicks the logo
40
+ def logo_click_href
41
+ @attributes[:logo_click_href]
42
+ end
43
+
44
+ def logo_click_href=(value)
45
+ @attributes[:logo_click_href] = value
46
+ end
47
+
39
48
  # Image - Logo thumbnail
40
49
  def thumbnail
41
50
  @attributes[:thumbnail]
@@ -45,7 +54,7 @@ module Files
45
54
  @attributes[:thumbnail] = value
46
55
  end
47
56
 
48
- # file - Logo for custom branding.
57
+ # file - Logo for custom branding. Required when creating a new style.
49
58
  def file
50
59
  @attributes[:file]
51
60
  end
@@ -55,14 +64,15 @@ module Files
55
64
  end
56
65
 
57
66
  # Parameters:
58
- # file (required) - file - Logo for custom branding.
67
+ # file - file - Logo for custom branding. Required when creating a new style.
68
+ # logo_click_href - string - URL to open when a public visitor clicks the logo.
59
69
  def update(params = {})
60
70
  params ||= {}
61
71
  params[:path] = @attributes[:path]
62
72
  raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
63
73
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
74
+ raise InvalidParameterError.new("Bad parameter: logo_click_href must be an String") if params[:logo_click_href] and !params[:logo_click_href].is_a?(String)
64
75
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
65
- raise MissingParameterError.new("Parameter missing: file") unless params[:file]
66
76
 
67
77
  Api.send_request("/styles/#{@attributes[:path]}", :patch, params, @options)
68
78
  end
@@ -105,13 +115,14 @@ module Files
105
115
  end
106
116
 
107
117
  # Parameters:
108
- # file (required) - file - Logo for custom branding.
118
+ # file - file - Logo for custom branding. Required when creating a new style.
119
+ # logo_click_href - string - URL to open when a public visitor clicks the logo.
109
120
  def self.update(path, params = {}, options = {})
110
121
  params ||= {}
111
122
  params[:path] = path
112
123
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
124
+ raise InvalidParameterError.new("Bad parameter: logo_click_href must be an String") if params[:logo_click_href] and !params[:logo_click_href].is_a?(String)
113
125
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
114
- raise MissingParameterError.new("Parameter missing: file") unless params[:file]
115
126
 
116
127
  response, options = Api.send_request("/styles/#{params[:path]}", :patch, params, options)
117
128
  Style.new(response.data, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.591"
4
+ VERSION = "1.1.592"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.591
4
+ version: 1.1.592
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-01 00:00:00.000000000 Z
11
+ date: 2026-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable