File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
33
33
- Apply "rule of three" to Client copy constructor and copy assignment operator
34
34
- Run Windows tests on Windows not Ubuntu
35
35
- Properly report error in building shared library
36
+ - A missing ` examples ` directory no longer causes a crash in ` cpp_library.rb `
36
37
37
38
### Security
38
39
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ def info
135
135
# @param installed_library_path [String] The library to query
136
136
# @return [Array<String>] Example sketch files
137
137
def example_sketches
138
- reported_dirs = info [ "library" ] [ "examples" ] . map ( &Pathname ::method ( :new ) )
138
+ examples = info [ "library" ] . fetch ( "examples" , [ ] )
139
+ reported_dirs = examples . map ( &Pathname ::method ( :new ) )
139
140
reported_dirs . map { |e | e + e . basename . sub_ext ( ".ino" ) } . select ( &:exist? ) . sort_by ( &:to_s )
140
141
end
141
142
You can’t perform that action at this time.
0 commit comments