• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Commit MetaInfo

Revision91b165d1c1efe87be53b4d2f9abb32a1752a1e7f (tree)
Zeit2009-10-22 23:23:08
Autorsoutaro <soutaro@f836...>
Commitersoutaro

Log Message

bug fix: glob pattern does not work

**/*.rb should be /**/*.rb.

git-svn-id: http://dev.ikejima.org/src/svn/pragger/trunk@423 f8368ae4-1e99-dc11-9799-0018f35ab5fa

Ändern Zusammenfassung

Diff

--- a/pragger.rb
+++ b/pragger.rb
@@ -13,7 +13,7 @@ class Plugin
1313 instance_eval( @source = File.read(file).toutf8, file.to_s , 1)
1414 end
1515 def self.load_plugins(folder = (Pathname(__FILE__).parent + "plugin"))
16- Pathname.glob(folder.to_s + "**/*.rb").sort.each do |file|
16+ Pathname.glob(folder.to_s + "/**/*.rb").sort.each do |file|
1717 begin
1818 $plugins[ file.relative_path_from(folder).to_s.gsub("/","::")[0..-4] ]= Plugin.new(file)
1919 rescue LoadError