i18n_date_range 2.1.1 → 2.1.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: 45ae5dfe748a63b919691eaf67872eb8f8775ff20a5eecec82f779f22b1cec25
4
- data.tar.gz: 8460d8348f8261c65da25181dd194024eb6c80cb2eca5798ff8b334fd110068e
3
+ metadata.gz: 325df9b5fc7d3c4556eabeb1b4c8f689f150eda430633c7578c677d7d924f428
4
+ data.tar.gz: 8ed8f3b5604b05b0e07cd393c2e20c8df50e1d6622272b49810519f75f2535b8
5
5
  SHA512:
6
- metadata.gz: '0415788951bc1dc174ed4e113a1b7ca769b9d6b91d42d203bf118d8e3e7619266e7d39824529315a6a9b6ca1fafcb806066e9c6d80dadb5712a1dbcd0e097258'
7
- data.tar.gz: 07ac181766dade2105b1251973d21aeef3beb8b573944bff934bf5489541112a2560b42c0493f1857df57473a15d4e32dee7cecea42630ffef1ea51a4f4eb8e8
6
+ metadata.gz: 8f3843d5cad1e5e07947f6dfee00b210c1d90da605e14fb0b591a01733a26f6888a58a4a663b1f5514910b9696748ee6e687462adee957cefea03cfe899a6a7d
7
+ data.tar.gz: 160e2ac0804dc4170e1052ecd9b309cfbc3c28e5395868730bfc58f2472a0cff1ff6fe642a414bc8ed56ee4fd9964c4539e777fa9364f9ce6c4d35e50d81307c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- i18n_date_range (2.1.1)
4
+ i18n_date_range (2.1.2)
5
5
  rails
6
6
  rails-i18n
7
7
 
@@ -72,7 +72,7 @@ class I18nDateRangeGenerator
72
72
 
73
73
  def from_formatted
74
74
  @from_formatted ||= begin
75
- from = I18n.l(from_date, format: from_sentence)
75
+ from = I18n.l(from_date, format: from_sentence, locale: locale)
76
76
  from = from.upcase_first if from_upcase_first
77
77
  from
78
78
  end
@@ -81,7 +81,7 @@ class I18nDateRangeGenerator
81
81
  def to_formatted
82
82
  return '' if no_end?
83
83
  @to_formatted ||= begin
84
- to = I18n.l(to_date, format: to_sentence)
84
+ to = I18n.l(to_date, format: to_sentence, locale: locale)
85
85
  to = to.upcase_first if to_upcase_first
86
86
  to
87
87
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module I18nDateRange
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_date_range
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pabois