redmineflux_icon_compat 0.1.1 → 0.1.2

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: e13f0604cfb7cd9b8a19058158bd81fb61bba6ca32fc84e0044b9481dae0faaf
4
- data.tar.gz: 61704c9b1b47ea9030ed3752638b2de9f7e16dc219d962c5d1849971108dedfe
3
+ metadata.gz: 6086040e39bd5cf0e82f22f90afdc29853117f6ec8fffbc3ae76cfc5ab1a8b57
4
+ data.tar.gz: 207d95b7aece44166ec87a713bac13fbca6aef984ad9c9f0e576d6f96c2184c5
5
5
  SHA512:
6
- metadata.gz: dc75480b32b6ff1a82a2f0a128ac23f6277b43f875e99aca71fe36c0c254c83db4eb422ab74755c1b45a98ba197f9fde9f933506126688f0224ec2d5d22fdc05
7
- data.tar.gz: d542b29d7b96acbb9b80c7df35e70aaa3b1b1571724d5bf88f16c931ece299047bf7984427e6fdad76abe173011c3a29fd0fd6ef19a9c756edc62fdfb54e2671
6
+ metadata.gz: 1cda2877c0643b538626171e024e3046e68b6f74cc3fa314cc5b0e3988fb81e810a53e5ad6e7c54bb448f849e99e03539f3d2dba657d4660fb049e1ed506d9a8
7
+ data.tar.gz: 8c4995d5b73663acd7919ebd3fe02bf1f1b113a6a0d2bd342f1eb916bb97204a47a5572495228f5baad72b0fa9e7c8a71ae9ce00f0661ecb6bfd2cb2e17562cc
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to `redmineflux_icon_compat` will be documented in this file.
4
4
 
5
+ ## [0.1.2] - 2026-04-17
6
+
7
+ ### Changed
8
+ - Updated README wording and usage clarity.
9
+ - Updated RubyGems dependency example to `~> 0.1.2`.
10
+
5
11
  ## [0.1.1] - 2026-04-16
6
12
 
7
13
  ### Added
data/README.md CHANGED
@@ -1,27 +1,27 @@
1
1
  # Redmineflux Icon Compat
2
2
 
3
- Compatibility helper gem for Redmine plugin icons.
3
+ `redmineflux_icon_compat` provides one helper API for plugin links that works in both:
4
+ - Redmine 5 legacy icon classes (`icon icon-*`)
5
+ - Redmine 6 sprite icons (`sprite_icon`)
4
6
 
5
- This gem gives one helper API (`rf_icon_link`) that works in both:
6
- - Redmine 5 style icons (`icon icon-*` classes)
7
- - Redmine 6 SVG sprite icons (`sprite_icon`)
7
+ Use `rf_icon_link` to keep one code path across Redmine versions.
8
8
 
9
- ## Use This Gem In A Redmine Plugin
9
+ ## Install In A Redmine Plugin
10
10
 
11
- ### 1) Add gem declaration in your plugin Gemfile
11
+ ### 1) Add the gem to your plugin Gemfile
12
12
 
13
13
  Create or update `plugins/<your_plugin>/Gemfile`.
14
14
 
15
- For local development:
15
+ Local development:
16
16
 
17
17
  ```ruby
18
18
  gem 'redmineflux_icon_compat', path: '../redmineflux_icon_compat'
19
19
  ```
20
20
 
21
- For published usage from RubyGems:
21
+ From RubyGems:
22
22
 
23
23
  ```ruby
24
- gem 'redmineflux_icon_compat', '~> 0.1.0'
24
+ gem 'redmineflux_icon_compat', '~> 0.1.2'
25
25
  ```
26
26
 
27
27
  ### 2) Install dependencies
@@ -32,7 +32,7 @@ From Redmine root:
32
32
  bundle install
