jets 1.0.13 → 1.0.15
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +7 -7
- data/lib/jets/builders/code_builder.rb +2 -0
- data/lib/jets/builders/ruby_packager.rb +3 -1
- data/lib/jets/builders/util.rb +1 -5
- data/lib/jets/cfn/ship.rb +1 -1
- data/lib/jets/commands/build.rb +3 -3
- data/lib/jets/commands/templates/skeleton/.env.development.tt +1 -1
- data/lib/jets/core.rb +6 -0
- data/lib/jets/internal/app/jobs/jets/preheat_job.rb +1 -1
- data/lib/jets/lambda/task.rb +3 -0
- data/lib/jets/server/lambda_aws_proxy.rb +4 -4
- data/lib/jets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 323e6d497caeffa2111a48c2ab940cd8cad422cc41fb079a99ad1f6071bc795d
|
4
|
+
data.tar.gz: 19f7bfea35f8da3718968ce3792f536abddc895e4ab0678c0365d1f4f4dde569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7563eb1344fe0444ec889ddb88c8479bbbf0242bb65a1e2084e670e6baa1585d121ac045a51507981e6c7c8ad416174ebe2a90fffd72d937495b84e58a470e3b
|
7
|
+
data.tar.gz: d108d1a3b0b1411da955e6c75e8d9d2d74c191cf8cb2e2a880f88d5b6e54d289e9f3a1a5630e1087f160f4419879ee6d4f8f834f5fcd8a23635ec96e8befcc24
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@
|
|
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.0.15]
|
7
|
+
- Fix polymorphic support: #67 from tongueroo/poly-fixes
|
8
|
+
- update .env.development example
|
9
|
+
- remove debugging puts
|
10
|
+
|
6
11
|
## [1.0.13]
|
7
12
|
- Fix notice when Jets fails to create first git commit This happens when user doesn't have git credentials available yet
|
8
13
|
- Merge pull request #63 from onnimonni/fix-missing-git-credentials
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ GIT
|
|
11
11
|
PATH
|
12
12
|
remote: .
|
13
13
|
specs:
|
14
|
-
jets (1.0.
|
14
|
+
jets (1.0.15)
|
15
15
|
actionpack (>= 5.2.1)
|
16
16
|
actionview (>= 5.2.1)
|
17
17
|
activerecord (>= 5.2.1)
|
@@ -65,19 +65,19 @@ GEM
|
|
65
65
|
tzinfo (~> 1.1)
|
66
66
|
arel (9.0.0)
|
67
67
|
aws-eventstream (1.0.1)
|
68
|
-
aws-partitions (1.
|
68
|
+
aws-partitions (1.111.0)
|
69
69
|
aws-sdk-cloudformation (1.10.0)
|
70
70
|
aws-sdk-core (~> 3, >= 3.26.0)
|
71
71
|
aws-sigv4 (~> 1.0)
|
72
72
|
aws-sdk-cloudwatchlogs (1.10.0)
|
73
73
|
aws-sdk-core (~> 3, >= 3.26.0)
|
74
74
|
aws-sigv4 (~> 1.0)
|
75
|
-
aws-sdk-core (3.
|
75
|
+
aws-sdk-core (3.37.0)
|
76
76
|
aws-eventstream (~> 1.0)
|
77
77
|
aws-partitions (~> 1.0)
|
78
78
|
aws-sigv4 (~> 1.0)
|
79
79
|
jmespath (~> 1.0)
|
80
|
-
aws-sdk-dynamodb (1.
|
80
|
+
aws-sdk-dynamodb (1.16.0)
|
81
81
|
aws-sdk-core (~> 3, >= 3.26.0)
|
82
82
|
aws-sigv4 (~> 1.0)
|
83
83
|
aws-sdk-kms (1.11.0)
|
@@ -97,7 +97,7 @@ GEM
|
|
97
97
|
builder (3.2.3)
|
98
98
|
byebug (10.0.2)
|
99
99
|
colorize (0.8.1)
|
100
|
-
concurrent-ruby (1.1.
|
100
|
+
concurrent-ruby (1.1.3)
|
101
101
|
crass (1.0.4)
|
102
102
|
diff-lcs (1.3)
|
103
103
|
dotenv (2.5.0)
|
@@ -121,7 +121,7 @@ GEM
|
|
121
121
|
mysql2 (0.5.2)
|
122
122
|
nokogiri (1.8.5)
|
123
123
|
mini_portile2 (~> 2.3.0)
|
124
|
-
rack (2.0.
|
124
|
+
rack (2.0.6)
|
125
125
|
rack-proxy (0.6.5)
|
126
126
|
rack
|
127
127
|
rack-test (1.1.0)
|
@@ -155,7 +155,7 @@ GEM
|
|
155
155
|
rspec_junit_formatter (0.4.1)
|
156
156
|
rspec-core (>= 2, < 4, != 2.12.0)
|
157
157
|
text-table (1.2.4)
|
158
|
-
thor (0.20.
|
158
|
+
thor (0.20.3)
|
159
159
|
thread_safe (0.3.6)
|
160
160
|
tzinfo (1.2.5)
|
161
161
|
thread_safe (~> 0.1)
|
@@ -186,7 +186,9 @@ EOL
|
|
186
186
|
FileUtils.rm_rf(app_root_bundled)
|
187
187
|
end
|
188
188
|
# Leave #{Jets.build_root}/bundled behind to act as cache
|
189
|
-
|
189
|
+
if File.exist?("#{cache_area}/bundled")
|
190
|
+
FileUtils.cp_r("#{cache_area}/bundled", app_root_bundled)
|
191
|
+
end
|
190
192
|
end
|
191
193
|
|
192
194
|
private
|
data/lib/jets/builders/util.rb
CHANGED
@@ -17,12 +17,8 @@ class Jets::Builders
|
|
17
17
|
"#{Jets.build_root}/#{relative_path}"
|
18
18
|
end
|
19
19
|
|
20
|
-
# Finds out of the app has polymorphic functions only and zero ruby functions.
|
21
|
-
# In this case, we can skip a lot of the ruby related building and speed up the
|
22
|
-
# deploy process.
|
23
20
|
def poly_only?
|
24
|
-
|
25
|
-
Jets::Commands::Build.poly_only?
|
21
|
+
Jets.poly_only?
|
26
22
|
end
|
27
23
|
end
|
28
24
|
end
|
data/lib/jets/cfn/ship.rb
CHANGED
@@ -84,7 +84,7 @@ class Jets::Cfn
|
|
84
84
|
end
|
85
85
|
return unless @options[:stack_type] == :full # s3 bucket is available
|
86
86
|
return unless Jets.config.prewarm.enable
|
87
|
-
return if Jets
|
87
|
+
return if Jets.poly_only?
|
88
88
|
|
89
89
|
puts "Prewarming application."
|
90
90
|
if Jets::PreheatJob::CONCURRENCY > 1
|
data/lib/jets/commands/build.rb
CHANGED
@@ -142,10 +142,10 @@ module Jets::Commands
|
|
142
142
|
paths
|
143
143
|
end
|
144
144
|
|
145
|
+
# Finds out of the app has polymorphic functions only and zero ruby functions.
|
146
|
+
# In this case, we can skip a lot of the ruby related building and speed up the
|
147
|
+
# deploy process.
|
145
148
|
def self.poly_only?
|
146
|
-
# Scans all the app code and look for any methods that are ruby.
|
147
|
-
# If any method is written in ruby then we know the app is not a
|
148
|
-
# solely polymorphic non-ruby app.
|
149
149
|
has_ruby = app_files.detect do |path|
|
150
150
|
app_class = Jets::Klass.from_path(path) # IE: PostsController, Jets::PublicController
|
151
151
|
langs = app_class.tasks.map(&:lang)
|
data/lib/jets/core.rb
CHANGED
@@ -166,6 +166,12 @@ module Jets::Core
|
|
166
166
|
end
|
167
167
|
|
168
168
|
def lazy_load?
|
169
|
+
return false if poly_only? # no need to lazy load when poly_only?
|
169
170
|
config.ruby.lazy_load
|
170
171
|
end
|
172
|
+
|
173
|
+
def poly_only?
|
174
|
+
return true if ENV['JETS_POLY_ONLY'] # bypass to allow rapid development of handlers
|
175
|
+
Jets::Commands::Build.poly_only?
|
176
|
+
end
|
171
177
|
end
|
data/lib/jets/lambda/task.rb
CHANGED
@@ -24,6 +24,9 @@ class Jets::Lambda::Task
|
|
24
24
|
# that is registered. So we know it is public.
|
25
25
|
return true if @class_name.nil? || @class_name == ''
|
26
26
|
|
27
|
+
# Consider all polymorphic methods public for now
|
28
|
+
return true if @lang != :ruby
|
29
|
+
|
27
30
|
klass = @class_name.constantize
|
28
31
|
public_methods = klass.public_instance_methods
|
29
32
|
public_methods.include?(meth.to_sym)
|
@@ -7,10 +7,10 @@ class Jets::Server
|
|
7
7
|
def initialize(route, env)
|
8
8
|
@route = route
|
9
9
|
@env = env
|
10
|
-
puts "Rack env:".colorize(:yellow)
|
11
|
-
@env.each do |k,v|
|
12
|
-
|
13
|
-
end
|
10
|
+
# puts "Rack env:".colorize(:yellow)
|
11
|
+
# @env.each do |k,v|
|
12
|
+
# puts "#{k}: #{v}"
|
13
|
+
# end
|
14
14
|
end
|
15
15
|
|
16
16
|
def response
|
data/lib/jets/version.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|