Skip to content

Commit

Permalink
set app name for git repositories better by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cpjolicoeur committed May 25, 2009
1 parent b32d271 commit bcad443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -58,7 +58,7 @@ GEM_SPEC = Gem::Specification.new do |s|
s.add_dependency 'twitter4r', '>= 0.3.0'

s.files = Dir.glob("{bin,lib,test}/**/*").delete_if { |item| item.include?('__workdir') }
s.files += %w(License.txt Readme.txt Changelog.txt Rakefile)
s.files += %w(License.txt Readme.markdown Changelog.txt Rakefile)
s.files += Dir.glob("doc/*").delete_if { |item| item.include?('__workdir') }

s.bindir = "bin"
Expand Down
3 changes: 2 additions & 1 deletion lib/cerberus/manager.rb
Expand Up @@ -37,9 +37,10 @@ def run
end

private

def extract_project_name(path)
path = File.expand_path(path) if test(?d, path)
File.basename(path).strip
File.basename(path).strip.gsub( /\.git$/, '' )
end

def create_example_config
Expand Down

0 comments on commit bcad443

Please sign in to comment.