mastodon_command 4.2.3 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1af1e330d3503e6cee6fa7eb39598b350467ab34be10324578e4578d72aa524
4
- data.tar.gz: 84c727198d9b53ea9447b7e556e1f77550937fe900434ede12599b01b1e83623
3
+ metadata.gz: 2d55afa6be44085b3ab3020f24b19bfa6626abb27754197388ee6cd77291e121
4
+ data.tar.gz: d15ada4628e0148545f2b1b544709cfd61f76835d6546bf8dfbcfc0e4c0c4889
5
5
  SHA512:
6
- metadata.gz: bce92c9bebdc36e57ef3e8bcbf3e657e97404e3d42a91b4b11f9f2950188b25d041fed87fb436a442333e80af3593db56b89df0e7621cc02f16a454b944741ae
7
- data.tar.gz: 84473e6b6be833308f2fa6e5867ae8b680a6f39e18f988c1f92e8c6f7bbfbb77eadee56cb7f6445b43fc59fed7187a817f802b5a6f1b653e7121da9234f01e4e
6
+ metadata.gz: 824f5ed17171bf67370071fb959702383aa2211d50aad9b5aba98fa780524ef253114e44a6f02c60a0f7d6b162ba376482dcffab31d2495f8939bdfd0d48d64b
7
+ data.tar.gz: aabeac272b0623ee183f33090f98a347474755c29ec047db5861b93e07a1edd8705541435c3a8dabd7ad46b24c37288bf097c37fdbe2c52ed4a42447bb0b1829
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # MastodonCommand
2
2
  - おみくじ機能や大阪弁機能などをつけることができます。
3
- - ローカルでマストドンのバージョン3.5.0にて動作を確認済み
3
+ - ローカルでマストドンのバージョン4.3.0にて動作を確認済み
4
4
  (このプログラムを使って問題が起こっても保証はできないので予めご了承ください🙇‍♂️)
5
5
 
6
6
  ## Installation
7
7
 
8
8
  ```ruby
9
- gem 'mastodon_command', '0.1.10'
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.3'.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.3
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