mastodon-api 0.9.1 → 1.0.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
  SHA1:
3
- metadata.gz: 2dadc91d9ffe9a3f067aac7611c8cd9cf83b35d0
4
- data.tar.gz: 46dde8e05c454858b8abcbd5a5bf2442b16fe381
3
+ metadata.gz: b75d05c33297c3b669a07e9f15f6c5142c532e77
4
+ data.tar.gz: afb5dae6393fff36eb4b354f3c37daaa1dd8daf4
5
5
  SHA512:
6
- metadata.gz: 083213560d825076bfbab0ac737c8770e1cc19162aa881a73d201024220fc86aa828edeb2d26c15a2e21e3e3ad3e9cb81b66ad035437d9eb2f84db2139914a1a
7
- data.tar.gz: eb2f84556f1be7ae941a156f89a29ef6e3a4b81bc0bf2e3c171ceafbe04d4170f566cadfe6a23eb251c5d02e4104df329f82e7b3243c522ba25e5f62685949c1
6
+ metadata.gz: 0f01d0635100a30195c30ef2ab86162b176f7f3f340d97a5df58b48fcb0425acd4da38eaeb5f2a8cc28adbe730f5eddf89171659693b28780d98466fbbf985dc
7
+ data.tar.gz: 95ac9a9d64733f05518565d65822e27f1cf66b116d7416850076dceb34d2bb2ab63e3c4339e68aa97ac051f193b58c558730a5ed44afc5e77f18344739e88514
@@ -22,7 +22,7 @@ module Mastodon
22
22
  500 => Mastodon::Error::InternalServerError,
23
23
  502 => Mastodon::Error::BadGateway,
24
24
  503 => Mastodon::Error::ServiceUnavailable,
25
- 504 => Mastodon::Error::GatewayTimeout
25
+ 504 => Mastodon::Error::GatewayTimeout,
26
26
  }.freeze
27
27
 
28
28
  class << self
@@ -10,7 +10,7 @@ module Mastodon
10
10
  {
11
11
  user_agent: @client.user_agent,
12
12
  accept: '*/*',
13
- authorization: "Bearer #{@client.bearer_token}"
13
+ authorization: "Bearer #{@client.bearer_token}",
14
14
  }
15
15
  end
16
16
  end
@@ -1,13 +1,13 @@
1
1
  module Mastodon
2
2
  class Relationship < Mastodon::Base
3
3
  # @!attribute [r] id
4
- # @return [Integer] Account ID
5
- # @!attribute [r] following?
6
- # @return [Boolean]
7
- # @!attribute [r] followed_by?
8
- # @return [Boolean]
9
- # @!attribute [r] blocking?
10
- # @return [Boolean]
4
+ # @return [Integer] Account ID
5
+ # @!attribute [r] following?
6
+ # @return [Boolean]
7
+ # @!attribute [r] followed_by?
8
+ # @return [Boolean]
9
+ # @!attribute [r] blocking?
10
+ # @return [Boolean]
11
11
 
12
12
  normal_attr_reader :id
13
13
  predicate_attr_reader :following, :followed_by, :blocking
@@ -37,7 +37,7 @@ module Mastodon
37
37
  # @param uri [String] The URI of the remote user, in the format of username@domain
38
38
  # @return [Mastodon::Account]
39
39
  def follow_by_uri(uri)
40
- perform_request_with_object(:post, "/api/v1/follows", { uri: uri }, Mastodon::Account)
40
+ perform_request_with_object(:post, '/api/v1/follows', { uri: uri }, Mastodon::Account)
41
41
  end
42
42
  end
43
43
  end
@@ -12,7 +12,7 @@ module Mastodon
12
12
  # @param media_ids [Array<Integer>]
13
13
  # @return [Mastodon::Status]
14
14
  def create_status(text, in_reply_to_id = nil, media_ids = [])
15
- perform_request_with_object(:post, "/api/v1/statuses", array_param(:media_ids, media_ids).merge({ status: text, in_reply_to_id: in_reply_to_id }), Mastodon::Status)
15
+ perform_request_with_object(:post, '/api/v1/statuses', array_param(:media_ids, media_ids).merge(status: text, in_reply_to_id: in_reply_to_id), Mastodon::Status)
16
16
  end
17
17
 
18
18
  # Retrieve status
@@ -3,15 +3,15 @@ module Mastodon
3
3
  module_function
4
4
 
5
5
  def major
6
- 0
6
+ 1
7
7
  end
8
8
 
9
9
  def minor
10
- 9
10
+ 0
11
11
  end
12
12
 
13
13
  def patch
14
- 1
14
+ 0
15
15
  end
16
16
 
17
17
  def pre
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastodon-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Rochko