tayo 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a521c446bb379872cbb6377859c06259df27c3756077986e49c8a782ded5c8d
4
- data.tar.gz: c691860435a9f43468c79604c71b099b6b273635cb82d1a8b7c74a829f1acf6c
3
+ metadata.gz: 166ca254315cc9367c02dd958314e11de98d337cae0bf70937269b992e803723
4
+ data.tar.gz: 875bc6262635b986a1e3568bae0995a368fbb09c5eea379b261256d115b70f03
5
5
  SHA512:
6
- metadata.gz: 74fd3a2b85e0798f7c9c6584eb79eca7b397a961d1304d0bf6e6dc1580e93a2ecb934661863a27babdc9a72978e802072bef97eda36f96c98012560bcb17e9d1
7
- data.tar.gz: 1c10ec62c63fc48c2645714713707d009123f5e0a9d7aca5610ec992902745d7b491d79cc367b281c186b41ab275a1c8e8d7c98b356fb3bef79993544fa3aaa1
6
+ metadata.gz: 757abefd9e9bfcdf97fe03f3b5138dcba358b0fd390d8947150dcb6f7b5c5e514258d11995caabada8eaee169020a127d9a070d7fbb4e9f7d5aebd3594bc61e3
7
+ data.tar.gz: 776ecb2e875fc598beb66387a70d847aa69ea68d0e35d4df3cc29d69c10b2d0949d693eb500ce2c9823d402e7c29763d93a294b90e6aac7bfcd64532af109c74
@@ -163,22 +163,18 @@ module Tayo
163
163
  return unless File.exist?("Dockerfile")
164
164
 
165
165
  dockerfile_content = File.read("Dockerfile")
166
+ original_content = dockerfile_content.dup
166
167
 
167
168
  # bootsnap precompile 관련 라인들을 찾아서 제거
168
- bootsnap_lines = [
169
- "# Precompile bootsnap code for faster boot times",
170
- "RUN bundle exec bootsnap precompile app/ lib/"
171
- ]
172
-
173
- modified = false
174
- bootsnap_lines.each do |line|
175
- if dockerfile_content.include?(line)
176
- dockerfile_content.gsub!(/^.*#{Regexp.escape(line)}.*\n/, "")
177
- modified = true
178
- end
169
+ # 주석과 RUN 명령을 함께 제거
170
+ if dockerfile_content.include?("bootsnap precompile")
171
+ # 주석 라인 제거
172
+ dockerfile_content.gsub!(/^#.*bootsnap.*faster boot times.*\n/i, "")
173
+ # RUN 명령 제거
174
+ dockerfile_content.gsub!(/^RUN bundle exec bootsnap precompile.*\n/i, "")
179
175
  end
180
176
 
181
- if modified
177
+ if dockerfile_content != original_content
182
178
  File.write("Dockerfile", dockerfile_content)
183
179
  puts "✅ Dockerfile에서 bootsnap precompile 부분을 제거했습니다. (빌드 문제 해결)".colorize(:green)
184
180
  puts " - 이는 알려진 빌드 문제를 방지하기 위함입니다.".colorize(:gray)
data/lib/tayo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tayo
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tayo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 이원섭wonsup Lee/Alfonso