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.1.1 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.1.0 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.20 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.19 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.18 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.17 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.16 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.15 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.14 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.13 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.12 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.11 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.10 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.9 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.8 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.7 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.6 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.5 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.4 scripts/sdk-version-updater.js
fattureincloud_ruby_sdk-2.0.3 scripts/sdk-version-updater.js