jets 4.0.4 → 4.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jets/commands/help/runner.md +24 -1
- data/lib/jets/commands/main.rb +2 -2
- data/lib/jets/commands/runner.rb +1 -1
- data/lib/jets/overrides/rails/common_methods.rb +1 -1
- data/lib/jets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9573f84496ce6067ec6fd2ab846a9387c65755aea56eba1ab24ed35cf2a9cb04
|
4
|
+
data.tar.gz: bc403254b13de9d7db49a146d254b3269b9b02b748e504c98f88ebcd293c20be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e81ee110ee967638949b27431392dda0717497d85ff5bb58613373088695be8b4aaaff706a9fbf7fedcf38fffe33d9bcb8842d1068cf9077637c3616d93fb822
|
7
|
+
data.tar.gz: fa499faf963ecdadbd9cfe0372dd9f02b1378550800a72496fac32b3e8438e05aa0763e9a473e7cfc02545fcaa5e945f7487735be754ee09eeb3950ed5f3d40d
|
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
|
+
## [4.0.5] - 2023-10-19
|
7
|
+
- [#665](https://github.com/boltops-tools/jets/pull/665) only add add_stage_name when request is present
|
8
|
+
- [#669](https://github.com/boltops-tools/jets/pull/669) Add optional command args to the jets runner command.
|
9
|
+
|
6
10
|
## [4.0.4] - 2023-09-07
|
7
11
|
- [#662](https://github.com/boltops-tools/jets/pull/662) fix vpc iam permissions
|
8
12
|
|
@@ -14,4 +14,27 @@ puts "hello world: #{Jets.env}"
|
|
14
14
|
```
|
15
15
|
|
16
16
|
$ jets runner file://script.rb
|
17
|
-
hello world: development
|
17
|
+
hello world: development
|
18
|
+
|
19
|
+
|
20
|
+
Optionally pass in an argument on the command line:
|
21
|
+
|
22
|
+
Usage: jets runner file|Ruby code [args]
|
23
|
+
|
24
|
+
The argument will be assigned to the `args` variable.
|
25
|
+
|
26
|
+
Example:
|
27
|
+
|
28
|
+
$ jets runner 'puts "hello world with args: #{args}"' 123
|
29
|
+
hello world with args: 123
|
30
|
+
|
31
|
+
|
32
|
+
Example with script.rb:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
puts "hello world with args: #{args}"
|
36
|
+
```
|
37
|
+
|
38
|
+
$ jets runner file://script.rb 123
|
39
|
+
hello world with args: 123
|
40
|
+
|
data/lib/jets/commands/main.rb
CHANGED
@@ -72,8 +72,8 @@ module Jets::Commands
|
|
72
72
|
|
73
73
|
desc "runner", "Run Ruby code in the context of Jets app non-interactively"
|
74
74
|
long_desc Help.text(:runner)
|
75
|
-
def runner(code)
|
76
|
-
Runner.run(code)
|
75
|
+
def runner(code, args=nil)
|
76
|
+
Runner.run(code, args)
|
77
77
|
end
|
78
78
|
|
79
79
|
desc "dbconsole", "Starts DB REPL console"
|
data/lib/jets/commands/runner.rb
CHANGED
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: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -1101,7 +1101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1101
1101
|
- !ruby/object:Gem::Version
|
1102
1102
|
version: '0'
|
1103
1103
|
requirements: []
|
1104
|
-
rubygems_version: 3.4.
|
1104
|
+
rubygems_version: 3.4.20
|
1105
1105
|
signing_key:
|
1106
1106
|
specification_version: 4
|
1107
1107
|
summary: Ruby Serverless Framework
|