Skip to content

Commit a9f3386

Browse files
authored
Merge pull request #14 from Hexlet/release-please--branches--main--changes--next
release: 0.5.3
2 parents c367715 + e7f9c41 commit a9f3386

345 files changed

Lines changed: 2603 additions & 641 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,44 @@ on:
1313
- 'stl-preview-base/**'
1414

1515
jobs:
16+
build:
17+
timeout-minutes: 10
18+
name: build
19+
permissions:
20+
contents: read
21+
id-token: write
22+
runs-on: ${{ github.repository == 'stainless-sdks/amocrm-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
23+
if: |-
24+
github.repository == 'stainless-sdks/amocrm-ruby' &&
25+
(github.event_name == 'push' || github.event.pull_request.head.repo.fork)
26+
steps:
27+
- uses: actions/checkout@v6
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
bundler-cache: false
32+
- run: |-
33+
bundle install
34+
35+
- name: Get GitHub OIDC Token
36+
if: |-
37+
github.repository == 'stainless-sdks/amocrm-ruby' &&
38+
!startsWith(github.ref, 'refs/heads/stl/')
39+
id: github-oidc
40+
uses: actions/github-script@v8
41+
with:
42+
script: core.setOutput('github_token', await core.getIDToken());
43+
44+
- name: Build and upload gem artifacts
45+
if: |-
46+
github.repository == 'stainless-sdks/amocrm-ruby' &&
47+
!startsWith(github.ref, 'refs/heads/stl/')
48+
env:
49+
URL: https://pkg.stainless.com/s
50+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
51+
SHA: ${{ github.sha }}
52+
PACKAGE_NAME: amocrm
53+
run: ./scripts/utils/upload-artifact.sh
1654
lint:
1755
timeout-minutes: 10
1856
name: lint

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.5.2"
2+
".": "0.5.3"
33
}

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## 0.5.3 (2026-03-08)
4+
5+
Full Changelog: [v0.5.2...v0.5.3](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.2...v0.5.3)
6+
7+
### Bug Fixes
8+
9+
* properly mock time in ruby ci tests ([2c02d7c](https://github.com/Hexlet/amocrm-ruby/commit/2c02d7cdad78f91fc96b3572830b69c1e1781e69))
10+
11+
12+
### Chores
13+
14+
* **ci:** add build step ([0111d8b](https://github.com/Hexlet/amocrm-ruby/commit/0111d8b871937e6422e3b348630971ae5a882d94))
15+
* **ci:** skip uploading artifacts on stainless-internal branches ([59ed3cd](https://github.com/Hexlet/amocrm-ruby/commit/59ed3cd3a6282f58f826bde41e572836b42436d9))
16+
* **internal:** codegen related update ([70ecc90](https://github.com/Hexlet/amocrm-ruby/commit/70ecc90ab1f89bff2aafa6ee7fc29934a9d9329d))
17+
* **internal:** codegen related update ([906bc89](https://github.com/Hexlet/amocrm-ruby/commit/906bc8924e5c7ae9b50d3f194629ff7e8981d80a))
18+
* **internal:** remove mock server code ([97b11dc](https://github.com/Hexlet/amocrm-ruby/commit/97b11dc026b0de710edaacc6a65526f9a6969ec7))
19+
* update mock server docs ([4393e5d](https://github.com/Hexlet/amocrm-ruby/commit/4393e5d94350640a132c8df0d330715e7ca369ff))
20+
321
## 0.5.2 (2026-02-07)
422

523
Full Changelog: [v0.5.1...v0.5.2](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.1...v0.5.2)

CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ $ bundle exec rake
6666

6767
## Running tests
6868

69-
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
70-
71-
```bash
72-
$ npx prism mock path/to/your/openapi.yml
73-
```
74-
7569
```bash
7670
$ bundle exec rake test
7771
```

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
amocrm (0.5.2)
14+
amocrm (0.5.3)
1515
cgi
1616
connection_pool
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
1515
<!-- x-release-please-start-version -->
1616

1717
```ruby
18-
gem "amocrm", "~> 0.5.2"
18+
gem "amocrm", "~> 0.5.3"
1919
```
2020

2121
<!-- x-release-please-end -->

lib/amocrm/internal/util.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,37 @@ def writable_enum(&blk)
492492
JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
493493

494494
class << self
495+
# @api private
496+
#
497+
# @param query [Hash{Symbol=>Object}]
498+
#
499+
# @return [Hash{Symbol=>Object}]
500+
def encode_query_params(query)
501+
out = {}
502+
query.each { write_query_param_element!(out, _1, _2) }
503+
out
504+
end
505+
506+
# @api private
507+
#
508+
# @param collection [Hash{Symbol=>Object}]
509+
# @param key [String]
510+
# @param element [Object]
511+
#
512+
# @return [nil]
513+
private def write_query_param_element!(collection, key, element)
514+
case element
515+
in Hash
516+
element.each do |name, value|
517+
write_query_param_element!(collection, "#{key}[#{name}]", value)
518+
end
519+
in Array
520+
collection[key] = element.map(&:to_s).join(",")
521+
else
522+
collection[key] = element.to_s
523+
end
524+
end
525+
495526
# @api private
496527
#
497528
# @param y [Enumerator::Yielder]

lib/amocrm/models/catalog_element_create_params.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@ class CatalogElementCreateParams < Amocrm::Internal::Type::BaseModel
77
extend Amocrm::Internal::Type::RequestParameters::Converter
88
include Amocrm::Internal::Type::RequestParameters
99

10+
# @!attribute catalog_id
11+
#
12+
# @return [Integer]
13+
required :catalog_id, Integer
14+
1015
# @!attribute body
1116
#
1217
# @return [Array<Amocrm::Models::CatalogElementCreateParams::Body>]
1318
required :body, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementCreateParams::Body] }
1419

15-
# @!method initialize(body:, request_options: {})
20+
# @!method initialize(catalog_id:, body:, request_options: {})
21+
# @param catalog_id [Integer]
1622
# @param body [Array<Amocrm::Models::CatalogElementCreateParams::Body>]
1723
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]
1824

lib/amocrm/models/catalog_element_get_by_id_params.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@ class CatalogElementGetByIDParams < Amocrm::Internal::Type::BaseModel
1212
# @return [Integer]
1313
required :catalog_id, Integer
1414

15+
# @!attribute id
16+
#
17+
# @return [Integer]
18+
required :id, Integer
19+
1520
# @!attribute with
1621
# Additional data to include (comma-separated).
1722
#
1823
# @return [String, nil]
1924
optional :with, String
2025

21-
# @!method initialize(catalog_id:, with: nil, request_options: {})
26+
# @!method initialize(catalog_id:, id:, with: nil, request_options: {})
2227
# @param catalog_id [Integer]
2328
#
29+
# @param id [Integer]
30+
#
2431
# @param with [String] Additional data to include (comma-separated).
2532
#
2633
# @param request_options [Amocrm::RequestOptions, Hash{Symbol=>Object}]

lib/amocrm/models/catalog_element_list_params.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ class CatalogElementListParams < Amocrm::Internal::Type::BaseModel
77
extend Amocrm::Internal::Type::RequestParameters::Converter
88
include Amocrm::Internal::Type::RequestParameters
99

10+
# @!attribute catalog_id
11+
#
12+
# @return [Integer]
13+
required :catalog_id, Integer
14+
1015
# @!attribute filter
1116
#
1217
# @return [Object, nil]
@@ -27,7 +32,8 @@ class CatalogElementListParams < Amocrm::Internal::Type::BaseModel
2732
# @return [String, Integer, nil]
2833
optional :query, union: -> { Amocrm::CatalogElementListParams::Query }
2934

30-
# @!method initialize(filter: nil, limit: nil, page: nil, query: nil, request_options: {})
35+
# @!method initialize(catalog_id:, filter: nil, limit: nil, page: nil, query: nil, request_options: {})
36+
# @param catalog_id [Integer]
3137
# @param filter [Object]
3238
# @param limit [Integer]
3339
# @param page [Integer]

0 commit comments

Comments
 (0)