flipper 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +25 -1
- data/.github/workflows/examples.yml +7 -1
- data/Changelog.md +1 -638
- data/Gemfile +5 -1
- data/README.md +21 -21
- data/Rakefile +2 -2
- data/exe/flipper +5 -0
- data/flipper.gemspec +6 -2
- data/lib/flipper/adapters/http/client.rb +25 -16
- data/lib/flipper/adapters/strict.rb +11 -8
- data/lib/flipper/cli.rb +240 -0
- data/lib/flipper/cloud/configuration.rb +7 -1
- data/lib/flipper/cloud/middleware.rb +5 -5
- data/lib/flipper/cloud/telemetry/submitter.rb +2 -2
- data/lib/flipper/cloud.rb +1 -1
- data/lib/flipper/engine.rb +32 -17
- data/lib/flipper/instrumentation/log_subscriber.rb +12 -3
- data/lib/flipper/metadata.rb +3 -1
- data/lib/flipper/test_help.rb +36 -0
- data/lib/flipper/version.rb +11 -1
- data/lib/generators/flipper/setup_generator.rb +63 -0
- data/lib/generators/flipper/templates/update/migrations/01_create_flipper_tables.rb.erb +22 -0
- data/lib/generators/flipper/templates/update/migrations/02_change_flipper_gates_value_to_text.rb.erb +18 -0
- data/lib/generators/flipper/update_generator.rb +35 -0
- data/spec/fixtures/environment.rb +1 -0
- data/spec/flipper/adapter_builder_spec.rb +1 -2
- data/spec/flipper/adapters/http/client_spec.rb +61 -0
- data/spec/flipper/adapters/http_spec.rb +92 -75
- data/spec/flipper/adapters/strict_spec.rb +11 -9
- data/spec/flipper/cli_spec.rb +164 -0
- data/spec/flipper/cloud/configuration_spec.rb +9 -2
- data/spec/flipper/cloud/dsl_spec.rb +5 -5
- data/spec/flipper/cloud/middleware_spec.rb +8 -8
- data/spec/flipper/cloud/telemetry/submitter_spec.rb +24 -24
- data/spec/flipper/cloud/telemetry_spec.rb +1 -1
- data/spec/flipper/cloud_spec.rb +4 -4
- data/spec/flipper/engine_spec.rb +76 -11
- data/spec/flipper/instrumentation/log_subscriber_spec.rb +9 -2
- data/spec/flipper_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/support/spec_helpers.rb +10 -4
- data/test_rails/generators/flipper/setup_generator_test.rb +64 -0
- data/test_rails/generators/flipper/update_generator_test.rb +96 -0
- data/test_rails/helper.rb +19 -2
- data/test_rails/system/test_help_test.rb +46 -0
- metadata +25 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f95a5fd56395048ef3fa3f0fd4737db8136f2e814dca352dc167c0f421a8a4
|
4
|
+
data.tar.gz: 2e42041673d4ddcf0a01b7ed1d21424dd421e4288595f2982c93101863c6fbc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70fd697b619ea770334d35b97035184ce3139805fdb3613e0fe950efbfd69898b976524793fe64eabaa9fd0c6a4374eac35c78ef014e39f4fce8313cbd599f91
|
7
|
+
data.tar.gz: f204a5d8518b120e9299d2bf5b114cf73889784f4bef1f836f7f290964f5cc73a753294668e9e9257ae44800c5784e9ea58f4b0d5265c49f8c056bbf352a550a
|
data/.github/workflows/ci.yml
CHANGED
@@ -13,9 +13,21 @@ jobs:
|
|
13
13
|
--health-interval 10s
|
14
14
|
--health-timeout 5s
|
15
15
|
--health-retries 5
|
16
|
+
postgres:
|
17
|
+
image: postgres:13
|
18
|
+
ports:
|
19
|
+
- 5432:5432
|
20
|
+
env:
|
21
|
+
POSTGRES_USER: postgres
|
22
|
+
POSTGRES_PASSWORD: postgres
|
23
|
+
options: >-
|
24
|
+
--health-cmd pg_isready
|
25
|
+
--health-interval 10s
|
26
|
+
--health-timeout 5s
|
27
|
+
--health-retries 5
|
16
28
|
strategy:
|
17
29
|
matrix:
|
18
|
-
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2']
|
30
|
+
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
|
19
31
|
rails: ['5.2', '6.0.0', '6.1.0', '7.0.0', '7.1.0']
|
20
32
|
exclude:
|
21
33
|
- ruby: "2.6"
|
@@ -36,12 +48,24 @@ jobs:
|
|
36
48
|
rails: "6.0.0"
|
37
49
|
- ruby: "3.2"
|
38
50
|
rails: "6.1.0"
|
51
|
+
- ruby: "3.3"
|
52
|
+
rails: "5.2"
|
53
|
+
- ruby: "3.3"
|
54
|
+
rails: "6.0.0"
|
55
|
+
- ruby: "3.3"
|
56
|
+
rails: "6.1.0"
|
39
57
|
env:
|
40
58
|
SQLITE3_VERSION: 1.4.1
|
41
59
|
REDIS_URL: redis://localhost:6379/0
|
42
60
|
CI: true
|
43
61
|
RAILS_VERSION: ${{ matrix.rails }}
|
62
|
+
MYSQL_USER: root
|
63
|
+
MYSQL_PASSWORD: root
|
64
|
+
POSTGRES_USER: postgres
|
65
|
+
POSTGRES_PASSWORD: postgres
|
44
66
|
steps:
|
67
|
+
- name: Set up MySQL
|
68
|
+
run: sudo /etc/init.d/mysql start
|
45
69
|
- name: Setup memcached
|
46
70
|
uses: KeisukeYamashita/memcached-actions@v1
|
47
71
|
- name: Start MongoDB
|
@@ -16,7 +16,7 @@ jobs:
|
|
16
16
|
--health-retries 5
|
17
17
|
strategy:
|
18
18
|
matrix:
|
19
|
-
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2']
|
19
|
+
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
|
20
20
|
rails: ['5.2', '6.0.0', '6.1.0', '7.0.0', '7.1.0']
|
21
21
|
exclude:
|
22
22
|
- ruby: "2.6"
|
@@ -37,6 +37,12 @@ jobs:
|
|
37
37
|
rails: "6.0.0"
|
38
38
|
- ruby: "3.2"
|
39
39
|
rails: "6.1.0"
|
40
|
+
- ruby: "3.3"
|
41
|
+
rails: "5.2"
|
42
|
+
- ruby: "3.3"
|
43
|
+
rails: "6.0.0"
|
44
|
+
- ruby: "3.3"
|
45
|
+
rails: "6.1.0"
|
40
46
|
env:
|
41
47
|
SQLITE3_VERSION: 1.4.1
|
42
48
|
REDIS_URL: redis://localhost:6379/0
|