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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 938dff20d2cae44134082114f639f023c25e7735b17a5abfe1e28721145f749b
4
- data.tar.gz: 399acc810648ab39e2f453795944822e3e7ba98e893d152b4558506ffc828cb2
3
+ metadata.gz: da4291c0e51485cbd7930abcb87681d0199e9d6c9b29bc018c0106e2a139d1ad
4
+ data.tar.gz: 5a4221ac9985205c43e3bf865a69479caedc39585cc2a1e8b5821c7e8f8f3313
5
5
  SHA512:
6
- metadata.gz: a3e3772de8b7a118455349f05bdcf47218bed3c2fe1aeea8f4dc3d02ffabe8ffcc75b362434db276084ac1b7f63327e7bf733c8ae1af6147b6bb2a2a52cbe8e5
7
- data.tar.gz: 630c92992b9936e7884e70723b3b72fe4f4bb55307e39037320c83df52588fcba6772254ba9c51633aa56c330da7d46041c6102d9ec4780579491494bfa33bb5
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
@@ -1,3 +1,3 @@
1
1
  module JapMag
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
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.0
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