Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git://github.com/sandro/bones into sandro

  • Loading branch information...
commit 1219823535261f4760476bb55be6ad090d73fe16 2 parents 111afee + 7b98665
@TwP TwP authored
Showing with 8 additions and 3 deletions.
  1. +1 −2  data/lib/NAME.rb.bns
  2. +7 −1 lib/bones/tasks/gem.rake
View
3  data/lib/NAME.rb.bns
@@ -1,4 +1,3 @@
-
module <%= classname %>
# :stopdoc:
@@ -37,7 +36,7 @@ module <%= classname %>
def self.require_all_libs_relative_to( fname, dir = nil )
dir ||= ::File.basename(fname, '.*')
search_me = ::File.expand_path(
- ::File.join(::File.dirname(fname), dir, '*', '*.rb'))
+ ::File.join(::File.dirname(fname), dir, '**', '*.rb'))
Dir.glob(search_me).sort.each {|rb| require rb}
end
View
8 lib/bones/tasks/gem.rake
@@ -1,4 +1,3 @@
-
require 'find'
require 'rake/packagetask'
require 'rubygems/user_interaction'
@@ -157,6 +156,13 @@ namespace :gem do
puts PROJ.gem._spec.to_ruby
end
+ desc 'Write the gemspec '
+ task :spec => 'gem:prereqs' do
+ File.open("#{PROJ.name}.gemspec", 'w') do |f|
+ f.write PROJ.gem._spec.to_ruby
+ end
+ end
+
desc 'Install the gem'
task :install => [:clobber, 'gem:package'] do
sh "#{SUDO} #{GEM} install --local pkg/#{PROJ.gem._spec.full_name}"
Please sign in to comment.
Something went wrong with that request. Please try again.