recurly 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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", "~> 10.0"
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"
@@ -1,4 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- bump2version "$@"
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
@@ -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
@@ -1,11 +1,30 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- # Clean up any leftover gems
5
- rm -f *.gem
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 *.gem
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.0
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-02-20 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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.6
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