class Gem::STFU
Constants
- VERSION
Public Class Methods
stfu?(spec, message)
click to toggle source
# File lib/gem/stfu.rb, line 19 def self.stfu? spec, message message == spec.post_install_message && self.stfu_list.include?(spec.name) end
stfu_list()
click to toggle source
# File lib/gem/stfu.rb, line 11 def self.stfu_list @stfu ||= if File.exist? stfu_path then File.readlines(stfu_path).map(&:chomp) else [] end end
stfu_path()
click to toggle source
# File lib/gem/stfu.rb, line 7 def self.stfu_path @stfu_path ||= File.join Gem.user_home, ".gem", "stfu.rc" end