Skip to content

Commit

Permalink
Moving version file back inside the sdkpath
Browse files Browse the repository at this point in the history
  • Loading branch information
vishrutshah committed Jun 28, 2016
1 parent 2fb723e commit e899cc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public override async Task Generate(ServiceClient serviceClient)
{
Model = new VersionTemplateModel(packageVersion),
};
await Write(versionTemplate, "version" + ImplementationFileExtension);
await Write(versionTemplate, Path.Combine(sdkPath, "version" + ImplementationFileExtension));
}

// Module Definition File
Expand Down
2 changes: 1 addition & 1 deletion AutoRest/Generators/Ruby/Ruby/RubyCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ await Write(enumTemplate,
{
Model = new VersionTemplateModel(packageVersion),
};
await Write(versionTemplate, "version" + ImplementationFileExtension);
await Write(versionTemplate, Path.Combine(sdkPath, "version" + ImplementationFileExtension));
}

// Module Definition File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public virtual string GetDependencyGems()
{
requirements = requirements
+ Environment.NewLine
+ string.Format(CultureInfo.InvariantCulture, "require '{0}/version'", GeneratedFolderName);
+ string.Format(CultureInfo.InvariantCulture, "require '{0}/{1}/version'", GeneratedFolderName, this.sdkName);
}

return requirements;
Expand Down

0 comments on commit e899cc4

Please sign in to comment.