power-compass 0.1.0 → 0.2.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: 62d24dd9988012b6ce11695c503b785d1f0fc662c08708fefad59eaab4d8a96b
4
- data.tar.gz: f04fbc2588e8013529171751bf5df84026d5743ef605dc74f7d3cffd974c7d50
3
+ metadata.gz: b15f1bb40f641eed660ace8d322edb371b31ee668e0c9fe486c178c9db3d6e5a
4
+ data.tar.gz: f9608627370f1fcb144ca1b8f838181d56c79a45a2d397567ad03fe4151d650d
5
5
  SHA512:
6
- metadata.gz: 10be0899560a5fd97c5f14ffcad8208e535cd1b597ef058804806f4b4cc4b0b050126e6e1d108bc304708aaae536d4f19d4c2661a9b65e9a17d960232d1dfa56
7
- data.tar.gz: 61b19fa23127e9e6a6c9efff137692ce56ddb95476928bd8136b0b034730a4808a2c9dc8c6683a8a70d79093d152733898ed157cbf39b4207c980aa290112c13
6
+ metadata.gz: 2143a84d1477e820fde55859d54fee4ad5cefaf32a9c1c814e5009917110b0f52b510d08346e811aa9027fe2b3ad56929e55c1ad72847f44d5f84edd85dbf1ae
7
+ data.tar.gz: e94d5bbf3feca613d192eb39b205d90e576651cc768043fc3a8b406e3bb46cd9497ae54605a61e89b8a3c0259f0ca8aa405ed951ed2a60f9e1291a1e84c87e45
@@ -0,0 +1,32 @@
1
+ module Compass
2
+ module Configuration
3
+ # Compass configuration for layout.
4
+ class Layout
5
+ include ActiveSupport::Configurable
6
+
7
+ # Array of blocks to be executed in the layout rendering context.
8
+ # Each block can modify the layout by adding banners, footers, etc.
9
+ # Example:
10
+ # Compass.configure do |config|
11
+ # config.layout.before_render do
12
+ # with_banner("Welcome to Compass")
13
+ # end
14
+ # end
15
+ #
16
+ config_accessor :before_render_blocks, default: []
17
+
18
+ # Inject a block to be executed in the layout rendering context.
19
+ #
20
+ # Example:
21
+ # Compass.configure do |config|
22
+ # config.layout.before_render do
23
+ # with_banner("Welcome to Compass")
24
+ # end
25
+ # end
26
+ #
27
+ def self.before_render(&block)
28
+ before_render_blocks << block
29
+ end
30
+ end
31
+ end
32
+ end
@@ -26,6 +26,7 @@ module Compass
26
26
  autoload :Menu, "compass/configuration/menu"
27
27
  autoload :Search, "compass/configuration/search"
28
28
  autoload :Notification, "compass/configuration/notification"
29
+ autoload :Layout, "compass/configuration/layout"
29
30
  autoload :Breadcrumb, "compass/configuration/breadcrumb"
30
31
 
31
32
  included do
@@ -39,6 +40,7 @@ module Compass
39
40
  config_accessor :menu, default: Compass::Configuration::Menu
40
41
  config_accessor :search, default: Compass::Configuration::Search
41
42
  config_accessor :notification, default: Compass::Configuration::Notification
43
+ config_accessor :layout, default: Compass::Configuration::Layout
42
44
  config_accessor :breadcrumb, default: Compass::Configuration::Breadcrumb
43
45
  end
44
46
  end
@@ -1,3 +1,3 @@
1
1
  module Compass
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-10-24 00:00:00.000000000 Z
10
+ date: 2025-10-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -38,7 +37,6 @@ extensions: []
38
37
  extra_rdoc_files: []
39
38
  files:
40
39
  - MIT-LICENSE
41
- - README.md
42
40
  - Rakefile
43
41
  - app/controllers/compass/application_controller.rb
44
42
  - app/controllers/compass/menu_controller.rb
@@ -50,6 +48,7 @@ files:
50
48
  - lib/compass/breadcrumb/middleware.rb
51
49
  - lib/compass/configuration.rb
52
50
  - lib/compass/configuration/breadcrumb.rb
51
+ - lib/compass/configuration/layout.rb
53
52
  - lib/compass/configuration/menu.rb
54
53
  - lib/compass/configuration/notification.rb
55
54
  - lib/compass/configuration/search.rb
@@ -75,7 +74,6 @@ metadata:
75
74
  homepage_uri: https://powerhrg.com
76
75
  source_code_uri: https://powerhrg.com
77
76
  changelog_uri: https://powerhrg.com
78
- post_install_message:
79
77
  rdoc_options: []
80
78
  require_paths:
81
79
  - lib
@@ -90,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
88
  - !ruby/object:Gem::Version
91
89
  version: '0'
92
90
  requirements: []
93
- rubygems_version: 3.5.22
94
- signing_key:
91
+ rubygems_version: 3.6.2
95
92
  specification_version: 4
96
93
  summary: Compass provides backend services for Compass:UI
97
94
  test_files: []
data/README.md DELETED
@@ -1,28 +0,0 @@
1
- # Compass
2
- Short description and motivation.
3
-
4
- ## Usage
5
- How to use my plugin.
6
-
7
- ## Installation
8
- Add this line to your application's Gemfile:
9
-
10
- ```ruby
11
- gem "compass"
12
- ```
13
-
14
- And then execute:
15
- ```bash
16
- $ bundle
17
- ```
18
-
19
- Or install it yourself as:
20
- ```bash
21
- $ gem install compass
22
- ```
23
-
24
- ## Contributing
25
- Contribution directions go here.
26
-
27
- ## License
28
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).