Skip to content

Commit afcb361

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents fa89688 + 9d8931c commit afcb361

File tree

716 files changed

+89078
-93934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

716 files changed

+89078
-93934
lines changed

.gitattributes

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# default behavior
2+
* text=auto
3+
4+
# code files
5+
*.rb text eol=lf
6+
7+
# test files
8+
*.xml text eol=lf
9+
*.json text eol=lf
10+
11+
# scripts
12+
*.bat text eol=crlf
13+
*.ps1 text eol=crlf
14+
*.sh text eol=lf
15+
16+
17+
18+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ packages/
2727
Plugins/Aspose_Words_NET_for_PHP/.idea/*
2828
Plugins/Aspose_Words_NET_for_PHP/vendor/*
2929
Plugins/Aspose_Words_NET_for_PHP/composer.lock
30-
*.gitattributes
3130
*.pyc
3231
# Built application files
3332
*.apk
@@ -115,6 +114,7 @@ vendor/*
115114
testReports/*
116115
Gemfile.lock
117116
servercreds.json
117+
test/*
118118

119119
# VS files
120120
.vscode

Jenkinsfile

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,62 @@
1-
parameters {
2-
string(name: 'branch', defaultValue: 'master', description: 'branch to test')
3-
string(name: 'apiUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'server url')
4-
booleanParam(name: 'debugMode', defaultValue: 'false', description: 'start tests in debug mode')
5-
}
1+
properties([
2+
gitLabConnection('gitlab'),
3+
[$class: 'ParametersDefinitionProperty',
4+
parameterDefinitions: [
5+
[$class: 'StringParameterDefinition', name: 'branch', defaultValue: 'master', description: 'the branch to build'],
6+
[$class: 'StringParameterDefinition', name: 'apiUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'api url'],
7+
[$class: 'BooleanParameterDefinition', name: 'debugMode', defaultValue: 'false', description: 'debug mode'],
8+
[$class: 'BooleanParameterDefinition', name: 'ignoreCiSkip', defaultValue: false, description: 'ignore CI Skip'],
9+
]
10+
]
11+
])
612

713
def runtests(dockerImageVersion)
814
{
15+
def needToBuild = false
16+
917
dir(dockerImageVersion){
1018
try {
1119
stage('checkout'){
1220
checkout([$class: 'GitSCM', branches: [[name: params.branch]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '361885ba-9425-4230-950e-0af201d90547', url: 'https://git.auckland.dynabic.com/words-cloud/words-cloud-ruby.git']]])
13-
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'AppKey', usernameVariable: 'AppSid')]) {
14-
sh 'mkdir -p Settings'
15-
sh 'echo "{\\"AppSid\\": \\"$AppSid\\",\\"AppKey\\": \\"$AppKey\\", \\"BaseUrl\\": \\"$apiUrl\\", \\"Debug\\" : $debugMode}" > Settings/servercreds.json'
21+
22+
sh 'git show -s HEAD > gitMessage'
23+
def commitMessage = readFile('gitMessage').trim()
24+
echo commitMessage
25+
needToBuild = params.ignoreCiSkip || !commitMessage.contains('[ci skip]')
26+
sh 'git clean -fdx'
27+
28+
if (needToBuild) {
29+
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'AppKey', usernameVariable: 'AppSid')]) {
30+
sh 'mkdir -p Settings'
31+
sh 'echo "{\\"AppSid\\": \\"$AppSid\\",\\"AppKey\\": \\"$AppKey\\", \\"BaseUrl\\": \\"$apiUrl\\", \\"Debug\\" : $debugMode}" > Settings/servercreds.json'
32+
}
1633
}
1734
}
1835

19-
docker.image('ruby:' + dockerImageVersion).inside('-u root'){
20-
stage('build'){
21-
sh "mkdir testReports"
22-
sh "gem install bundler -v 2.0.2 && bundle install"
23-
}
24-
25-
stage('tests'){
26-
try{
27-
sh 'rake test'
28-
} finally{
29-
junit 'testReports/report/*.xml'
30-
}
31-
}
32-
33-
stage('bdd-tests'){
34-
35-
}
36-
37-
stage('clean-compiled'){
38-
sh "rm -rf %s"
39-
}
40-
}
36+
if (needToBuild) {
37+
docker.image('ruby:' + dockerImageVersion).inside('-u root'){
38+
stage('build'){
39+
sh "mkdir testReports"
40+
sh "gem install bundler -v 2.0.2 && bundle install"
41+
}
42+
43+
stage('tests'){
44+
try{
45+
sh 'rake test'
46+
} finally{
47+
junit 'testReports/report/*.xml'
48+
}
49+
}
50+
51+
stage('bdd-tests'){
52+
53+
}
54+
55+
stage('clean-compiled'){
56+
sh "rm -rf %s"
57+
}
58+
}
59+
}
4160
} finally {
4261
cleanWs()
4362
}

README.md

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Aspose.Words Cloud SDK for Ruby
22
This repository contains Aspose.Words Cloud SDK for Ruby source code. This SDK allows you to work with Aspose.Words Cloud REST APIs in your Ruby applications quickly and easily, with zero initial cost.
33

4-
[Aspose.Words Cloud](https://products.aspose.cloud/words/family "Aspose.Words Cloud")
4+
[Aspose.Words Cloud](https://products.aspose.cloud/words/family "Aspose.Words for Cloud")
55
[API Reference](https://apireference.aspose.cloud/words/)
66

77
## Key Features
@@ -24,7 +24,7 @@ To use Aspose Words for Cloud Ruby SDK you need to register an account with [Asp
2424
To install this package do the following:
2525
update your Gemfile
2626
```ruby
27-
gem 'aspose_words_cloud', '~> 20.3'
27+
gem 'aspose_words_cloud', '~> 20.7'
2828
```
2929
or install directly
3030
```bash
@@ -33,47 +33,36 @@ gem install aspose_words_cloud
3333

3434
### Sample usage
3535
```ruby
36-
# Start README example
37-
38-
AsposeWordsCloud.configure do |config|
39-
config.api_key['api_key'] = appKey
40-
config.api_key['app_sid'] = appSid
41-
config.baseUrl = baseUrl
42-
end
43-
44-
api = WordsApi.new
45-
46-
uploadRequest = UploadFileRequest.new File.new(File.join(local_common_folder, filename), 'rb'), File.join(remote_folder, remote_name)
47-
#api.upload_file uploadRequest
48-
49-
request = DeleteWatermarkRequest.new remote_name, remote_folder
50-
#result = api.delete_watermark request
51-
52-
# End README example
36+
AsposeWordsCloud.configure do |config|
37+
config.api_key['api_key'] = AppKey
38+
config.api_key['app_sid'] = AppSid
39+
config.host = host
40+
request = DeleteWatermarkRequest.new remote_name, remote_test_folder + test_folder
41+
result = @words_api.delete_watermark request
5342
```
54-
43+
5544
[Tests](tests/) contain various examples of using the SDK.
5645

5746
## Dependencies
5847
- Ruby 2.3 or later
5948
- referenced packages (see [here](Gemfile) for more details)
6049

6150
## Licensing
62-
51+
6352
All Aspose.Words Cloud SDKs, helper scripts and templates are licensed under [MIT License](https://github.com/aspose-words-cloud/aspose-words-cloud-ruby/blob/master/LICENSE).
6453

6554
## Contact Us
6655
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.aspose.cloud/c/words).
6756

6857
## Resources
69-
58+
7059
[Website](https://www.aspose.cloud/)
7160
[Product Home](https://products.aspose.cloud/words/family)
7261
[API Reference](https://apireference.aspose.cloud/words/)
7362
[Documentation](https://docs.aspose.cloud/display/wordscloud/Home)
7463
[Blog](https://blog.aspose.cloud/category/words/)
75-
64+
7665
## Other languages
7766
We generate our SDKs in different languages so you may check if yours is available in our [list](https://github.com/aspose-words-cloud).
78-
67+
7968
If you don't find your language in the list, feel free to request it from us, or use raw REST API requests as you can find it [here](https://products.aspose.cloud/words/curl).

0 commit comments

Comments
 (0)