jets 3.0.22 → 3.0.23

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: 564e115dd93f465b1041093b350e560009dc437fce0d2cd45a0d0120b7c1c214
4
- data.tar.gz: df694dde52f5122bb77268be781b476c4fe49312a3b8de95d941cba91ad81c69
3
+ metadata.gz: a02adce73b38c44ec15f546538285e9797f544bdf6abe1301bfd97369c2d5cec
4
+ data.tar.gz: de64b60cfcc68e6af7b37f2c35ebd404c7d038dee00adb2f03f67c1a2d408ee0
5
5
  SHA512:
6
- metadata.gz: 28e5b7d47af46c49abbff1419ea9b0fe788780bc4fb91e6acfb70d5b3e5c79c6d8df4af5f39e15085bcbd338648d7f4773bdcadd6c2bac96b0e720cdf1bd7d7e
7
- data.tar.gz: 363782b3d1244f097b043b4d1cbc5bec06250234af75d5031813f4fe0cb1772444de7d8fde5d2f325f8357d9961d5af73f5c57fb3b0093a5a8a340ff28525cc8
6
+ metadata.gz: d9e95182926df309068f600c5179a0ea327884ba412b374490ae19130dd44b2dfdf4b4d1106e8527150cf05722e5b17df876d4ecf92ebcae252ad363748d6608
7
+ data.tar.gz: 12a73a2866479ab9e76466d7577a04cb319697f62441f90b86609f9f6567d48bd857fbaca1e8a3958ad0c9979e78da91b2e9afd82994e99f0e962c60faf4bfc4
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [3.0.23] - 2021-12-14
7
+ - [#610](https://github.com/boltops-tools/jets/pull/610) Rewrite PLATFORMS section to specify Ruby only
8
+ - [#611](https://github.com/boltops-tools/jets/pull/611) Update ruby_packager.rb
9
+
6
10
  ## [3.0.22] - 2021-10-26
7
11
  - [#607](https://github.com/boltops-tools/jets/pull/607) Job serialize - Revert "Fix job params serialization"
8
12
 
@@ -3,7 +3,9 @@ require "bundler" # for clean_old_submodules only
3
3
  module Jets::Builders
4
4
  class RubyPackager
5
5
  include Util
6
-
6
+
7
+ GEM_REGEXP = /-(arm|x)\d+.*-(darwin|linux)/
8
+
7
9
  attr_reader :full_app_root
8
10
  def initialize(relative_app_root)
9
11
  @full_app_root = "#{build_area}/#{relative_app_root}"
@@ -169,21 +171,28 @@ module Jets::Builders
169
171
  # Replace things like nokogiri (1.11.1-x86_64-darwin) => nokogiri (1.11.1)
170
172
  lines, new_lines = new_lines, []
171
173
  lines.each do |l|
172
- if l.include?("-x86_64-darwin")
173
- l = l.sub('-x86_64-darwin','')
174
- end
174
+ l.sub!(GEM_REGEXP, '') if l =~ GEM_REGEXP
175
175
  new_lines << l
176
176
  end
177
177
 
178
178
  # Make sure platform is ruby
179
- lines, new_lines, marker = new_lines, [], false
179
+ lines, new_lines, in_platforms_section, platforms_rewritten = new_lines, [], false, false
180
180
  lines.each do |l|
181
- if marker # the next loop has the platform we want to replace
181
+ if in_platforms_section && platforms_rewritten # once PLATFORMS has been found, skip all lines until the next section
182
+ if l.present?
183
+ next
184
+ else
185
+ in_platforms_section = false
186
+ end
187
+ end
188
+
189
+ if in_platforms_section && !platforms_rewritten # specify ruby as the only platform
182
190
  new_lines << " ruby\n"
183
- marker = false
191
+ platforms_rewritten = true
184
192
  next
185
193
  end
186
- marker = l.include?('PLATFORMS')
194
+
195
+ in_platforms_section = l.include?('PLATFORMS')
187
196
  new_lines << l
188
197
  end
189
198
 
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "3.0.22"
2
+ VERSION = "3.0.23"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.22
4
+ version: 3.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer