globalize 7.0.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: f5fdba3c5ea00eef1837da1b42d82ac9cd09b4ab5ae7ac30c7f52dae27b9f9f1
4
- data.tar.gz: 050116cc35980cd4811d50d77b1bd951fd771f166d9bda3fac4e9017915c6392
3
+ metadata.gz: bac7118054ca9e095efdac8769ba6fefc7e23c30ed8bc0c38c180535405a2727
4
+ data.tar.gz: adf233097d8c63070127f866237d480a4279500308bd7a2d6cc20874897bda47
5
5
  SHA512:
6
- metadata.gz: 60221a6bc834b88ae87b49ffbbdb91e580d7e62e8bddb550e256abb7ff3e3d8d2e431655ae2412756700e8faf7e626a873191a47f7b09b2246d74077bc5f0f25
7
- data.tar.gz: 130ea35e74944c52893b4923a6168922696bc15f8afaf19e10dfae57913fb19ac2ea10130a6da1d9bbad96ba575a0f71f36848d7a41299ece7b0e6256b37deb1
6
+ metadata.gz: 3d4f9f8157cd2ff6659006bfdc1f8744b40dce6087f18191cc0a3a8952c92c51fecc6253dec0ceea032139fb6477e673be860007dc78bf80642b631c42fc1863
7
+ data.tar.gz: bc24395950b2d4812bae2ed3c15d8259fa6a6146a47e15f1b123381e93a47b771b6977035a3b443750cf5ad2ccf5bc71fb2d457c835e58276d8138613fcab792
data/CHANGELOG.md CHANGED
@@ -1,11 +1,23 @@
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
+
7
+ ## 7.1.0 (2025-12-23)
8
+
9
+ * Add support for Rails 8.1.x [#838](https://github.com/globalize/globalize/pull/838) by [Jules](https://github.com/jules-w2)
10
+ * Add Ruby 3.4 to the test matrix [#830](https://github.com/globalize/globalize/pull/830) by [Jonas S](https://github.com/rocket-turtle)
11
+
3
12
  ## 7.0.0 (2024-12-20)
4
13
 
5
14
  * Enable Rubygems Trusted Publishing
6
15
  * Fix ActiveRecord load order issues using `ActiveSupport.on_load(:active_record)` [#816](https://github.com/globalize/globalize/pull/816) by [Rune Philosof](https://github.com/runephilosof-abtion)
7
16
  * Allow custom `:dependent` option for translations association [#821](https://github.com/globalize/globalize/pull/821) by [Bruno Carvalho](https://github.com/brunodccarvalho)
8
17
  * Don't specify `ignored_columns` unless necessary [#806](https://github.com/globalize/globalize/pull/806) by [Pat Leamon](https://github.com/stiak)
18
+ * Add Rails 8.0 and Ruby 3.3 to the test matrix [#826](https://github.com/globalize/globalize/pull/826) by [Jonas S](https://github.com/rocket-turtle)
19
+ * Support Rails 7.2; remove deprecation warning in rails 7.1 [#825](https://github.com/globalize/globalize/pull/825) by [Jonas S](https://github.com/rocket-turtle)
20
+ * Remove support for outdated Rails (lower than 7.0) and Ruby (lower than 3.0) [#824](https://github.com/globalize/globalize/pull/824) by [Jonas S](https://github.com/rocket-turtle)
9
21
 
10
22
  ## 6.3.0 (2023-10-22)
11
23
 
data/Gemfile.lock CHANGED
@@ -1,29 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- globalize (7.0.0)
5
- activemodel (>= 7.0, < 8.1)
6
- activerecord (>= 7.0, < 8.1)
7
- activesupport (>= 7.0, < 8.1)
4
+ globalize (7.1.1)
5
+ activemodel (>= 7.0, < 8.2)
6
+ activerecord (>= 7.0, < 8.2)
7
+ activesupport (>= 7.0, < 8.2)
8
8
  request_store (~> 1.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (8.0.1)
14
- activesupport (= 8.0.1)
15
- activerecord (8.0.1)
16
- activemodel (= 8.0.1)
17
- activesupport (= 8.0.1)
13
+ activemodel (8.1.1)
14
+ activesupport (= 8.1.1)
15
+ activerecord (8.1.1)
16
+ activemodel (= 8.1.1)
17
+ activesupport (= 8.1.1)
18
18
  timeout (>= 0.4.0)
19
- activesupport (8.0.1)
19
+ activesupport (8.1.1)
20
20
  base64
21
- benchmark (>= 0.3)
22
21
  bigdecimal
23
22
  concurrent-ruby (~> 1.0, >= 1.3.1)
24
23
  connection_pool (>= 2.2.5)
25
24
  drb
26
25
  i18n (>= 1.6, < 2)
26
+ json
27
27
  logger (>= 1.4.2)
28
28
  minitest (>= 5.1)
29
29
  securerandom (>= 0.3)
@@ -34,54 +34,59 @@ GEM
34
34
  bundler
35
35
  rake
36
36
  thor (>= 0.14.0)
37
- base64 (0.2.0)
38
- benchmark (0.4.0)
39
- bigdecimal (3.1.8)
37
+ base64 (0.3.0)
38
+ bigdecimal (4.0.1)
40
39
  builder (3.3.0)
41
40
  coderay (1.1.3)
42
- concurrent-ruby (1.3.4)
43
- connection_pool (2.4.1)
41
+ concurrent-ruby (1.3.6)
42
+ connection_pool (3.0.2)
44
43
  database_cleaner (2.1.0)
45
44
  database_cleaner-active_record (>= 2, < 3)
46
- database_cleaner-active_record (2.2.0)
45
+ database_cleaner-active_record (2.2.2)
47
46
  activerecord (>= 5.a)
48
- database_cleaner-core (~> 2.0.0)
47
+ database_cleaner-core (~> 2.0)
49
48
  database_cleaner-core (2.0.1)
50
- date (3.4.1)
51
- drb (2.2.1)
52
- i18n (1.14.6)
49
+ date (3.5.1)
50
+ drb (2.2.3)
51
+ erb (6.0.1)
52
+ i18n (1.14.8)
53
53
  concurrent-ruby (~> 1.0)
54
- logger (1.6.4)
55
- m (1.6.2)
56
- method_source (>= 0.6.7)
57
- rake (>= 0.9.2.2)
54
+ json (2.18.0)
55
+ logger (1.7.0)
56
+ m (1.7.0)
57
+ rake
58
58
  method_source (1.1.0)
59
- minitest (5.25.4)
59
+ minitest (6.0.0)
60
+ prism (~> 1.5)
60
61
  minitest-reporters (1.7.1)
61
62
  ansi
62
63
  builder
63
64
  minitest (>= 5.0)
64
65
  ruby-progressbar
65
- pry (0.15.0)
66
+ prism (1.7.0)
67
+ pry (0.15.2)
66
68
  coderay (~> 1.1)
67
69
  method_source (~> 1.0)
68
- psych (5.2.2)
70
+ psych (5.3.1)
69
71
  date
70
72
  stringio
71
- rack (3.1.8)
72
- rake (13.2.1)
73
- rdoc (6.10.0)
73
+ rack (3.2.4)
74
+ rake (13.3.1)
75
+ rdoc (7.0.2)
76
+ erb
74
77
  psych (>= 4.0.0)
78
+ tsort
75
79
  request_store (1.7.0)
76
80
  rack (>= 1.4)
77
81
  ruby-progressbar (1.13.0)
78
82
  securerandom (0.4.1)
79
- stringio (3.1.2)
80
- thor (1.3.2)
81
- timeout (0.4.3)
83
+ stringio (3.2.0)
84
+ thor (1.4.0)
85
+ timeout (0.6.0)
86
+ tsort (0.2.0)
82
87
  tzinfo (2.0.6)
83
88
  concurrent-ruby (~> 1.0)
84
- uri (1.0.2)
89
+ uri (1.1.1)
85
90
 
86
91
  PLATFORMS
87
92
  ruby
@@ -99,4 +104,4 @@ DEPENDENCIES
99
104
  rdoc
100
105
 
101
106
  BUNDLED WITH
102
- 2.5.22
107
+ 2.6.9
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
@@ -391,7 +400,7 @@ post.title
391
400
  post.title(:foo => "bar")
392
401
  # SomeError: missing interpolation argument :superlative
393
402
 
394
- post.title(:superlative => 'rocks")
403
+ post.title(:superlative => "rocks")
395
404
  # #=> "Globalize rocks!"
396
405
  ```
397
406
 
@@ -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.0.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.0.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
@@ -11,10 +11,9 @@ authors:
11
11
  - Tomasz Stachewicz
12
12
  - Philip Arndt
13
13
  - Chris Salzberg
14
- autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
- date: 2024-12-19 00:00:00.000000000 Z
16
+ date: 1980-01-02 00:00:00.000000000 Z
18
17
  dependencies:
19
18
  - !ruby/object:Gem::Dependency
20
19
  name: activesupport
@@ -25,7 +24,7 @@ dependencies:
25
24
  version: '7.0'
26
25
  - - "<"
27
26
  - !ruby/object:Gem::Version
28
- version: '8.1'
27
+ version: '8.2'
29
28
  type: :runtime
30
29
  prerelease: false
31
30
  version_requirements: !ruby/object:Gem::Requirement
@@ -35,7 +34,7 @@ dependencies:
35
34
  version: '7.0'
36
35
  - - "<"
37
36
  - !ruby/object:Gem::Version
38
- version: '8.1'
37
+ version: '8.2'
39
38
  - !ruby/object:Gem::Dependency
40
39
  name: activerecord
41
40
  requirement: !ruby/object:Gem::Requirement
@@ -45,7 +44,7 @@ dependencies:
45
44
  version: '7.0'
46
45
  - - "<"
47
46
  - !ruby/object:Gem::Version
48
- version: '8.1'
47
+ version: '8.2'
49
48
  type: :runtime
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
@@ -55,7 +54,7 @@ dependencies:
55
54
  version: '7.0'
56
55
  - - "<"
57
56
  - !ruby/object:Gem::Version
58
- version: '8.1'
57
+ version: '8.2'
59
58
  - !ruby/object:Gem::Dependency
60
59
  name: activemodel
61
60
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +64,7 @@ dependencies:
65
64
  version: '7.0'
66
65
  - - "<"
67
66
  - !ruby/object:Gem::Version
68
- version: '8.1'
67
+ version: '8.2'
69
68
  type: :runtime
70
69
  prerelease: false
71
70
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,7 +74,7 @@ dependencies:
75
74
  version: '7.0'
76
75
  - - "<"
77
76
  - !ruby/object:Gem::Version
78
- version: '8.1'
77
+ version: '8.2'
79
78
  - !ruby/object:Gem::Dependency
80
79
  name: request_store
81
80
  requirement: !ruby/object:Gem::Requirement
@@ -246,7 +245,6 @@ homepage: http://github.com/globalize/globalize
246
245
  licenses:
247
246
  - MIT
248
247
  metadata: {}
249
- post_install_message:
250
248
  rdoc_options: []
251
249
  require_paths:
252
250
  - lib
@@ -261,8 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
259
  - !ruby/object:Gem::Version
262
260
  version: '0'
263
261
  requirements: []
264
- rubygems_version: 3.5.22
265
- signing_key:
262
+ rubygems_version: 3.6.9
266
263
  specification_version: 4
267
264
  summary: Rails I18n de-facto standard library for ActiveRecord model/data translation
268
265
  test_files: []