Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.7.0"
".": "2.7.1"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml
openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70
config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb
config_hash: 6b825a08e19dfb747c5dc1766502b789
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.7.1 (2026-02-20)

Full Changelog: [v2.7.0...v2.7.1](https://github.com/moderation-api/sdk-ruby/compare/v2.7.0...v2.7.1)

### Chores

* update mock server docs ([735878b](https://github.com/moderation-api/sdk-ruby/commit/735878be6d703627bc6b6d8c9e5bac9380340139))

## 2.7.0 (2026-02-20)

Full Changelog: [v2.6.1...v2.7.0](https://github.com/moderation-api/sdk-ruby/compare/v2.6.1...v2.7.0)
Expand Down
6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ $ bundle exec rake

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```bash
$ npx prism mock path/to/your/openapi.yml
```

```bash
$ bundle exec rake test
```
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
moderation_api (2.7.0)
moderation_api (2.7.1)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "moderation_api", "~> 2.7.0"
gem "moderation_api", "~> 2.7.1"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion lib/moderation_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ModerationAPI
VERSION = "2.7.0"
VERSION = "2.7.1"
end
2 changes: 1 addition & 1 deletion test/moderation_api/resources/account_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::AccountTest < ModerationAPI::Test::ResourceTest
def test_list
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.account.list

Expand Down
4 changes: 2 additions & 2 deletions test/moderation_api/resources/actions/execute_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::Actions::ExecuteTest < ModerationAPI::Test::ResourceTest
def test_execute_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.actions.execute.execute(action_key: "actionKey")

Expand All @@ -20,7 +20,7 @@ def test_execute_required_params
end

def test_execute_by_id
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.actions.execute.execute_by_id("actionId")

Expand Down
10 changes: 5 additions & 5 deletions test/moderation_api/resources/actions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::ActionsTest < ModerationAPI::Test::ResourceTest
def test_create_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.actions.create(name: "name")

Expand Down Expand Up @@ -32,7 +32,7 @@ def test_create_required_params
end

def test_retrieve
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.actions.retrieve("id")

Expand Down Expand Up @@ -61,7 +61,7 @@ def test_retrieve
end

def test_update
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.actions.update("id")

Expand Down Expand Up @@ -89,7 +89,7 @@ def test_update
end

def test_list
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.actions.list

Expand All @@ -99,7 +99,7 @@ def test_list
end

def test_delete
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.actions.delete("id")

Expand Down
4 changes: 2 additions & 2 deletions test/moderation_api/resources/auth_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::AuthTest < ModerationAPI::Test::ResourceTest
def test_create
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.auth.create

Expand All @@ -22,7 +22,7 @@ def test_create
end

def test_retrieve
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.auth.retrieve

Expand Down
10 changes: 5 additions & 5 deletions test/moderation_api/resources/authors_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::AuthorsTest < ModerationAPI::Test::ResourceTest
def test_create_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.authors.create(external_id: "external_id")

Expand Down Expand Up @@ -34,7 +34,7 @@ def test_create_required_params
end

def test_retrieve
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.authors.retrieve("id")

Expand Down Expand Up @@ -64,7 +64,7 @@ def test_retrieve
end

def test_update
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.authors.update("id")

Expand Down Expand Up @@ -94,7 +94,7 @@ def test_update
end

def test_list
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.authors.list

Expand All @@ -111,7 +111,7 @@ def test_list
end

def test_delete
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.authors.delete("id")

Expand Down
2 changes: 1 addition & 1 deletion test/moderation_api/resources/content_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::ContentTest < ModerationAPI::Test::ResourceTest
def test_submit_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.content.submit(content: {text: "x", type: :text})

Expand Down
6 changes: 3 additions & 3 deletions test/moderation_api/resources/queue/items_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::Queue::ItemsTest < ModerationAPI::Test::ResourceTest
def test_list
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.queue.items.list("id")

Expand All @@ -21,7 +21,7 @@ def test_list
end

def test_resolve_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.queue.items.resolve("itemId", id: "id")

Expand All @@ -39,7 +39,7 @@ def test_resolve_required_params
end

def test_unresolve_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.queue.items.unresolve("itemId", id: "id")

Expand Down
4 changes: 2 additions & 2 deletions test/moderation_api/resources/queue_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::QueueTest < ModerationAPI::Test::ResourceTest
def test_retrieve
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.queue.retrieve("id")

Expand All @@ -20,7 +20,7 @@ def test_retrieve
end

def test_get_stats
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.queue.get_stats("id")

Expand Down
4 changes: 2 additions & 2 deletions test/moderation_api/resources/wordlist/words_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::Wordlist::WordsTest < ModerationAPI::Test::ResourceTest
def test_add_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.wordlist.words.add("id", words: ["string"])

Expand All @@ -22,7 +22,7 @@ def test_add_required_params
end

def test_remove_required_params
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.wordlist.words.remove("id", words: ["string"])

Expand Down
8 changes: 4 additions & 4 deletions test/moderation_api/resources/wordlist_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class ModerationAPI::Test::Resources::WordlistTest < ModerationAPI::Test::ResourceTest
def test_retrieve
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.wordlist.retrieve("id")

Expand All @@ -26,7 +26,7 @@ def test_retrieve
end

def test_update
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.wordlist.update("id")

Expand All @@ -48,7 +48,7 @@ def test_update
end

def test_list
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.wordlist.list

Expand All @@ -58,7 +58,7 @@ def test_list
end

def test_get_embedding_status
skip("Prism tests are disabled")
skip("Mock server tests are disabled")

response = @moderation_api.wordlist.get_embedding_status("id")

Expand Down