rosetta-rails 0.2.0 → 0.2.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: 4ccad1f37d3dfef704d60338c2d6e99c0d319c02c1a498c94d6fee302bfb6b95
4
- data.tar.gz: 6c40c3391ebcf6cafeba8b1865dc128b416fa878411be608117764c62dcdc3d0
3
+ metadata.gz: 7a8eebf90c38a799f28a45cce4deef9980df7ad08e971d6dbbb248307ba57261
4
+ data.tar.gz: 82bb886e5172efd5197e9c3dc90072550a3e554855fb46b5013117e95341fdba
5
5
  SHA512:
6
- metadata.gz: 3069a77bea26e6a3707d897f1c358d4b74ffbb1331448d79ab132b43541b06e6d28d7f71ccbf034ec12a035ee73d68b34928da4eb0df1331a80e22f8145ec277
7
- data.tar.gz: 743d323252d60de6b40980a34b6c107628ad92e0c3bed1638b65b5ac5e7ec45ac5e5556d706dbebede4ec540ae79e6fca203099e7a1128e42d7947a406156d17
6
+ metadata.gz: fe10bf019268c2faef4dfc19e8c79a80db6a19b8e893cc4f5fcf4e57812968f4b29e259046ec8774dfdfb1ea171e717d9216b98731c1759d8dbc9d380270d655
7
+ data.tar.gz: 5464b046d6b1e676fe9b19ceb2b47baf7aa1ece43ebf8bc588eddef040e6b4b95442fdc4c30b32591ec453ee326d96e9fcd955c0db5363eea7b16675f5b4673c
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![CI](https://github.com/virolea/rosetta/actions/workflows/ci.yml/badge.svg)](https://github.com/virolea/rosetta/actions/workflows/ci.yml)
1
+ [![CI](https://github.com/virolea/rosetta/actions/workflows/ci.yml/badge.svg)](https://github.com/virolea/rosetta/actions/workflows/ci.yml) [![Gem Version](https://badge.fury.io/rb/rosetta-rails.svg)](https://badge.fury.io/rb/rosetta-rails)
2
2
 
3
3
  # Rosetta
4
4
 
@@ -9,6 +9,8 @@ module Rosetta
9
9
 
10
10
  class_methods do
11
11
  def translate_in_all_locales
12
+ return unless ActiveRecord::Base.connection.table_exists?("rosetta_locales")
13
+
12
14
  Locale.all.each do |locale|
13
15
  translated_in(locale)
14
16
  end
@@ -1,3 +1,3 @@
1
1
  module Rosetta
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosetta-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Rolea
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails