serverlessgems 0.1.0 → 0.1.1

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: ee4f7043cd9fb6ace83079a2a82b3aeafb3ca2c9000e73fe6bff8dccd86b21f5
4
- data.tar.gz: 4fc40b94cda06670351b39a401c9cb0eadb94030fd85f2c8d058590a75605f59
3
+ metadata.gz: 6756e479ba86b9b25e086d1779911039ce33279054f0ecc968174195dd0a20b5
4
+ data.tar.gz: 6d447ad46909e821ead5bc87d8099783503f73b7635883b4699fcac945581711
5
5
  SHA512:
6
- metadata.gz: 76e24348551d21d0d1266c972f11d9782c3d1a9ea36a653c62b25e4404b3a5146562c79e22df2b0ab860c0f4754e17ebf3663e9bbea15c042c673a7160dae826
7
- data.tar.gz: 9f4f5d19b9833cf94da12b410475b44a8b519171d260b5119ab802e1fd246c8fcc6e3ddb504d7d20683a6d1a0aa3d5e8185f6a5657ae0ecde5f6cc88c2bb1869
6
+ metadata.gz: 3b606e3d673fc0bceb0edfeac4010559714126cb1edf1506ce761dba5a7a88558a3a623e7cae94f591901aac00f01abd480a770a191ba6346e8ac740e30e21fb
7
+ data.tar.gz: c35c1a8617de78772a415bed0c98ac52f94592b55848b1a0ba11cda0c746602e0b1f58cc471449ae17faf552d0835c3f440a4ab4331869ccc475ff0e810f532b
@@ -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/).
5
5
 
6
+ ## [0.1.1] - 2021-01-12
7
+ - [#1](https://github.com/boltops-tools/serverlessgems/pull/1) fix native gem detection
8
+
6
9
  ## [0.1.0]
7
10
  - Initial release
8
11
  - Rename to serverlessgems
@@ -131,10 +131,27 @@ EOL
131
131
  # jets deploy
132
132
  # jets gems:check
133
133
  #
134
- gemspec_compiled_gems
134
+ gems = gemspec_compiled_gems
135
+ gems += other_compiled_gems
136
+ gems.uniq
135
137
  end
136
138
  end
137
139
 
140
+ # note 2.7.0/gems vs 2.7.0/extensions
141
+ #
142
+ # /tmp/jets/demo/stage/opt/ruby/gems/2.7.0/gems/nokogiri-1.11.1-x86_64-darwin/
143
+ # /tmp/jets/demo/stage/opt/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/
144
+ #
145
+ # Also the platform is appended to the gem folder now
146
+ #
147
+ # /tmp/jets/demo/stage/opt/ruby/gems/2.7.0/gems/nokogiri-1.11.1-x86_64-darwin
148
+ # /tmp/jets/demo/stage/opt/ruby/gems/2.7.0/gems/nokogiri-1.11.1-x86_64-linux
149
+ #
150
+ def other_compiled_gems
151
+ paths = Dir.glob("/tmp/jets/demo/stage/opt/ruby/gems/#{Jets::Gems.ruby_folder}/gems/*{-darwin,-linux}")
152
+ paths.map { |p| File.basename(p).sub(/-x\d+.*-(darwin|linux)/,'') }
153
+ end
154
+
138
155
  # Use pre-compiled gem because the gem could have development header shared
139
156
  # object file dependencies. The shared dependencies are packaged up as part
140
157
  # of the pre-compiled gem so it is available in the Lambda execution environment.
@@ -189,4 +206,4 @@ EOL
189
206
  output.include?("has been deleted")
190
207
  end
191
208
  end
192
- end
209
+ end
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Gems
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverlessgems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-01-06 00:00:00.000000000 Z
11
+ date: 2021-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gems
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.1.4
148
+ rubygems_version: 3.2.5
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Client Library works with Serverless Gems API for Jets Ruby Serverless Framework