autorender 0.2.0 → 0.2.1

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: 426e4be998a9a2f5390f49a44722ffa905009c5c9109f8b2bb562453041c2ad8
4
- data.tar.gz: 4a4831689e92143065e9ff65c952a89dc42d4b781078f63b00f0c4f845a89f3c
3
+ metadata.gz: fc9441f36a45b932be9e8caa0a0a3f12580420ad68b27d3c64c9abb3d791498f
4
+ data.tar.gz: 2a937fb734038ed639845493215a96352f22b4575c981b582bda934bff1ac3a7
5
5
  SHA512:
6
- metadata.gz: fc773a3ffa3c1acc1dd37b32b5ce76ff1777bf56323e9100e51db56f78d0ed99480eb55fea33ab3d7f00efa3b278f0612808b31050edb1be93f8f8c58c584c94
7
- data.tar.gz: c07bdacddf2a5212e06639ab93343d81a11105f9a540987db2c60988777af47fbbef058bbebfa5704bb2522534108d2c01ae1d8b5a8c40bce54fb225b8127649
6
+ metadata.gz: 2745ef9c4f4ff9000696e81e39570fc39b12facdedd153af59927f48bbcfbb21477eb5aa379e39af06ed39e755cbfd236b53c2789332172f126e0b3115bd4e55
7
+ data.tar.gz: f35add17672d57d708f65fe509e02844deed80c9b01e972c5fb575838eaa06cf045b8781ccf8767b78acedba3c2d121a0992ea76ca0df39d99e9e429754fb009
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1](https://github.com/autorenderhq/autorender-ruby/compare/v0.2.0...v0.2.1) (2026-06-29)
4
+
5
+
6
+ ### Chores
7
+
8
+ * remove Stainless attribution from README and SECURITY ([32ce08b](https://github.com/autorenderhq/autorender-ruby/commit/32ce08b5603dd5e667b5eccccddf94fae9851e84))
9
+ * strip internal workflows; preserve production-managed files ([0a1a663](https://github.com/autorenderhq/autorender-ruby/commit/0a1a663a70d3ac323769ca574a3e86d1c3cbbed4))
10
+
3
11
  ## [0.2.0](https://github.com/autorenderhq/autorender-ruby/compare/v0.1.0...v0.2.0) (2026-06-12)
4
12
 
5
13
 
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  The Autorender Ruby library provides convenient access to the Autorender REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/autorenderhq/autorender-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
4
4
 
5
- It is generated with [Stainless](https://www.stainless.com/).
6
-
7
5
  ## Documentation
8
6
 
9
7
  Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/autorender).
@@ -17,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
17
15
  <!-- x-release-please-start-version -->
18
16
 
19
17
  ```ruby
20
- gem "autorender", "~> 0.2.0"
18
+ gem "autorender", "~> 0.2.1"
21
19
  ```
22
20
 
23
21
  <!-- x-release-please-end -->
data/SECURITY.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  ## Reporting Security Issues
4
4
 
5
- This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5
+ We take security seriously, and encourage you to report any security vulnerability promptly so that appropriate action can be taken.
6
6
 
7
- To report a security issue, please contact the Stainless team at security@stainless.com.
7
+ To report a security issue, please contact us at engineering@autorender.io.
8
8
 
9
9
  ## Responsible Disclosure
10
10
 
@@ -306,7 +306,10 @@ module Autorender
306
306
  Autorender::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
307
307
  end
308
308
 
309
- headers.delete("content-type") if body.nil?
309
+ # Generated methods always pass `req[:body]` for operations that define a
310
+ # request body, so only elide the content-type header when the operation
311
+ # has no body at all, not when an optional body param was omitted.
312
+ headers.delete("content-type") if body.nil? && !req.key?(:body)
310
313
 
311
314
  url = Autorender::Internal::Util.join_parsed_uri(
312
315
  @base_url_components,
@@ -43,10 +43,10 @@ module Autorender
43
43
  optional :random_prefix, String
44
44
 
45
45
  # @!attribute tags
46
- # Comma-separated tags
46
+ # Tags array or comma-separated string
47
47
  #
48
- # @return [String, nil]
49
- optional :tags, String
48
+ # @return [Array<String>, String, nil]
49
+ optional :tags, union: -> { Autorender::UploadCreateFromURLParams::Tags }
50
50
 
51
51
  # @!attribute webhook_url
52
52
  #
@@ -66,11 +66,26 @@ module Autorender
66
66
  #
67
67
  # @param random_prefix [String] true/false to append random suffix
68
68
  #
69
- # @param tags [String] Comma-separated tags
69
+ # @param tags [Array<String>, String] Tags array or comma-separated string
70
70
  #
71
71
  # @param webhook_url [String]
72
72
  #
73
73
  # @param request_options [Autorender::RequestOptions, Hash{Symbol=>Object}]
74
+
75
+ # Tags array or comma-separated string
76
+ module Tags
77
+ extend Autorender::Internal::Type::Union
78
+
79
+ variant -> { Autorender::Models::UploadCreateFromURLParams::Tags::StringArray }
80
+
81
+ variant String
82
+
83
+ # @!method self.variants
84
+ # @return [Array(Array<String>, String)]
85
+
86
+ # @type [Autorender::Internal::Type::Converter]
87
+ StringArray = Autorender::Internal::Type::ArrayOf[String]
88
+ end
74
89
  end
75
90
  end
76
91
  end
@@ -59,7 +59,7 @@ module Autorender
59
59
  #
60
60
  # @param random_prefix [String] true/false to append random suffix
61
61
  #
62
- # @param tags [String] Comma-separated tags
62
+ # @param tags [Array<String>, String] Tags array or comma-separated string
63
63
  #
64
64
  # @param webhook_url [String]
65
65
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Autorender
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -52,11 +52,17 @@ module Autorender
52
52
  sig { params(random_prefix: String).void }
53
53
  attr_writer :random_prefix
54
54
 
55
- # Comma-separated tags
56
- sig { returns(T.nilable(String)) }
55
+ # Tags array or comma-separated string
56
+ sig do
57
+ returns(
58
+ T.nilable(Autorender::UploadCreateFromURLParams::Tags::Variants)
59
+ )
60
+ end
57
61
  attr_reader :tags
58
62
 
59
- sig { params(tags: String).void }
63
+ sig do
64
+ params(tags: Autorender::UploadCreateFromURLParams::Tags::Variants).void
65
+ end
60
66
  attr_writer :tags
61
67
 
62
68
  sig { returns(T.nilable(String)) }
@@ -73,7 +79,7 @@ module Autorender
73
79
  folder: String,
74
80
  metadata: String,
75
81
  random_prefix: String,
76
- tags: String,
82
+ tags: Autorender::UploadCreateFromURLParams::Tags::Variants,
77
83
  webhook_url: String,
78
84
  request_options: Autorender::RequestOptions::OrHash
79
85
  ).returns(T.attached_class)
@@ -90,7 +96,7 @@ module Autorender
90
96
  metadata: nil,
91
97
  # true/false to append random suffix
92
98
  random_prefix: nil,
93
- # Comma-separated tags
99
+ # Tags array or comma-separated string
94
100
  tags: nil,
95
101
  webhook_url: nil,
96
102
  request_options: {}
@@ -106,7 +112,7 @@ module Autorender
106
112
  folder: String,
107
113
  metadata: String,
108
114
  random_prefix: String,
109
- tags: String,
115
+ tags: Autorender::UploadCreateFromURLParams::Tags::Variants,
110
116
  webhook_url: String,
111
117
  request_options: Autorender::RequestOptions
112
118
  }
@@ -114,6 +120,27 @@ module Autorender
114
120
  end
115
121
  def to_hash
116
122
  end
123
+
124
+ # Tags array or comma-separated string
125
+ module Tags
126
+ extend Autorender::Internal::Type::Union
127
+
128
+ Variants = T.type_alias { T.any(T::Array[String], String) }
129
+
130
+ sig do
131
+ override.returns(
132
+ T::Array[Autorender::UploadCreateFromURLParams::Tags::Variants]
133
+ )
134
+ end
135
+ def self.variants
136
+ end
137
+
138
+ StringArray =
139
+ T.let(
140
+ Autorender::Internal::Type::ArrayOf[String],
141
+ Autorender::Internal::Type::Converter
142
+ )
143
+ end
117
144
  end
118
145
  end
119
146
  end
@@ -51,7 +51,7 @@ module Autorender
51
51
  folder: String,
52
52
  metadata: String,
53
53
  random_prefix: String,
54
- tags: String,
54
+ tags: Autorender::UploadCreateFromURLParams::Tags::Variants,
55
55
  webhook_url: String,
56
56
  request_options: Autorender::RequestOptions::OrHash
57
57
  ).returns(Autorender::Models::UploadCreateFromURLResponse)
@@ -68,7 +68,7 @@ module Autorender
68
68
  metadata: nil,
69
69
  # true/false to append random suffix
70
70
  random_prefix: nil,
71
- # Comma-separated tags
71
+ # Tags array or comma-separated string
72
72
  tags: nil,
73
73
  webhook_url: nil,
74
74
  request_options: {}
@@ -8,7 +8,7 @@ module Autorender
8
8
  folder: String,
9
9
  metadata: String,
10
10
  random_prefix: String,
11
- tags: String,
11
+ tags: Autorender::Models::UploadCreateFromURLParams::tags,
12
12
  webhook_url: String
13
13
  }
14
14
  & Autorender::Internal::Type::request_parameters
@@ -39,9 +39,11 @@ module Autorender
39
39
 
40
40
  def random_prefix=: (String) -> String
41
41
 
42
- attr_reader tags: String?
42
+ attr_reader tags: Autorender::Models::UploadCreateFromURLParams::tags?
43
43
 
44
- def tags=: (String) -> String
44
+ def tags=: (
45
+ Autorender::Models::UploadCreateFromURLParams::tags
46
+ ) -> Autorender::Models::UploadCreateFromURLParams::tags
45
47
 
46
48
  attr_reader webhook_url: String?
47
49
 
@@ -54,7 +56,7 @@ module Autorender
54
56
  ?folder: String,
55
57
  ?metadata: String,
56
58
  ?random_prefix: String,
57
- ?tags: String,
59
+ ?tags: Autorender::Models::UploadCreateFromURLParams::tags,
58
60
  ?webhook_url: String,
59
61
  ?request_options: Autorender::request_opts
60
62
  ) -> void
@@ -66,10 +68,20 @@ module Autorender
66
68
  folder: String,
67
69
  metadata: String,
68
70
  random_prefix: String,
69
- tags: String,
71
+ tags: Autorender::Models::UploadCreateFromURLParams::tags,
70
72
  webhook_url: String,
71
73
  request_options: Autorender::RequestOptions
72
74
  }
75
+
76
+ type tags = ::Array[String] | String
77
+
78
+ module Tags
79
+ extend Autorender::Internal::Type::Union
80
+
81
+ def self?.variants: -> ::Array[Autorender::Models::UploadCreateFromURLParams::tags]
82
+
83
+ StringArray: Autorender::Internal::Type::Converter
84
+ end
73
85
  end
74
86
  end
75
87
  end
@@ -21,7 +21,7 @@ module Autorender
21
21
  ?folder: String,
22
22
  ?metadata: String,
23
23
  ?random_prefix: String,
24
- ?tags: String,
24
+ ?tags: Autorender::Models::UploadCreateFromURLParams::tags,
25
25
  ?webhook_url: String,
26
26
  ?request_options: Autorender::request_opts
27
27
  ) -> Autorender::Models::UploadCreateFromURLResponse
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autorender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Autorender
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-12 00:00:00.000000000 Z
11
+ date: 2026-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi