recurly 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/.github/ISSUE_TEMPLATE/bug-report.md +1 -1
- data/.github_changelog_generator +8 -0
- data/CHANGELOG.md +135 -0
- data/lib/recurly/requests/add_on_create.rb +9 -5
- data/lib/recurly/requests/add_on_update.rb +4 -0
- data/lib/recurly/requests/billing_info_create.rb +4 -0
- data/lib/recurly/requests/invoice_refund.rb +2 -2
- data/lib/recurly/requests/line_item_create.rb +2 -2
- data/lib/recurly/requests/plan_create.rb +8 -0
- data/lib/recurly/requests/plan_update.rb +8 -0
- data/lib/recurly/requests/subscription_add_on_create.rb +4 -0
- data/lib/recurly/requests/subscription_add_on_update.rb +4 -0
- data/lib/recurly/requests/subscription_change_create.rb +4 -0
- data/lib/recurly/requests/subscription_create.rb +4 -0
- data/lib/recurly/requests/subscription_purchase.rb +4 -0
- data/lib/recurly/requests/subscription_update.rb +4 -0
- data/lib/recurly/resources/add_on.rb +4 -0
- data/lib/recurly/resources/coupon.rb +4 -0
- data/lib/recurly/resources/line_item.rb +3 -3
- data/lib/recurly/resources/plan.rb +8 -0
- data/lib/recurly/resources/subscription.rb +4 -0
- data/lib/recurly/resources/subscription_change.rb +8 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +3368 -2277
- data/recurly.gemspec +1 -1
- data/scripts/bump +8 -1
- data/scripts/changelog +12 -0
- data/scripts/prepare-release +36 -0
- data/scripts/release +23 -4
- metadata +9 -5
data/recurly.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_development_dependency "net-http-persistent", "~> 2.9.4"
|
27
27
|
spec.add_development_dependency "bundler", "~> 2.0"
|
28
|
-
spec.add_development_dependency "rake", "~>
|
28
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
30
|
spec.add_development_dependency "yard", "~> 0.9"
|
31
31
|
spec.add_development_dependency "pry", "~> 0.10"
|
data/scripts/bump
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
set -e
|
3
3
|
|
4
|
-
|
4
|
+
if [ "$1" == "--next-version" ]; then
|
5
|
+
shift
|
6
|
+
bump2version --dry-run --list "$@" | grep new_version | cut -d "=" -f 2
|
7
|
+
elif [ "$1" == "--this-version" ]; then
|
8
|
+
grep current_version .bumpversion.cfg | awk -F" = " '{print $2}'
|
9
|
+
else
|
10
|
+
bump2version "$@"
|
11
|
+
fi
|
data/scripts/changelog
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
if [ -z "$GITHUB_TOKEN" ]; then
|
5
|
+
echo "Environment variable GITHUB_TOKEN must be set"
|
6
|
+
else
|
7
|
+
if [ "$1" == "--pending" ]; then
|
8
|
+
github_changelog_generator -t $GITHUB_TOKEN --unreleased-only -o "$2"
|
9
|
+
else
|
10
|
+
github_changelog_generator -t $GITHUB_TOKEN
|
11
|
+
fi
|
12
|
+
fi
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
# major,minor,patch
|
5
|
+
PART=${1}
|
6
|
+
NEXT_VERSION=$(./scripts/bump --next-version "$PART")
|
7
|
+
UNRELEASED_LOG="/tmp/ruby-pending-changes.md"
|
8
|
+
|
9
|
+
if [ -z "$NEXT_VERSION" ]; then
|
10
|
+
echo "Failed to get next version"
|
11
|
+
else
|
12
|
+
# Generate pending changes in tmpfile
|
13
|
+
./scripts/changelog --pending $UNRELEASED_LOG
|
14
|
+
# Add a git message header of Release X.Y.Z
|
15
|
+
printf "Release %s\n\n$(cat $UNRELEASED_LOG)" "$NEXT_VERSION" > $UNRELEASED_LOG
|
16
|
+
# Delete credit line
|
17
|
+
sed -i '' -e '$ d' $UNRELEASED_LOG
|
18
|
+
|
19
|
+
git checkout -b "release-$NEXT_VERSION"
|
20
|
+
|
21
|
+
# Actually bump the version
|
22
|
+
./scripts/bump "$PART"
|
23
|
+
|
24
|
+
# Rebuild docs
|
25
|
+
./scripts/build
|
26
|
+
|
27
|
+
# Make the commit
|
28
|
+
git add . --all
|
29
|
+
git commit -F "$UNRELEASED_LOG"
|
30
|
+
|
31
|
+
# Push up this branch for PR
|
32
|
+
git push origin "release-$NEXT_VERSION"
|
33
|
+
|
34
|
+
# Create PR
|
35
|
+
hub pull-request -c -F "$UNRELEASED_LOG"
|
36
|
+
fi
|
data/scripts/release
CHANGED
@@ -1,11 +1,30 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
set -e
|
3
3
|
|
4
|
-
#
|
5
|
-
|
4
|
+
# TODO this file could be gone
|
5
|
+
RELEASED_LOG="/tmp/ruby-pending-changes.md"
|
6
|
+
THIS_VERSION=$(./scripts/bump --this-version)
|
7
|
+
|
8
|
+
# Finally need to update the full changelog
|
9
|
+
./scripts/changelog
|
10
|
+
git add CHANGELOG.md
|
11
|
+
git commit -m "Update Changelog for Release $THIS_VERSION"
|
12
|
+
git push origin master
|
6
13
|
|
14
|
+
# publish
|
15
|
+
# Clean up any leftover gems
|
16
|
+
rm -f ./*.gem
|
7
17
|
# Build the new gem
|
8
18
|
gem build recurly.gemspec
|
9
|
-
|
10
19
|
# Push what should be the only gem present
|
11
|
-
gem push
|
20
|
+
gem push ./*.gem
|
21
|
+
|
22
|
+
# create release
|
23
|
+
hub release create -c -F "$RELEASED_LOG" "$THIS_VERSION"
|
24
|
+
|
25
|
+
# Copy-pasteable messages for announcments
|
26
|
+
echo ":ruby: Ruby $THIS_VERSION Released :ruby:"
|
27
|
+
echo ":rubygems: Rubygems: https://rubygems.org/gems/recurly/versions/$THIS_VERSION"
|
28
|
+
echo "Release: https://github.com/recurly/recurly-client-ruby/releases/tag/$THIS_VERSION"
|
29
|
+
echo "Changelog:"
|
30
|
+
cat "$RELEASED_LOG"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 12.3.3
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 12.3.3
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rspec
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,10 +152,12 @@ files:
|
|
152
152
|
- ".bumpversion.cfg"
|
153
153
|
- ".github/ISSUE_TEMPLATE/bug-report.md"
|
154
154
|
- ".github/ISSUE_TEMPLATE/question-or-other.md"
|
155
|
+
- ".github_changelog_generator"
|
155
156
|
- ".gitignore"
|
156
157
|
- ".rspec"
|
157
158
|
- ".travis.yml"
|
158
159
|
- ".yardopts"
|
160
|
+
- CHANGELOG.md
|
159
161
|
- CONTRIBUTING.md
|
160
162
|
- GETTING_STARTED.md
|
161
163
|
- Gemfile
|
@@ -293,8 +295,10 @@ files:
|
|
293
295
|
- recurly.gemspec
|
294
296
|
- scripts/build
|
295
297
|
- scripts/bump
|
298
|
+
- scripts/changelog
|
296
299
|
- scripts/clean
|
297
300
|
- scripts/format
|
301
|
+
- scripts/prepare-release
|
298
302
|
- scripts/release
|
299
303
|
- scripts/test
|
300
304
|
homepage: https://github.com/recurly/recurly-client-ruby
|
@@ -316,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
320
|
- !ruby/object:Gem::Version
|
317
321
|
version: '0'
|
318
322
|
requirements: []
|
319
|
-
rubygems_version: 3.0.
|
323
|
+
rubygems_version: 3.0.3
|
320
324
|
signing_key:
|
321
325
|
specification_version: 4
|
322
326
|
summary: The ruby client for Recurly's V3 API
|