• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Nu-hin / remote_ruby / 13530206102

25 Feb 2025 08:19PM UTC coverage: 90.306% (-0.3%) from 90.599%
13530206102

push

github

Nu-hin
Rename Flavours to Plugins. Allow to register plugins

38 of 39 new or added lines in 7 files covered. (97.44%)

3 existing lines in 1 file now uncovered.

885 of 980 relevant lines covered (90.31%)

59.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.74
/lib/remote_ruby.rb
1
# frozen_string_literal: true
2

3
require 'remote_ruby/version'
16✔
4
require 'remote_ruby/plugin'
16✔
5
require 'remote_ruby/execution_context'
16✔
6

7
# Namespace module for other RemoteRuby classes. Also contains methods, which
8
# are included in the global scope
9
module RemoteRuby
16✔
10
  def remotely(args = {}, &block)
16✔
11
    locals = args.delete(:locals)
48✔
12
    execution_context = ::RemoteRuby::ExecutionContext.new(**args)
48✔
13
    execution_context.execute(locals, &block)
48✔
14
  end
15

16
  def self.root(*params)
16✔
17
    root_dir = ::Gem::Specification.find_by_name('remote_ruby').gem_dir
384✔
18
    File.join(root_dir, *params)
384✔
19
  end
20

21
  def self.lib_path(*params)
16✔
22
    File.join(root, 'lib', *params)
384✔
23
  end
24

25
  def register_plugin(keyword, plugin_class)
16✔
26
    Plugin.register_plugin(keyword,
16✔
27
                           plugin_class)
28
  end
29

30
  def configure
16✔
NEW
31
    yield self
×
32
  end
33
end
34

35
# rubocop:disable Style/MixinUsage
36
include RemoteRuby
16✔
37
# rubocop:enable Style/MixinUsage
38

39
RemoteRuby.register_plugin(:rails, RemoteRuby::RailsPlugin)
16✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc