globalize 7.1.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40edcbed7212ddb5fbab4e01362a9f6b9c78a68d5978c2721d9771b49d9e3c28
4
- data.tar.gz: 1e8ccf16060bd6deba5bc62059edfa9d31554364efd47b32ea2c0bd7eee6e5ff
3
+ metadata.gz: bac7118054ca9e095efdac8769ba6fefc7e23c30ed8bc0c38c180535405a2727
4
+ data.tar.gz: adf233097d8c63070127f866237d480a4279500308bd7a2d6cc20874897bda47
5
5
  SHA512:
6
- metadata.gz: fef03c052e31aed31f798bae2e27976020b22ba26f3f714efc98efad627ff85e3795fd8e6fdd8a27edf75dae13833163e9eea87ace58bfac6e948b5fd8685e24
7
- data.tar.gz: 963146026da809b8871316145b38597085f673831505466ea926e427dac0ec87d507f2394450dc2f8a4204472ef5fb1e3807eb79c0fd118de3cafee1d3c60799
6
+ metadata.gz: 3d4f9f8157cd2ff6659006bfdc1f8744b40dce6087f18191cc0a3a8952c92c51fecc6253dec0ceea032139fb6477e673be860007dc78bf80642b631c42fc1863
7
+ data.tar.gz: bc24395950b2d4812bae2ed3c15d8259fa6a6146a47e15f1b123381e93a47b771b6977035a3b443750cf5ad2ccf5bc71fb2d457c835e58276d8138613fcab792
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Globalize Changelog
2
2
 
