Skip to content

Enable redirection of installation output, add arduino_library_location.rb #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2019

Conversation

ianfixes
Copy link
Collaborator

@ianfixes ianfixes commented Jan 16, 2019

Adds ability to do cross-platform build scripts, ensuring that custom libraries get copied into the correct Arduino library directory.

Highlights from CHANGELOG.md

  • ArduinoInstallation and ArduinoDownloader now allow console output to optionally be set to an IO object of choice during force_install
  • ArduinoInstallation::force_install now optionally accepts a version string
  • arduino_library_location.rb script to print Arduino library location to stdout

Issues Fixed

@@ -115,15 +119,15 @@ def download
total_size += size
needed_dots = (total_size / chunk_size).to_i
unprinted_dots = needed_dots - dots
print("." * unprinted_dots) if unprinted_dots > 0
@output.puts("." * unprinted_dots) if unprinted_dots > 0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be @output.print

@@ -133,7 +137,7 @@ def extract
batch_size = [1, (zip.size / 100).to_i].max
dots = 0
zip.each do |file|
print "." if (dots % batch_size).zero?
@output.puts "." if (dots % batch_size).zero?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be @output.print

@ianfixes ianfixes force-pushed the 2019-01-16_library_location branch from 6dcc33e to c7b0778 Compare January 16, 2019 13:57
@s-celles
Copy link
Contributor

@ianfixes ianfixes merged commit f0b54cf into master Jan 17, 2019
@s-celles
Copy link
Contributor

Hello @ianfixes

It will be nice if you could publish a release.

Kind regards

@ianfixes ianfixes changed the title Enable redirection of installation output Enable redirection of installation output, add arduino_library_location.rb Jan 27, 2019
@ianfixes
Copy link
Collaborator Author

It will be nice if you could publish a release.

@scls19fr I will get to it, I have been maintaining some other projects

@ianfixes
Copy link
Collaborator Author

Released 0.1.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants