File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 49
49
puts "verify a simple sketch"
50
50
got_problem = true unless arduino_cmd . verify_sketch ( simple_sketch )
51
51
52
- puts "verify the examples of a library..."
53
- puts " - Install the library"
54
52
library_path = File . join ( File . dirname ( File . dirname ( __FILE__ ) ) , "SampleProjects" , "DoSomething" )
53
+ puts "verify the examples of a library (#{ library_path } )..."
54
+ puts " - Install the library"
55
55
installed_library_path = arduino_cmd . install_local_library ( library_path )
56
56
got_problem = true if installed_library_path . nil?
57
57
puts " - Iterate over the examples"
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ def install_local_library(library_path)
230
230
231
231
def each_library_example ( installed_library_path )
232
232
example_path = File . join ( installed_library_path , "examples" )
233
- examples = Pathname . new ( example_path ) . children . select ( &:directory? ) . map ( &:to_path ) . reject { | n | n [ 0 ] == '.' }
233
+ examples = Pathname . new ( example_path ) . children . select ( &:directory? ) . map ( &:to_path ) . map ( & File . method ( :basename ) )
234
234
examples . each do |e |
235
235
proj_file = File . join ( example_path , e , "#{ e } .ino" )
236
236
puts "Considering #{ proj_file } "
You can’t perform that action at this time.
0 commit comments