pin_flags 0.1.2 β†’ 0.1.4

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: ae850d2a54a2c64eb154558ae616d98d9d7aa1468d48c6977fc1e09b2afdc176
4
- data.tar.gz: 63ed88de0f0d12eb5c810756a8ba598c2aca5e7ad0acbb56710040000c1b7341
3
+ metadata.gz: 5871f564a8eb4b411184956659089b08d73c1e32e01fa9bbcf3e7a938680970e
4
+ data.tar.gz: c24537bdb1c937a1e141df64e9e0c50f62ce197fcff4eec9e0486ef72b5ce8ec
5
5
  SHA512:
6
- metadata.gz: 3e1b94b8fd24b8283c7642a30c2a35da25945c9e4c985a5389565b1f8f5c679b5edd89a6c5cb380d5e26da1c3285b77af0b5546ea4e3a5ec7bc0c27e37e2ce6a
7
- data.tar.gz: f883bb9bcc2bc55888c948d7eb6a7c8789485d962bdaeb7c683583dd91bb0561440a0855093a9c54cf8f573d8c7831416f7f3a9664d66ed2a1b1f7271da80bf9
6
+ metadata.gz: e002aa9cacf50ccef62efc38e858210ee065a71959dd676f51d355d7b84837517c6579bf53b56c1ce785ae5e663860bc1b31a1ca5793a16f9f7892cdbda1b05c
7
+ data.tar.gz: c84e28d570a5fde3ef381c353644e57d2be8e50921527f55525c5409b958b42e5605318ff9fa95dde019b7c1ec67defb50a63bd50b9d907836e7ae19f8ed7b08
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
- # β›³ Pin Flags
1
+ <div align="center">
2
+ <img src="docs/pin_flags_logo.svg" alt="Pin Flags" height="140">
2
3
 
3
- A lightweight Rails engine for managing entity based features with built-in caching support. "Pin features" to any ActiveRecord model with ease, providing a slightly different take on traditional feature flags.
4
+ <strong>"Pin features" to any ActiveRecord model with ease; entity scoped feature flags.</strong>
5
+
6
+ [![Gem Version](https://badge.fury.io/rb/pin_flags.svg)](https://badge.fury.io/rb/pin_flags)
7
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
8
+ [![Gem Downloads](https://img.shields.io/gem/dt/pin_flags)](https://rubygems.org/gems/pin_flags)
9
+ </div>
4
10
 
5
11
  <div style="display: flex; justify-content: center;">
6
12
  <img src="docs/pin_flags_feature_tags_ui.png" alt="Feature Tags UI" style="width: 100%; min-width: 300px;">
@@ -10,7 +16,7 @@ A lightweight Rails engine for managing entity based features with built-in cach
10
16
 
11
17
  - πŸš€ Polymorphic "feature tags" which can be tied to any ActiveRecord Model
12
18
  - ⚑ Built-in caching with configurable expiry
13
- - 🎨 An admn UI that stays out of your way with minified [BulmaCSS](https://github.com/jgthms/bulma) and [AlpineJS](https://github.com/alpinejs/alpine)
19
+ - 🎨 An admin UI that stays out of your way with minified [BulmaCSS](https://github.com/jgthms/bulma) and [AlpineJS](https://github.com/alpinejs/alpine)
14
20
  - πŸ”’ Isolated namespace to avoid conflicts
15
21
  - πŸ’‰ No dependency on Stimulus
16
22
 
@@ -19,7 +25,7 @@ A lightweight Rails engine for managing entity based features with built-in cach
19
25
  </div>
20
26
 
21
27
  ## Dependencies
22
- - [Rails](https://github.com/rails/rails) 7.0 or higher with Turbo
28
+ - [Rails](https://github.com/rails/rails) 8.0 or higher with Turbo
23
29
  - [Ruby](https://www.ruby-lang.org/en/) 3.0 or higher
24
30
  - Rails app is using a relational database (e.g., PostgreSQL, MySQL, SQLite)
25
31
 
@@ -23,3 +23,8 @@
23
23
  opacity: 0;
24
24
  transition: opacity 0.3s ease-in-out;
25
25
  }
26
+
27
+ .navbar-brand .navbar-item svg {
28
+ max-height: none;
29
+ height: auto;
30
+ }
@@ -1,5 +1,13 @@
1
1
  module PinFlags
2
2
  module FeatureTagsHelper
3
+ def pin_flags_logo(width: 260, height: 85)
4
+ file_path = PinFlags::Engine.root.join("docs", "pin_flags_logo.svg")
5
+ svg = File.read(file_path)
6
+ svg = svg.sub(/width="[^"]*"/, %(width="#{width}"))
7
+ svg = svg.sub(/height="[^"]*"/, %(height="#{height}"))
8
+ svg.html_safe
9
+ end
10
+
3
11
  def display_feature_tag_table_turbo_frame_row_id(feature_tag)
4
12
  "feature_tags_table_row_#{dom_id(feature_tag)}"
5
13
  end
@@ -4,9 +4,7 @@
4
4
  x-data="{ mobileMenuOpen: false }">
5
5
  <div class="navbar-brand">
6
6
  <%= link_to pin_flags.root_path, class: "navbar-item" do %>
7
- <span class="is-size-2 is-size-4-mobile has-text-weight-bold has-text-white">
8
- β›³ Pin Flags
9
- </span>
7
+ <%= pin_flags_logo %>
10
8
  <% end %>
11
9
 
12
10
  <a role="button" class="navbar-burger" aria-label="menu"
@@ -3,9 +3,7 @@
3
3
  <nav class="navbar" role="navigation" aria-label="main navigation">
4
4
  <div class="navbar-brand">
5
5
  <%= link_to pin_flags.root_path, class: "navbar-item" do %>
6
- <span class="is-size-2 is-size-4-mobile has-text-weight-bold has-text-white">
7
- β›³ Pin Flags
8
- </span>
6
+ <%= pin_flags_logo %>
9
7
  <% end %>
10
8
  </div>
11
9
  </nav>
@@ -1,3 +1,3 @@
1
1
  module PinFlags
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pin_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Demetrious Wilson
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.6.9
190
+ rubygems_version: 4.0.1
191
191
  specification_version: 4
192
192
  summary: "β›³PinFlags is a granular, polymorphic feature access system"
193
193
  test_files: []