jets 1.5.7 → 1.5.8

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: 3bab0cd3593c2f45ab542a7582ea50dd794d9cb1ca4cdd0dc802cc9bb224a0d3
4
- data.tar.gz: 585235cc53e7948a10eaf1df4842df01148f6afd1164802ee66f3f1086523002
3
+ metadata.gz: b16fdda8f9d3b23fef1ddb01e93895c808cb20f6be85103ec92c775cb773e842
4
+ data.tar.gz: 896545b8ffa84657c350eae2beddcf1a8680eeabd900c2c2676f1fb56cca5751
5
5
  SHA512:
6
- metadata.gz: 36fc0a1f15ff997815861f72419f7fe1cf7e212941a2e1ea5ce478c364780676cce408e379a1e5084aa3536c2b28c66e265b2b6950c4c84392a3280d59f4d15c
7
- data.tar.gz: 4a2c2446d300b3f90faad8cc3beddf1e97b420a21b83512bf250c557e64c0c5b82b6bb3b840edfc2fa39e2bf046128c2d6b56d54c66ff9773374636e80b4b2d9
6
+ metadata.gz: 2c5b2f93a55ab1d2be058f0ee83a9b2e9f15c790f962b75c6db213afcfba7f8cfe8951992afdf522b05311e66ce0ec95b60de14cd0d0a1e87c00c91c97c1d48e
7
+ data.tar.gz: 973c23716337adea84b5ca17661f23c56b721d58c79550c4ec282d2c739157d67f13faf57575d5f7a26e49cc1724ce3f3f1bc84db1befbaf9b0115388111e05f
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
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/), even before v1.0.
5
5
 
6
+ ## [1.5.8]
7
+ - #155 remove BUNDLED WITH from Gemfile.lock to fix newly released bundler issue
8
+
6
9
  ## [1.5.7]
7
10
  - Fix prepend_* callbacks: These could modify a global callback array if used first
8
11
 
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- jets (1.5.7)
14
+ jets (1.5.8)
15
15
  activerecord (>= 5.2.1)
16
16
  activesupport (>= 5.2.1)
17
17
  aws-sdk-apigateway
@@ -66,7 +66,7 @@ GEM
66
66
  tzinfo (~> 1.1)
67
67
  arel (9.0.0)
68
68
  aws-eventstream (1.0.1)
69
- aws-partitions (1.131.0)
69
+ aws-partitions (1.132.0)
70
70
  aws-sdk-apigateway (1.23.0)
71
71
  aws-sdk-core (~> 3, >= 3.39.0)
72
72
  aws-sigv4 (~> 1.0)
@@ -76,12 +76,12 @@ GEM
76
76
  aws-sdk-cloudwatchlogs (1.12.0)
77
77
  aws-sdk-core (~> 3, >= 3.39.0)
78
78
  aws-sigv4 (~> 1.0)
79
- aws-sdk-core (3.45.0)
79
+ aws-sdk-core (3.46.0)
80
80
  aws-eventstream (~> 1.0)
81
81
  aws-partitions (~> 1.0)
82
82
  aws-sigv4 (~> 1.0)
83
83
  jmespath (~> 1.0)
84
- aws-sdk-dynamodb (1.19.0)
84
+ aws-sdk-dynamodb (1.20.0)
85
85
  aws-sdk-core (~> 3, >= 3.39.0)
86
86
  aws-sigv4 (~> 1.0)
87
87
  aws-sdk-kms (1.13.0)
@@ -60,12 +60,12 @@ class Jets::Builders
60
60
 
61
61
  # Copy the Gemfile.lock back to the project in case it was updated.
62
62
  # For example we add the jets-rails to the Gemfile.
63
- copy_gemfile_lock
63
+ copy_back_gemfile_lock
64
64
 
65
65
  puts 'Bundle install success.'
66
66
  end
67
67
 
68
- def copy_gemfile_lock
68
+ def copy_back_gemfile_lock
69
69
  src = "#{cache_area}/Gemfile.lock"
70
70
  dest = "#{@full_app_root}/Gemfile.lock"
71
71
  FileUtils.cp(src, dest)
@@ -130,7 +130,21 @@ class Jets::Builders
130
130
  FileUtils.cp("#{full_project_path}/Gemfile", "#{cache_area}/Gemfile")
131
131
 
132
132
  gemfile_lock = "#{full_project_path}/Gemfile.lock"
133
- FileUtils.cp(gemfile_lock, "#{cache_area}/Gemfile.lock") if File.exist?(gemfile_lock)
133
+ dest = "#{cache_area}/Gemfile.lock"
134
+ FileUtils.cp(gemfile_lock, dest) if File.exist?(gemfile_lock)
135
+ adjust_gemfile_lock(dest)
136
+ end
137
+
138
+ # Remove the BUNDLED WITH line since we don't control the bundler gem version on AWS Lambda
139
+ # And this can cause issues with require 'bundler/setup'
140
+ def adjust_gemfile_lock(path)
141
+ lines = IO.readlines(path)
142
+ n = lines.index { |l| l.include?("BUNDLED WITH") }
143
+ return unless n
144
+
145
+ new_lines = lines[0..n-1]
146
+ content = new_lines.join('')
147
+ IO.write(path, content)
134
148
  end
135
149
 
136
150
  def setup_bundle_config
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.5.7"
2
+ VERSION = "1.5.8"
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: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord