switchlet 0.1.1 → 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: 40035ab37e1040dc7bc67a820288196946eb40d66378ba65adbfaffb7883e290
4
- data.tar.gz: b922776d3c23f3af19f5de2f84db464c851f751892e0378ba468fbcaeccbd3d1
3
+ metadata.gz: aef30a43a9f953b56491c74e2569110d8f71ac8ed664643776fa8ae2fb066a8f
4
+ data.tar.gz: 394b31eed795afb2cf2d8da5f5db665cbde32dd1b514e31acd2eaf6b82922c5c
5
5
  SHA512:
6
- metadata.gz: e7feee7d17ff6dfc3d0af849571d137c8b4f3e4bb5e0f993718c0da89ef8fc48014298456d2b0036ceca5788852641102cd96e1e4257720243eabc4eb3376ed5
7
- data.tar.gz: 9ace34fffddaaab162981670accfb9a03e20a5ad3d4c77d5de9d83d9d7846a70c14bde9f0f5930baba34ae8347b1a698e8e3c0fa84b8352d08d2688106a966e4
6
+ metadata.gz: ea64546f7de6ab36485fb05c2e74f5db764b9b15f6abc58f4280c40d34df1a48d449c8a6570beaa885d8d05068ea93d7304847df7795adaa1106ec62d8435f1d
7
+ data.tar.gz: c83defe48ee72b6d2f7f7121032800589c69424cb85f637d61dac1489c9dc85540218190715b951af224cbc471df1724137d73188e918aa473a7a4c78a732db3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Switchlet
1
+ # 🎛️ Switchlet
2
2
 
3
3
  Minimal feature flag gem. Simple boolean feature flags stored in database with web admin interface.
4
4
 
@@ -128,6 +128,9 @@
128
128
  display: flex;
129
129
  gap: 8px;
130
130
  }
131
+ .actions form {
132
+ margin: 0;
133
+ }
131
134
  .empty-state {
132
135
  text-align: center;
133
136
  padding: 40px;
@@ -184,15 +187,15 @@
184
187
  <td><%= flag[:updated_at].strftime("%Y-%m-%d %H:%M") %></td>
185
188
  <td>
186
189
  <div class="actions">
187
- <%= link_to switchlet.toggle_flag_path(flag[:name]),
188
- method: :patch,
189
- class: "btn #{flag[:enabled] ? 'btn-secondary' : 'btn-success'}" do %>
190
+ <%= button_to switchlet.toggle_flag_path(flag[:name]),
191
+ method: :patch,
192
+ class: "btn #{flag[:enabled] ? 'btn-secondary' : 'btn-success'}" do %>
190
193
  <%= flag[:enabled] ? 'Disable' : 'Enable' %>
191
194
  <% end %>
192
- <%= link_to switchlet.flag_path(flag[:name]),
193
- method: :delete,
194
- class: "btn btn-danger",
195
- confirm: "Are you sure you want to delete '#{flag[:name]}'?" do %>
195
+ <%= button_to switchlet.flag_path(flag[:name]),
196
+ method: :delete,
197
+ class: "btn btn-danger",
198
+ confirm: "Are you sure you want to delete '#{flag[:name]}'?" do %>
196
199
  Delete
197
200
  <% end %>
198
201
  </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Switchlet
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.4"
5
5
  end
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchlet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - komagata
@@ -76,6 +76,9 @@ files:
76
76
  - lib/switchlet/version.rb
77
77
  - lib/tasks/switchlet.rake
78
78
  - sig/switchlet.rbs
79
+ - switchlet-0.1.1.gem
80
+ - switchlet-0.1.2.gem
81
+ - switchlet-0.1.3.gem
79
82
  homepage: https://github.com/komagata/switchlet
80
83
  licenses:
81
84
  - MIT
@@ -90,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
93
  requirements:
91
94
  - - ">="
92
95
  - !ruby/object:Gem::Version
93
- version: 3.2.0
96
+ version: 3.1.6
94
97
  required_rubygems_version: !ruby/object:Gem::Requirement
95
98
  requirements:
96
99
  - - ">="