"There is no such Source"
end
end
+
+ # Returns the root of the Gem.
+ #
+ # @return [String] the root path for this gem
+ def self.root
+ File.expand_path('../..',__FILE__)
+ end
end
# Loads the default configuration from a JSON file
def load_default_config
# Load the default
- path_root = File.expand_path(File.dirname(__FILE__))
- path = File.join(path_root, @defaults_path)
+ path = File.join(::Lyricli.root, "config", @defaults_path)
if File.exists?(path)
file = File.new(path, "r")
s.files = Dir['lib/**/*.rb'] + Dir['bin/*']
s.files += Dir['[A-Z]*'] + Dir['spec/**/*']
- s.files += Dir['lib/**/*.json', 'lib/**/*.scpt']
+ s.files += Dir['config/**/*', 'lib/**/*.scpt']
s.executables << 'lrc'
s.add_development_dependency 'ruby-debug19', '~> 0.11.6'
s.add_development_dependency 'yard', '~> 0.8.2.1'
s.add_development_dependency 'thin', '~> 1.5.0'
+ s.add_development_dependency 'rspec', '~> 2.11.0'
end