Skip to content

feat: update ruby version #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Aug 4, 2022
Merged

Conversation

andrewleap-optimizely
Copy link
Contributor

Summary

  • Update supported versions of Ruby to 2.7, 3.0 and 3.1.

Current supported versions have reached EOL.

Test plan

  • All tests should pass on all supported versions

Ticket

@andrewleap-optimizely andrewleap-optimizely marked this pull request as draft July 29, 2022 15:13
@andrewleap-optimizely andrewleap-optimizely removed the request for review from a team July 29, 2022 15:41
@andrewleap-optimizely andrewleap-optimizely marked this pull request as ready for review August 1, 2022 20:11
Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Great! Added a few minor comments. Please also.

  1. Update the copyright header in the files that were changed.
  2. Add a changelog entry.
  3. Update github actions references to master before merging.

@@ -34,7 +34,8 @@ class SimpleLogger < BaseLogger
# Simple wrapper around Logger.

def initialize(min_level = Logger::INFO)
@logger = Logger.new(STDOUT)
super()
@logger = Logger.new($stdout)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is $stdout supposed to be defined somewhere above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was one of the automated fixes generated by rubocop. Looks like both STDOUT and $stdout have global scope, but $stdout is preferred because STDOUT is a constant.

@@ -17,5 +17,5 @@
#
module Optimizely
CLIENT_ENGINE = 'ruby-sdk'
VERSION = '3.10.1'
VERSION = '4.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only update version when we are making a PR for release prep. you should leave the SDK version as is for this PR

CHANGELOG.md Outdated
@@ -1,7 +1,7 @@
# Optimizely Ruby SDK Changelog

## 4.0.0
August 1st, 2022
August 3st, 2022
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add a date and version here. Version and date will be added once we are ready to release. This should go in unreleased. It should be

Unreleased

Changes

  • Breaking change: Changed official supported versions of Ruby to 2.7, 3.0 and 3.1

@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright 2019-2021, Optimizely and contributors
# Copyright 2019-2021, 2022, Optimizely and contributors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be 2019-2022

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😲

Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@andrewleap-optimizely andrewleap-optimizely merged commit c4ed888 into master Aug 4, 2022
@andrewleap-optimizely andrewleap-optimizely deleted the aleap/update_ruby_version branch August 4, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants