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

navarasu / serverless-ruby-layer / 0b542891-eff2-4587-be03-e6ba3e22cf76

07 Oct 2023 10:50PM UTC coverage: 89.606%. Remained the same
0b542891-eff2-4587-be03-e6ba3e22cf76

push

circleci

navarasu
Ruby 3.2 Support Release

74 of 92 branches covered (0.0%)

Branch coverage included in aggregate %.

176 of 187 relevant lines covered (94.12%)

219.69 hits per line

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

100.0
/index.js
1
'use strict';
2
const { bundleGems, excludePackage } = require('./lib/bundle');
14✔
3

4
class ServerlessRubyBundler {
5
  get options() {
6
    const options = Object.assign(
146✔
7
      {
8
        use_docker: false,
9
        ignore_gemfile_lock: false
10
      },
11
      (this.serverless.service.custom &&
292✔
12
        this.serverless.service.custom.rubyLayer) ||
13
        {}
14
    );
15
    return options;
146✔
16
  }
17
  constructor(serverless) {
18
    this.serverless = serverless;
14✔
19
    this.servicePath = this.serverless.config.servicePath;
14✔
20
    this.warningLogged = false;
14✔
21

22
    this.commands = {
14✔
23
      rubylayer: {
24
        lifecycleEvents: ['pack',],
25
        },
26
    };
27

28
    this.hooks = {
14✔
29
      'before:package:createDeploymentArtifacts': excludePackage.bind(this),
30
      'after:package:createDeploymentArtifacts': bundleGems.bind(this),
31
      'rubylayer:pack': bundleGems.bind(this),
32
    };
33

34
  }
35

36
}
37

38
module.exports = ServerlessRubyBundler;
14✔
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

© 2025 Coveralls, Inc