Permalink
Browse files

fixing warnings

  • Loading branch information...
1 parent 9ab9e6f commit e5e6ad069efb5933a5cd2e690affd5115c9d91e4 @TwP committed May 8, 2012
View
2 lib/bones/app/command.rb
@@ -4,7 +4,7 @@ class Bones::App::Command
# :stopdoc:
DEFAULT_SKELETON = 'default'
- Bones.config() { colorize = true }
+ Bones.config() { colorize true }
# :startdoc:
attr_reader :stdout
View
1 lib/bones/app/freeze.rb
@@ -41,6 +41,7 @@ def parse( args )
opts = super args
config[:name] = args.empty? ? DEFAULT_SKELETON : args.join('_')
config[:output_dir] = File.join(mrbones_dir, name)
+ opts
end
# Freeze the project skeleton to the git or svn repository that the user
View
4 lib/bones/app/plugins.rb
@@ -82,7 +82,7 @@ def find_bones_plugins
fetcher = Gem::SpecFetcher.fetcher
specs = fetcher.find_matching dep
- specs.map! { |(name, version, _), _|
+ specs.map! { |(name, _, _), _|
next unless name =~ %r/^bones-(.*?)(?:-(\d+))?$/i
$2 ? [$1, $2.to_i] : $1
}
@@ -98,7 +98,7 @@ def installed?( name, version = Gem::Requirement.default )
begin
Gem::Specification.find_by_name(name, version)
true
- rescue Gem::LoadError => err
+ rescue Gem::LoadError
false
end
else
View
1 lib/bones/app/unfreeze.rb
@@ -37,6 +37,7 @@ def parse( args )
opts = super args
config[:name] = args.empty? ? DEFAULT_SKELETON : args.join('_')
config[:output_dir] = File.join(mrbones_dir, name)
+ opts
end
end # class Unfreeze
View
4 lib/bones/plugins/gem.rb
@@ -358,9 +358,7 @@ def import_gemspec( filename )
config.rubyforge_project = spec.rubyforge_project
config.gem.executables = spec.executables
- if have? :rdoc
- config.rdoc.opts = spec.rdoc_options
- end
+ config.rdoc.opts = spec.rdoc_options
config.test.file = spec.test_file if spec.test_file
config.test.files = spec.test_files if spec.test_files
View
2 lib/bones/rake_override_task.rb
@@ -21,7 +21,7 @@ def alias_task( fq_name )
end
def override_task( *args, &block )
- name, params, deps = Rake.application.resolve_args(args.dup)
+ name = Rake.application.resolve_args(args.dup).first
fq_name = Rake.application.instance_variable_get(:@scope).dup.push(name).join(':')
alias_task(fq_name)
Rake::Task.define_task(*args, &block)

0 comments on commit e5e6ad0

Please sign in to comment.