immosquare-translate 0.1.11 → 0.1.12

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: 180cb7b8db20ded1ad7b0ba82a190bc0e25d6d104b3490f0d2ebdda6ed51d207
4
- data.tar.gz: '0079d5362c1db09a571b5834d12fb8417a1b055d28876e5db1ab97a415e282e6'
3
+ metadata.gz: 67b99071be3a2d74bdeae22667154f01943fb334b9a0f17ad6304f78ee353344
4
+ data.tar.gz: b9764f58e1a3ee769d240fc46a6077df76f2ce97edf85a4b13af640713f63ebd
5
5
  SHA512:
6
- metadata.gz: fa746e854f10c0157f5a0c2934a165775aaaa8e22c29b8a36e6c7cb0d6acdc5ad339713b4b44e020c2690b2fad83346dc4388fc14878fb21c9ab230670998865
7
- data.tar.gz: 29d144e83757472d32142696f39d4f52171c1598a54ff47109c37635fa2e5255a43800718784db8e6db39e387d761bff5ccde135b693399e914f60cc1b75b26a
6
+ metadata.gz: 6cc53f8830d8ee64362b2266d9d53198a13401ee3f7a815fd4500bf55fc8ab9afc78a625d3f7a017dfd879a4daad5e41d5a9f92089582ad492b2149468b00788
7
+ data.tar.gz: ad7140a4cb11569f6d2c170f56a5ea967c7672c961282951fc28c70b1dec1dbaa89b899e60eb18ba6a04436502ad072237df75443294ad71cda3f7f85a1f0e10
@@ -16,7 +16,7 @@ module ImmosquareTranslate
16
16
  raise("Error: locale from is not a locale") if !from.is_a?(String) || from.size != 2
17
17
  raise("Error: locales is not an array of locales") if !to.is_a?(Array) || to.empty? || to.any? {|l| !l.is_a?(String) || l.size != 2 }
18
18
 
19
- model_name = ImmosquareYaml.configuration.openai_model
19
+ model_name = ImmosquareTranslate.configuration.openai_model
20
20
  model = OPEN_AI_MODELS.find {|m| m[:name] == model_name }
21
21
  model = OPEN_AI_MODELS.find {|m| m[:name] == "gpt-4o" } if model.nil?
22
22
  from_iso = ISO_639.find_by_code(from).english_name.split(";").first
@@ -1,3 +1,3 @@
1
1
  module ImmosquareTranslate
2
- VERSION = "0.1.11".freeze
2
+ VERSION = "0.1.12".freeze
3
3
  end
@@ -174,7 +174,7 @@ module ImmosquareTranslate
174
174
  ## https://platform.openai.com/docs/models/
175
175
  ## https://openai.com/pricing
176
176
  ##============================================================##
177
- model_name = ImmosquareYaml.configuration.openai_model
177
+ model_name = ImmosquareTranslate.configuration.openai_model
178
178
  model = OPEN_AI_MODELS.find {|m| m[:name] == model_name }
179
179
  model = OPEN_AI_MODELS.find {|m| m[:name] == "gpt-4o" } if model.nil?
180
180
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
- - IMMO SQUARE
7
+ - immosquare
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-15 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -77,7 +77,7 @@ files:
77
77
  - lib/immosquare-translate/version.rb
78
78
  - lib/immosquare-translate/yml_translator.rb
79
79
  - lib/tasks/immosquare-translate.rake
80
- homepage: https://github.com/IMMOSQUARE/immosquare-translate
80
+ homepage: https://github.com/immosquare/immosquare-translate
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.5.9
99
+ rubygems_version: 3.5.21
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: AI-powered translations for Ruby applications, supporting a wide range of