Skip to content

Commit

Permalink
Fixed issue #571, don't handle Gemfile if we are outside a Padrino pr…
Browse files Browse the repository at this point in the history
…oject
  • Loading branch information
DAddYE committed Jun 30, 2011
1 parent e0c83f6 commit 00f828b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.rdoc
Expand Up @@ -26,6 +26,7 @@
* Added Hungarian translation [Thanks to Kormány Zsolt]
* Added Riak support through Ripple
* Updated couchrest_model dependency to ~>1.1.0.rc1
* Fixed issue #571, don't handle Gemfile if we are outside a Padrino project

== 0.9.29

Expand Down
4 changes: 2 additions & 2 deletions padrino-core/bin/padrino
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
require 'rubygems' unless defined?(Gem) # Useful only on --dev mode
require 'bundler/setup' if File.exist?("Gemfile")
require 'rubygems' unless defined?(Gem)
require 'bundler/setup' if %w(Gemfile .components).all? { |f| File.exist?(f) }

padrino_core_path = File.expand_path('../../lib', __FILE__)
$:.unshift(padrino_core_path) if File.directory?(padrino_core_path) && !$:.include?(padrino_core_path)
Expand Down
2 changes: 1 addition & 1 deletion padrino-gen/bin/padrino-gen
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
require 'rubygems' unless defined?(Gem) # Useful only on --dev mode
require 'bundler/setup' if File.exist?("Gemfile")
require 'bundler/setup' if %w(Gemfile .components).all? { |f| File.exist?(f) }

padrino_gen_path = File.expand_path('../../lib', __FILE__)
$:.unshift(padrino_gen_path) if File.directory?(padrino_gen_path) && !$:.include?(padrino_gen_path)
Expand Down

2 comments on commit 00f828b

@nesquena
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@achiurizo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.