bake-modernize 0.17.2 → 0.17.3

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: 3adf18f4bf40c41642f4a556147a3a5e17ffa0be5ddf7c500c560467f39f9ac4
4
- data.tar.gz: 0de5d13a9a64c097282558d4874f5e8e8b5c4d6a89a2abe7aae3686ae45bb24f
3
+ metadata.gz: 184e24f86a0a681ca38a59b54e78d61eed0494880d8d7ca1e8003c45a759caba
4
+ data.tar.gz: 5af9b347cfd4618c6fdfe06a08f3dc93a33a06ff1e529ea9918d4cb025cecc73
5
5
  SHA512:
6
- metadata.gz: 558fab3ed955228a67a0a64fe513696fa5993db232546724638958d83f1493a70d5ebebd704ec49a2157c8c18ef88421ef9ee7af98ca728038c0d8cf111a4dd9
7
- data.tar.gz: 32fb0451b53300d6d82cf52a9f1d91fbc8807ca0b62ea36140c0fb4a3cb9f7321b8ba4756a8576eef12ef7023dfeb2eda8916ed4f485ceec5a51c341cab97cd4
6
+ metadata.gz: 728803e53abe00984a92208e0da5dd137c24311c0f3c1ba52d740524dfcab82c8932d6f8f00a72c0eb2e03975d819ff90d8758dcf813bfbf05c1f90b107dcb80
7
+ data.tar.gz: 5963dfa6c4519cd50ccf4f6b2e1b85442d1722533c96a0dee3520141873cc47511accef685781411fa065906f4dc8a86f8bd074db8101bc38b90b73064f18601
checksums.yaml.gz.sig CHANGED
Binary file
@@ -110,9 +110,11 @@ def update(path: default_gemspec_path, output: $stdout)
110
110
  end
111
111
 
112
112
  if spec.development_dependencies.any?
113
- output.puts "\t"
114
- spec.development_dependencies.sort.each do |dependency|
115
- output.puts "\tspec.add_development_dependency #{format_dependency(dependency)}"
113
+ unless move_development_dependencies(spec.development_dependencies)
114
+ output.puts "\t"
115
+ spec.development_dependencies.sort.each do |dependency|
116
+ output.puts "\tspec.add_development_dependency #{format_dependency(dependency)}"
117
+ end
116
118
  end
117
119
  end
118
120
 
@@ -236,3 +238,26 @@ def sorted_authors(spec)
236
238
 
237
239
  return authors.sort_by{|k,v| [-v, k]}.map(&:first)
238
240
  end
241
+
242
+ IGNORE_GEMS = %w[
243
+ bundler
244
+ ].freeze
245
+
246
+ def move_development_dependencies(dependencies)
247
+ gemfile_path = File.expand_path("gems.rb")
248
+
249
+ if File.exist?(gemfile_path)
250
+ File.open(gemfile_path, "a") do |file|
251
+ file.puts
252
+ file.puts "# Moved Development Dependencies"
253
+
254
+ dependencies.each do |dependency|
255
+ next if IGNORE_GEMS.include?(dependency.name)
256
+
257
+ file.puts "gem #{format_dependency(dependency)}"
258
+ end
259
+ end
260
+
261
+ true
262
+ end
263
+ end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Modernize
8
- VERSION = "0.17.2"
8
+ VERSION = "0.17.3"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-modernize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2023-06-28 00:00:00.000000000 Z
41
+ date: 2023-06-30 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: async-http
@@ -110,20 +110,6 @@ dependencies:
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
- - !ruby/object:Gem::Dependency
114
- name: sus
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: '0'
120
- type: :development
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- version: '0'
127
113
  description:
128
114
  email:
129
115
  executables: []
metadata.gz.sig CHANGED
Binary file