Sha256: 6d4105d16ac8627c2526791ce9eecc4381ff64c9cd9078a406be65f9abc6894d
Contents?: true
Size: 545 Bytes
Versions: 4
Compression:
Stored size: 545 Bytes
Contents
module Namey def self.db_path @@db_path ||= "#{'jdbc:' if RUBY_PLATFORM == 'java'}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.13 | lib/namey.rb |
namey-0.0.12 | lib/namey.rb |
namey-0.0.10 | lib/namey.rb |
namey-0.0.9 | lib/namey.rb |