Sha256: 063fff3f98b23e8d3cce5ff7cdba0ecaceb12991ad3a1aed13f3ac9a6d77d530

Contents?: true

Size: 333 Bytes

Versions: 22

Compression:

Stored size: 333 Bytes

Contents

// sdk-version-updater.js
const yaml = require('js-yaml')

module.exports.readVersion = function (contents) {
    const doc = yaml.load(contents)
    return doc.info.version;
}

module.exports.writeVersion = function (contents, version) {
    const doc = yaml.load(contents)
    doc.info.version = version
    return yaml.dump(doc)
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fattureincloud_ruby_sdk-2.0.2 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.1 scripts/sdk-version-updater.js