Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use File.join where possible for better cross-platform compatibility

  • Loading branch information...
commit 45faf41fb5ec32b36d222195841a1b91ce2c3e46 1 parent 552c654
Harold Giménez authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/create.rb
View
6 lib/create.rb
@@ -13,7 +13,7 @@ def self.run!(project_path, repo)
end
def initialize(project_path, repo)
- self.project_path = project_path
+ self.project_path = File.expand_path(project_path)
validate_project_path
validate_project_name
self.repo = repo if present?(repo)
@@ -56,11 +56,11 @@ def validate_project_path
end
def template
- File.expand_path(File.dirname(__FILE__) + "/../template/suspenders.rb")
+ File.expand_path(File.join("..", "template", "suspenders.rb"), File.dirname(__FILE__))
end
def gemfile
- File.expand_path(File.dirname(__FILE__) + "/../template/trout/Gemfile")
+ File.expand_path(File.join("..", "template", "trout", "Gemfile"), File.dirname(__FILE__))
end
def rails_version
Please sign in to comment.
Something went wrong with that request. Please try again.