vanity 4.0.2 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/linting.yml +6 -1
- data/.github/workflows/test.yml +7 -1
- data/Appraisals +3 -3
- data/CHANGELOG +8 -0
- data/Gemfile +3 -2
- data/Gemfile.lock +20 -17
- data/README.md +3 -1
- data/gemfiles/rails52.gemfile +4 -3
- data/gemfiles/rails52.gemfile.lock +152 -153
- data/gemfiles/rails60.gemfile +4 -3
- data/gemfiles/rails60.gemfile.lock +173 -156
- data/gemfiles/rails61.gemfile +4 -3
- data/gemfiles/rails61.gemfile.lock +183 -163
- data/lib/vanity/configuration.rb +1 -1
- data/lib/vanity/frameworks/rails.rb +2 -1
- data/lib/vanity/safe_yaml.rb +21 -0
- data/lib/vanity/version.rb +1 -1
- data/lib/vanity.rb +1 -0
- data/test/metric/active_record_test.rb +3 -3
- data/test/test_helper.rb +5 -1
- data/vanity.gemspec +0 -1
- metadata +6 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8f83fefb96f513266dcaeee34962d45439558e85637dccb59ef302cc335c5c0
|
4
|
+
data.tar.gz: 99981677b5954bad074d0697becca6fac12ce8a8b173332b57959139c96347ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06daf89c8bfc1cea5eccd77de8c12e42114823327ec25a6822ae3991f9b3e65d034a6e7e6bc4c5468c1ee5d256f73024d9eae402c05114ae2f9e3e9b746a5797
|
7
|
+
data.tar.gz: 8c103681a559c7270d763959fed1b0efa67ed524407d8af375bdda8572e3468070dede88639f4452bd3acf9b1721f1362c46db49460f62adb265e66cecdb958a
|
data/.github/workflows/test.yml
CHANGED
@@ -24,6 +24,9 @@ jobs:
|
|
24
24
|
matrix:
|
25
25
|
ruby:
|
26
26
|
- 2.5
|
27
|
+
- 2.6
|
28
|
+
- 2.7
|
29
|
+
- "3.0"
|
27
30
|
# - jruby-9.2.20.1
|
28
31
|
db:
|
29
32
|
- mongodb
|
@@ -33,6 +36,9 @@ jobs:
|
|
33
36
|
- gemfiles/rails52.gemfile
|
34
37
|
- gemfiles/rails60.gemfile
|
35
38
|
- gemfiles/rails61.gemfile
|
39
|
+
exclude:
|
40
|
+
- ruby: "3.0"
|
41
|
+
gemfile: gemfiles/rails52.gemfile
|
36
42
|
|
37
43
|
env:
|
38
44
|
DB: ${{ matrix.db }}
|
@@ -40,11 +46,11 @@ jobs:
|
|
40
46
|
steps:
|
41
47
|
- name: Checkout code
|
42
48
|
uses: actions/checkout@v2
|
43
|
-
|
44
49
|
- name: Set up Ruby
|
45
50
|
uses: ruby/setup-ruby@v1
|
46
51
|
with:
|
47
52
|
ruby-version: ${{ matrix.ruby }}
|
53
|
+
rubygems: latest
|
48
54
|
bundler-cache: true
|
49
55
|
- name: Info
|
50
56
|
run: bundle env
|
data/Appraisals
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
appraise "rails52" do
|
2
2
|
gem "mocha", "~> 1.0", require: false
|
3
|
-
gem "rails", "~>5.2.0"
|
3
|
+
gem "rails", "~> 5.2.0"
|
4
4
|
gem "fastthread", github: "zoltankiss/fastthread", platforms: :mri_20
|
5
5
|
gem "passenger"
|
6
6
|
end
|
7
7
|
|
8
8
|
appraise "rails60" do
|
9
9
|
gem "mocha", "~> 1.0", require: false
|
10
|
-
gem "rails", "~>
|
10
|
+
gem "rails", "~> 6.0.0"
|
11
11
|
gem "fastthread", github: "zoltankiss/fastthread", platforms: :mri_20
|
12
12
|
gem "passenger"
|
13
13
|
end
|
14
14
|
|
15
15
|
appraise "rails61" do
|
16
16
|
gem "mocha", "~> 1.0", require: false
|
17
|
-
gem "rails", "~>
|
17
|
+
gem "rails", "~> 6.1.0"
|
18
18
|
gem "fastthread", github: "zoltankiss/fastthread", platforms: :mri_20
|
19
19
|
gem "passenger"
|
20
20
|
end
|
data/CHANGELOG
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
|
3
|
+
== 4.0.4 (2022-11-28)
|
4
|
+
|
5
|
+
* Support Psych 4 safe_load (@mcg)
|
6
|
+
|
7
|
+
== 4.0.3 (2022-07-27)
|
8
|
+
|
9
|
+
* Fix Vanity::Rails::Helpers#vanity_js for Rails 6 (@ariel-codes)
|
10
|
+
|
3
11
|
== 4.0.2 (2022-03-03)
|
4
12
|
|
5
13
|
* Use Redis#exists? and fallback to #exists which could be either boolean or integer in recent redis gem versions (@bsedin)
|
data/Gemfile
CHANGED
@@ -22,7 +22,7 @@ gem "garb", "< 0.9.2", require: false # API changes at this version
|
|
22
22
|
|
23
23
|
platform :ruby do
|
24
24
|
gem "jekyll", "~> 2.5.3"
|
25
|
-
gem "sqlite3", "~> 1.
|
25
|
+
gem "sqlite3", "~> 1.4.0"
|
26
26
|
end
|
27
27
|
|
28
28
|
platform :jruby do
|
@@ -35,7 +35,8 @@ group :development do
|
|
35
35
|
gem "RedCloth"
|
36
36
|
gem "yard"
|
37
37
|
|
38
|
-
gem "rubocop"
|
38
|
+
gem "rubocop", "~> 1.25.1" # Lock for Ruby 2.5
|
39
|
+
gem "rubocop-ast", "~> 1.15.2" # Lock for Ruby 2.5
|
39
40
|
gem "rubocop-performance"
|
40
41
|
gem "rubocop-rspec"
|
41
42
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vanity (4.0.
|
4
|
+
vanity (4.0.4)
|
5
5
|
i18n
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
RedCloth (4.2
|
11
|
-
|
12
|
-
activerecord (2.3.14)
|
13
|
-
activesupport (= 2.3.14)
|
10
|
+
RedCloth (4.3.2)
|
11
|
+
activerecord (3.2.14)
|
14
12
|
activerecord-jdbc-adapter (1.3.15)
|
15
13
|
activerecord (>= 2.2)
|
16
|
-
activesupport (
|
14
|
+
activesupport (3.1.12)
|
15
|
+
multi_json (~> 1.0)
|
17
16
|
addressable (2.2.7)
|
18
17
|
appraisal (2.4.1)
|
19
18
|
bundler
|
@@ -44,7 +43,7 @@ GEM
|
|
44
43
|
activesupport (>= 2.2.0)
|
45
44
|
crack (>= 0.1.6)
|
46
45
|
hitimes (1.2.2)
|
47
|
-
i18n (1.
|
46
|
+
i18n (1.12.0)
|
48
47
|
concurrent-ruby (~> 1.0)
|
49
48
|
integration (0.1.0)
|
50
49
|
jdbc-sqlite3 (3.8.7)
|
@@ -82,8 +81,9 @@ GEM
|
|
82
81
|
minitest (4.7.5)
|
83
82
|
mongo (2.2.3)
|
84
83
|
bson (~> 4.0)
|
85
|
-
|
86
|
-
|
84
|
+
multi_json (1.15.0)
|
85
|
+
parallel (1.22.1)
|
86
|
+
parser (3.1.2.0)
|
87
87
|
ast (~> 2.4.1)
|
88
88
|
parslet (1.5.0)
|
89
89
|
blankslate (~> 2.0)
|
@@ -100,7 +100,7 @@ GEM
|
|
100
100
|
pygments.rb (0.6.3)
|
101
101
|
posix-spawn (~> 0.3.6)
|
102
102
|
yajl-ruby (~> 1.2.0)
|
103
|
-
rack (
|
103
|
+
rack (2.2.3.1)
|
104
104
|
rainbow (3.1.1)
|
105
105
|
rake (13.0.6)
|
106
106
|
rb-fsevent (0.9.4)
|
@@ -110,7 +110,7 @@ GEM
|
|
110
110
|
redis (4.6.0)
|
111
111
|
redis-namespace (1.8.2)
|
112
112
|
redis (>= 3.0.4)
|
113
|
-
regexp_parser (2.
|
113
|
+
regexp_parser (2.5.0)
|
114
114
|
rexml (3.2.5)
|
115
115
|
rubocop (1.25.1)
|
116
116
|
parallel (~> 1.10)
|
@@ -135,19 +135,21 @@ GEM
|
|
135
135
|
slop (3.6.0)
|
136
136
|
spoon (0.0.6)
|
137
137
|
ffi
|
138
|
-
sqlite3 (1.
|
138
|
+
sqlite3 (1.4.4)
|
139
139
|
thor (1.2.1)
|
140
140
|
timecop (0.3.5)
|
141
141
|
timers (4.0.1)
|
142
142
|
hitimes
|
143
143
|
toml (0.1.2)
|
144
144
|
parslet (~> 1.5.0)
|
145
|
-
unicode-display_width (2.
|
145
|
+
unicode-display_width (2.2.0)
|
146
146
|
webmock (1.8.0)
|
147
147
|
addressable (>= 2.2.7)
|
148
148
|
crack (>= 0.1.7)
|
149
|
+
webrick (1.7.0)
|
149
150
|
yajl-ruby (1.2.3)
|
150
|
-
yard (0.9.
|
151
|
+
yard (0.9.27)
|
152
|
+
webrick (~> 1.7.0)
|
151
153
|
|
152
154
|
PLATFORMS
|
153
155
|
java
|
@@ -170,15 +172,16 @@ DEPENDENCIES
|
|
170
172
|
rake
|
171
173
|
redis (>= 3.2.1)
|
172
174
|
redis-namespace (>= 1.1.0)
|
173
|
-
rubocop
|
175
|
+
rubocop (~> 1.25.1)
|
176
|
+
rubocop-ast (~> 1.15.2)
|
174
177
|
rubocop-performance
|
175
178
|
rubocop-rspec
|
176
179
|
rubystats (>= 0.2.5)
|
177
|
-
sqlite3 (~> 1.
|
180
|
+
sqlite3 (~> 1.4.0)
|
178
181
|
timecop
|
179
182
|
vanity!
|
180
183
|
webmock
|
181
184
|
yard
|
182
185
|
|
183
186
|
BUNDLED WITH
|
184
|
-
|
187
|
+
2.3.26
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Vanity
|
2
|
-
[![Test Status](https://github.com/assaf/vanity/workflows/Test/badge.svg)](https://github.com/assaf/vanity/actions)
|
3
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/vanity.svg)](https://rubygems.org/gems/vanity)
|
4
|
+
[![Test Status](https://github.com/assaf/vanity/workflows/Test/badge.svg)](https://github.com/assaf/vanity/actions)
|
5
|
+
[![Ruby Toolbox](https://img.shields.io/badge/dynamic/json?color=blue&label=Ruby%20Toolbox&query=%24.projects%5B0%5D.score&url=https%3A%2F%2Fwww.ruby-toolbox.com%2Fapi%2Fprojects%2Fcompare%2Fvanity&logo=data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJmbGFzayIgY2xhc3M9InN2Zy1pbmxpbmUtLWZhIGZhLWZsYXNrIGZhLXctMTQiIHJvbGU9ImltZyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNDQ4IDUxMiI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik00MzcuMiA0MDMuNUwzMjAgMjE1VjY0aDhjMTMuMyAwIDI0LTEwLjcgMjQtMjRWMjRjMC0xMy4zLTEwLjctMjQtMjQtMjRIMTIwYy0xMy4zIDAtMjQgMTAuNy0yNCAyNHYxNmMwIDEzLjMgMTAuNyAyNCAyNCAyNGg4djE1MUwxMC44IDQwMy41Qy0xOC41IDQ1MC42IDE1LjMgNTEyIDcwLjkgNTEyaDMwNi4yYzU1LjcgMCA4OS40LTYxLjUgNjAuMS0xMDguNXpNMTM3LjkgMzIwbDQ4LjItNzcuNmMzLjctNS4yIDUuOC0xMS42IDUuOC0xOC40VjY0aDY0djE2MGMwIDYuOSAyLjIgMTMuMiA1LjggMTguNGw0OC4yIDc3LjZoLTE3MnoiPjwvcGF0aD48L3N2Zz4=)](https://www.ruby-toolbox.com/projects/vanity)
|
4
6
|
|
5
7
|
Vanity is an A/B testing framework for Rails that is datastore agnostic.
|
6
8
|
|
data/gemfiles/rails52.gemfile
CHANGED
@@ -10,7 +10,7 @@ gem "integration", "<= 0.1.0"
|
|
10
10
|
gem "rubystats", ">= 0.2.5"
|
11
11
|
gem "garb", "< 0.9.2", require: false
|
12
12
|
gem "mocha", "~> 1.0", require: false
|
13
|
-
gem "rails", "~>5.2.0"
|
13
|
+
gem "rails", "~> 5.2.0"
|
14
14
|
gem "fastthread", platforms: :mri_20, git: "https://github.com/zoltankiss/fastthread.git"
|
15
15
|
gem "passenger"
|
16
16
|
|
@@ -18,14 +18,15 @@ group :development do
|
|
18
18
|
gem "rake"
|
19
19
|
gem "RedCloth"
|
20
20
|
gem "yard"
|
21
|
-
gem "rubocop"
|
21
|
+
gem "rubocop", "~> 1.25.1"
|
22
|
+
gem "rubocop-ast", "~> 1.15.2"
|
22
23
|
gem "rubocop-performance"
|
23
24
|
gem "rubocop-rspec"
|
24
25
|
end
|
25
26
|
|
26
27
|
platforms :ruby do
|
27
28
|
gem "jekyll", "~> 2.5.3"
|
28
|
-
gem "sqlite3", "~> 1.
|
29
|
+
gem "sqlite3", "~> 1.4.0"
|
29
30
|
end
|
30
31
|
|
31
32
|
platforms :jruby do
|