Sha256: a65867709e0c29b9cf6442e1ead33c91a2a07278c9044060f87555dcfddcfb48
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 Bytes
Contents
gem_name = File.basename(__FILE__).gsub File.extname(__FILE__), '' require "#{gem_name}/version" require "#{gem_name}/hook_script" require "#{gem_name}/hook_code" require "#{gem_name}/git" require "#{gem_name}/service" require "#{gem_name}/service_helper" module CommitMsgUrlShortener DEFAULT_SERVICE = 'svel.to' HOOK_CODE_SRV_TOKEN = 'SERVICE' ROOT_PATH = File.dirname File.expand_path(__FILE__) HOOK_CODES = Dir[File.join ROOT_PATH, "#{GEM_NAME}/hook_codes/*.*"].map do |path| hook_code = HookCode.fabricate path path = hook_code end SERVICES = Dir[File.join ROOT_PATH, "#{GEM_NAME}/services/*.rb"].map do |path| service = Service.fabricate path path = service if service end.compact INTERPRETERS = HOOK_CODES.map {|hook_code| hook_code = hook_code.interpreter} end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commit-msg-url-shortener-0.0.2 | lib/commit-msg-url-shortener.rb |