lib/treet.rb in treet-0.8.2 vs lib/treet.rb in treet-0.10.2

- old
+ new

@@ -4,10 +4,15 @@ require File.join(File.dirname(caller[0]), path.to_str) end end end -require_relative "treet/version" +%w(version hash repo farm).each do |f| + require_relative "treet/#{f}" +end -require_relative "treet/repo" -require_relative "treet/hash" -require_relative "treet/farm" +# under MacRuby 0.12, the `rugged` gem causes seg fault, sometimes merely on require() +unless defined? MACRUBY_VERSION + %w(gitrepo gitfarm).each do |f| + require_relative "treet/#{f}" + end +end