star_gates 0.4.0 → 0.5.0
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/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +11 -0
- data/README.md +7 -0
- data/lib/star_gates/version.rb +1 -1
- data/lib/star_gates.rb +0 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a002dcc04a225a907c9eaf817027c94df7d26e3fd8ed88128f0393955fe14d52
|
|
4
|
+
data.tar.gz: 5811c785b94f131d354ad46a34d3b08e050490715bac1a3c680a6ebd91a746a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca56eaee492593abe680bc922bb622bfa81eede062bc384ffe6a61ee2fb7ff639781e09a75fc7b2df1edce701fe555933f28f23f918f7f9de65147a4500f8bc6
|
|
7
|
+
data.tar.gz: 4bc33b4e810054029a150ca0cc63f4f3ed1d8a02bd6c863266a2138a1035eaaa2e9938211d86ec717df802b479627350beedbc68d24a9eb471b00aa3637b8d60
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0](https://github.com/seuros/star_gates/compare/v0.4.0...v0.5.0) (2026-11-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* code that relied on `require 'star_gates'` to load Rails must require Rails itself.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* require 'star_gates' no longer loads Rails ([188ffee](https://github.com/seuros/star_gates/commit/188ffeef2bc8c06f9781c5161a63a958f2244e66))
|
|
13
|
+
|
|
3
14
|
## [0.4.0](https://github.com/seuros/star_gates/compare/v0.3.2...v0.4.0) (2026-11-16)
|
|
4
15
|
|
|
5
16
|
|
data/README.md
CHANGED
|
@@ -171,6 +171,13 @@ the dispatch stay Rails'.
|
|
|
171
171
|
|
|
172
172
|
## Rails
|
|
173
173
|
|
|
174
|
+
`require 'star_gates'` never loads Rails. Inside an application that already loaded
|
|
175
|
+
it (Bundler.require runs after `require 'rails'`), `StarGates.configuration` takes its
|
|
176
|
+
environment from `Rails.env` and `StarGates.load_config!` reads
|
|
177
|
+
`Rails.root/config/star_gates.yml`; both are checked when first used, so there is no
|
|
178
|
+
Railtie to require. Outside Rails they fall back to `RACK_ENV`/`RAILS_ENV`/`RUBY_ENV`
|
|
179
|
+
and the working directory.
|
|
180
|
+
|
|
174
181
|
Define gates in an initializer and call them from controllers or services:
|
|
175
182
|
|
|
176
183
|
```ruby
|
data/lib/star_gates/version.rb
CHANGED
data/lib/star_gates.rb
CHANGED
|
@@ -304,12 +304,3 @@ class Numeric
|
|
|
304
304
|
self
|
|
305
305
|
end
|
|
306
306
|
end
|
|
307
|
-
|
|
308
|
-
# Optional jsonrpc-rails integration
|
|
309
|
-
begin
|
|
310
|
-
require 'rails'
|
|
311
|
-
require 'jsonrpc-rails'
|
|
312
|
-
require_relative 'star_gates/jsonrpc_rails_adapter'
|
|
313
|
-
rescue LoadError
|
|
314
|
-
# jsonrpc-rails or Rails not available, skip integration
|
|
315
|
-
end
|