summoner-engine 0.1.0 → 0.1.1

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: 0c140e7b6dcffcd46213c17ea06f93723b115aae006686c64de4cda0e66d0824
4
- data.tar.gz: bf77ad299888e02d1e2e9712249776eb6ae6b17d01157f3b20be024350886306
3
+ metadata.gz: 16b6f89523664e20b97b20b66451b2eae21ae1fd2aa169f5b9edc1123d626a1a
4
+ data.tar.gz: c7c09067f35219156aec1149c70f6609c2e6ecbf8ad4eb93616a2189c10a1eec
5
5
  SHA512:
6
- metadata.gz: 85eba4331932b10f9bf10aaf3eeeb48f8e12083145c4f247ef8f4e92f475a3112d3da3837863146dac9e2ed24f01bbe4a9a813bbfcc1d99d2ab7178740d4fa2f
7
- data.tar.gz: 84e1a26a354c4e6cba7507d61b22a02567b960a8b934e992f362947c6b4cc372083d3ec3bbc51f83c900075397b1f0ff5f5e18e5b462ebf76fc72d945ea68351
6
+ metadata.gz: f66eba94a7f2dce3c8afe3e43665dec39547af90bdd2ff70aaff77b07cea352eb910a89a203ee6c6381583b42615720edfade76c8118b4eb2c830c87ac30a344
7
+ data.tar.gz: bf73046d676439929ec3817b2ac1eedb414c8dd18b30498aa27a501a889b2397a13c587ccb7a5678d6ea22c8f9e5dfedf704c8612c7420dac1918a95de1d78a9
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # Summoner
1
+ # Summoner Engine
2
2
  An advanced, flexible, and powerful Feature Toggle, Dynamic Configuration, and Attribute-Based Access Control (ABAC) engine for Ruby on Rails.
3
3
 
4
- Summoner goes way beyond simple booleans. It allows you to manage global or **Entity-specific** configurations (e.g., `User`, `Account`), perform gradual rollouts based on attributes (like `role` or `plan`), attach editable descriptions to each feature, and create surgical exceptions (_overrides_) directly through an elegant Web UI. All wrapped in a **lightning-fast Caching layer** to protect your database.
4
+ Summoner Engine goes way beyond simple booleans. It allows you to manage global or **Entity-specific** configurations (e.g., `User`, `Account`), perform gradual rollouts based on attributes (like `role` or `plan`), attach editable descriptions to each feature, and create surgical exceptions (_overrides_) directly through an elegant Web UI. All wrapped in a **lightning-fast Caching layer** to protect your database.
5
5
 
6
6
  ## Table of Contents
7
7
  - [Key Features](#key-features)
@@ -29,9 +29,11 @@ Summoner goes way beyond simple booleans. It allows you to manage global or **En
29
29
  Add this line to your application's `Gemfile`:
30
30
 
31
31
  ```ruby
32
- gem "summoner"
32
+ gem "summoner-engine"
33
33
  ```
34
34
 
35
+ The gem name is `summoner-engine`, but the internal Ruby namespace remains `Summoner`, so existing code and configuration can keep using `Summoner::Entity`, `Summoner::Sync`, and `Summoner.configure`.
36
+
35
37
  Install the gem and run the installation generator:
36
38
 
37
39
  ```bash
@@ -1,3 +1,5 @@
1
+ require "summoner_engine"
2
+
1
3
  Summoner.configure do |config|
2
4
  # Enable or disable the use of Rails.cache for features (Default: true)
3
5
  # config.cache_enabled = true
@@ -1,3 +1,3 @@
1
1
  module Summoner
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/summoner.rb CHANGED
@@ -1,4 +1,10 @@
1
- Dir[File.join(__dir__, "summoner", "*.rb")].sort.each { |file| require file }
1
+ require_relative "summoner/configuration"
2
+
3
+ Dir[File.join(__dir__, "summoner", "*.rb")].sort.each do |file|
4
+ next if File.basename(file) == "engine.rb" && !defined?(Rails)
5
+
6
+ require file
7
+ end
2
8
 
3
9
  module Summoner
4
10
  def self.get(feature_key)
@@ -0,0 +1 @@
1
+ require_relative "summoner"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: summoner-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Rodrigues
@@ -80,6 +80,7 @@ files:
80
80
  - lib/summoner/loader.rb
81
81
  - lib/summoner/sync.rb
82
82
  - lib/summoner/version.rb
83
+ - lib/summoner_engine.rb
83
84
  - lib/tasks/summoner_tasks.rake
84
85
  homepage: https://github.com/feliperodrigs1/summoner
85
86
  licenses: