immosquare-yaml 0.1.5 → 0.1.6

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: 34fe15584e7edf73f2dec2857095829c4beb6a680913dc78e045401f23c7cd71
4
- data.tar.gz: b8c4daa1be8c56c243b2699e3871f15d5169ff8e19ce4b099b6e825494ff5ab1
3
+ metadata.gz: 8e39eee2713828adde11a2fdb8a826e5c55c780825cd792c36e918aa0dbd74d5
4
+ data.tar.gz: bc26fdf1d10d0f47e165cf18f97289468cae487b06e3ce28cf48ffdc03ca623f
5
5
  SHA512:
6
- metadata.gz: 55beab9ea32cfd5d2643c9785b3f9bfa5023c406aa5cdc7d843a84afb2fa537d649823c25b7ebea199a961ec64d7cf46ef3ca66ab142e54b128f004566fe9177
7
- data.tar.gz: d5c3144daba11a689d746fb0ccc7265da0fea8a2787415336d13662b9d16b3c550c7baffe89075f4def8db989faaa4834c52e3904d2d1a7199a0e91aca9235a9
6
+ metadata.gz: acb1b0d5b998ed536bb0c0f806a19fd601f85edfe4f919cd73dcebc725f5ea4d6530f4612f121c9c55481a3addb076235f4b7f35db5bdc641af4cd52c1e99da2
7
+ data.tar.gz: d2a8d191cb8b9f7269f8db02b019076df06bf0fa64e327b0fcb34ea7704dfa02e991a168ef50da3d44a455fe18d577972841facedc681132b1fb279a71d4c0c2
@@ -1,3 +1,3 @@
1
1
  module ImmosquareYaml
2
- VERSION = "0.1.5".freeze
2
+ VERSION = "0.1.6".freeze
3
3
  end
@@ -9,6 +9,8 @@ namespace :immosquare_yaml do
9
9
  begin
10
10
  source_locale = ENV.fetch("SOURCE_LOCALE", nil) || "fr"
11
11
  reset_translations = ENV.fetch("RESET_TRANSLATIONS", nil) || false
12
+ reset_translations = reset_translations == "true"
13
+
12
14
  raise("Please provide a valid locale") if !I18n.available_locales.map(&:to_s).include?(source_locale)
13
15
  raise("Please provide a valid boolean for reset_translations") if ![true, false].include?(reset_translations)
14
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - IMMO SQUARE