jap_mag 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/README.md +2 -2
- data/app/helpers/jap_mag_widgets_helper.rb +1 -1
- data/lib/jap_mag/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da4291c0e51485cbd7930abcb87681d0199e9d6c9b29bc018c0106e2a139d1ad
|
4
|
+
data.tar.gz: 5a4221ac9985205c43e3bf865a69479caedc39585cc2a1e8b5821c7e8f8f3313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b2ebc29ed3f0608c5999734d19acf75d569556c108ea51c8e862385feaf1ee88102b7f51110d6b415a7c96ad1974bd02667a01f457b722043fc3579692c8ad
|
7
|
+
data.tar.gz: 349e465646d784975897c80ceca45098fa2f754ad68db13cbe5652a85495b8a316b40b201a060febee70627955d5f668f3f5295664a50666d1ddaef582760d30
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-3.1.2
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
JapMag is a collection of frequently-used Rails controller methods, helpers, Javascript functions and SASS mixins. It helps quickly bootstrap a Rails app.
|
4
4
|
|
5
|
-
For example, [current_controller_action_in?](https://github.com/felixding/JapMag/blob/master/lib/jap_mag.rb#L38) is a helper that checks if current request.controller and request.action match with a set of given rules. You can then for example show or hide certain things on your app depending if it matches or not.
|
5
|
+
For example, [current_controller_action_in?](https://github.com/felixding/JapMag/blob/master/lib/jap_mag.rb#L38) is a helper that checks if current request.controller and request.action match with a set of given rules. You can then for example show or hide certain things on your app depending if it matches or not.
|
6
6
|
|
7
7
|
Another example is [retina_image_tag](https://github.com/felixding/JapMag/blob/master/app/helpers/jap_mag_widgets_helper.rb#L164) which can easily generate HTML `img` tags for Retina/Non-retina screens. It also helps you deal with localized images.
|
8
8
|
|
@@ -10,7 +10,7 @@ This project was first created in 2012.
|
|
10
10
|
|
11
11
|
## Installation & Usage
|
12
12
|
|
13
|
-
Please note JapMag only supports Rails 3+.
|
13
|
+
Please note JapMag only supports Rails 3+. And starting from v1.4.0, Ruby 3.0+ is required.
|
14
14
|
|
15
15
|
Add this line to your application's Gemfile:
|
16
16
|
|
@@ -191,7 +191,7 @@ module JapMagWidgetsHelper
|
|
191
191
|
end
|
192
192
|
|
193
193
|
def section_t key, opts = {}
|
194
|
-
I18n.t "#{params[:controller]}.#{params[:action]}.sections.#{key}", opts
|
194
|
+
I18n.t "#{params[:controller]}.#{params[:action]}.sections.#{key}", **opts
|
195
195
|
end
|
196
196
|
|
197
197
|
def render_sections *args, **opts
|
data/lib/jap_mag/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jap_mag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DING Yu
|
@@ -33,6 +33,7 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- ".gitignore"
|
36
|
+
- ".ruby-version"
|
36
37
|
- Gemfile
|
37
38
|
- README.md
|
38
39
|
- Rakefile
|