Sha256: 7e5603e992583a3bd3fbfef7924eb4d25bc93cc772755270eb3f212f063aa1bf
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 Bytes
Contents
module Namey def self.db_path @@db_path ||= "sqlite://#{File.join(self.libdir, "..", "data", "names.db")}" end def self.db_path=(x) @@db_path = x end require 'namey/version' # Return a directory with the project libraries. def self.libdir t = ["#{File.expand_path(File.dirname(__FILE__))}", "#{Gem.dir}/gems/#{Namey::NAME}-#{Namey::VERSION}"] t.each {|i| return i if File.readable?(i) } raise "both paths are invalid: #{t}" end require 'namey/generator' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
namey-0.0.8 | lib/namey.rb |
namey-0.0.7 | lib/namey.rb |
namey-0.0.6 | lib/namey.rb |
namey-0.0.5 | lib/namey.rb |