pin_flags 0.1.3 β 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 +4 -4
- data/README.md +9 -3
- data/app/assets/stylesheets/pin_flags/application.css +5 -0
- data/app/helpers/pin_flags/feature_tags_helper.rb +8 -0
- data/app/views/pin_flags/feature_tags/index.html.erb +1 -3
- data/app/views/pin_flags/feature_tags/show.html.erb +1 -3
- data/lib/pin_flags/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5871f564a8eb4b411184956659089b08d73c1e32e01fa9bbcf3e7a938680970e
|
|
4
|
+
data.tar.gz: c24537bdb1c937a1e141df64e9e0c50f62ce197fcff4eec9e0486ef72b5ce8ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e002aa9cacf50ccef62efc38e858210ee065a71959dd676f51d355d7b84837517c6579bf53b56c1ce785ae5e663860bc1b31a1ca5793a16f9f7892cdbda1b05c
|
|
7
|
+
data.tar.gz: c84e28d570a5fde3ef381c353644e57d2be8e50921527f55525c5409b958b42e5605318ff9fa95dde019b7c1ec67defb50a63bd50b9d907836e7ae19f8ed7b08
|
data/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="docs/pin_flags_logo.svg" alt="Pin Flags" height="140">
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
<strong>"Pin features" to any ActiveRecord model with ease; entity scoped feature flags.</strong>
|
|
5
|
+
|
|
6
|
+
[](https://badge.fury.io/rb/pin_flags)
|
|
7
|
+
[](https://github.com/rubocop/rubocop)
|
|
8
|
+
[](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
|
|
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
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
7
|
-
β³ Pin Flags
|
|
8
|
-
</span>
|
|
6
|
+
<%= pin_flags_logo %>
|
|
9
7
|
<% end %>
|
|
10
8
|
</div>
|
|
11
9
|
</nav>
|
data/lib/pin_flags/version.rb
CHANGED
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.
|
|
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:
|
|
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: []
|