l10n 2.0.0 → 2.0.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: 983a6cc561859d662fc97347df35643e42444b6c996b1ff224a327a0fe5dfe77
4
- data.tar.gz: f4baa0c9c30895603cec6ec75c93236d1a9b8668e7d3f0912b2ae5303093cabe
3
+ metadata.gz: bd3f8a0bc047817f4a774f48cb0584f7179b7b9e5b9857fbe4b56aa8bd4ca6c2
4
+ data.tar.gz: f1bbab93ef1b9553cfd81575d5f06fb51ac6334fb9437c2e2de1c8a43caf626a
5
5
  SHA512:
6
- metadata.gz: 9856cc22286c2cf3ec0731c46e047024f9963efdfd957126d6a0f659c0c435d8625b22b1aa2e2e70722b869d7663845c8879568fccab9e567450d1bdd73dc7df
7
- data.tar.gz: 21bbb3ac8f822c9c70e2ce90fa74917bc621e86ea77dfd4ec87fcadbaf8d7cc39d0af425618bf2cae46b1736878b7680c1aa0f171fbea184abd982c3872260bd
6
+ metadata.gz: 23839e9b5e634487d88f31831d5c418e5695beaf7885f3f313fafa3d1a7ccd4b666fd2b7baee8530411d0f7114ab99221cd183f33c03e06a6d8a6d17a45bd529
7
+ data.tar.gz: fbc6874864dc62627c13d146137342cde276ef76b10bfe25a9549286c609c10c140830ebf971dac1076eb1fea492bdf9eab637a13d382d62254d7d740e078a9d
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 2.0.0 - Unreleased
1
+ ## 2.0.1 - 2023-05-09
2
+
3
+ - Fix method delegation
4
+
5
+ ## 2.0.0 - 2022-04-29
2
6
 
3
7
  - Support Rails 7
4
8
  - use `to_lfs` instead of `to_formatted_s` which has been reclaimed by Rails
@@ -9,5 +9,5 @@ module L10n
9
9
  end
10
10
  end
11
11
 
12
- Date.send :include, L10n::CoreExtensions::DateTimeExt
13
- Time.send :include, L10n::CoreExtensions::DateTimeExt
12
+ Date.include L10n::CoreExtensions::DateTimeExt
13
+ Time.include L10n::CoreExtensions::DateTimeExt
@@ -1,12 +1,12 @@
1
1
  module L10n
2
2
  module CoreExtensions
3
3
  module StringExt
4
- def translate(*args)
5
- I18n.t(self, *args)
4
+ def translate(*args, **kwargs, &block)
5
+ I18n.t(self, *args, **kwargs, &block)
6
6
  end
7
7
  alias :t :translate
8
8
  end
9
9
  end
10
10
  end
11
11
 
12
- String.send :include, L10n::CoreExtensions::StringExt
12
+ String.include L10n::CoreExtensions::StringExt
@@ -1,12 +1,12 @@
1
1
  module L10n
2
2
  module CoreExtensions
3
3
  module SymbolExt
4
- def translate(*args)
5
- I18n.t(self, *args)
4
+ def translate(*args, **kwargs, &block)
5
+ I18n.t(self, *args, **kwargs, &block)
6
6
  end
7
7
  alias :t :translate
8
8
  end
9
9
  end
10
10
  end
11
11
 
12
- Symbol.send :include, L10n::CoreExtensions::SymbolExt
12
+ Symbol.include L10n::CoreExtensions::SymbolExt
data/lib/l10n/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module L10n
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: l10n
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Grosser
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-04-29 00:00:00.000000000 Z
@@ -136,7 +136,7 @@ homepage: https://github.com/mtgrosser/l10n
136
136
  licenses:
137
137
  - MIT
138
138
  metadata: {}
139
- post_install_message:
139
+ post_install_message:
140
140
  rdoc_options: []
141
141
  require_paths:
142
142
  - lib
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubygems_version: 3.1.4
155
- signing_key:
155
+ signing_key:
156
156
  specification_version: 4
157
157
  summary: Make I18n roar again
158
158
  test_files: []