mirror of
https://github.com/lloeki/package-ruby.git
synced 2025-12-06 01:54:41 +01:00
fix travis build
This commit is contained in:
parent
32b99b62bf
commit
4de945073f
5 changed files with 11 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
language: ruby
|
||||
ruby:
|
||||
- 1.9.3
|
||||
- 2.0.0
|
||||
- 2.1.3
|
||||
rvm:
|
||||
- 2.1
|
||||
- 2.2
|
||||
- rbx-2.5
|
||||
script:
|
||||
rake spec rubocop
|
||||
|
|
|
|||
3
Rakefile
3
Rakefile
|
|
@ -18,4 +18,5 @@ task :coverage do
|
|||
Rake::Task['spec'].execute
|
||||
end
|
||||
|
||||
task default: :spec
|
||||
task default: :ci
|
||||
task ci: [:spec, :rubocop]
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ class Package < Module
|
|||
end
|
||||
|
||||
# Return the package as a value
|
||||
# rubocop:disable Lint/UnusedMethodArgument
|
||||
def import_to_value(_binding, namespace, as: nil)
|
||||
Package.new(namespace)
|
||||
end
|
||||
|
|
|
|||
2
test.rb
2
test.rb
|
|
@ -1,3 +1,5 @@
|
|||
# rubocop:disable all
|
||||
|
||||
$LOAD_PATH.push File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
|
||||
|
||||
require 'pry'
|
||||
|
|
|
|||
2
test2.rb
2
test2.rb
|
|
@ -1,3 +1,5 @@
|
|||
# rubocop:disable all
|
||||
|
||||
require 'pp'
|
||||
#require 'pry'
|
||||
require 'binding_of_caller'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue