flipper-notifications 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rails-tests.yml +3 -3
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +3 -3
- data/README.md +10 -0
- data/flipper-notifications.gemspec +2 -2
- data/lib/flipper/notifications/feature_event.rb +2 -2
- data/lib/flipper/notifications/version.rb +1 -1
- metadata +23 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 439714dbe0772323697885d3aed19778fc3cfce29314bbda8c23dafc17d2f720
|
4
|
+
data.tar.gz: 3cb71c26ecb885a393b34582d458580ff19d55a890a5c29b8685b1e236ed9eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 349d21ecfe363650c2c18657db8bf48035fe04664806050235353ee3486078e5a535432a7692462b9115f146f42aa5f65d62ed645b67b05bc38273f66abc2477
|
7
|
+
data.tar.gz: 2e1fb5205a650aa0787377b4e051ed5d0349141bfe0e6b1ae52b549ac1f8637e5ce7d5c337dd36c8137335e73181bbf714bdae4c2b0e8be6ba0fad364c25dfe1
|
@@ -14,7 +14,7 @@ jobs:
|
|
14
14
|
strategy:
|
15
15
|
matrix:
|
16
16
|
ruby_version:
|
17
|
-
- 3.
|
17
|
+
- 3.2
|
18
18
|
steps:
|
19
19
|
- uses: actions/checkout@v2
|
20
20
|
- name: Set up Ruby
|
@@ -25,7 +25,7 @@ jobs:
|
|
25
25
|
run: ruby -v
|
26
26
|
- name: Install dependencies
|
27
27
|
working-directory: spec/rails/defaults
|
28
|
-
run: bundle install
|
28
|
+
run: bundle install && bundle exec appraisal install
|
29
29
|
- name: Run tests
|
30
30
|
working-directory: spec/rails/defaults
|
31
|
-
run:
|
31
|
+
run: bundle exec appraisal rails test
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.2
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
flipper-notifications (0.1.
|
5
|
-
activesupport (
|
4
|
+
flipper-notifications (0.1.6)
|
5
|
+
activesupport (>= 7, < 8.1)
|
6
6
|
flipper (>= 0.24, < 2.0)
|
7
7
|
httparty (~> 0.17)
|
8
8
|
|
@@ -101,7 +101,7 @@ PLATFORMS
|
|
101
101
|
arm64-darwin-23
|
102
102
|
|
103
103
|
DEPENDENCIES
|
104
|
-
activejob (
|
104
|
+
activejob (>= 7, < 8.1)
|
105
105
|
bundler
|
106
106
|
bundler-gem_version_tasks
|
107
107
|
debug
|
data/README.md
CHANGED
@@ -122,6 +122,16 @@ interactive prompt that will allow you to experiment.
|
|
122
122
|
|
123
123
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
124
124
|
|
125
|
+
This gem tests against several versions of Rails using the [Appraisal gem](https://github.com/thoughtbot/appraisal).
|
126
|
+
In order to run those tests locally you can do the following:
|
127
|
+
|
128
|
+
```
|
129
|
+
cd spec/rails/defaults
|
130
|
+
bundle install
|
131
|
+
bundle exec appraisal install
|
132
|
+
bundle exec appraisal rails test
|
133
|
+
```
|
134
|
+
|
125
135
|
## Releasing
|
126
136
|
|
127
137
|
After merging in the new functionality to the main branch, you can run the following
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = []
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_runtime_dependency "activesupport", "
|
31
|
+
spec.add_runtime_dependency "activesupport", ">= 7", "< 8.1"
|
32
32
|
spec.add_runtime_dependency "flipper", ">= 0.24", "< 2.0"
|
33
33
|
spec.add_runtime_dependency "httparty", "~> 0.17"
|
34
34
|
|
@@ -41,5 +41,5 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_development_dependency "simplecov"
|
42
42
|
spec.add_development_dependency "webmock"
|
43
43
|
|
44
|
-
spec.add_development_dependency "activejob", "
|
44
|
+
spec.add_development_dependency "activejob", ">= 7", "< 8.1"
|
45
45
|
end
|
@@ -45,10 +45,10 @@ module Flipper
|
|
45
45
|
|
46
46
|
settings << "- Groups: #{to_sentence(feature.enabled_groups.map(&:name).sort)}" if feature.enabled_groups.any?
|
47
47
|
|
48
|
-
settings << "-
|
48
|
+
settings << "- Actors: #{to_sentence(feature.actors_value.sort)}" if feature.actors_value.any?
|
49
49
|
|
50
50
|
if feature.percentage_of_actors_value.positive?
|
51
|
-
settings << "- #{feature.percentage_of_actors_value}% of
|
51
|
+
settings << "- #{feature.percentage_of_actors_value}% of actors"
|
52
52
|
end
|
53
53
|
|
54
54
|
settings << "- #{feature.percentage_of_time_value}% of the time" if feature.percentage_of_time_value.positive?
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipper-notifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Lubrano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '8.1'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '8.1'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: flipper
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,16 +180,22 @@ dependencies:
|
|
174
180
|
name: activejob
|
175
181
|
requirement: !ruby/object:Gem::Requirement
|
176
182
|
requirements:
|
177
|
-
- - "
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '7'
|
186
|
+
- - "<"
|
178
187
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
188
|
+
version: '8.1'
|
180
189
|
type: :development
|
181
190
|
prerelease: false
|
182
191
|
version_requirements: !ruby/object:Gem::Requirement
|
183
192
|
requirements:
|
184
|
-
- - "
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '7'
|
196
|
+
- - "<"
|
185
197
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
198
|
+
version: '8.1'
|
187
199
|
description:
|
188
200
|
email:
|
189
201
|
- jlubrano@wrapbook.com
|
@@ -244,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
256
|
- !ruby/object:Gem::Version
|
245
257
|
version: '0'
|
246
258
|
requirements: []
|
247
|
-
rubygems_version: 3.
|
259
|
+
rubygems_version: 3.5.9
|
248
260
|
signing_key:
|
249
261
|
specification_version: 4
|
250
262
|
summary: Rails-compatible Slack notifications for Flipper feature flags
|