-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
959 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ notifications: | |
email: false | ||
|
||
rvm: | ||
- 2.1 | ||
- 2.2 | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
Changelog | ||
========= | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [2.0.0] - 2019-01-29 | ||
### Added | ||
|
||
- Add `Mastodon::REST::Client#scheduled_statuses` | ||
- Add `Mastodon::REST::Client#scheduled_status` | ||
- Add `Mastodon::REST::Client#update_scheduled_status` | ||
- Add `Mastodon::REST::Client#delete_scheduled_status` | ||
- Add `Mastodon::REST::Client#create_report` | ||
- Add `Mastodon::REST::Client#mutes` | ||
- Add `Mastodon::REST::Client#blocks` | ||
- Add `Mastodon::REST::Client#mute_status` | ||
- Add `Mastodon::REST::Client#unmute_status` | ||
- Add `Mastodon::REST::Client#follow_requests` | ||
- Add `Mastodon::REST::Client#authorize_follow_request` | ||
- Add `Mastodon::REST::Client#reject_follow_request` | ||
- Add `Mastodon::REST::Client#dismiss_notification` | ||
- Add `Mastodon::REST::Client#clear_notifications` | ||
- Add `Mastodon::REST::Client#lists` | ||
- Add `Mastodon::REST::Client#list` | ||
- Add `Mastodon::REST::Client#create_list` | ||
- Add `Mastodon::REST::Client#update_list` | ||
- Add `Mastodon::REST::Client#delete_list` | ||
- Add `Mastodon::REST::Client#list_accounts` | ||
- Add `Mastodon::REST::Client#add_accounts_to_list` | ||
- Add `Mastodon::REST::Client#remove_accounts_from_list` | ||
- Add `Mastodon::REST::Client#activity` | ||
- Add `Mastodon::REST::Client#peers` | ||
- Add `Mastodon::REST::Client#filters` | ||
- Add `Mastodon::REST::Client#filter` | ||
- Add `Mastodon::REST::Client#create_filter` | ||
- Add `Mastodon::REST::Client#update_filter` | ||
- Add `Mastodon::REST::Client#delete_filter` | ||
- Add `Mastodon::REST::Client#endorsements` | ||
- Add `Mastodon::REST::Client#endorse` | ||
- Add `Mastodon::REST::Client#unendorse` | ||
- Add `Mastodon::REST::Client#domain_blocks` | ||
- Add `Mastodon::REST::Client#block_domain` | ||
- Add `Mastodon::REST::Client#unblock_domain` | ||
- Add `Mastodon::REST::Client#custom_emojis` | ||
- Add `Mastodon::REST::Client#conversations` | ||
- Add `Mastodon::REST::Client#mark_conversation_as_read` | ||
- Add `Mastodon::REST::Client#delete_conversation` | ||
- Add `Mastodon::REST::Client#verify_app_credentials` | ||
- Add `Mastodon::REST::Client#create_account` | ||
- Add `Mastodon::REST::Client#search_accounts` | ||
- Add `Mastodon::REST::Client#pin` | ||
- Add `Mastodon::REST::Client#unpin` | ||
- Add `Mastodon::REST::Client#delete_suggestion` | ||
- Add `Mastodon::REST::Client#list_timeline` | ||
- Add `card` to `Mastodon::Status` | ||
- Add `bot?`, `emojis`, `fields` to `Mastodon::Account` | ||
- Add `visible_in_picker` to `Mastodon::Emoji` | ||
- Add `stats`, `languages`, `contact_account` to `Mastodon::Instance` | ||
- Add `showing_reblogs?`, `endorsed?` to `Mastodon::Relationship` | ||
- Add `Mastodon::Streaming::Client#direct` | ||
- Add support for `conversation` and `filters_changed` events in streams | ||
|
||
### Changed | ||
|
||
- Change method signature of `Mastodon::REST::Client#create_status` | ||
- Change method signature of `Mastodon::REST::Client#upload_media` | ||
- Change method signature of `Mastodon::REST::Client#update_media` | ||
- Change type of `:avatar` and `:header` params in `Mastodon::REST::Client#update_credentials` | ||
- Rename `Mastodon::Streaming::DeletedStatus` to `Mastodon::Streaming::Events::StatusDelete` | ||
- Change `Mastodon::REST::Client#search` to use the v2 version of the API | ||
- Change `Mastodon::Results#hashtags` to be a collection of `Mastodon::Hashtag` | ||
- Rename `Mastodon::Streaming::Client#firehose` to `Mastodon::Streaming::Client#public` | ||
|
||
### Removed | ||
|
||
- Remove `Mastodon::REST::Client#follow_by_uri` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module Mastodon | ||
class AccessToken < Mastodon::Base | ||
# @!attribute [r] access_token | ||
# @return [String] | ||
# @!attribute [r] token_type | ||
# @return [String] | ||
# @!attribute [r] scope | ||
# @return [String] | ||
# @!attribute [r] created_at | ||
# @return [String] | ||
normal_attr_reader :access_token, | ||
:token_type, | ||
:scope, | ||
:created_at | ||
|
||
def initialize(attributes = {}) | ||
attributes.fetch('access_token') | ||
super | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require 'mastodon/account' | ||
require 'mastodon/status' | ||
|
||
module Mastodon | ||
class Conversation < Mastodon::Base | ||
# @!attribute [r] id | ||
# @return [String] | ||
# @!attribute [r] unread? | ||
# @return [Boolean] | ||
# @!attribute [r] accounts | ||
# @return [Mastodon::Collection<Mastodon::Account>] | ||
# @!attribute [r] last_status | ||
# @return [Mastodon::Status] | ||
|
||
normal_attr_reader :id | ||
predicate_attr_reader :unread | ||
collection_attr_reader :accounts, Mastodon::Account | ||
object_attr_reader :last_status, Mastodon::Status | ||
|
||
def initialize(attributes = {}) | ||
attributes.fetch('id') | ||
super | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Mastodon | ||
class Field < Mastodon::Base | ||
# @!attribute [r] name | ||
# @return [String] | ||
# @!attribute [r] value | ||
# @return [String] | ||
# @!attribute [r] verified_at | ||
# @return [String] | ||
|
||
normal_attr_reader :name, :value, :verified_at | ||
|
||
# Is this field a verified link? | ||
# @return [Boolean] | ||
def verified? | ||
attributes['verified_at'].present? | ||
end | ||
end | ||
end |
Oops, something went wrong.