We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37f9a06 commit b64a6d3Copy full SHA for b64a6d3
1 file changed
lib/jekyll-github-metadata/owner.rb
@@ -64,19 +64,20 @@ def initialize(owner_login)
64
65
def to_h
66
@to_h ||= self.class.content_methods
67
- .each_with_object({}) { |method, hash| hash[method] = public_send(method) }
+ .each_with_object({}) { |method, hash| hash[method.to_s] = public_send(method) }
68
end
69
alias_method :to_hash, :to_h
70
def_delegator :to_h, :to_json, :to_json
71
72
- def_delegator :to_json, :to_s, :to_s
+ def_delegator :to_h, :to_s, :to_s
73
alias_method :to_str, :to_s
74
75
private
76
77
def owner_info
78
@owner_info ||= begin
79
- Value.new("owner",
+ Value.new(
80
+ "owner",
81
proc do |c|
82
(c.organization(owner_login) || c.user(owner_login) || {}).to_h
83
0 commit comments