Skip to content

Commit 878a4ba

Browse files
added releasinator config
1 parent 006fb99 commit 878a4ba

8 files changed

+166
-29
lines changed

.github/ISSUE_TEMPLATE.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### General Information
2+
3+
- Mode (Sandbox/Live):
4+
- PayPal-Debug-ID(s) (from any logs):
5+
- Version of node.js used:
6+
- SDK Version:
7+
8+
### Issue Description
9+
10+
> Please include as many details (logs, steps to reproduce, frameworks/dependencies) as you can to help us reproduce this issue faster.

.releasinator.rb

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#### releasinator config ####
2+
configatron.product_name = "PayPal Ruby SDK"
3+
4+
# List of items to confirm from the person releasing. Required, but empty list is ok.
5+
configatron.prerelease_checklist_items = [
6+
"Sanity check the master branch.",
7+
"Unit tests passed.",
8+
"Functional tests passed."
9+
]
10+
11+
def validate_version_match()
12+
puts @current_release.version
13+
if package_version() != @current_release.version
14+
Printer.fail("Package.json version #{package_version} does not match changelog version #{@current_release.version}.")
15+
abort()
16+
end
17+
Printer.success("Package.json version #{package_version} matches latest changelog version #{@current_release.version}.")
18+
end
19+
20+
def validate_paths
21+
@validator.validate_in_path("jq")
22+
end
23+
24+
def run_unit_tests
25+
CommandProcessor.command("bundle exec rspec", live_output=true)
26+
end
27+
28+
def run_functional_tests
29+
CommandProcessor.command("bundle exec rspec --tag integration", live_output=true)
30+
end
31+
32+
configatron.custom_validation_methods = [
33+
method(:validate_paths),
34+
method(:validate_version_match),
35+
method(:run_unit_tests),
36+
method(:run_functional_tests)
37+
]
38+
39+
# there are no separate build steps for PayPal-Cordova-Plugin, so it is just empty method
40+
def build_method
41+
Rake::Task["build"].invoke
42+
Rake::Task["release:guard_clean"].invoke
43+
end
44+
45+
# The command that builds the sdk. Required.
46+
configatron.build_method = method(:build_method)
47+
48+
def publish_to_package_manager(version)
49+
Rake::Task["release:rubygem_push"].invoke
50+
end
51+
52+
# The method that publishes the sdk to the package manager. Required.
53+
configatron.publish_to_package_manager_method = method(:publish_to_package_manager)
54+
55+
56+
def wait_for_package_manager(version)
57+
CommandProcessor.wait_for("wget -U \"non-empty-user-agent\" -qO- https://rubygems.org/gems/paypal-sdk-rest/versions/#{version} | cat")
58+
end
59+
60+
# The method that waits for the package manager to be done. Required
61+
configatron.wait_for_package_manager_method = method(:wait_for_package_manager)
62+
63+
# Whether to publish the root repo to GitHub. Required.
64+
configatron.release_to_github = true
65+
66+
def package_version()
67+
f=File.open("lib/paypal-sdk/rest/version.rb", 'r') do |f|
68+
f.each_line do |line|
69+
if line.match (/VERSION = \"\d*\.\d*\.\d*\"/)
70+
puts line
71+
return line.strip.split('=')[1].strip.split('"')[1]
72+
end
73+
end
74+
end
75+
end

CHANGELOG.txt CHANGELOG.md

+61-29
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,140 @@
1-
Version 1.4.4
1+
PayPal Node SDK release notes
2+
=============================
3+
4+
1.4.4
5+
------
26
* Update on Invoicing API changes [#189](https://github.com/paypal/PayPal-Ruby-SDK/pull/189)
37

4-
Version 1.4.3
8+
1.4.3
9+
------
510
* Fix issue where uninitialized constant PayPal::SDK::Core::API::Merchant occurs for merchant-sdk-ruby issue [#184](https://github.com/paypal/PayPal-Ruby-SDK/issues/184)
611

7-
Version 1.4.2
12+
1.4.2
13+
------
814
* Fix test category [#178](https://github.com/paypal/PayPal-Ruby-SDK/issues/178)
915
* Delete code irrelevant to REST APIs [#179](https://github.com/paypal/PayPal-Ruby-SDK/issues/179)
1016
* Fix OpenSSL::X509::StoreError: system lib error for webhook validation [#170](https://github.com/paypal/PayPal-Ruby-SDK/issues/170)
1117
* Fix incorrect warning message when using DEBUG logging on live [#182](https://github.com/paypal/PayPal-Ruby-SDK/pull/182)
1218

13-
Version 1.4.1
19+
1.4.1
20+
------
1421
* Fix Webhook common name verification
1522

16-
Version 1.4.0
23+
1.4.0
24+
------
1725
* Fix CreditCard.update()
1826
* Payment API support
1927
* Updated TLS warning message
2028

21-
Version 1.3.4
29+
1.3.4
30+
------
2231
* Fix payment.update() [#163](https://github.com/paypal/PayPal-Ruby-SDK/issues/163)
2332
* Include openssl version in user-agent header
2433
* Add TLS 1.2 support
2534

26-
Version 1.3.3
35+
1.3.3
36+
------
2737
* Added failover for capturing debug ID
2838
* Enabled verbose payload logging [#146](https://github.com/paypal/PayPal-Ruby-SDK/issues/146)
2939
* Removed `time_updated` field in agreement_transaction per [API change](https://developer.paypal.com/webapps/developer/docs/api/#agreementtransaction-object)
3040
* Removed `payment_details` field in invoice per [API change](https://developer.paypal.com/webapps/developer/docs/api/#invoice-object)
3141
* Added `payment_options` field to Transaction per [API change](https://developer.paypal.com/webapps/developer/docs/api/#transaction-object)
3242
* Added secure logging to avoid logging confidential data (e.g., credit card number)
3343

34-
Version 1.3.2
44+
1.3.2
45+
------
3546
* Fixed webprofile.create()
3647
* Fixed webprofile.get_list()
3748
* Updated webprofile test cases
3849

39-
Version 1.3.1
50+
1.3.1
51+
------
4052
* Added CreditCard list() support
4153
* Added request/response body debugging statements
4254
* Fixed future payment support, moved sample code, and added docs [#137](https://github.com/paypal/PayPal-Ruby-SDK/issues/137)
4355

44-
Version 1.3.0 - June 30, 2015
56+
1.3.0 - June 30, 2015
57+
----------------------
4558
* Added Webhook validation
4659

47-
Version 1.2.2 - June 17, 2015
60+
1.2.2 - June 17, 2015
61+
---------------------
4862
* Fixed NameError due to underscore in variable name
4963
* Fixed Vault endpoints
5064

51-
Version 1.2.1 - May 21, 2015
65+
1.2.1 - May 21, 2015
66+
--------------------
5267
* Paypal-Debug-Id printed for any exception
5368

54-
Version 1.2.0 - March 3, 2015
69+
1.2.0 - March 3, 2015
70+
----------------------
5571
* Webhook management API support added
5672

57-
Version 1.1.2 - March 3, 2015
73+
1.1.2 - March 3, 2015
74+
----------------------
5875
* Updated payment data models
5976

60-
Version 1.1.1 - February 5, 2015
77+
1.1.1 - February 5, 2015
78+
-------------------------
6179
* Packaged paypal cert in gem
6280

63-
Version 1.1.0 - February 4, 2015
81+
1.1.0 - February 4, 2015
82+
------------------------
6483
* Added Payouts support
6584
* Improved sample page layout
6685

67-
Version 1.0.0 - January 27, 2015
86+
1.0.0 - January 27, 2015
87+
-----------------------
6888
* Merged sdk-core-ruby with paypal-ruby-sdk
6989

70-
Version 0.10.0 - January 7, 2015
90+
0.10.0 - January 7, 2015
91+
------------------------
7192
* Added subscription (billing plan and agreement) support
7293

73-
Version 0.9.1 - December 19, 2014
94+
0.9.1 - December 19, 2014
95+
-------------------------
7496
* Separated out extended data types (future payment)
7597

76-
Version 0.9.0 - December 15, 2014
98+
0.9.0 - December 15, 2014
99+
-------------------------
77100
* Added payment-experience (web profiles) support
78101
* Added test execution guide
79102

80-
Version 0.8.0 - December 11, 2014
103+
0.8.0 - December 11, 2014
104+
-------------------------
81105
* Added order/auth/capture support
82106
* Grouped tests in 2 categories: unit tests, integration(functional) tests
83107
* Disabled some tests that involve manual steps (e.g., log in to PayPal website)
84108

85-
Version 0.7.3 - November 21, 2014
109+
0.7.3 - November 21, 2014
110+
-------------------------
86111
* Changed Correlation ID header for future payment
87112
* Added data model for Order/Auth/Capture
88113

89-
Version 0.7.2 - October 20, 2014
114+
0.7.2 - October 20, 2014
115+
------------------------
90116
* Added Order support
91117

92-
Version 0.7.1 - October 8, 2014
118+
0.7.1 - October 8, 2014
119+
-----------------------
93120
* Added Auth support
94121

95-
Version 0.7.0 - July 1, 2014
122+
0.7.0 - July 1, 2014
123+
--------------------
96124
* Added future payment support
97125

98-
Version 0.6.1 - Apr 04, 2014
126+
0.6.1 - Apr 04, 2014
127+
--------------------
99128
* Added support for Invoice APIs
100129

101-
Version 0.6.0 - May 30, 2013
130+
0.6.0 - May 30, 2013
131+
--------------------
102132
* Added support for Auth and Capture APIs
103133

104-
Version 0.5.2 - Apr 26, 2013
134+
0.5.1 - Apr 26, 2013
135+
--------------------
105136
* Update core version to 0.2.3 for OpenID Connect
106137

107-
Version 0.5.0 - Mar 07, 2013
138+
0.5.0 - Mar 07, 2013
139+
--------------------
108140
* Initial Release

CONTRIBUTING.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Contribute to the PayPal-Cordova-Plugin
2+
3+
### *Pull requests are welcome!*
4+
5+
6+
General Guidelines
7+
------------------
8+
9+
* **Code style.** Please follow local code style. Ask if you're unsure.
10+
* **No warnings.** All generated code must compile without warnings.

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ group :test do
1010
gem 'simplecov', :require => false
1111
gem 'rspec'
1212
end
13+
14+
gem 'releasinator', '~> 0.4'

LICENSE.txt LICENSE

File renamed without changes.

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -272,3 +272,8 @@ rescue ResourceNotFound => err
272272
logger.error @payout.error.inspect
273273
end
274274
```
275+
## License
276+
Code released under [SDK LICENSE](LICENSE)
277+
278+
## Contributions
279+
Pull requests and new issues are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Rakefile

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ task :rspec do
77
end
88

99
task :default => :rspec
10+
11+
spec = Gem::Specification.find_by_name 'releasinator'
12+
load "#{spec.gem_dir}/lib/tasks/releasinator.rake"

0 commit comments

Comments
 (0)