33
33
  ```
34
34
 
35
- ### 3) Load gem in plugin init file
35
+ ### 3) Require the gem in plugin init
36
36
 
37
37
  In `plugins/<your_plugin>/init.rb`:
38
38
 
@@ -40,9 +40,7 @@ In `plugins/<your_plugin>/init.rb`:
40
40
  require 'redmineflux_icon_compat'
41
41
  ```
42
42
 
43
- ### 4) Include helper in plugin helpers (optional but recommended)
44
-
45
- Example:
43
+ ### 4) Include the helper (recommended)
46
44
 
47
45
  ```ruby
48
46
  module MyPluginHelper
@@ -50,29 +48,29 @@ module MyPluginHelper
50
48
  end
51
49
  ```
52
50
 
53
- ### 5) Use `rf_icon_link` in views or helpers
51
+ ### 5) Use `rf_icon_link` in views/helpers
54
52
 
55
- Example in ERB:
53
+ ERB example:
56
54
 
57
55
  ```erb
58
56
  <%= rf_icon_link(:add, 'Add Checklist', '#', class: 'add-checklist-btn') %>
59
57
  ```
60
58
 
61
- Example in helper:
59
+ Helper example:
62
60
 
63
61
  ```ruby
64
62
  rf_icon_link(:edit, l(:button_edit), edit_path(record))
65
63
  ```
66
64
 
67
- ### 6) Restart Redmine server
65
+ ### 6) Restart Redmine
68
66
 
69
- After gem or helper changes, restart app server so Rails reloads plugin code.
67
+ Restart the app server after gem/helper changes so code reload is clean.
70
68
 
71
69
  ## Troubleshooting
72
70
 
73
71
  If you still see old icons:
74
- - run `rm -rf tmp/cache/*`
75
- - run `bundle install` again
72
+ - clear cache: `rm -rf tmp/cache/*`
73
+ - reinstall dependencies: `bundle install`
76
74
  - restart Redmine
77
75
  - hard refresh browser (`Ctrl+Shift+R`)
78
76
 
@@ -84,59 +82,8 @@ From Redmine root:
84
82
  ruby plugins/redmineflux_icon_compat/test/helper_test.rb
85
83
  ```
86
84
 
87
- Or from gem directory:
85
+ From this gem directory:
88
86
 
89
87
  ```bash
90
- cd plugins/redmineflux_icon_compat
91
88
  ruby test/helper_test.rb
92
89
  ```
93
-
94
- ## Publish To RubyGems
95
-
96
- 1. Create RubyGems account: https://rubygems.org/sign_up
97
- 2. Login from terminal:
98
-
99
- ```bash
100
- gem signin
101
- ```
102
-
103
- 3. Bump version in:
104
- - `plugins/redmineflux_icon_compat/lib/redmineflux_icon_compat/version.rb`
105
-
106
- 4. Run tests:
107
-
108
- ```bash
109
- ruby plugins/redmineflux_icon_compat/test/helper_test.rb
110
- ```
111
-
112
- 5. Build the gem:
113
-
114
- ```bash
115
- cd plugins/redmineflux_icon_compat
116
- gem build redmineflux_icon_compat.gemspec
117
- ```
118
-
119
- 6. Push to RubyGems:
120
-
121
- ```bash
122
- gem push redmineflux_icon_compat-<VERSION>.gem
123
- ```
124
-
125
- 7. Verify publication:
126
- - Open `https://rubygems.org/gems/redmineflux_icon_compat`
127
- - Check docs page after indexing: `https://www.rubydoc.info/gems/redmineflux_icon_compat`
128
- - Install smoke test:
129
-
130
- ```bash
131
- gem install redmineflux_icon_compat
132
- ```
133
-
134
- ## Ownership and Security (Recommended)
135
-
136
- Add backup owners:
137
-
138
- ```bash
139
- gem owner redmineflux_icon_compat --add teammate@example.com
140
- ```
141
-
142
- Require MFA on RubyGems account for push/yank.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedminefluxIconCompat
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmineflux_icon_compat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redmineflux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-16 00:00:00.000000000 Z
11
+ date: 2026-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview