Sha256: 8609d9d4de8affb4e2dcbdd155fa6b21001b729e362967be3e536b992cd0c2f6
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 Bytes
Contents
# -*- coding: UTF-8 -*- # # Copyright 2014 PagerDuty, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module LitaGithub # Github handler common-use Organization methods module Org def organization(name) name.nil? || name.empty? ? config.default_org : name end def sort_by_name(teams) teams.sort_by { |h| h[:name].downcase } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lita-github-0.0.10 | lib/lita-github/org.rb |
lita-github-0.0.9 | lib/lita-github/org.rb |