rails_api_keys-ui 0.2.0 → 0.3.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: ab6d1ec68b766d9b9fd979711ff740f3210cdb11e986828c5c83b165112e2046
4
- data.tar.gz: 59550b7f9f41957e5e3ec1bc6505661bed631430b6f4a248fddc1f1522f8004f
3
+ metadata.gz: 3316fb07a1774648850a731d1b88170a8030fdc8f7149ccfdf0faf0c94cb3857
4
+ data.tar.gz: 28c46718826bf14f3af71ec30a6f84af450210322921652705f52dc0589334bf
5
5
  SHA512:
6
- metadata.gz: 0af47fee8d5d4207d3890291075b7792b79e503190a4e0f7d50459756828a10a94411a1bac68cff8b293bf9404baf3a87bd8db02ecc41ff47521b80cd57557af
7
- data.tar.gz: 6c66545baa6c3bf38f43ecb68feb53bd8a607d92c83fc4bc52f98832b695b821cc98abf0cbb886b254402b148cb1b8694cf0b61ee5411299d35222294e449645
6
+ metadata.gz: 6bb1bb6694b7e4394651aa288667f0e5b46b698cf83be7a4b268f431f2b89f8dfb89cbcd9913e9bdbe60cd3fcc5fb7205361d3ee691d6ff93ae888c36baf3c4b
7
+ data.tar.gz: 2c81029889ca418e404ec156e0929514de94eb8fb22e349b0523f55d7f498f1a9e512b487c755760d9a6426e8bd730adf2d5626872e2476ab561a7dff7d3c288
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.0] - 2026-11-25
11
+
12
+ ### Added
13
+
14
+ - Optional `allowed_ips` field in create modal (HTML + JSON) and display on active key rows
15
+ - `PATCH` `update` route, controller action, `ApiKeyPolicy#update?`, and "Edit IPs" modal to update `allowed_ips` on existing keys
16
+ - Optional `update_path:` parameter on `rails_api_keys_ui_panel` (defaults to `destroy_path`)
17
+
10
18
  ## [0.2.0] - 2026-08-11
11
19
 
12
20
  ### Added
@@ -22,5 +30,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
30
  - Configurable `current_owner`, `parent_controller`, flash key, `include_stylesheet`
23
31
  - HTML redirects via `redirect_back` (fallback: mount index)
24
32
 
25
- [Unreleased]: https://github.com/rubyroidlabs/rails_api_keys_ui/compare/v0.1.0...HEAD
26
- [0.1.0]: https://github.com/rubyroidlabs/rails_api_keys_ui/releases/tag/v0.1.0
33
+ [Unreleased]: https://github.com/rubyroidlabs/rails_api_keys-ui/compare/v0.3.0...HEAD
34
+ [0.3.0]: https://github.com/rubyroidlabs/rails_api_keys-ui/compare/v0.2.0...v0.3.0
35
+ [0.2.0]: https://github.com/rubyroidlabs/rails_api_keys-ui/releases/tag/v0.2.0
data/README.md CHANGED
@@ -5,10 +5,24 @@
5
5
 
