padrino-helpers 0.15.1 → 0.15.2

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: 8ac2dfdf7cbac9e51f1d7bfbb3a9ef301152775edf61148bfbf615a61522cee9
4
- data.tar.gz: ce7424b79c15478c6f9a36f922810e84af9ba1eae4e8c15d7b2a75feb85602e5
3
+ metadata.gz: 58a9915839f5f8d632d2ffc3e11ebfbfe4929a04cece13f6173bf35cc8cc2542
4
+ data.tar.gz: 901011579e224e6a20c63affb25d3cbaa258646b6ebc3a04009119ac27838ea9
5
5
  SHA512:
6
- metadata.gz: cd675bdc8f32d46dea5b827906fe094f2c8926b5e8986fe3c95659c1a7831a88da839e62715a4509531c4e7ce6fe71d7a0f6263b4b07b58bff2b5f115099914f
7
- data.tar.gz: 0cb9e9a1c5cf7df7cec2a5436a69a58d42e22e7c21380bb1f3e0779060e33e2f6419f732ba1873c635dc244230c9d09e14fb2cdf833890c6a334775726b6c439
6
+ metadata.gz: 36904dba8958d016cbb15c35bddd107f6011eb4c7b9f009212b1fdd2b53536c1c02ca55dabcd3094591ab307f617bc5bb8b91e124224749c67bd1c2316261814
7
+ data.tar.gz: cb2dceb65730d1fa69a9ad34888159a249a8a22c7fa68bd44dd8108a1eb1acbd7640a9748abc08c366cdbb867380ddbc91667a32890f1408241b04884fc07d67
@@ -325,7 +325,8 @@ module Padrino
325
325
  [:almost_x_years, :count => distance_in_years + 1]
326
326
  end
327
327
  end
328
- I18n.translate phrase, locals.merge(:locale => options[:locale], :scope => :'datetime.distance_in_words')
328
+
329
+ I18n.translate phrase, :count => locals[:count], :locale => options[:locale], :scope => :'datetime.distance_in_words'
329
330
  end
330
331
 
331
332
  ##
@@ -14,7 +14,8 @@ module Padrino
14
14
  # The translation for the specified keys.
15
15
  #
16
16
  def translate(*args)
17
- I18n.translate(*args)
17
+ options = args.last.is_a?(Hash) ? args.pop : {}
18
+ I18n.translate(*args, **options)
18
19
  end
19
20
  alias :t :translate
20
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-04-25 00:00:00.000000000 Z
14
+ date: 2022-12-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-support
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.15.1
22
+ version: 0.15.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.15.1
29
+ version: 0.15.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: tilt
32
32
  requirement: !ruby/object:Gem::Requirement