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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 711c412144d8226f2551ec7faab049682412d204796af372d4a68ef552c8bdaa
4
- data.tar.gz: 81cad56e5783b8f0fc86b70b8116a12c345f82125ea3f9b6f0b13e0f4805e098
3
+ metadata.gz: 439714dbe0772323697885d3aed19778fc3cfce29314bbda8c23dafc17d2f720
4
+ data.tar.gz: 3cb71c26ecb885a393b34582d458580ff19d55a890a5c29b8685b1e236ed9eb6
5
5
  SHA512:
6
- metadata.gz: a07ec54acf0b402ee1e76a2997c9d2271715adf57295adb503ad4749af50acbddaa07820c7b9861260be5c99fec9160e93f75a944e5cec29cac0a21d8de84ae9
7
- data.tar.gz: a4bdf8e3625b2f74d989a01af14df266f390057ebd24b0797a9b198d47f42c5debbc118d2e66b42342794e4cdcdfe1e2183e4355e441a79b1b0156825a67057d
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.1
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: bin/rails test
31
+ run: bundle exec appraisal rails test
data/.gitignore CHANGED
@@ -12,3 +12,5 @@
12
12
 
13
13
  # rspec failure tracking
14
14
  .rspec_status
15
+
16
+ spec/rails/defaults/gemfiles/*.lock
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
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.4)
5
- activesupport (~> 7.0)
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 (~> 7.0)
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", "~> 7.0"
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", "~> 7.0"
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 << "- Users: #{to_sentence(feature.actors_value.sort)}" if feature.actors_value.any?
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 users"
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?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Flipper
4
4
  module Notifications
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
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
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-04-18 00:00:00.000000000 Z
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: '7.0'
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: '7.0'
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: '7.0'
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: '7.0'
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.3.7
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