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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a3fe73641b898c85b2bcd78bafd6e5c6d4d455ca744101e6fe725e4fecc0d8a
4
- data.tar.gz: f1bdb83dfa873a2965193b2cc171785fd8dcf78ce0b3cddf4198d7a407661d14
3
+ metadata.gz: a002dcc04a225a907c9eaf817027c94df7d26e3fd8ed88128f0393955fe14d52
4
+ data.tar.gz: 5811c785b94f131d354ad46a34d3b08e050490715bac1a3c680a6ebd91a746a8
5
5
  SHA512:
6
- metadata.gz: d88faf515d89d1cbb79d29ec640e96c94135980245219beafb0c2e8557e8584cb8df43330a2c03747bd290c97420bcf404f642ccf18007320298ad113a13b47e
7
- data.tar.gz: c1d54c6f0e1a26727a3be804c8ef432908f8a5c3faf137b8168964eb04b5aaba67c26e3c0a0db564ce4ece9c2f19373c61439d10be46b11222784a81eb423ce8
6
+ metadata.gz: ca56eaee492593abe680bc922bb622bfa81eede062bc384ffe6a61ee2fb7ff639781e09a75fc7b2df1edce701fe555933f28f23f918f7f9de65147a4500f8bc6
7
+ data.tar.gz: 4bc33b4e810054029a150ca0cc63f4f3ed1d8a02bd6c863266a2138a1035eaaa2e9938211d86ec717df802b479627350beedbc68d24a9eb471b00aa3637b8d60
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.4.0"
2
+ ".": "0.5.0"
3
3
  }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StarGates
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: star_gates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih