jekyll-chatgpt-translate 0.0.26 → 0.0.27

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: 9f480f74d9f096d1b24d516f05c1c24a27cefe7e87cc9db917d2fffe727646fe
4
- data.tar.gz: 0dd088c831b8a3d9685bf4363ea7821d83d8602767fb933740b938552475d98e
3
+ metadata.gz: 416596f5103bd30f33ffd088c1da48fd422e9ed90be9a89de3874aa8fc95d26a
4
+ data.tar.gz: 0b091f92583d249630aace8b8e46246178469680ea35fe74b546fae1e97a2c3c
5
5
  SHA512:
6
- metadata.gz: c286215fa7b40fab206be74d7f03d02963f307009ba6d91c0f1ff7ce06795eb29be1588c022a994696755677e6640fb595aca7246474d8a1bc9072f38f5458a1
7
- data.tar.gz: af831575ce9749aada2c42ad5c4d8798890490e5e0795cd87f70cce9a2d8b7bbaa3d7dfba9b95e9b5f81eaef2e9f9513ca1542341e1393bc4878c6ee257911af
6
+ metadata.gz: be86868fafea658f8cdf68344923a9f1b137893678254e899709407fc7146293d43baa9e73e448d3dd23f0a9c57605e62aa20132ce03cb9a15182c4c59828a7a
7
+ data.tar.gz: 27eddf1b7a551d5c998b1cbcd781709ca9c02b0975d216f31ff431d2c79dbf2b86ad2ad0c96805cf1b5d810d3e6d6581c30269b1ddc6170e4146de23f2a89779
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
29
29
  s.required_ruby_version = '>= 2.6'
30
30
  s.name = 'jekyll-chatgpt-translate'
31
- s.version = '0.0.26'
31
+ s.version = '0.0.27'
32
32
  s.license = 'MIT'
33
33
  s.summary = 'Translate Jekyll Pages Through ChatGPT'
34
34
  s.description = [
@@ -56,10 +56,10 @@ class GptTranslate::Ping
56
56
  before = Net::HTTP.get_response(URI(uri))
57
57
  if before.is_a?(Net::HTTPSuccess)
58
58
  html = before.body
59
+ @site.static_files << DownloadedFile.new(@site, @path, html)
59
60
  if html.include?(marker)
60
61
  Jekyll.logger.info("No need to translate, the page exists at \
61
62
  #{uri.inspect} (#{html.split.count} words)")
62
- @site.static_files << DownloadedFile.new(@site, @path, html)
63
63
  return true
64
64
  end
65
65
  Jekyll.logger.info("Re-translation required for #{uri.inspect}")
@@ -23,5 +23,5 @@
23
23
  # SOFTWARE.
24
24
 
25
25
  module GptTranslate
26
- VERSION = '0.0.26'
26
+ VERSION = '0.0.27'
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-chatgpt-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko