rails-image-post-solution 0.1.25 → 0.1.26

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: ef4a85e5ef75747bf39bdc2672b0b33c78dd4cb0609bfdf50cae3fe8c4d847fc
4
- data.tar.gz: f9036730ffdb7d397fc02f960df46a083c2b763d038cd4c8435f1688093e9f9a
3
+ metadata.gz: 21cf30ddd082d430c2fa3970e75b3de50d6cb2971b31a9e01e0e20cca46fc1fb
4
+ data.tar.gz: 1efb01401bde8a221233fab8b32d27f8fb97314e3e7c61e5ca9e184d98af356d
5
5
  SHA512:
6
- metadata.gz: 016ecc588275f07277ad3399cb271a36017112557f62e574b28b92f0db403c30a3e849036c563d715bf55dbc6be2e002977398119be9b56abb915f6aca41e14a
7
- data.tar.gz: bf2ed7e0c22a633dad7f4c91d86587c3cc1b9a1a6b69f813b95fa29b9e32737ba66192be1038caef99bfc75eed110f2d70bea164e703624fa003db82167aa54d
6
+ metadata.gz: e18c577fab39605d71b399f97663ebed7add09bbf101f57c1e2ad43b72a2641e85ea63bc1841f52e7fb90d8db49d72f85e8421951c169db65629db3571e129c6
7
+ data.tar.gz: 19835241b9c1651a7aec885a0bc721558c7ce0cd42bda78f045f32a84894e28968e8dbe62b9117835dda3e2a65b15e40f9eec88fc98403150c1b9c3aa3ec2ed3
data/config/routes.rb CHANGED
@@ -1,42 +1,41 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  RailsImagePostSolution::Engine.routes.draw do
4
- # Support optional locale parameter to match host application's routing
5
- # Accept any 2-letter locale code to be flexible with host app's locales
6
- scope "(:locale)", locale: /[a-z]{2}/ do
7
- # User-facing report API
8
- resources :image_reports, only: [ :create ]
4
+ # Locale parameter is handled by the host application at mount level
5
+ # No need for locale scope within the engine itself
9
6
 
10
- # Admin dashboard (engine controllers)
11
- namespace :admin do
12
- # Image reports management
13
- resources :image_reports, only: %i[index show] do
14
- member do
15
- patch :confirm
16
- patch :dismiss
17
- end
7
+ # User-facing report API
8
+ resources :image_reports, only: [ :create ]
9
+
10
+ # Admin dashboard (engine controllers)
11
+ namespace :admin do
12
+ # Image reports management
13
+ resources :image_reports, only: %i[index show] do
14
+ member do
15
+ patch :confirm
16
+ patch :dismiss
18
17
  end
18
+ end
19
19
 
20
- # User management
21
- resources :users, only: %i[index show] do
22
- member do
23
- post :suspend
24
- post :unsuspend
25
- post :ban
26
- post :unban
27
- end
20
+ # User management
21
+ resources :users, only: %i[index show] do
22
+ member do
23
+ post :suspend
24
+ post :unsuspend
25
+ post :ban
26
+ post :unban
28
27
  end
28
+ end
29
29
 
30
- # Frozen posts management
31
- resources :frozen_posts, only: [ :index ] do
32
- collection do
33
- post "unfreeze_stage/:id", to: "frozen_posts#unfreeze_stage", as: :unfreeze_stage
34
- post "unfreeze_comment/:id", to: "frozen_posts#unfreeze_comment", as: :unfreeze_comment
35
- post "permanent_freeze_stage/:id", to: "frozen_posts#permanent_freeze_stage", as: :permanent_freeze_stage
36
- post "permanent_freeze_comment/:id", to: "frozen_posts#permanent_freeze_comment", as: :permanent_freeze_comment
37
- delete "destroy_stage/:id", to: "frozen_posts#destroy_stage", as: :destroy_stage
38
- delete "destroy_comment/:id", to: "frozen_posts#destroy_comment", as: :destroy_comment
39
- end
30
+ # Frozen posts management
31
+ resources :frozen_posts, only: [ :index ] do
32
+ collection do
33
+ post "unfreeze_stage/:id", to: "frozen_posts#unfreeze_stage", as: :unfreeze_stage
34
+ post "unfreeze_comment/:id", to: "frozen_posts#unfreeze_comment", as: :unfreeze_comment
35
+ post "permanent_freeze_stage/:id", to: "frozen_posts#permanent_freeze_stage", as: :permanent_freeze_stage
36
+ post "permanent_freeze_comment/:id", to: "frozen_posts#permanent_freeze_comment", as: :permanent_freeze_comment
37
+ delete "destroy_stage/:id", to: "frozen_posts#destroy_stage", as: :destroy_stage
38
+ delete "destroy_comment/:id", to: "frozen_posts#destroy_comment", as: :destroy_comment
40
39
  end
41
40
  end
42
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsImagePostSolution
4
- VERSION = "0.1.25"
4
+ VERSION = "0.1.26"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-image-post-solution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - dhq_boiler