flipper 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +7 -1
  3. data/.github/workflows/examples.yml +7 -1
  4. data/Changelog.md +1 -647
  5. data/Gemfile +3 -1
  6. data/README.md +1 -1
  7. data/Rakefile +2 -2
  8. data/exe/flipper +5 -0
  9. data/flipper.gemspec +5 -1
  10. data/lib/flipper/adapters/http/client.rb +25 -16
  11. data/lib/flipper/adapters/strict.rb +11 -8
  12. data/lib/flipper/cli.rb +240 -0
  13. data/lib/flipper/cloud/configuration.rb +7 -1
  14. data/lib/flipper/cloud/middleware.rb +5 -5
  15. data/lib/flipper/cloud/telemetry/submitter.rb +2 -2
  16. data/lib/flipper/cloud.rb +1 -1
  17. data/lib/flipper/engine.rb +32 -17
  18. data/lib/flipper/instrumentation/log_subscriber.rb +12 -3
  19. data/lib/flipper/metadata.rb +3 -1
  20. data/lib/flipper/test_help.rb +36 -0
  21. data/lib/flipper/version.rb +11 -1
  22. data/lib/generators/flipper/setup_generator.rb +63 -0
  23. data/spec/fixtures/environment.rb +1 -0
  24. data/spec/flipper/adapter_builder_spec.rb +1 -2
  25. data/spec/flipper/adapters/http/client_spec.rb +61 -0
  26. data/spec/flipper/adapters/http_spec.rb +92 -75
  27. data/spec/flipper/adapters/strict_spec.rb +11 -9
  28. data/spec/flipper/cli_spec.rb +164 -0
  29. data/spec/flipper/cloud/configuration_spec.rb +9 -2
  30. data/spec/flipper/cloud/dsl_spec.rb +5 -5
  31. data/spec/flipper/cloud/middleware_spec.rb +8 -8
  32. data/spec/flipper/cloud/telemetry/submitter_spec.rb +24 -24
  33. data/spec/flipper/cloud/telemetry_spec.rb +1 -1
  34. data/spec/flipper/cloud_spec.rb +4 -4
  35. data/spec/flipper/engine_spec.rb +76 -11
  36. data/spec/flipper/instrumentation/log_subscriber_spec.rb +9 -2
  37. data/spec/flipper_spec.rb +1 -1
  38. data/spec/spec_helper.rb +1 -0
  39. data/spec/support/spec_helpers.rb +10 -4
  40. data/test_rails/generators/flipper/setup_generator_test.rb +64 -0
  41. data/test_rails/system/test_help_test.rb +46 -0
  42. metadata +20 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0045f824274ad425560681d88802488af7e79ec6f67a228f61ec02ab3b90016a
4
- data.tar.gz: e8b934abcf93152ea294c4ec1071063084888b13640df3f2aaf34b9d6a5c9cbe
3
+ metadata.gz: c4f95a5fd56395048ef3fa3f0fd4737db8136f2e814dca352dc167c0f421a8a4
4
+ data.tar.gz: 2e42041673d4ddcf0a01b7ed1d21424dd421e4288595f2982c93101863c6fbc0
5
5
  SHA512:
6
- metadata.gz: 831624665d1c63d16bf7f724d82622c4838006a9889c30f674f151cab1633961e32689cbf383de2b83cce16c8ff183037959cc06f5a804aa1ab63a93252992ab
7
- data.tar.gz: ceb9a261463a6bce77f975317aacb2931d03773926c51186422e8430c0601f428690c4199f50ae1a19892d6f011f404ebe18d30e58c786263cbc2f14728f5727
6
+ metadata.gz: 70fd697b619ea770334d35b97035184ce3139805fdb3613e0fe950efbfd69898b976524793fe64eabaa9fd0c6a4374eac35c78ef014e39f4fce8313cbd599f91
7
+ data.tar.gz: f204a5d8518b120e9299d2bf5b114cf73889784f4bef1f836f7f290964f5cc73a753294668e9e9257ae44800c5784e9ea58f4b0d5265c49f8c056bbf352a550a
@@ -27,7 +27,7 @@ jobs:
27
27
  --health-retries 5
28
28
  strategy:
29
29
  matrix:
30
- 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']
31
31
  rails: ['5.2', '6.0.0', '6.1.0', '7.0.0', '7.1.0']
32
32
  exclude:
33
33
  - ruby: "2.6"
@@ -48,6 +48,12 @@ jobs:
48
48
  rails: "6.0.0"
49
49
  - ruby: "3.2"
50
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"
51
57
  env:
52
58
  SQLITE3_VERSION: 1.4.1
53
59
  REDIS_URL: redis://localhost:6379/0
@@ -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