lamby 0.3.0 → 0.3.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: 954664823a70a5343c9d06f9a790130dbbd979e93109434a529b122bb1bd5bf2
4
- data.tar.gz: f3e99fbb29575ac288c9a52ea075d93935973b1623ad343fe996abf291b6978a
3
+ metadata.gz: 716093f86265b6449366a4f9a7f05cacb2ab568c95d218815b7bc4bb3cf79bb8
4
+ data.tar.gz: bf8460030d9f6f49399c8aff53951f2af60915f3f6a5f4a27dc97de622767a73
5
5
  SHA512:
6
- metadata.gz: 297e899dc3ce51257cdc33ac49513a889dd1660e7e3c66747974d40a239339162c29308111389a4a399f95f07c0e7a3b87c69a76c040219f378c61700aacff92
7
- data.tar.gz: db9294acefd8e0879993059fe86dc62bee20ea1f73e40ded8bcb0db7cfd76d768545ffb13dccfe43940a2d26c8ad065af7e9c17b2c808415d1a893258a859740
6
+ metadata.gz: fae9a75a9e74f05fdc15051885e1d9881e49a0b1f6db9da4693395b27002e9582dacd25a717b5f6bc7d7ffa9d320099a7691c1d4ff75256a24b4e4d937538c6b
7
+ data.tar.gz: b2f373ffc8730ec2d50111a38ccdc60d9fd92993ec8a0c48634789b09d10412791b28d87d2ed7e706cff37ce9e6c47b4f59ce14dfb65dc3f34a487b9b53df41a
@@ -1,50 +1,50 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lamby (0.2.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.2.1)
12
- actionpack (= 5.2.2.1)
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.2.1)
16
- actionpack (= 5.2.2.1)
17
- actionview (= 5.2.2.1)
18
- activejob (= 5.2.2.1)
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.2.1)
22
- actionview (= 5.2.2.1)
23
- activesupport (= 5.2.2.1)
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.2.1)
29
- activesupport (= 5.2.2.1)
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.2.1)
35
- activesupport (= 5.2.2.1)
34
+ activejob (5.2.3)
35
+ activesupport (= 5.2.3)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.2.2.1)
38
- activesupport (= 5.2.2.1)
39
- activerecord (5.2.2.1)
40
- activemodel (= 5.2.2.1)
41
- activesupport (= 5.2.2.1)
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.2.1)
44
- actionpack (= 5.2.2.1)
45
- activerecord (= 5.2.2.1)
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.2.1)
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.2.1)
96
- actioncable (= 5.2.2.1)
97
- actionmailer (= 5.2.2.1)
98
- actionpack (= 5.2.2.1)
99
- actionview (= 5.2.2.1)
100
- activejob (= 5.2.2.1)
101
- activemodel (= 5.2.2.1)
102
- activerecord (= 5.2.2.1)
103
- activestorage (= 5.2.2.1)
104
- activesupport (= 5.2.2.1)
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.2.1)
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.2.1)
114
- actionpack (= 5.2.2.1)
115
- activesupport (= 5.2.2.1)
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)
@@ -59,7 +59,7 @@ Resources:
59
59
  Environment:
60
60
  Variables:
61
61
  RAILS_ENV: !Ref RailsEnv
62
- FunctionName: !Join [ '', [ 'hello-rails-', !Ref RailsEnv, '-', !Ref 'AWS::Region' ] ]
62
+ FunctionName: !Join [ '', [ 'myapp-', !Ref RailsEnv, '-', !Ref 'AWS::Region' ] ]
63
63
  Events:
64
64
  Root:
65
65
  Type: Api
@@ -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 => :environment do
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)
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack