{"id":17177251,"url":"https://github.com/lexi-lambda/simple_split","last_synced_at":"2025-09-16T12:10:54.204Z","repository":{"id":34964716,"uuid":"39040401","full_name":"lexi-lambda/simple_split","owner":"lexi-lambda","description":"dead simple A/B testing on Rails","archived":false,"fork":false,"pushed_at":"2015-07-24T05:01:05.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T01:57:17.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lexi-lambda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-13T22:21:07.000Z","updated_at":"2019-03-08T04:11:54.000Z","dependencies_parsed_at":"2022-09-01T23:41:05.792Z","dependency_job_id":null,"html_url":"https://github.com/lexi-lambda/simple_split","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lexi-lambda/simple_split","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fsimple_split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fsimple_split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fsimple_split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fsimple_split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexi-lambda","download_url":"https://codeload.github.com/lexi-lambda/simple_split/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexi-lambda%2Fsimple_split/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272235180,"owners_count":24897161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T00:03:12.728Z","updated_at":"2025-09-16T12:10:49.131Z","avatar_url":"https://github.com/lexi-lambda.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# simple_split – dead simple A/B testing on Rails [![Gem Version](https://badge.fury.io/rb/simple_split.svg)](http://badge.fury.io/rb/simple_split) [![Code Climate](https://codeclimate.com/github/lexi-lambda/simple_split/badges/gpa.svg)](https://codeclimate.com/github/lexi-lambda/simple_split) [![Build Status](https://travis-ci.org/lexi-lambda/simple_split.svg?branch=master)](https://travis-ci.org/lexi-lambda/simple_split)\n\nThe `simple_split` gem provides the absolute simplest possible interface for\nsplit testing via Rails while still providing an expressive set of tools for\nwriting and maintaining experiments. More traditional solutions like\n[`split`][split] provide more bells and whistles, but they also do far\nmore than is necessary for simple split testing via good analytics services.\n\nInstead, `simple_split` is bare bones, but it still supports flexible testing.\n\n  - Includes optionally-weighted variations\n  - Does not require the use of any data store\n  - Variations already seen by users are tracked via cookies\n\n## Quick Start\n\nAdd `gem 'simple_split'` to your Gemfile, then run `bundle`. That's it. Now you\ncan start writing A/B tests for your project.\n\nAll classes that inherit from `ActionView` or `ActionController` have access to\nthe `ab_test` method. It accepts an experiment name and a list of variations.\n\n```ruby\nab_test 'experiment_name', 'variation_a', 'variation_b', 'variation_c'\n```\n\nThe result of a call to `ab_test` is a randomly selected variation. If a user\nhas already seen a particular variation, that result will always be returned\ninstead of picking a new one.\n\nVariations can be weighted by using a hash, where the keys are variation labels\nand the values are numeric weights. If no weight is provided, the default is to\nuse `1.0`.\n\n```ruby\nab_test 'experiment_name', { 'variation_a' =\u003e 1.0, 'variation_b' =\u003e 0.2 }\n```\n\n## Credit\n\nThis was inspired by the [`simple_abs`][simple_abs] gem, which also provides a\nstripped-down interface. However, it still persists information to a database,\nand it does not include support for weighted variations.\n\n[split]: https://github.com/splitrb/split\n[simple_abs]: https://github.com/n8/simple_abs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexi-lambda%2Fsimple_split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexi-lambda%2Fsimple_split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexi-lambda%2Fsimple_split/lists"}