rollout 2.6.1 → 2.6.2
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 +5 -5
- data/.github/workflows/release.yml +46 -0
- data/.github/workflows/test.yml +32 -0
- data/.gitignore +2 -0
- data/.ruby-version +1 -0
- data/README.md +8 -0
- data/Rakefile +44 -1
- data/lib/rollout/version.rb +1 -1
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fbabd7f8b0651b97e5ebe8a2bdc4b990c810e162
|
4
|
+
data.tar.gz: 4b5f9ff84fbcbbbef81e05c885b67cf699309e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a87eb9c45aef7a24868361e04f5bdb53fb55ab2949fb411a3f39198ddac4085b63d05a730f06820feaed797327772f4bf95fc783f8f5d5c55dcf24379c51d99
|
7
|
+
data.tar.gz: 7c7e3b692bf11cbcebd99ad2a8d3e4db41a2b233ac5ce5ae0551c15f522e93d0f474e3fc5f868b3fedd76d1d8fb8751d178ac39ef3721b10e9a99b2499e3ec32
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- 'v*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
release:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
services:
|
12
|
+
redis:
|
13
|
+
image: redis:7-alpine
|
14
|
+
ports:
|
15
|
+
- 6379:6379
|
16
|
+
options: >-
|
17
|
+
--health-cmd "redis-cli ping"
|
18
|
+
--health-interval 10s
|
19
|
+
--health-timeout 5s
|
20
|
+
--health-retries 5
|
21
|
+
steps:
|
22
|
+
- name: Checkout code
|
23
|
+
uses: actions/checkout@v4
|
24
|
+
- name: Setup Ruby
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Run tests
|
29
|
+
run: bundle exec rspec
|
30
|
+
- name: Create GitHub Release
|
31
|
+
uses: softprops/action-gh-release@v2
|
32
|
+
with:
|
33
|
+
tag_name: ${{ github.ref }}
|
34
|
+
name: ${{ github.ref_name }}
|
35
|
+
generate_release_notes: true
|
36
|
+
draft: false
|
37
|
+
prerelease: false
|
38
|
+
- name: Set up RubyGems credentials
|
39
|
+
env:
|
40
|
+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
41
|
+
run: |
|
42
|
+
mkdir -p ~/.gem
|
43
|
+
echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
|
44
|
+
chmod 0600 ~/.gem/credentials
|
45
|
+
- name: Release to RubyGems
|
46
|
+
run: bundle exec rake release
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
test:
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
services:
|
15
|
+
redis:
|
16
|
+
image: redis:7-alpine
|
17
|
+
ports:
|
18
|
+
- 6379:6379
|
19
|
+
options: >-
|
20
|
+
--health-cmd "redis-cli ping"
|
21
|
+
--health-interval 10s
|
22
|
+
--health-timeout 5s
|
23
|
+
--health-retries 5
|
24
|
+
steps:
|
25
|
+
- name: Checkout code
|
26
|
+
uses: actions/checkout@v4
|
27
|
+
- name: Setup Ruby
|
28
|
+
uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
bundler-cache: true
|
31
|
+
- name: Run tests
|
32
|
+
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.0
|
data/README.md
CHANGED
@@ -207,6 +207,14 @@ This example would use the "development:feature:chat:groups" key.
|
|
207
207
|
* Eric Rafaloff - Maintainer - https://github.com/EricR
|
208
208
|
|
209
209
|
|
210
|
+
## Releasing
|
211
|
+
|
212
|
+
1. Bump version: `rake version:patch` (or `minor`/`major`)
|
213
|
+
2. Commit and tag: `git commit -am "Bump version" && git tag v0.7.3`
|
214
|
+
3. Push: `git push origin master --tags`
|
215
|
+
|
216
|
+
The GitHub Actions workflow will automatically publish to RubyGems when tags are pushed.
|
217
|
+
|
210
218
|
## Copyright
|
211
219
|
|
212
220
|
Copyright (c) 2010-InfinityAndBeyond BitLove, Inc. See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -1,7 +1,50 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rspec/core/rake_task"
|
4
5
|
|
5
6
|
RSpec::Core::RakeTask.new(:spec)
|
6
7
|
|
7
8
|
task default: :spec
|
9
|
+
|
10
|
+
namespace :version do
|
11
|
+
desc "Bump patch version"
|
12
|
+
task :patch do
|
13
|
+
bump_version(:patch)
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Bump minor version"
|
17
|
+
task :minor do
|
18
|
+
bump_version(:minor)
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "Bump major version"
|
22
|
+
task :major do
|
23
|
+
bump_version(:major)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def bump_version(type)
|
28
|
+
require 'rollout/version'
|
29
|
+
current_version = Rollout::VERSION
|
30
|
+
major, minor, patch = current_version.split('.').map(&:to_i)
|
31
|
+
|
32
|
+
new_version = case type
|
33
|
+
when :major
|
34
|
+
"#{major + 1}.0.0"
|
35
|
+
when :minor
|
36
|
+
"#{major}.#{minor + 1}.0"
|
37
|
+
when :patch
|
38
|
+
"#{major}.#{minor}.#{patch + 1}"
|
39
|
+
end
|
40
|
+
|
41
|
+
puts "Bumping version from #{current_version} to #{new_version}"
|
42
|
+
|
43
|
+
# Update version file
|
44
|
+
version_file = 'lib/rollout/version.rb'
|
45
|
+
content = File.read(version_file)
|
46
|
+
updated_content = content.gsub(/VERSION\s*=\s*'[^']+'/, "VERSION = '#{new_version}'")
|
47
|
+
File.write(version_file, updated_content)
|
48
|
+
|
49
|
+
puts "Version bumped to #{new_version}"
|
50
|
+
end
|
data/lib/rollout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Golick
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: observer
|
@@ -150,9 +150,12 @@ extensions: []
|
|
150
150
|
extra_rdoc_files: []
|
151
151
|
files:
|
152
152
|
- ".circleci/config.yml"
|
153
|
+
- ".github/workflows/release.yml"
|
154
|
+
- ".github/workflows/test.yml"
|
153
155
|
- ".gitignore"
|
154
156
|
- ".rspec"
|
155
157
|
- ".rubocop.yml"
|
158
|
+
- ".ruby-version"
|
156
159
|
- ".travis.yml"
|
157
160
|
- Gemfile
|
158
161
|
- LICENSE
|
@@ -171,7 +174,7 @@ homepage: https://github.com/FetLife/rollout
|
|
171
174
|
licenses:
|
172
175
|
- MIT
|
173
176
|
metadata: {}
|
174
|
-
post_install_message:
|
177
|
+
post_install_message:
|
175
178
|
rdoc_options: []
|
176
179
|
require_paths:
|
177
180
|
- lib
|
@@ -186,8 +189,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
189
|
- !ruby/object:Gem::Version
|
187
190
|
version: '0'
|
188
191
|
requirements: []
|
189
|
-
|
190
|
-
|
192
|
+
rubyforge_project:
|
193
|
+
rubygems_version: 2.5.1
|
194
|
+
signing_key:
|
191
195
|
specification_version: 4
|
192
196
|
summary: Feature flippers with redis.
|
193
197
|
test_files: []
|