funktor 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/lib/funktor/cli/init.rb +32 -3
- data/lib/funktor/cli/templates/package.json +5 -5
- data/lib/funktor/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: 58967787594138d8c3e24feb2cb0cf5c742899d494099e972a505de9a49e8bc2
|
4
|
+
data.tar.gz: bae55701018e66b63cacbd5d7911cdd5fa1f063969716f6726be423ffaee896b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2251b6acccc727761a109cee8cf847000c4857726441cc01dc04cb6649f53b272eb0d0f335494d31a1089cfd335988073a872dd660295dc55e6e4c07e9bf813a
|
7
|
+
data.tar.gz: b785cc6ba1db1c2e4e3af54b0a1c40045bb0f1d9cf2456edd82be1c1b370fa23edd71bc36edc5f8dfd9cf08990dcf490b5ec20ebd855d2da5610e48d7737e174
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
funktor (0.7.
|
4
|
+
funktor (0.7.3)
|
5
5
|
activesupport
|
6
6
|
aws-sdk-dynamodb (~> 1.62)
|
7
7
|
aws-sdk-sqs (~> 1.37)
|
@@ -21,20 +21,20 @@ GEM
|
|
21
21
|
zeitwerk (~> 2.3)
|
22
22
|
addressable (2.8.0)
|
23
23
|
public_suffix (>= 2.0.2, < 5.0)
|
24
|
-
aws-eventstream (1.
|
25
|
-
aws-partitions (1.
|
26
|
-
aws-sdk-core (3.
|
24
|
+
aws-eventstream (1.2.0)
|
25
|
+
aws-partitions (1.494.0)
|
26
|
+
aws-sdk-core (3.120.0)
|
27
27
|
aws-eventstream (~> 1, >= 1.0.2)
|
28
28
|
aws-partitions (~> 1, >= 1.239.0)
|
29
29
|
aws-sigv4 (~> 1.1)
|
30
30
|
jmespath (~> 1.0)
|
31
|
-
aws-sdk-dynamodb (1.
|
32
|
-
aws-sdk-core (~> 3, >= 3.
|
31
|
+
aws-sdk-dynamodb (1.63.0)
|
32
|
+
aws-sdk-core (~> 3, >= 3.120.0)
|
33
33
|
aws-sigv4 (~> 1.1)
|
34
|
-
aws-sdk-sqs (1.
|
35
|
-
aws-sdk-core (~> 3, >= 3.
|
34
|
+
aws-sdk-sqs (1.44.0)
|
35
|
+
aws-sdk-core (~> 3, >= 3.120.0)
|
36
36
|
aws-sigv4 (~> 1.1)
|
37
|
-
aws-sigv4 (1.
|
37
|
+
aws-sigv4 (1.3.0)
|
38
38
|
aws-eventstream (~> 1, >= 1.0.2)
|
39
39
|
byebug (11.1.3)
|
40
40
|
coderay (1.1.3)
|
data/lib/funktor/cli/init.rb
CHANGED
@@ -40,15 +40,44 @@ module Funktor
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def package_json
|
43
|
-
|
43
|
+
if File.exist?("package.json")
|
44
|
+
package_data = File.open("package.json").read
|
45
|
+
if package_data =~ /serverless-ruby-layer/
|
46
|
+
say "serverless-ruby-layer is already installed in package.json"
|
47
|
+
else
|
48
|
+
if File.exist?("package-lock.json")
|
49
|
+
run "npm install serverless-ruby-layer@1.4.0"
|
50
|
+
# TODO - Add handers for yarn and what not
|
51
|
+
else
|
52
|
+
say "You should install serverless-ruby-layer version 1.4.0 using yor package manager of choice."
|
53
|
+
end
|
54
|
+
end
|
55
|
+
else
|
56
|
+
template "package.json", File.join("package.json")
|
57
|
+
end
|
44
58
|
end
|
45
59
|
|
46
60
|
def gemfile
|
47
|
-
|
61
|
+
if File.exist?("Gemfile")
|
62
|
+
gem_data = File.open("Gemfile").read
|
63
|
+
if gem_data =~ /funktor/
|
64
|
+
say "funktor is already installed in Gemfile"
|
65
|
+
else
|
66
|
+
run "bundle add funktor"
|
67
|
+
end
|
68
|
+
else
|
69
|
+
template "Gemfile", File.join("Gemfile")
|
70
|
+
end
|
48
71
|
end
|
49
72
|
|
50
73
|
def gitignore
|
51
|
-
|
74
|
+
# TODO clean this up so that we have a single source of truth for .gitignor stuff
|
75
|
+
if File.exist?(".gitignore")
|
76
|
+
append_to_file ".gitignore", ".serverless"
|
77
|
+
append_to_file ".gitignore", "node_modules"
|
78
|
+
else
|
79
|
+
template "gitignore", File.join(".gitignore")
|
80
|
+
end
|
52
81
|
end
|
53
82
|
|
54
83
|
def workers
|
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"name":"<%= name %>",
|
3
|
-
"description":"",
|
4
|
-
"version":"0.1.0",
|
5
|
-
"devDependencies":{
|
6
|
-
"serverless-ruby-layer":"^1.4.0"
|
2
|
+
"name": "<%= name %>",
|
3
|
+
"description": "",
|
4
|
+
"version": "0.1.0",
|
5
|
+
"devDependencies": {
|
6
|
+
"serverless-ruby-layer": "^1.4.0"
|
7
7
|
}
|
8
8
|
}
|
data/lib/funktor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: funktor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Green
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|