jekyll-chatgpt-translate 0.0.28 → 0.0.29

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: 47dd2b65d590842eeb70cba01d693890760c0c4035ca984d3ccabca7167feeff
4
- data.tar.gz: 1c2f8d6e3eac9ad4ccaae305cdefd032fa894d080305ccbbebef619dbe5a353c
3
+ metadata.gz: dc3e9a30a7d065c15ac18a15b5047f94881809857f65ed77330351f95a129d18
4
+ data.tar.gz: f6254349103e49e105451d773ac459be452027a5bdafc5a7a004a1d926e7203e
5
5
  SHA512:
6
- metadata.gz: 531429f2e20fe185d257a0f6ace1b58b4b5b1bc7b69b055eab9d44bcd50b4edfc363a43248548b81ddf3f7ae56627e738e003b6fdb14573cf12f45b03f9a1f19
7
- data.tar.gz: 6a7608330ad32747f3108409578aa26bffe357a60d11677a487371da924fb62a1c89d1d3a2a0fae69953d715857051c3ba7988ba2ce85dcf14a6d55bea4ad8ec
6
+ metadata.gz: 15a82d1c87dda2069162db76f00c3a0ade671a76806eeefeeef0239ba3dff9c62c109a1b5772e2fa002ee8da13c26ac8a0b8466235c32a88df557f5896008329
7
+ data.tar.gz: 61637d5cd8a3ce93f8e10b5df542b6a3319d23ddd168a3293df44e062a95b000b0137cc1d6e336ef24cc4cc7b4025ec095dbea3960d2099cbdfc517016efc921
data/.rubocop.yml CHANGED
@@ -20,7 +20,7 @@ Metrics/AbcSize:
20
20
  Metrics/BlockLength:
21
21
  Max: 100
22
22
  Metrics/CyclomaticComplexity:
23
- Max: 20
23
+ Max: 30
24
24
  Metrics/PerceivedComplexity:
25
25
  Max: 30
26
26
  Layout/EmptyLineAfterGuardClause:
data/features/cli.feature CHANGED
@@ -103,6 +103,10 @@ Feature: Simple site building
103
103
  language: en
104
104
  permalink: about-me.html
105
105
  """
106
+ And I have a "boom.html" file with content:
107
+ """
108
+ Boom!
109
+ """
106
110
  And I have a "_layouts/default.html" file with content:
107
111
  """
108
112
  {{ content }}
@@ -120,3 +124,4 @@ Feature: Simple site building
120
124
  And File "_site/2023/01/01/hello.html" exists
121
125
  And File "_site/about-me.html" exists
122
126
  And File "_site/about-me.html" contains "foo-file-foo"
127
+ And File "_site/boom.html" exists
@@ -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.28'
31
+ s.version = '0.0.29'
32
32
  s.license = 'MIT'
33
33
  s.summary = 'Translate Jekyll Pages Through ChatGPT'
34
34
  s.description = [
@@ -106,7 +106,7 @@ class GptTranslate::Generator < Jekyll::Generator
106
106
  mode: 'a+'
107
107
  )
108
108
  site.pages << Jekyll::Page.new(site, site.source, File.dirname(path), File.basename(path))
109
- site.static_files.delete_if { |f| p f.link == link }
109
+ site.static_files.delete_if { |f| f.is_a?(GptTranslate::Ping::DownloadedFile) && f.link == link }
110
110
  translated += 1
111
111
  Jekyll.logger.info("Translated via ChatGPT \
112
112
  in #{(Time.now - start).round(2)}s: #{path} (#{File.size(path)} bytes)")
@@ -23,5 +23,5 @@
23
23
  # SOFTWARE.
24
24
 
25
25
  module GptTranslate
26
- VERSION = '0.0.28'
26
+ VERSION = '0.0.29'
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.28
4
+ version: 0.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko