mastodon_command 4.2.31 → 4.3.0

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: ee0a7798a4c2b36b09f4a805b4b536cd00421c8d7e2aa738a5cdccc0053b5239
4
- data.tar.gz: 7811c0603b51a4c759e3ea7ad8dc3b720af0d300a341d075027e37fd5127b27d
3
+ metadata.gz: 2d55afa6be44085b3ab3020f24b19bfa6626abb27754197388ee6cd77291e121
4
+ data.tar.gz: d15ada4628e0148545f2b1b544709cfd61f76835d6546bf8dfbcfc0e4c0c4889
5
5
  SHA512:
6
- metadata.gz: 9b2fc0c6353e33322933b98419fd937c4155098ef10ce58efc8f6895cfffb0e06d492b35ccded59323c73d3bf42c668cf90803cbe73a03394db714cf51307c4e
7
- data.tar.gz: 35a34f6922c32176e746ef5dd0f1467ea74e9f8083b9b93328200e3a13e355d2710712695fa53b550a0cbf361e03bbad62da47de63ccf959042ee9ec481c4d74
6
+ metadata.gz: 824f5ed17171bf67370071fb959702383aa2211d50aad9b5aba98fa780524ef253114e44a6f02c60a0f7d6b162ba376482dcffab31d2495f8939bdfd0d48d64b
7
+ data.tar.gz: aabeac272b0623ee183f33090f98a347474755c29ec047db5861b93e07a1edd8705541435c3a8dabd7ad46b24c37288bf097c37fdbe2c52ed4a42447bb0b1829
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # MastodonCommand
2
2
  - おみくじ機能や大阪弁機能などをつけることができます。
3
- - ローカルでマストドンのバージョン4.2.3にて動作を確認済み
3
+ - ローカルでマストドンのバージョン4.3.0にて動作を確認済み
4
4
  (このプログラムを使って問題が起こっても保証はできないので予めご了承ください🙇‍♂️)
5
5
 
6
6
  ## Installation
7
7
 
8
8
  ```ruby
9
- gem 'mastodon_command', '4.2.31'
9
+ gem 'mastodon_command', '4.3.0'
10
10
  ```
11
11
 
12
12
  ## Usage
@@ -19,13 +19,9 @@ module MastodonCommand
19
19
  with_rate_limit: true
20
20
  )
21
21
 
22
- render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer
22
+ render json: @status, serializer: serializer_for_status
23
23
  rescue PostStatusService::UnexpectedMentionsError => e
24
- unexpected_accounts = ActiveModel::Serializer::CollectionSerializer.new(
25
- e.accounts,
26
- serializer: REST::AccountSerializer
27
- )
28
- render json: { error: e.message, unexpected_accounts: unexpected_accounts }, status: 422
24
+ render json: unexpected_accounts_error_json(e), status: 422
29
25
  end
30
26
  end
31
27
  end
@@ -1,3 +1,3 @@
1
1
  module MastodonCommand
2
- VERSION = '4.2.31'.freeze
2
+ VERSION = '4.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastodon_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.31
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kenchiki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-11 00:00:00.000000000 Z
11
+ date: 2025-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler