• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sue445 / pixela / #12148

26 Dec 2025 11:22AM UTC coverage: 44.444% (-53.8%) from 98.195%
#12148

push

web-flow
Merge b4c2c510f into 6f2b98fd6

120 of 270 relevant lines covered (44.44%)

0.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

28.57
/lib/pixela/client/profile_methods.rb
1
module Pixela::Client::ProfileMethods
1✔
2
  # Updates the profile information for the user corresponding to username
3
  #
4
  # @param display_name        [String]
5
  # @param gravatar_icon_email [String]
6
  # @param title               [String]
7
  # @param timezone            [String]
8
  # @param about_url           [String]
9
  # @param contribute_urls     [Array<String>]
10
  # @param pinned_graph_id     [String]
11
  #
12
  # @return [Pixela::Response]
13
  #
14
  # @raise [Pixela::PixelaError] API is failed
15
  #
16
  # @see https://docs.pixe.la/entry/put-profile
17
  #
18
  # @example
19
  #   client.update_profile(display_name: "a-know", gravatar_icon_email: "user@example.com", title: "my title", timezone: "Asia/Tokyo", about_url: "https://home.a-know.me", contribute_urls: ["https://pixe.la/","https://github.com/a-know/pi","https://blog.a-know.me/archive/category/Pixela"])
20
  def update_profile(display_name: nil, gravatar_icon_email: nil, title: nil, timezone: nil,
1✔
21
                     about_url: nil, contribute_urls: [], pinned_graph_id: nil)
22

23
    params = {
24
      displayName:       display_name,
×
25
      gravatarIconEmail: gravatar_icon_email,
26
      title:             title,
27
      timezone:          timezone,
28
      aboutURL:          about_url,
29
      pinnedGraphID:     pinned_graph_id
30
    }
31

32
    unless contribute_urls.empty?
×
33
      params[:contributeURLs] = contribute_urls
×
34
    end
35

36
    with_error_handling do
×
37
      connection(endpoint: Pixela::Client::TOP_ENDPOINT).put("@#{username}", params.compact).body
×
38
    end
39
  end
40
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc