diff --git a/.gitignore b/.gitignore index 1d16bd2..8510862 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/pkg \ No newline at end of file +/pkg +.DS_Store \ No newline at end of file diff --git a/lib/qwandry/configuration/default.rb b/lib/qwandry/configuration/default.rb index c6fc8d5..ef4060f 100644 --- a/lib/qwandry/configuration/default.rb +++ b/lib/qwandry/configuration/default.rb @@ -1,11 +1,10 @@ - # Register the default ruby configuration: register :ruby do - # Reject binary paths, and then find only the `/lib/ruby` sources: - paths = ($:).reject{|path| path =~ /#{RUBY_PLATFORM}$/}.grep(/lib\/ruby/) + # Reject binary paths, and ruby gems. Gems will be loaded separately: + paths = ($:).reject{|path| path["/#{RUBY_PLATFORM}/"] || path["/gems/"] || path == '.' } # Add ruby standard libraries using the LibraryRepository: - add paths, :class=>Qwandry::LibraryRepository + add paths, :class=>Qwandry::LibraryRepository, :reject=>/\.(o|a|s|inc|def|dylib|rbc)$/ end # Register the default ruby gems configuration: diff --git a/qwandry.gemspec b/qwandry.gemspec index 65c15d8..8d6340f 100644 --- a/qwandry.gemspec +++ b/qwandry.gemspec @@ -9,12 +9,11 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Adam Sanderson"] - s.date = %q{2011-01-01} - s.default_executable = %q{qw} + s.date = %q{2011-01-05} s.description = %q{ Open a gem or library's source directory with your default editor. } s.email = %q{netghost@gmail.com} - s.executables = ["qw"] + s.executables = ["qw", "qw.compiled.rbc"] s.extra_rdoc_files = [ "README.markdown", "TODO" @@ -25,15 +24,23 @@ Gem::Specification.new do |s| "TODO", "VERSION", "bin/qw", + "bin/qw.compiled.rbc", "lib/qwandry.rb", + "lib/qwandry.rbc", "lib/qwandry/configuration.rb", + "lib/qwandry/configuration.rbc", "lib/qwandry/configuration/default.rb", "lib/qwandry/configuration/probe_node.js", "lib/qwandry/flat_repository.rb", + "lib/qwandry/flat_repository.rbc", "lib/qwandry/launcher.rb", + "lib/qwandry/launcher.rbc", "lib/qwandry/library_repository.rb", + "lib/qwandry/library_repository.rbc", "lib/qwandry/package.rb", - "lib/qwandry/repository.rb" + "lib/qwandry/package.rbc", + "lib/qwandry/repository.rb", + "lib/qwandry/repository.rbc" ] s.homepage = %q{http://github.com/adamsanderson/qwandry} s.rdoc_options = ["--charset=UTF-8"]