File tree Expand file tree Collapse file tree
packages/jsii-pacmak/lib/targets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ import { Generator, Legalese } from '../generator';
77import { Target , TargetOptions } from '../target' ;
88import { subprocess } from '../util' ;
99import { VERSION } from '../version' ;
10- import { toRubyVersionRange } from './version-utils' ;
10+ import { toReleaseVersion , toRubyVersionRange } from './version-utils' ;
11+
12+ import { TargetName } from './index' ;
1113
1214export class RubyTarget extends Target {
1315 protected readonly generator : RubyGenerator ;
@@ -818,7 +820,7 @@ class RubyGenerator extends Generator {
818820 const gemspecContent = [
819821 `Gem::Specification.new do |s|` ,
820822 ` s.name = '${ gemName } '` ,
821- ` s.version = '${ assembly . version } '` ,
823+ ` s.version = '${ toReleaseVersion ( assembly . version , TargetName . RUBY ) } '` ,
822824 ` s.summary = 'Ruby bindings for ${ assembly . name } '` ,
823825 ` s.authors = ['JSII Generator']` ,
824826 ` s.files = Dir["lib/**/*"]` ,
You can’t perform that action at this time.
0 commit comments