6
6
  Optional HTML/JSON UI for [rails_api_keys](https://github.com/rubyroidlabs/rails_api_keys): create (reveal once + copy), list active keys, revoke. Host apps draw routes for each owner mount.
7
7
 
8
+ ## Screenshots
9
+
10
+ **Create** — name and permission for a new key:
11
+
12
+ ![Create API key](./docs/form_demo.png)
13
+
14
+ **Reveal once** — copy the raw token; it is not shown again:
15
+
16
+ ![Your new API key](./docs/created_demo.png)
17
+
18
+ **List** — active keys with revoke:
19
+
20
+ ![API keys list](./docs/list_demo.png)
21
+
8
22
  ## What this gem includes
9
23
 
10
24
  - `rails_api_keys_ui` draw helper — nested or flat mounts, explicit owner resolution
11
- - `RailsApiKeys::UI::ApiKeysController` — HTML + JSON `index` / `create` / `destroy`
25
+ - `RailsApiKeys::UI::ApiKeysController` — HTML + JSON `index` / `create` / `update` / `destroy` (including optional `allowed_ips` allowlist)
12
26
  - Tailwind-compatible markup + shipped scoped stylesheet (no host Tailwind required)
13
27
  - Embeddable panel partial/helper
14
28
  - Generators for install, controllers, views, and locales
@@ -91,8 +105,9 @@ Brand colors for the shipped stylesheet: set `--rak-ui-primary-600` / `--rak-ui-
91
105
 
92
106
  ## JSON
93
107
 
94
- - `GET …/api_keys.json` — active keys (no raw tokens)
95
- - `POST …/api_keys.json` — creates key; response includes `raw_token` once
108
+ - `GET …/api_keys.json` — active keys (includes `allowed_ips`, no raw tokens)
109
+ - `POST …/api_keys.json` — creates key (accepts optional `allowed_ips`); response includes `raw_token` once
110
+ - `PATCH …/api_keys/:id.json` — updates `allowed_ips` on an active key
96
111
  - `DELETE …/api_keys/:id.json` — revokes; `204`
97
112
 
98
113
  ## Development
@@ -2,10 +2,10 @@
2
2
 
3
3
  module RailsApiKeys
4
4
  module UI
5
- # HTML + JSON API key management (index / create / destroy).
5
+ # HTML + JSON API key management (index / create / update / destroy).
6
6
  class ApiKeysController < ApplicationController
7
7
  before_action :set_api_key_owner
8
- before_action :set_api_key, only: :destroy
8
+ before_action :set_api_key, only: %i[update destroy]
9
9
 
10
10
  def index
11
11
  authorize_api_key!(:index, RailsApiKeys::ApiKey)
@@ -22,7 +22,8 @@ module RailsApiKeys
22
22
 
23
23
  api_key, raw_token = @api_key_owner.create_api_key!(
24
24
  name: api_key_params[:name],
25
- permission: api_key_params[:permission]
25
+ permission: api_key_params[:permission],
26
+ allowed_ips: api_key_params[:allowed_ips]
26
27
  )
27
28
 
28
29
  respond_to do |format|
@@ -45,6 +46,27 @@ module RailsApiKeys
45
46
  end
46
47
  end
47
48
 
49
+ def update
50
+ authorize_api_key!(:update, @api_key)
51
+ @api_key.update!(allowed_ips: update_api_key_params[:allowed_ips])
52
+
53
+ respond_to do |format|
54
+ format.html do
55
+ redirect_back_after_change notice: t(".updated")
56
+ end
57
+ format.json { render json: serialize_key(@api_key) }
58
+ end
59
+ rescue ActiveRecord::RecordInvalid => e
60
+ respond_to do |format|
61
+ format.html do
62
+ redirect_back_after_change alert: e.record.errors.full_messages.join(", ")
63
+ end
64
+ format.json do
65
+ render json: { errors: e.record.errors.full_messages }, status: :unprocessable_content
66
+ end
67
+ end
68
+ end
69
+
48
70
  def destroy
49
71
  authorize_api_key!(:destroy, @api_key)
50
72
  @api_key.revoke!
@@ -102,7 +124,11 @@ module RailsApiKeys
102
124
  end
103
125
 
104
126
  def api_key_params
105
- params.require(:api_key).permit(:name, :permission)
127
+ params.require(:api_key).permit(:name, :permission, :allowed_ips, allowed_ips: [])
128
+ end
129
+
130
+ def update_api_key_params
131
+ params.require(:api_key).permit(:allowed_ips, allowed_ips: [])
106
132
  end
107
133
 
108
134
  def raw_token_flash_key
@@ -115,7 +141,7 @@ module RailsApiKeys
115
141
 
116
142
  def mount_index_path
117
143
  path = request.path
118
- path = path.sub(%r{/[^/]+\z}, "") if action_name == "destroy"
144
+ path = path.sub(%r{/[^/]+\z}, "") if action_name.in?(%w[update destroy])
119
145
  path
120
146
  end
121
147
 
@@ -141,6 +167,7 @@ module RailsApiKeys
141
167
  id: api_key.id,
142
168
  name: api_key.name,
143
169
  permission: api_key.permission,
170
+ allowed_ips: api_key.allowed_ips,
144
171
  token_display_prefix: api_key.token_display_prefix,
145
172
  last_used_at: api_key.last_used_at,
146
173
  created_at: api_key.created_at,
@@ -10,13 +10,15 @@ module RailsApiKeys
10
10
  # @param api_keys [Enumerable]
11
11
  # @param create_path [String]
12
12
  # @param destroy_path [Proc, #call] receives an api_key, returns path
13
+ # @param update_path [Proc, #call, nil] receives an api_key, returns path (defaults to destroy_path)
13
14
  # @param raw_token [String, nil]
14
- def rails_api_keys_ui_panel(api_keys:, create_path:, destroy_path:, raw_token: nil)
15
+ def rails_api_keys_ui_panel(api_keys:, create_path:, destroy_path:, update_path: nil, raw_token: nil)
15
16
  render partial: "rails_api_keys/ui/api_keys/panel",
16
17
  locals: {
17
18
  api_keys: api_keys,
18
19
  create_path: create_path,
19
20
  destroy_path: destroy_path,
21
+ update_path: update_path || destroy_path,
20
22
  raw_token: raw_token.nil? ? flash[RailsApiKeys::UI.configuration.raw_token_flash_key] : raw_token
21
23
  }
22
24
  end
@@ -19,6 +19,10 @@ module RailsApiKeys
19
19
  user.present? && owner_matches_user?
20
20
  end
21
21
 
22
+ def update?
23
+ user.present? && owner_matches_user?
24
+ end
25
+
22
26
  def destroy?
23
27
  user.present? && owner_matches_user?
24
28
  end
@@ -0,0 +1,41 @@
1
+ <div data-modal-target="modal"
2
+ data-action="keydown@window->modal#closeOnEscape"
3
+ class="hidden fixed inset-0 z-50 overflow-y-auto">
4
+ <div class="flex items-center justify-center min-h-screen px-4">
5
+ <div data-modal-target="backdrop"
6
+ data-action="click->modal#closeOnBackdropClick"
7
+ class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div>
8
+ <div data-modal-target="panel"
9
+ class="relative bg-white rounded-lg shadow-xl max-w-md w-full p-6 z-10">
10
+ <div class="flex justify-between items-center mb-4">
11
+ <h3 class="text-lg font-medium text-gray-900"><%= t("rails_api_keys_ui.api_keys.edit_ips_title", name: api_key.name) %></h3>
12
+ <button type="button"
13
+ data-action="click->modal#close"
14
+ class="text-gray-400 hover:text-gray-500">
15
+ ×
16
+ </button>
17
+ </div>
18
+ <%= form_with url: update_path, scope: :api_key, method: :patch, class: "space-y-4" do |f| %>
19
+ <div>
20
+ <%= f.label :allowed_ips, t("rails_api_keys_ui.api_keys.form.allowed_ips"), for: "api_key_allowed_ips_#{api_key.id}", class: "block text-sm font-medium text-gray-700 mb-2" %>
21
+ <%= f.text_area :allowed_ips,
22
+ id: "api_key_allowed_ips_#{api_key.id}",
23
+ value: api_key.allowed_ips.join("\n"),
24
+ rows: 3,
25
+ class: "form-input w-full border-gray-300 rounded-md shadow-sm font-mono",
26
+ placeholder: t("rails_api_keys_ui.api_keys.form.allowed_ips_placeholder") %>
27
+ <p class="mt-1 text-xs text-gray-500"><%= t("rails_api_keys_ui.api_keys.form.allowed_ips_hint") %></p>
28
+ </div>
29
+ <div class="flex justify-end space-x-3 pt-4">
30
+ <button type="button"
31
+ data-action="click->modal#close"
32
+ class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
33
+ <%= t("rails_api_keys_ui.api_keys.cancel") %>
34
+ </button>
35
+ <%= f.submit t("rails_api_keys_ui.api_keys.save"),
36
+ class: "inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 cursor-pointer" %>
37
+ </div>
38
+ <% end %>
39
+ </div>
40
+ </div>
41
+ </div>
@@ -34,6 +34,14 @@
34
34
  required: true,
35
35
  class: "form-input w-full border-gray-300 rounded-md shadow-sm" %>
36
36
  </div>
37
+ <div>
38
+ <%= f.label :allowed_ips, t("rails_api_keys_ui.api_keys.form.allowed_ips"), class: "block text-sm font-medium text-gray-700 mb-2" %>
39
+ <%= f.text_area :allowed_ips,
40
+ rows: 3,
41
+ class: "form-input w-full border-gray-300 rounded-md shadow-sm font-mono",
42
+ placeholder: t("rails_api_keys_ui.api_keys.form.allowed_ips_placeholder") %>
43
+ <p class="mt-1 text-xs text-gray-500"><%= t("rails_api_keys_ui.api_keys.form.allowed_ips_hint") %></p>
44
+ </div>
37
45
  <div class="flex justify-end space-x-3 pt-4">
38
46
  <button type="button"
39
47
  data-action="click->modal#close"
@@ -14,12 +14,29 @@
14
14
  <%= t("rails_api_keys_ui.api_keys.never_used") %>
15
15
  <% end %>
16
16
  </p>
17
+ <% if api_key.allowed_ips.any? %>
18
+ <p class="mt-1 text-xs text-gray-500 font-mono">
19
+ <%= t("rails_api_keys_ui.api_keys.allowed_ips_list", ips: api_key.allowed_ips.join(", ")) %>
20
+ </p>
21
+ <% end %>
22
+ </div>
23
+ <div class="flex items-center gap-2">
24
+ <div data-controller="modal">
25
+ <button type="button"
26
+ data-action="click->modal#open"
27
+ class="inline-flex items-center px-3 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 cursor-pointer">
28
+ <%= t("rails_api_keys_ui.api_keys.edit_ips") %>
29
+ </button>
30
+ <%= render "rails_api_keys/ui/api_keys/edit_ips_modal",
31
+ api_key: api_key,
32
+ update_path: (local_assigns[:update_path] || destroy_path).respond_to?(:call) ? (local_assigns[:update_path] || destroy_path).call(api_key) : (local_assigns[:update_path] || destroy_path) %>
33
+ </div>
34
+ <%= button_to t("rails_api_keys_ui.api_keys.revoke"),
35
+ destroy_path.respond_to?(:call) ? destroy_path.call(api_key) : destroy_path,
36
+ method: :delete,
37
+ class: "inline-flex items-center px-3 py-2 border border-red-300 rounded-md shadow-sm text-sm font-medium text-red-700 bg-white hover:bg-red-50 cursor-pointer",
38
+ data: { turbo_confirm: t("rails_api_keys_ui.api_keys.revoke_confirm") } %>
17
39
  </div>
18
- <%= button_to t("rails_api_keys_ui.api_keys.revoke"),
19
- destroy_path.respond_to?(:call) ? destroy_path.call(api_key) : destroy_path,
20
- method: :delete,
21
- class: "inline-flex items-center px-3 py-2 border border-red-300 rounded-md shadow-sm text-sm font-medium text-red-700 bg-white hover:bg-red-50",
22
- data: { turbo_confirm: t("rails_api_keys_ui.api_keys.revoke_confirm") } %>
23
40
  </div>
24
41
  <% end %>
25
42
  </div>
@@ -16,7 +16,10 @@
16
16
  </div>
17
17
  </div>
18
18
 
19
- <%= render "rails_api_keys/ui/api_keys/list", api_keys: api_keys, destroy_path: destroy_path %>
19
+ <%= render "rails_api_keys/ui/api_keys/list",
20
+ api_keys: api_keys,
21
+ destroy_path: destroy_path,
22
+ update_path: local_assigns[:update_path] || destroy_path %>
20
23
  </div>
21
24
 
22
25
  <% if raw_token.present? %>
@@ -1,5 +1,6 @@
1
1
  <%= rails_api_keys_ui_panel(
2
2
  api_keys: @api_keys,
3
- create_path: url_for(action: :create),
4
- destroy_path: ->(api_key) { url_for(action: :destroy, id: api_key) }
3
+ create_path: request.path,
4
+ update_path: ->(api_key) { "#{request.path.chomp("/")}/#{api_key.id}" },
5
+ destroy_path: ->(api_key) { "#{request.path.chomp("/")}/#{api_key.id}" }
5
6
  ) %>
@@ -11,6 +11,10 @@ en:
11
11
  last_used: "Last used %{time}"
12
12
  permission_read: "Read"
13
13
  permission_read_write: "Read & write"
14
+ allowed_ips_list: "Allowed IPs: %{ips}"
15
+ edit_ips: "Edit IPs"
16
+ edit_ips_title: "Allowed IPs for %{name}"
17
+ save: "Save"
14
18
  cancel: "Cancel"
15
19
  form:
16
20
  name: "Name"
@@ -18,6 +22,9 @@ en:
18
22
  permission: "Permission"
19
23
  permission_read: "Read"
20
24
  permission_read_write: "Read & write"
25
+ allowed_ips: "Allowed IPs (optional)"
26
+ allowed_ips_placeholder: "203.0.113.10\n10.0.0.0/24"
27
+ allowed_ips_hint: "Leave blank to allow any IP. Separate IPv4/IPv6 addresses or CIDR ranges with commas or new lines."
21
28
  submit: "Create API key"
22
29
  reveal:
23
30
  title: "Your new API key"
@@ -26,17 +33,21 @@ en:
26
33
  copy: "Copy"
27
34
  copied: "Copied to clipboard"
28
35
  done: "Done"
29
- # Lazy lookup scopes for engine controller (`t(".created")` / `t(".revoked")`)
36
+ # Lazy lookup scopes for engine controller (`t(".created")` / `t(".updated")` / `t(".revoked")`)
30
37
  rails_api_keys:
31
38
  ui:
32
39
  api_keys:
33
40
  create:
34
41
  created: "API key created. Copy it now — it won’t be shown again."
42
+ update:
43
+ updated: "Allowed IPs updated."
35
44
  destroy:
36
45
  revoked: "API key revoked."
37
46
  # Lazy lookup when host subclasses as ApiKeysController
38
47
  api_keys:
39
48
  create:
40
49
  created: "API key created. Copy it now — it won’t be shown again."
50
+ update:
51
+ updated: "Allowed IPs updated."
41
52
  destroy:
42
53
  revoked: "API key revoked."
@@ -29,7 +29,7 @@ module RailsApiKeys
29
29
  )
30
30
 
31
31
  resource_options = {
32
- only: %i[index create destroy],
32
+ only: %i[index create update destroy],
33
33
  controller: controller,
34
34
  path: path,
35
35
  defaults: { rails_api_keys_ui_mount: mount_name }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RailsApiKeys
4
4
  module UI
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,127 +1,136 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_api_keys-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Pavel Pershko
7
+ - Pavel Pershko
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
- - !ruby/object:Gem::Dependency
13
- name: rails
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: '7.0'
19
- type: :runtime
20
- prerelease: false
21
- version_requirements: !ruby/object:Gem::Requirement
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: '7.0'
26
- - !ruby/object:Gem::Dependency
27
- name: rails_api_keys
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.2.0
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 0.2.0
40
- - !ruby/object:Gem::Dependency
41
- name: stimulus-rails
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: '1.0'
47
- type: :runtime
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '1.0'
12
+ - !ruby/object:Gem::Dependency
13
+ name: rails
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ -
17
+ - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: "7.0"
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ -
25
+ - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: "7.0"
28
+ - !ruby/object:Gem::Dependency
29
+ name: rails_api_keys
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ -
33
+ - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 0.3.0
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ -
41
+ - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.3.0
44
+ - !ruby/object:Gem::Dependency
45
+ name: stimulus-rails
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ -
49
+ - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "1.0"
52
+ type: :runtime
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ -
57
+ - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "1.0"
54
60
  description: |
55
61
  Optional Rails engine UI for rails_api_keys: draw helper for nested or flat
56
62
  mounts, HTML + JSON controller, scoped CSS + Stimulus defaults, and generators
57
63
  to copy controllers, views, and locales into the host app.
58
64
  email:
59
- - pavel.pershko@rubyroidlabs.com
65
+ - pavel.pershko@rubyroidlabs.com
60
66
  executables: []
61
67
  extensions: []
62
68
  extra_rdoc_files:
63
- - CHANGELOG.md
64
- - LICENSE
65
- - README.md
69
+ - CHANGELOG.md
70
+ - LICENSE
71
+ - README.md
66
72
  files:
67
- - CHANGELOG.md
68
- - LICENSE
69
- - README.md
70
- - app/assets/stylesheets/rails_api_keys/ui.css
71
- - app/controllers/rails_api_keys/ui/api_keys_controller.rb
72
- - app/controllers/rails_api_keys/ui/application_controller.rb
73
- - app/helpers/rails_api_keys/ui/api_keys_helper.rb
74
- - app/javascript/rails_api_keys/ui/controllers/clipboard_controller.js
75
- - app/javascript/rails_api_keys/ui/controllers/modal_controller.js
76
- - app/policies/rails_api_keys/ui/api_key_policy.rb
77
- - app/views/rails_api_keys/ui/api_keys/_form_modal.html.erb
78
- - app/views/rails_api_keys/ui/api_keys/_list.html.erb
79
- - app/views/rails_api_keys/ui/api_keys/_panel.html.erb
80
- - app/views/rails_api_keys/ui/api_keys/_reveal_modal.html.erb
81
- - app/views/rails_api_keys/ui/api_keys/index.html.erb
82
- - config/locales/en.yml
83
- - config/routes.rb
84
- - lib/generators/rails_api_keys_ui/controllers/controllers_generator.rb
85
- - lib/generators/rails_api_keys_ui/controllers/templates/api_keys_controller.rb.tt
86
- - lib/generators/rails_api_keys_ui/install/install_generator.rb
87
- - lib/generators/rails_api_keys_ui/install/templates/initializer.rb.tt
88
- - lib/generators/rails_api_keys_ui/install/templates/javascript/clipboard_controller.js
89
- - lib/generators/rails_api_keys_ui/install/templates/javascript/modal_controller.js
90
- - lib/generators/rails_api_keys_ui/locales/locales_generator.rb
91
- - lib/generators/rails_api_keys_ui/views/views_generator.rb
92
- - lib/rails_api_keys/ui.rb
93
- - lib/rails_api_keys/ui/configuration.rb
94
- - lib/rails_api_keys/ui/engine.rb
95
- - lib/rails_api_keys/ui/mount_registry.rb
96
- - lib/rails_api_keys/ui/route_mapper.rb
97
- - lib/rails_api_keys/ui/version.rb
98
- - lib/rails_api_keys_ui.rb
99
- homepage: https://github.com/rubyroidlabs/rails_api_keys-ui
73
+ - CHANGELOG.md
74
+ - LICENSE
75
+ - README.md
76
+ - app/assets/stylesheets/rails_api_keys/ui.css
77
+ - app/controllers/rails_api_keys/ui/api_keys_controller.rb
78
+ - app/controllers/rails_api_keys/ui/application_controller.rb
79
+ - app/helpers/rails_api_keys/ui/api_keys_helper.rb
80
+ - app/javascript/rails_api_keys/ui/controllers/clipboard_controller.js
81
+ - app/javascript/rails_api_keys/ui/controllers/modal_controller.js
82
+ - app/policies/rails_api_keys/ui/api_key_policy.rb
83
+ - app/views/rails_api_keys/ui/api_keys/_edit_ips_modal.html.erb
84
+ - app/views/rails_api_keys/ui/api_keys/_form_modal.html.erb
85
+ - app/views/rails_api_keys/ui/api_keys/_list.html.erb
86
+ - app/views/rails_api_keys/ui/api_keys/_panel.html.erb
87
+ - app/views/rails_api_keys/ui/api_keys/_reveal_modal.html.erb
88
+ - app/views/rails_api_keys/ui/api_keys/index.html.erb
89
+ - config/locales/en.yml
90
+ - config/routes.rb
91
+ - lib/generators/rails_api_keys_ui/controllers/controllers_generator.rb
92
+ - lib/generators/rails_api_keys_ui/controllers/templates/api_keys_controller.rb.tt
93
+ - lib/generators/rails_api_keys_ui/install/install_generator.rb
94
+ - lib/generators/rails_api_keys_ui/install/templates/initializer.rb.tt
95
+ - lib/generators/rails_api_keys_ui/install/templates/javascript/clipboard_controller.js
96
+ - lib/generators/rails_api_keys_ui/install/templates/javascript/modal_controller.js
97
+ - lib/generators/rails_api_keys_ui/locales/locales_generator.rb
98
+ - lib/generators/rails_api_keys_ui/views/views_generator.rb
99
+ - lib/rails_api_keys/ui.rb
100
+ - lib/rails_api_keys/ui/configuration.rb
101
+ - lib/rails_api_keys/ui/engine.rb
102
+ - lib/rails_api_keys/ui/mount_registry.rb
103
+ - lib/rails_api_keys/ui/route_mapper.rb
104
+ - lib/rails_api_keys/ui/version.rb
105
+ - lib/rails_api_keys_ui.rb
106
+ homepage: "https://github.com/rubyroidlabs/rails_api_keys-ui"
100
107
  licenses:
101
- - MIT
108
+ - MIT
102
109
  metadata:
103
- homepage_uri: https://github.com/rubyroidlabs/rails_api_keys-ui
104
- source_code_uri: https://github.com/rubyroidlabs/rails_api_keys-ui/tree/v0.2.0
105
- changelog_uri: https://github.com/rubyroidlabs/rails_api_keys-ui/blob/v0.2.0/CHANGELOG.md
106
- bug_tracker_uri: https://github.com/rubyroidlabs/rails_api_keys-ui/issues
107
- documentation_uri: https://www.rubydoc.info/gems/rails_api_keys-ui/0.2.0
108
- rubygems_mfa_required: 'true'
109
- allowed_push_host: https://rubygems.org
110
+ homepage_uri: "https://github.com/rubyroidlabs/rails_api_keys-ui"
111
+ source_code_uri: "https://github.com/rubyroidlabs/rails_api_keys-ui/tree/v0.3.0"
112
+ changelog_uri: "https://github.com/rubyroidlabs/rails_api_keys-ui/blob/v0.3.0/CHANGELOG.md"
113
+ bug_tracker_uri: "https://github.com/rubyroidlabs/rails_api_keys-ui/issues"
114
+ documentation_uri: "https://www.rubydoc.info/gems/rails_api_keys-ui/0.3.0"
115
+ rubygems_mfa_required: "true"
116
+ allowed_push_host: "https://rubygems.org"
110
117
  rdoc_options: []
111
118
  require_paths:
112
- - lib
119
+ - lib
113
120
  required_ruby_version: !ruby/object:Gem::Requirement
114
121
  requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: 3.2.0
122
+ -
123
+ - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 3.2.0
118
126
  required_rubygems_version: !ruby/object:Gem::Requirement
119
127
  requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: '0'
128
+ -
129
+ - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: "0"
123
132
  requirements: []
124
- rubygems_version: 4.0.18
133
+ rubygems_version: 4.1.1
125
134
  specification_version: 4
126
135
  summary: Mountable HTML/JSON UI for rails_api_keys.
127
136
  test_files: []