3
+ ## 7.1.1 (2025-12-24)
4
+
5
+ * Fix automatic creation of empty stash entries for unassigned locales [#833](https://github.com/globalize/globalize/pull/833) by [Jules](https://github.com/jules-w2)
6
+
3
7
  ## 7.1.0 (2025-12-23)
4
8
 
5
9
  * Add support for Rails 8.1.x [#838](https://github.com/globalize/globalize/pull/838) by [Jules](https://github.com/jules-w2)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- globalize (7.1.0)
4
+ globalize (7.1.1)
5
5
  activemodel (>= 7.0, < 8.2)
6
6
  activerecord (>= 7.0, < 8.2)
7
7
  activesupport (>= 7.0, < 8.2)
data/README.md CHANGED
@@ -1,21 +1,30 @@
1
1
  ![Globalize](http://globalize.github.io/globalize/images/globalize.png)
2
2
 
3
- [![Build Status](https://github.com/globalize/globalize/workflows/CI/badge.svg)](https://github.com/globalize/globalize/actions) [![Code Climate](https://codeclimate.com/github/globalize/globalize.svg)](https://codeclimate.com/github/globalize/globalize)
3
+ [![Build Status](https://github.com/globalize/globalize/workflows/CI/badge.svg)](https://github.com/globalize/globalize/actions)
4
4
  [![Open Source Helpers](https://www.codetriage.com/globalize/globalize/badges/users.svg)](https://www.codetriage.com/globalize/globalize)
5
5
 
6
- You can chat with us using Gitter:
7
-
8
- [![Gitter chat](https://badges.gitter.im/globalize/globalize.svg)](https://gitter.im/globalize/globalize)
9
-
10
6
  Globalize builds on the [I18n API in Ruby on Rails](http://guides.rubyonrails.org/i18n.html)
11
7
  to add model translations to ActiveRecord models.
12
8
 
13
- In other words, a way to translate actual user-generated content, for example; a single blog post with multiple translations.
9
+ In other words: a way to translate actual user-generated content, for example; a single blog post with multiple translations.
14
10
 
15
11
  ## Current state of the gem
16
12
 
17
- Globalize is not very actively maintained. Pull Requests are welcome, especially for compatibility with new versions of Rails, but none of the maintainers actively use Globalize anymore. If you need a more actively maintained model translation gem, we recommend checking out [Mobility](https://github.com/shioyama/mobility), a natural successor of Globalize created by Chris Salzberg (one of Globalize maintainers) and inspired by the ideas discussed around Globalize. For a more up-to-date discussion of the current situation, see [issue #753](https://github.com/globalize/globalize/issues/753).
13
+ Globalize is seen as relatively feature complete and is not very actively maintained, as none of the current maintainers actively use it. It should still work just fine, and we try to keep it up to date with new Ruby and Rails releases.
14
+
15
+ Pull Requests are very welcome, even if you get a delayed response, especially for compatibility with new versions of Rails.
16
+
17
+ ## Alternative solutions
18
+
19
+ * [Mobility](https://github.com/shioyama/mobility) - pluggable translation framework supporting many strategies, including translatable columns, translation tables and hstore/jsonb (Chris Salzberg). Mobility is seen by many (including Globalize maintainers) as a natural successor to Globalize.
20
+ * [Traco](https://github.com/barsoom/traco) - use multiple columns in the same model (Barsoom)
21
+ * [hstore_translate](https://github.com/cfabianski/hstore_translate) - use PostgreSQL's hstore datatype to store translations, instead of separate translation tables (Cédric Fabianski)
22
+ * [json_translate](https://github.com/cfabianski/json_translate) - use PostgreSQL's json/jsonb datatype to store translations, instead of separate translation tables (Cédric Fabianski)
23
+ * [Trasto](https://github.com/yabawock/trasto) - store translations directly in the model in a Postgres Hstore column
24
+
25
+ ## Related solutions
18
26
 
27
+ * [friendly_id-globalize](https://github.com/norman/friendly_id-globalize) - lets you use Globalize to translate slugs (Norman Clarke)
19
28
 
20
29
  ## Requirements
21
30
 
@@ -24,7 +33,7 @@ Globalize is not very actively maintained. Pull Requests are welcome, especially
24
33
 
25
34
  ## Installation
26
35
 
27
- To install the ActiveRecord 7.x compatible version of Globalize with its default setup, just use:
36
+ To install the ActiveRecord 7.x and 8.x compatible version of Globalize with its default setup, just use:
28
37
 
29
38
  ```ruby
30
39
  gem install globalize
@@ -421,15 +430,3 @@ If you're not using Rails, you may need to consult RequestStore's [README](https
421
430
 
422
431
  * [globalize-accessors](https://github.com/globalize/globalize-accessors) - generator of accessor methods for models. *(e.g. title_en, title_cz)*
423
432
  * [globalize-versioning](https://github.com/globalize/globalize-versioning) - versioning support for using Globalize with [`paper_trail`](https://github.com/airblade/paper_trail).
424
-
425
- ## Alternative solutions
426
-
427
- * [Traco](https://github.com/barsoom/traco) - use multiple columns in the same model (Barsoom)
428
- * [Mobility](https://github.com/shioyama/mobility) - pluggable translation framework supporting many strategies, including translatable columns, translation tables and hstore/jsonb (Chris Salzberg)
429
- * [hstore_translate](https://github.com/cfabianski/hstore_translate) - use PostgreSQL's hstore datatype to store translations, instead of separate translation tables (Cédric Fabianski)
430
- * [json_translate](https://github.com/cfabianski/json_translate) - use PostgreSQL's json/jsonb datatype to store translations, instead of separate translation tables (Cédric Fabianski)
431
- * [Trasto](https://github.com/yabawock/trasto) - store translations directly in the model in a Postgres Hstore column
432
-
433
- ## Related solutions
434
-
435
- * [friendly_id-globalize](https://github.com/norman/friendly_id-globalize) - lets you use Globalize to translate slugs (Norman Clarke)
@@ -11,7 +11,7 @@ module Globalize
11
11
  end
12
12
 
13
13
  def contains?(locale, name)
14
- self[locale].has_key?(name.to_s)
14
+ key?(locale) && self[locale].key?(name.to_s)
15
15
  end
16
16
 
17
17
  def read(locale, name)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Globalize
4
- Version = "7.1.0"
4
+ Version = "7.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs