fountain_partner_api_client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +128 -0
- data/Rakefile +10 -0
- data/docs/DefaultApi.md +385 -0
- data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequest.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicant.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicantPartnerDetails.md +26 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPut200Response.md +20 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequest.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicant.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicantLabelsInner.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequest.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus.md +26 -0
- data/docs/V1PartnersIdGet200Response.md +18 -0
- data/docs/V1PartnersIdGet200Response1.md +18 -0
- data/docs/V1PartnersIdGet200Response1Data.md +22 -0
- data/docs/V1PartnersIdGet200Response1DataAttributes.md +42 -0
- data/docs/V1PartnersIdGet200ResponseData.md +22 -0
- data/docs/V1PartnersIdGet200ResponseDataAttributes.md +38 -0
- data/docs/V1PartnersIdGetRequest.md +18 -0
- data/docs/V1PartnersIdGetRequestPartner.md +38 -0
- data/fountain_partner_api_client.gemspec +38 -0
- data/git_push.sh +57 -0
- data/lib/fountain_partner_api_client/api/default_api.rb +379 -0
- data/lib/fountain_partner_api_client/api_client.rb +392 -0
- data/lib/fountain_partner_api_client/api_error.rb +57 -0
- data/lib/fountain_partner_api_client/configuration.rb +279 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +255 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +230 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +221 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +255 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1_data.rb +237 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1_data_attributes.rb +327 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data.rb +237 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data_attributes.rb +309 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get_request_partner.rb +309 -0
- data/lib/fountain_partner_api_client/version.rb +15 -0
- data/lib/fountain_partner_api_client.rb +58 -0
- data/lib/openapi_client/api/default_api.rb +379 -0
- data/lib/openapi_client/api_client.rb +392 -0
- data/lib/openapi_client/api_error.rb +57 -0
- data/lib/openapi_client/configuration.rb +279 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +255 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +230 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +221 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +255 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response1.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response1_data.rb +237 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response1_data_attributes.rb +327 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response_data.rb +237 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response_data_attributes.rb +309 -0
- data/lib/openapi_client/models/v1_partners_id_get_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_get_request_partner.rb +309 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +58 -0
- data/openapi_client.gemspec +38 -0
- data/spec/api/default_api_spec.rb +99 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details_spec.rb +58 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put200_response_spec.rb +40 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status_spec.rb +58 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_spec.rb +34 -0
- data/spec/models/v1_partners_id_get200_response1_data_attributes_spec.rb +106 -0
- data/spec/models/v1_partners_id_get200_response1_data_spec.rb +46 -0
- data/spec/models/v1_partners_id_get200_response1_spec.rb +34 -0
- data/spec/models/v1_partners_id_get200_response_data_attributes_spec.rb +94 -0
- data/spec/models/v1_partners_id_get200_response_data_spec.rb +46 -0
- data/spec/models/v1_partners_id_get200_response_spec.rb +34 -0
- data/spec/models/v1_partners_id_get_request_partner_spec.rb +94 -0
- data/spec/models/v1_partners_id_get_request_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- metadata +200 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdApplicantsApplicantIdStatusPostRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **applicant** | [**V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant**](V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'fountain_partner_api_client'
|
13
|
+
|
14
|
+
instance = FountainPartnerApiClient::V1PartnersIdApplicantsApplicantIdStatusPostRequest.new(
|
15
|
+
applicant: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **partner_status** | [**V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus**](V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'fountain_partner_api_client'
|
13
|
+
|
14
|
+
instance = FountainPartnerApiClient::V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant.new(
|
15
|
+
partner_status: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_option** | **String** | | [optional] |
|
8
|
+
| **link_title** | **String** | | [optional] |
|
9
|
+
| **status** | **String** | | [optional] |
|
10
|
+
| **title** | **String** | | [optional] |
|
11
|
+
| **url** | **String** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'fountain_partner_api_client'
|
17
|
+
|
18
|
+
instance = FountainPartnerApiClient::V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus.new(
|
19
|
+
account_option: null,
|
20
|
+
link_title: null,
|
21
|
+
status: null,
|
22
|
+
title: null,
|
23
|
+
url: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGet200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**V1PartnersIdGet200ResponseData**](V1PartnersIdGet200ResponseData.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'fountain_partner_api_client'
|
13
|
+
|
14
|
+
instance = FountainPartnerApiClient::V1PartnersIdGet200Response.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGet200Response1
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**V1PartnersIdGet200Response1Data**](V1PartnersIdGet200Response1Data.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'fountain_partner_api_client'
|
13
|
+
|
14
|
+
instance = FountainPartnerApiClient::V1PartnersIdGet200Response1.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGet200Response1Data
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **attributes** | [**V1PartnersIdGet200Response1DataAttributes**](V1PartnersIdGet200Response1DataAttributes.md) | | [optional] |
|
8
|
+
| **id** | **String** | | [optional] |
|
9
|
+
| **type** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'fountain_partner_api_client'
|
15
|
+
|
16
|
+
instance = FountainPartnerApiClient::V1PartnersIdGet200Response1Data.new(
|
17
|
+
attributes: null,
|
18
|
+
id: null,
|
19
|
+
type: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGet200Response1DataAttributes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **api_key** | **String** | | [optional] |
|
8
|
+
| **applicant_redirect_url** | **String** | | [optional] |
|
9
|
+
| **applicant_webhook** | **String** | | [optional] |
|
10
|
+
| **install_webhook** | **String** | | [optional] |
|
11
|
+
| **label_keys** | **Array** | | [optional] |
|
12
|
+
| **name** | **String** | | [optional] |
|
13
|
+
| **requested_attributes** | **Array** | | [optional] |
|
14
|
+
| **settings_auth_header** | **String** | | [optional] |
|
15
|
+
| **settings_auth_method** | **String** | | [optional] |
|
16
|
+
| **settings_password** | **String** | | [optional] |
|
17
|
+
| **settings_username** | **String** | | [optional] |
|
18
|
+
| **settings_webhook** | **String** | | [optional] |
|
19
|
+
| **uninstall_webhook** | **String** | | [optional] |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'fountain_partner_api_client'
|
25
|
+
|
26
|
+
instance = FountainPartnerApiClient::V1PartnersIdGet200Response1DataAttributes.new(
|
27
|
+
api_key: null,
|
28
|
+
applicant_redirect_url: null,
|
29
|
+
applicant_webhook: null,
|
30
|
+
install_webhook: null,
|
31
|
+
label_keys: null,
|
32
|
+
name: null,
|
33
|
+
requested_attributes: null,
|
34
|
+
settings_auth_header: null,
|
35
|
+
settings_auth_method: null,
|
36
|
+
settings_password: null,
|
37
|
+
settings_username: null,
|
38
|
+
settings_webhook: null,
|
39
|
+
uninstall_webhook: null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGet200ResponseData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **attributes** | [**V1PartnersIdGet200ResponseDataAttributes**](V1PartnersIdGet200ResponseDataAttributes.md) | | [optional] |
|
8
|
+
| **id** | **String** | | [optional] |
|
9
|
+
| **type** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'fountain_partner_api_client'
|
15
|
+
|
16
|
+
instance = FountainPartnerApiClient::V1PartnersIdGet200ResponseData.new(
|
17
|
+
attributes: null,
|
18
|
+
id: null,
|
19
|
+
type: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGet200ResponseDataAttributes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **api_key** | **String** | | [optional] |
|
8
|
+
| **applicant_redirect_url** | **String** | | [optional] |
|
9
|
+
| **applicant_webhook** | **String** | | [optional] |
|
10
|
+
| **install_webhook** | **String** | | [optional] |
|
11
|
+
| **label_keys** | **Array** | | [optional] |
|
12
|
+
| **name** | **String** | | [optional] |
|
13
|
+
| **requested_attributes** | **Array** | | [optional] |
|
14
|
+
| **settings_auth_header** | **String** | | [optional] |
|
15
|
+
| **settings_auth_method** | **String** | | [optional] |
|
16
|
+
| **settings_webhook** | **String** | | [optional] |
|
17
|
+
| **uninstall_webhook** | **String** | | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'fountain_partner_api_client'
|
23
|
+
|
24
|
+
instance = FountainPartnerApiClient::V1PartnersIdGet200ResponseDataAttributes.new(
|
25
|
+
api_key: null,
|
26
|
+
applicant_redirect_url: null,
|
27
|
+
applicant_webhook: null,
|
28
|
+
install_webhook: null,
|
29
|
+
label_keys: null,
|
30
|
+
name: null,
|
31
|
+
requested_attributes: null,
|
32
|
+
settings_auth_header: null,
|
33
|
+
settings_auth_method: null,
|
34
|
+
settings_webhook: null,
|
35
|
+
uninstall_webhook: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGetRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **partner** | [**V1PartnersIdGetRequestPartner**](V1PartnersIdGetRequestPartner.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'fountain_partner_api_client'
|
13
|
+
|
14
|
+
instance = FountainPartnerApiClient::V1PartnersIdGetRequest.new(
|
15
|
+
partner: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# FountainPartnerApiClient::V1PartnersIdGetRequestPartner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **applicant_redirect_url** | **String** | | [optional] |
|
8
|
+
| **applicant_webhook** | **String** | | [optional] |
|
9
|
+
| **install_webhook** | **String** | | [optional] |
|
10
|
+
| **label_keys** | **Array** | | [optional] |
|
11
|
+
| **partner_hmac_key** | **String** | | [optional] |
|
12
|
+
| **settings_auth_header** | **String** | | [optional] |
|
13
|
+
| **settings_auth_method** | **String** | | [optional] |
|
14
|
+
| **settings_password** | **String** | | [optional] |
|
15
|
+
| **settings_username** | **String** | | [optional] |
|
16
|
+
| **settings_webhook** | **String** | | [optional] |
|
17
|
+
| **uninstall_webhook** | **String** | | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'fountain_partner_api_client'
|
23
|
+
|
24
|
+
instance = FountainPartnerApiClient::V1PartnersIdGetRequestPartner.new(
|
25
|
+
applicant_redirect_url: null,
|
26
|
+
applicant_webhook: null,
|
27
|
+
install_webhook: null,
|
28
|
+
label_keys: null,
|
29
|
+
partner_hmac_key: null,
|
30
|
+
settings_auth_header: null,
|
31
|
+
settings_auth_method: null,
|
32
|
+
settings_password: null,
|
33
|
+
settings_username: null,
|
34
|
+
settings_webhook: null,
|
35
|
+
uninstall_webhook: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Fountain Partner Docs
|
5
|
+
|
6
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 6.2.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "fountain_partner_api_client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "fountain_partner_api_client"
|
20
|
+
s.version = FountainPartnerApiClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["James Thullbery"]
|
23
|
+
s.email = ["info@fountain.com"]
|
24
|
+
s.homepage = "https://partners.fountain.com/"
|
25
|
+
s.summary = "Fountain Partner Docs Ruby Gem"
|
26
|
+
s.description = "Fountains Partner API Client"
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|
data/git_push.sh
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=$(git remote)
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|