flipper 0.26.0.rc2 → 0.26.1
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 +13 -11
- data/.github/workflows/examples.yml +5 -10
- data/Changelog.md +12 -1
- data/Gemfile +4 -0
- data/Rakefile +1 -1
- data/benchmark/enabled_ips.rb +10 -0
- data/benchmark/enabled_profile.rb +20 -0
- data/benchmark/instrumentation_ips.rb +21 -0
- data/benchmark/typecast_ips.rb +19 -0
- data/flipper.gemspec +0 -2
- data/lib/flipper/adapters/memory.rb +52 -39
- data/lib/flipper/adapters/poll/poller.rb +2 -125
- data/lib/flipper/adapters/poll.rb +4 -0
- data/lib/flipper/feature.rb +22 -18
- data/lib/flipper/feature_check_context.rb +4 -4
- data/lib/flipper/gate_values.rb +0 -16
- data/lib/flipper/gates/actor.rb +2 -12
- data/lib/flipper/gates/boolean.rb +1 -1
- data/lib/flipper/gates/group.rb +4 -8
- data/lib/flipper/gates/percentage_of_actors.rb +9 -11
- data/lib/flipper/gates/percentage_of_time.rb +1 -2
- data/lib/flipper/metadata.rb +1 -1
- data/lib/flipper/poller.rb +117 -0
- data/lib/flipper/railtie.rb +5 -5
- data/lib/flipper/typecast.rb +11 -15
- data/lib/flipper/version.rb +1 -1
- data/lib/flipper.rb +1 -0
- data/spec/flipper/adapters/memory_spec.rb +3 -1
- data/spec/flipper/feature_check_context_spec.rb +12 -12
- data/spec/flipper/gate_values_spec.rb +2 -33
- data/spec/flipper/gates/percentage_of_actors_spec.rb +1 -1
- data/spec/flipper/poller_spec.rb +47 -0
- data/spec/flipper/railtie_spec.rb +36 -0
- data/spec/flipper/typecast_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- metadata +12 -6
- data/.github/workflows/release.yml +0 -44
@@ -1,44 +0,0 @@
|
|
1
|
-
# https://andrewm.codes/blog/automating-ruby-gem-releases-with-github-actions/
|
2
|
-
name: release
|
3
|
-
|
4
|
-
on:
|
5
|
-
push:
|
6
|
-
branches:
|
7
|
-
- main
|
8
|
-
|
9
|
-
jobs:
|
10
|
-
release-please:
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
steps:
|
13
|
-
- uses: google-github-actions/release-please-action@v3
|
14
|
-
id: release
|
15
|
-
with:
|
16
|
-
release-type: ruby
|
17
|
-
package-name: flipper
|
18
|
-
bump-minor-pre-major: true
|
19
|
-
version-file: "lib/flipper/version.rb"
|
20
|
-
# Checkout code if release was created
|
21
|
-
- uses: actions/checkout@v3
|
22
|
-
if: ${{ steps.release.outputs.release_created }}
|
23
|
-
# Setup ruby if a release was created
|
24
|
-
- uses: ruby/setup-ruby@v1
|
25
|
-
with:
|
26
|
-
ruby-version: 3.0.0
|
27
|
-
if: ${{ steps.release.outputs.release_created }}
|
28
|
-
# Bundle install
|
29
|
-
- run: bundle install
|
30
|
-
if: ${{ steps.release.outputs.release_created }}
|
31
|
-
# Publish
|
32
|
-
- name: publish gem
|
33
|
-
run: |
|
34
|
-
mkdir -p $HOME/.gem
|
35
|
-
touch $HOME/.gem/credentials
|
36
|
-
chmod 0600 $HOME/.gem/credentials
|
37
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
38
|
-
gem build *.gemspec
|
39
|
-
gem push *.gem
|
40
|
-
env:
|
41
|
-
# Make sure to update the secret name
|
42
|
-
# if yours isn't named RUBYGEMS_AUTH_TOKEN
|
43
|
-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
44
|
-
if: ${{ steps.release.outputs.release_created }}
|