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
|
language: ruby
|
||||||
ruby:
|
rvm:
|
||||||
- 1.9.3
|
- 2.1
|
||||||
- 2.0.0
|
- 2.2
|
||||||
- 2.1.3
|
- rbx-2.5
|
||||||
script:
|
script:
|
||||||
rake spec rubocop
|
rake spec rubocop
|
||||||
|
|
|
||||||
3
Rakefile
3
Rakefile
|
|
@ -18,4 +18,5 @@ task :coverage do
|
||||||
Rake::Task['spec'].execute
|
Rake::Task['spec'].execute
|
||||||
end
|
end
|
||||||
|
|
||||||
task default: :spec
|
task default: :ci
|
||||||
|
task ci: [:spec, :rubocop]
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ class Package < Module
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return the package as a value
|
# Return the package as a value
|
||||||
|
# rubocop:disable Lint/UnusedMethodArgument
|
||||||
def import_to_value(_binding, namespace, as: nil)
|
def import_to_value(_binding, namespace, as: nil)
|
||||||
Package.new(namespace)
|
Package.new(namespace)
|
||||||
end
|
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'))
|
$LOAD_PATH.push File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
|
||||||
|
|
||||||
require 'pry'
|
require 'pry'
|
||||||
|
|
|
||||||
2
test2.rb
2
test2.rb
|
|
@ -1,3 +1,5 @@
|
||||||
|
# rubocop:disable all
|
||||||
|
|
||||||
require 'pp'
|
require 'pp'
|
||||||
#require 'pry'
|
#require 'pry'
|
||||||
require 'binding_of_caller'
|
require 'binding_of_caller'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue