Releases: Nu-hin/remote_ruby
Releases · Nu-hin/remote_ruby
v1.1
v1.0
Major changes
- Full support of SSH features, including password authentication, private key passphrases, made possible by switching to net-ssh gem.
- Since RemoteRuby no longer uses system SSH client, use of MacOS Keychain (
UseKeychainoption in MacOS OpenSSH implementation, starting from MacOS Sierra) is no longer possible. - Added support for STDIN redirection. It is now possible to make remote scripts interactive, or stream data from local host.
- The output and error streams are now automatically synchronized. There is no need to use
STDOUT.flushin the remote script anymore to avoid delays. - Output and Error streams now work in binary mode, instead of being read line-by-line. It is possible to stream binary data from the remote script.
- Added support for dumping compiled code for easier debugging (see Parameters)
- Added proper error handling. Printing remote stack trace and code context on error for easier debugging.
- Added advanced, customizable text mode.
- Flavours are renamed to plugins. It is now possible to add custom plugins in configuration.
- Added a possibility to ignore specified types globally. Variables of the ignored types won't be attempted for serialization.
Minor changes
- Minimum supported Ruby version is now 2.7
.remotelyis not included to the global scope by default, and needs to be included explicitly.- Connection adapter is now automatically selected based on the presence of the
hostargument. - Only two adapters are now available: SSH adapter, and local temp file adapter. All other adapters are deprecated.
- Cache directory is now a global configuration option, rather than an argument to the ExecutionContext.
- The default cache location is now in the .remote_ruby/cache, relative to the working directory.
- Added a possibility to suppress Parser warnings.
- Added changelog
Migration from v0.3
- To have
.remotelymethod in global scope, include theRemoteRuby::Extensionsmodule - Rename
serverparameter tohost. - Remove
adapterparameter. - Remove
cache_dirparameter and configure it globally instead. - Remove
bundlerparameter. - If you want stdout and stderr to be prefixed, enable Text Mode and configure it.
- Change
key_fileparameter tokeysand make it an array with one filename instead of single string. - Optionally remove
STDOUT.flushfrom your scripts.
Here's an example configuration which should resemble the default behaviour of v0.3:
RemoteRuby.configure do |c|
c.cache_dir = File.join(Dir.pwd, 'cache')
end
include RemoteRuby::Extensions
ec = RemoteRuby::ExecutionContext.new(
host: 'my_ssh_host',
text_mode: true
)
ec.execute do
# your code
end
# OR
remotely(host: 'my_ssh_host', text_mode: true) do
# your code
endv0.3
v0.2.1
Remote Ruby 0.2
- Added support for Ruby 3
- Dropped support of Rubies below 2.6
Remote Ruby 0.1.3
Fixed dependencies for older ruby versions.
Remote Ruby 0.1.2
- Fixed version of unparser gem for rubies < 2.5
Remote Ruby 0.1.1
- Removed unused executable files stubbed by Bundler.
Remote Ruby 0.1
v0.1 Bump version [skip ci]