Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: optimizely/ruby-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v.5.1.0
Choose a base ref
...
head repository: optimizely/ruby-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 9 commits
  • 30 files changed
  • 3 contributors

Commits on May 16, 2025

  1. [FSSDK-11389] update: experiment_id and variation_id added to payloads (

    #361)
    
    * optimizely.rb -> added variation id and experiment id to notification listerner payload
    optimizely_user_context_spec.rb -> fixed unit tests
    
    * -unit tests updated
    -rubocop autocorrection
    
    * chore: trigger CI
    
    * fix: rubocop corrections
    FarhanAnjum-opti authored May 16, 2025
    Configuration menu
    Copy the full SHA
    61a95c3 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2025

  1. [FSSDK-11140] Ruby: Update project config to track CMAB properties (#362

    )
    
    * [FSSDK-11140] Ruby: Update project config to track CMAB properties
    
    * Fix errors
    
    * Fix errors
    
    * Fix test
    
    * Correct the experiment
    
    * Add new test cases related CMAB
    
    * Implement comments
    
    * Correct the type
    
    * Fix lint
    esrakartalOpt authored Jun 13, 2025
    Configuration menu
    Copy the full SHA
    7658884 View commit details
    Browse the repository at this point in the history
  2. [FSSDK-11149] Ruby: Implement CMAB Client (#364)

    * [FSSDK-11149] Ruby: Implement CMAB Client
    
    * Implement copilot review
    
    * Implement comments
    
    * correct the name
    
    * correct the sleep
    
    * Correct the sleep
    esrakartalOpt authored Jun 13, 2025
    Configuration menu
    Copy the full SHA
    95f9e35 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2025

  1. [FSSDK-11158] update: add remove method in LRU Cache for CMAB service (

    …#366)
    
    * update: Extend LRUCache with remove method and corresponding tests
    
    * update: Clean up whitespace in LRUCache implementation and tests
    
    * update: Extend copyright notice to include 2025
    FarhanAnjum-opti authored Jul 17, 2025
    Configuration menu
    Copy the full SHA
    b210c55 View commit details
    Browse the repository at this point in the history
  2. [FSSDK-11167] Implement CMAB service (#367)

    * update: Extend LRUCache with remove method and corresponding tests
    
    * update: Clean up whitespace in LRUCache implementation and tests
    
    * update: Extend copyright notice to include 2025
    
    * update: Implement Default CMAB Service
    
    * update: Enable keyword initialization for CmabDecision and CmabCacheValue structs (otherwise breaks in ruby version change)
    FarhanAnjum-opti authored Jul 17, 2025
    Configuration menu
    Copy the full SHA
    da64665 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2025

  1. [FSSDK-11459] Ruby - Add SDK Multi-Region Support for Data Hosting (#365

    )
    
    * [FSSDK-11459] Ruby - Add SDK Multi-Region Support for Data Hosting
    
    * Fix lint issues
    
    * Fix lint
    
    * Fix test
    
    * Add with region
    
    * Fix lint
    
    * Fix lint issue
    
    * Correct the Region default value
    
    * Fix failed tests
    
    * Fix lint
    
    * Fix test cases
    
    * Fix event builder
    
    * Fix the issue
    
    * Fix typo
    
    * Correct the event name
    
    * Fix errors
    
    * Fix errors
    
    * Fix test cases
    
    * Fix test cases
    
    * Implement copilot review comments
    
    * Fix lint
    
    * Implement changes and add new tests
    
    * Fix lint issue
    
    * Remove unnecessary region params
    
    * Remove region from expected param
    
    * Remove region from impression expected
    
    * Add region to builder
    
    * Add region to as_json
    
    * Implement
    
    * Update region EU
    
    * Fix test
    esrakartalOpt authored Jul 28, 2025
    Configuration menu
    Copy the full SHA
    adbd74e View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2025

  1. [FSSDK-11176] Update: Implement Decision Service methods to handle CM…

    …AB (#369)
    
    * update: Extend LRUCache with remove method and corresponding tests
    
    * update: Clean up whitespace in LRUCache implementation and tests
    
    * update: Extend copyright notice to include 2025
    
    * update: Implement Default CMAB Service
    
    * update: Enable keyword initialization for CmabDecision and CmabCacheValue structs (otherwise breaks in ruby version change)
    
    * update: Refactor bucketing logic to handle empty traffic ranges and improve logging
    
    * update: Add support for CMAB traffic allocation in bucketing logic
    
    * update: Enhance DecisionService to support CMAB traffic allocation and decision retrieval
    
    * update: Integrate CMAB decision logic into DecisionService and update related tests
    
    * update: Refactor DecisionService to return DecisionResult struct instead of Decision struct
    
    * update: Integrate CMAB components into Project class and enhance decision handling
    
    * update: Refactor CMAB traffic allocation handling and enhance decision service error logging
    
    * update: Refactor OptimizelyDecision instantiation to use keyword arguments for clarity
    
    * update: Remove commented debug output from Optimizely user context spec
    
    * Trigger CI build
    
    ---------
    
    Co-authored-by: Matjaz Pirnovar <Mat001@users.noreply.github.com>
    FarhanAnjum-opti and Mat001 authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    1135958 View commit details
    Browse the repository at this point in the history
  2. [FSSDK-11723] fix: rubocop failing on ruby 3.0.0 (#371)

    * update: change Ruby version from 3.0.0 to 3.0.1 in CI workflow
    
    * update: revert Ruby version to 3.0.0 in CI workflow and pin rubocop version
    
    * update: add auto-correction step for rubocop in CI workflow
    FarhanAnjum-opti authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    a3e6b06 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2025

  1. [FSSDK-11185] Update: Send CMAB uuid in impression events (#370)

    * update: Extend LRUCache with remove method and corresponding tests
    
    * update: Clean up whitespace in LRUCache implementation and tests
    
    * update: Extend copyright notice to include 2025
    
    * update: Implement Default CMAB Service
    
    * update: Enable keyword initialization for CmabDecision and CmabCacheValue structs (otherwise breaks in ruby version change)
    
    * update: Refactor bucketing logic to handle empty traffic ranges and improve logging
    
    * update: Add support for CMAB traffic allocation in bucketing logic
    
    * update: Enhance DecisionService to support CMAB traffic allocation and decision retrieval
    
    * update: Integrate CMAB decision logic into DecisionService and update related tests
    
    * update: Refactor DecisionService to return DecisionResult struct instead of Decision struct
    
    * update: Integrate CMAB components into Project class and enhance decision handling
    
    * update: Refactor CMAB traffic allocation handling and enhance decision service error logging
    
    * update: Refactor OptimizelyDecision instantiation to use keyword arguments for clarity
    
    * update: Enhance send_impression method to include CMAB UUID and add tests for CMAB experiments
    
    * update: Refactor CMAB client initialization and enhance audience conditions parsing
    
    * update: Refactor attribute filtering logic and improve test attribute structure
    
    * update: Handle errors in decision result to prevent fallback to next experiment
    
    * update: Improve error message formatting for CMAB decision failures
    
    * update: fix error message for CMAB decision fetching
    
    * update: fix error message
    
    * update: fix key naming for variation_id in CMAB response handling
    
    * update: fix key naming for variation_id in CMAB response handling in spec file
    
    * update: fix argument order in CMAB traffic allocation method
    
    * update: refactor decision variation access in Optimizely project
    
    * update: handle nil variation_id in get_variation method
    FarhanAnjum-opti authored Aug 6, 2025
    Configuration menu
    Copy the full SHA
    f4967e4 View commit details
    Browse the repository at this point in the history
Loading