lamby 0.3.0 → 0.3.1
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/Gemfile.lock +37 -37
- data/README.md +9 -3
- data/doc/template.yaml +1 -1
- data/lib/lamby/tasks.rake +3 -2
- data/lib/lamby/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: 716093f86265b6449366a4f9a7f05cacb2ab568c95d218815b7bc4bb3cf79bb8
|
|
4
|
+
data.tar.gz: bf8460030d9f6f49399c8aff53951f2af60915f3f6a5f4a27dc97de622767a73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fae9a75a9e74f05fdc15051885e1d9881e49a0b1f6db9da4693395b27002e9582dacd25a717b5f6bc7d7ffa9d320099a7691c1d4ff75256a24b4e4d937538c6b
|
|
7
|
+
data.tar.gz: b2f373ffc8730ec2d50111a38ccdc60d9fd92993ec8a0c48634789b09d10412791b28d87d2ed7e706cff37ce9e6c47b4f59ce14dfb65dc3f34a487b9b53df41a
|
data/Gemfile.lock
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
lamby (0.
|
|
4
|
+
lamby (0.3.1)
|
|
5
5
|
rack
|
|
6
6
|
rails
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
actioncable (5.2.
|
|
12
|
-
actionpack (= 5.2.
|
|
11
|
+
actioncable (5.2.3)
|
|
12
|
+
actionpack (= 5.2.3)
|
|
13
13
|
nio4r (~> 2.0)
|
|
14
14
|
websocket-driver (>= 0.6.1)
|
|
15
|
-
actionmailer (5.2.
|
|
16
|
-
actionpack (= 5.2.
|
|
17
|
-
actionview (= 5.2.
|
|
18
|
-
activejob (= 5.2.
|
|
15
|
+
actionmailer (5.2.3)
|
|
16
|
+
actionpack (= 5.2.3)
|
|
17
|
+
actionview (= 5.2.3)
|
|
18
|
+
activejob (= 5.2.3)
|
|
19
19
|
mail (~> 2.5, >= 2.5.4)
|
|
20
20
|
rails-dom-testing (~> 2.0)
|
|
21
|
-
actionpack (5.2.
|
|
22
|
-
actionview (= 5.2.
|
|
23
|
-
activesupport (= 5.2.
|
|
21
|
+
actionpack (5.2.3)
|
|
22
|
+
actionview (= 5.2.3)
|
|
23
|
+
activesupport (= 5.2.3)
|
|
24
24
|
rack (~> 2.0)
|
|
25
25
|
rack-test (>= 0.6.3)
|
|
26
26
|
rails-dom-testing (~> 2.0)
|
|
27
27
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
28
|
-
actionview (5.2.
|
|
29
|
-
activesupport (= 5.2.
|
|
28
|
+
actionview (5.2.3)
|
|
29
|
+
activesupport (= 5.2.3)
|
|
30
30
|
builder (~> 3.1)
|
|
31
31
|
erubi (~> 1.4)
|
|
32
32
|
rails-dom-testing (~> 2.0)
|
|
33
33
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
34
|
-
activejob (5.2.
|
|
35
|
-
activesupport (= 5.2.
|
|
34
|
+
activejob (5.2.3)
|
|
35
|
+
activesupport (= 5.2.3)
|
|
36
36
|
globalid (>= 0.3.6)
|
|
37
|
-
activemodel (5.2.
|
|
38
|
-
activesupport (= 5.2.
|
|
39
|
-
activerecord (5.2.
|
|
40
|
-
activemodel (= 5.2.
|
|
41
|
-
activesupport (= 5.2.
|
|
37
|
+
activemodel (5.2.3)
|
|
38
|
+
activesupport (= 5.2.3)
|
|
39
|
+
activerecord (5.2.3)
|
|
40
|
+
activemodel (= 5.2.3)
|
|
41
|
+
activesupport (= 5.2.3)
|
|
42
42
|
arel (>= 9.0)
|
|
43
|
-
activestorage (5.2.
|
|
44
|
-
actionpack (= 5.2.
|
|
45
|
-
activerecord (= 5.2.
|
|
43
|
+
activestorage (5.2.3)
|
|
44
|
+
actionpack (= 5.2.3)
|
|
45
|
+
activerecord (= 5.2.3)
|
|
46
46
|
marcel (~> 0.3.1)
|
|
47
|
-
activesupport (5.2.
|
|
47
|
+
activesupport (5.2.3)
|
|
48
48
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
49
49
|
i18n (>= 0.7, < 2)
|
|
50
50
|
minitest (~> 5.1)
|
|
@@ -92,27 +92,27 @@ GEM
|
|
|
92
92
|
rack (2.0.6)
|
|
93
93
|
rack-test (1.1.0)
|
|
94
94
|
rack (>= 1.0, < 3)
|
|
95
|
-
rails (5.2.
|
|
96
|
-
actioncable (= 5.2.
|
|
97
|
-
actionmailer (= 5.2.
|
|
98
|
-
actionpack (= 5.2.
|
|
99
|
-
actionview (= 5.2.
|
|
100
|
-
activejob (= 5.2.
|
|
101
|
-
activemodel (= 5.2.
|
|
102
|
-
activerecord (= 5.2.
|
|
103
|
-
activestorage (= 5.2.
|
|
104
|
-
activesupport (= 5.2.
|
|
95
|
+
rails (5.2.3)
|
|
96
|
+
actioncable (= 5.2.3)
|
|
97
|
+
actionmailer (= 5.2.3)
|
|
98
|
+
actionpack (= 5.2.3)
|
|
99
|
+
actionview (= 5.2.3)
|
|
100
|
+
activejob (= 5.2.3)
|
|
101
|
+
activemodel (= 5.2.3)
|
|
102
|
+
activerecord (= 5.2.3)
|
|
103
|
+
activestorage (= 5.2.3)
|
|
104
|
+
activesupport (= 5.2.3)
|
|
105
105
|
bundler (>= 1.3.0)
|
|
106
|
-
railties (= 5.2.
|
|
106
|
+
railties (= 5.2.3)
|
|
107
107
|
sprockets-rails (>= 2.0.0)
|
|
108
108
|
rails-dom-testing (2.0.3)
|
|
109
109
|
activesupport (>= 4.2.0)
|
|
110
110
|
nokogiri (>= 1.6)
|
|
111
111
|
rails-html-sanitizer (1.0.4)
|
|
112
112
|
loofah (~> 2.2, >= 2.2.2)
|
|
113
|
-
railties (5.2.
|
|
114
|
-
actionpack (= 5.2.
|
|
115
|
-
activesupport (= 5.2.
|
|
113
|
+
railties (5.2.3)
|
|
114
|
+
actionpack (= 5.2.3)
|
|
115
|
+
activesupport (= 5.2.3)
|
|
116
116
|
method_source
|
|
117
117
|
rake (>= 0.8.7)
|
|
118
118
|
thor (>= 0.19.0, < 2.0)
|
data/README.md
CHANGED
|
@@ -16,10 +16,10 @@ end
|
|
|
16
16
|
|
|
17
17
|
#### Add The Gem
|
|
18
18
|
|
|
19
|
-
Add the Lamby gem to your Rails project's `Gemfile`.
|
|
19
|
+
Add the Lamby gem to your Rails project's `Gemfile`. Recommend only requiring Lamby in your `app.rb` so your local development or test logs still work.
|
|
20
20
|
|
|
21
21
|
```ruby
|
|
22
|
-
gem 'lamby'
|
|
22
|
+
gem 'lamby', require: false
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
#### Create Handler
|
|
@@ -27,7 +27,6 @@ gem 'lamby'
|
|
|
27
27
|
Create an `app.rb` file that will be the source for the Lambda's handler. Example:
|
|
28
28
|
|
|
29
29
|
```ruby
|
|
30
|
-
ENV['SECRET_KEY_BASE'] = '...' # Temporary hack, see TODO list in projects tab.
|
|
31
30
|
require_relative 'config/boot'
|
|
32
31
|
require 'lamby'
|
|
33
32
|
require_relative 'config/application'
|
|
@@ -77,8 +76,15 @@ In order to provide minimal code and ultimate flexibility for any type of Rails
|
|
|
77
76
|
|
|
78
77
|
To that end, we are using our GitHub issues along with the `[docs]` label as a project-focused Stack Overflow where we encourage you to participate in and ask questions. Here are a few high level docs now that may interests most users. Also, [browse all docs](https://github.com/customink/lamby/issues?q=is%3Aissue+is%3Aopen+label%3Adocs) or open a new `[question]` issue and we would be glad to help!
|
|
79
78
|
|
|
79
|
+
#### Local AWS Dependencies
|
|
80
|
+
|
|
80
81
|
* [Installing AWS CLI and AWS SAM](https://github.com/customink/lamby/issues/18)
|
|
81
82
|
* [Bin Scripts - Setup, Build, Server, & Deploy](https://github.com/customink/lamby/issues/17)
|
|
83
|
+
|
|
84
|
+
#### Other Guides Just For You!
|
|
85
|
+
|
|
86
|
+
* [Environments & Configuration](https://github.com/customink/lamby/issues/28)
|
|
87
|
+
* [Asset Hosts & Precompiling](https://github.com/customink/lamby/issues/29)
|
|
82
88
|
* [Custom Domain Name, Edge/Regional, & CloudFront](https://github.com/customink/lamby/issues/10)
|
|
83
89
|
* [API Gateway Permissions & CloudWatch Logs](https://github.com/customink/lamby/issues/6)
|
|
84
90
|
* [How Does Lamby Work?](https://github.com/customink/lamby/issues/12)
|
data/doc/template.yaml
CHANGED
|
@@ -59,7 +59,7 @@ Resources:
|
|
|
59
59
|
Environment:
|
|
60
60
|
Variables:
|
|
61
61
|
RAILS_ENV: !Ref RailsEnv
|
|
62
|
-
FunctionName: !Join [ '', [ '
|
|
62
|
+
FunctionName: !Join [ '', [ 'myapp-', !Ref RailsEnv, '-', !Ref 'AWS::Region' ] ]
|
|
63
63
|
Events:
|
|
64
64
|
Root:
|
|
65
65
|
Type: Api
|
data/lib/lamby/tasks.rake
CHANGED
|
@@ -2,8 +2,9 @@ namespace :lamby do
|
|
|
2
2
|
|
|
3
3
|
namespace :ssm do
|
|
4
4
|
|
|
5
|
-
desc 'Create a Dotenv file
|
|
6
|
-
task :dotenv
|
|
5
|
+
desc 'Create a Dotenv file.'
|
|
6
|
+
task :dotenv do
|
|
7
|
+
require 'lamby/ssm_parameter_store'
|
|
7
8
|
path = ENV['LAMBY_SSM_PARAMS_PATH']
|
|
8
9
|
raise ArgumentError, 'The LAMBY_SSM_PARAMS_PATH env is required.' unless path
|
|
9
10
|
Lamby::SsmParameterStore.dotenv(path)
|
data/lib/lamby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lamby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ken Collins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|