Skip to content

Commit 7a53bdd

Browse files
author
Shiva Shankaran, Akshaya
committed
Updated Batch and mustache file
1 parent b526159 commit 7a53bdd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

generator/cybersource-ruby-template/gemspec.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
2222
{{^gemLicense}}
2323
s.license = "Unlicense"
2424
{{/gemLicense}}
25+
s.files = Dir.glob("{lib,AuthenticationSDK}/**/*")
2526
s.required_ruby_version = "{{{gemRequiredRubyVersion}}}{{^gemRequiredRubyVersion}}>= 1.9{{/gemRequiredRubyVersion}}"
2627

2728
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
mkdir %~dp0Ruby
22
cd %~dp0
3+
34
java -jar swagger-codegen-cli-2.2.3.jar generate -t cybersource-ruby-template -i cybersource-rest-spec.json -l ruby -o Ruby -c %~dp0cybersource-ruby-config.json
45

5-
pause
6-
7-
6+
powershell -Command "(Get-Content .\Ruby\lib\cybersource_rest_client.rb) | ForEach-Object { $_ -replace 'cybersource_rest_client/models/error__links', 'cybersource_rest_client/models/error_links' } | Set-Content .\Ruby\lib\cybersource_rest_client.rb"
87

8+
cd Ruby\lib\cybersource_rest_client\api
9+
powershell -Command "&{$configFiles = Get-ChildItem . *.rb -rec; foreach ($file in $configFiles){ (Get-Content $file.PSPath) | Foreach-Object { $_ -replace 'local_var_path = ''/', 'local_var_path = '''} | Set-Content $file.PSPath }}"
910

11+
pause

0 commit comments

Comments
 (0)