activeexperiment 0.1.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +0 -0
- data/MIT-LICENSE +20 -0
- data/README.md +373 -0
- data/lib/active_experiment/base.rb +76 -0
- data/lib/active_experiment/cache/active_record_cache_store.rb +116 -0
- data/lib/active_experiment/cache/redis_hash_cache_store.rb +68 -0
- data/lib/active_experiment/cache.rb +28 -0
- data/lib/active_experiment/caching.rb +172 -0
- data/lib/active_experiment/callbacks.rb +111 -0
- data/lib/active_experiment/capturable.rb +117 -0
- data/lib/active_experiment/configured_experiment.rb +74 -0
- data/lib/active_experiment/core.rb +177 -0
- data/lib/active_experiment/executed.rb +86 -0
- data/lib/active_experiment/execution.rb +156 -0
- data/lib/active_experiment/gem_version.rb +18 -0
- data/lib/active_experiment/instrumentation.rb +45 -0
- data/lib/active_experiment/log_subscriber.rb +178 -0
- data/lib/active_experiment/logging.rb +62 -0
- data/lib/active_experiment/railtie.rb +69 -0
- data/lib/active_experiment/rollout.rb +106 -0
- data/lib/active_experiment/rollouts/inactive_rollout.rb +24 -0
- data/lib/active_experiment/rollouts/percent_rollout.rb +84 -0
- data/lib/active_experiment/rollouts/random_rollout.rb +46 -0
- data/lib/active_experiment/rollouts.rb +127 -0
- data/lib/active_experiment/rspec.rb +12 -0
- data/lib/active_experiment/run_key.rb +55 -0
- data/lib/active_experiment/segments.rb +69 -0
- data/lib/active_experiment/test_case.rb +11 -0
- data/lib/active_experiment/test_helper.rb +267 -0
- data/lib/active_experiment/variants.rb +145 -0
- data/lib/active_experiment/version.rb +11 -0
- data/lib/active_experiment.rb +27 -0
- data/lib/activeexperiment.rb +8 -0
- data/lib/rails/generators/experiment/USAGE +12 -0
- data/lib/rails/generators/experiment/experiment_generator.rb +53 -0
- data/lib/rails/generators/experiment/templates/application_experiment.rb.tt +4 -0
- data/lib/rails/generators/experiment/templates/experiment.rb.tt +35 -0
- data/lib/rails/generators/rspec/experiment/experiment_generator.rb +20 -0
- data/lib/rails/generators/rspec/experiment/templates/experiment_spec.rb.tt +7 -0
- data/lib/rails/generators/test_unit/experiment/experiment_generator.rb +21 -0
- data/lib/rails/generators/test_unit/experiment/templates/experiment_test.rb.tt +9 -0
- metadata +118 -0
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activeexperiment
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.alpha
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeremy Jackson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-12-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.0.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.0.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: globalid
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.3.6
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.3.6
|
41
|
+
description: Declare experiments using classes that can be run in different layers
|
42
|
+
of an application.
|
43
|
+
email: jejacks0n@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- CHANGELOG.md
|
49
|
+
- MIT-LICENSE
|
50
|
+
- README.md
|
51
|
+
- lib/active_experiment.rb
|
52
|
+
- lib/active_experiment/base.rb
|
53
|
+
- lib/active_experiment/cache.rb
|
54
|
+
- lib/active_experiment/cache/active_record_cache_store.rb
|
55
|
+
- lib/active_experiment/cache/redis_hash_cache_store.rb
|
56
|
+
- lib/active_experiment/caching.rb
|
57
|
+
- lib/active_experiment/callbacks.rb
|
58
|
+
- lib/active_experiment/capturable.rb
|
59
|
+
- lib/active_experiment/configured_experiment.rb
|
60
|
+
- lib/active_experiment/core.rb
|
61
|
+
- lib/active_experiment/executed.rb
|
62
|
+
- lib/active_experiment/execution.rb
|
63
|
+
- lib/active_experiment/gem_version.rb
|
64
|
+
- lib/active_experiment/instrumentation.rb
|
65
|
+
- lib/active_experiment/log_subscriber.rb
|
66
|
+
- lib/active_experiment/logging.rb
|
67
|
+
- lib/active_experiment/railtie.rb
|
68
|
+
- lib/active_experiment/rollout.rb
|
69
|
+
- lib/active_experiment/rollouts.rb
|
70
|
+
- lib/active_experiment/rollouts/inactive_rollout.rb
|
71
|
+
- lib/active_experiment/rollouts/percent_rollout.rb
|
72
|
+
- lib/active_experiment/rollouts/random_rollout.rb
|
73
|
+
- lib/active_experiment/rspec.rb
|
74
|
+
- lib/active_experiment/run_key.rb
|
75
|
+
- lib/active_experiment/segments.rb
|
76
|
+
- lib/active_experiment/test_case.rb
|
77
|
+
- lib/active_experiment/test_helper.rb
|
78
|
+
- lib/active_experiment/variants.rb
|
79
|
+
- lib/active_experiment/version.rb
|
80
|
+
- lib/activeexperiment.rb
|
81
|
+
- lib/rails/generators/experiment/USAGE
|
82
|
+
- lib/rails/generators/experiment/experiment_generator.rb
|
83
|
+
- lib/rails/generators/experiment/templates/application_experiment.rb.tt
|
84
|
+
- lib/rails/generators/experiment/templates/experiment.rb.tt
|
85
|
+
- lib/rails/generators/rspec/experiment/experiment_generator.rb
|
86
|
+
- lib/rails/generators/rspec/experiment/templates/experiment_spec.rb.tt
|
87
|
+
- lib/rails/generators/test_unit/experiment/experiment_generator.rb
|
88
|
+
- lib/rails/generators/test_unit/experiment/templates/experiment_test.rb.tt
|
89
|
+
homepage: https://github.com/jejacks0n/active_experiment
|
90
|
+
licenses:
|
91
|
+
- MIT
|
92
|
+
metadata:
|
93
|
+
homepage_uri: https://github.com/jejacks0n/active_experiment
|
94
|
+
source_code_uri: https://github.com/jejacks0n/active_experiment
|
95
|
+
bug_tracker_uri: https://github.com/jejacks0n/active_experiment/issues
|
96
|
+
changelog_uri: https://github.com/jejacks0n/active_experiment/CHANGELOG.md
|
97
|
+
documentation_uri: https://github.com/jejacks0n/active_experiment/README.md
|
98
|
+
rubygems_mfa_required: 'true'
|
99
|
+
post_install_message:
|
100
|
+
rdoc_options: []
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 2.7.0
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.3.1
|
113
|
+
requirements: []
|
114
|
+
rubygems_version: 3.3.7
|
115
|
+
signing_key:
|
116
|
+
specification_version: 4
|
117
|
+
summary: Experiment framework with pluggable rollouts and instrumentation.
|
118
|
+
test_files: []
|