jets 1.3.8 → 1.3.9

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: 23eec15f9b07b87eb8b61ec9fbbbf2da8985f14ec345e32980df147bf55059a9
4
- data.tar.gz: 8b831e242f88a7b6c1ece7a12c0f0b3970a1205b2f1bf7c1d8ebdedbd587fa96
3
+ metadata.gz: 5de0cb4913504da995988d705fc03c5248d398fbd2538d3ec356ee89124dd38f
4
+ data.tar.gz: abb22eb7ac6a16faa1914835e9c68c86263693cdd92aaebec44edda63a562e14
5
5
  SHA512:
6
- metadata.gz: fb4d646fb0f9cdd15b929fc22278cc9af72170f10d97b844a696ae99b66b36987dad8b21effbde4f6458d4cf67b048fa9a831be7769f9aa3f727d5b6a6d1813a
7
- data.tar.gz: 91ca48426d13f42fdb6cb35c239c856b7500c507b9da18e09cf7b653a9c171d2152a8505dd11ec26a7853e949a44b385f382d5b64852d01a1b19ce13fb67f5c6
6
+ metadata.gz: b7f26985d0b5dde339f8e887f508938e1565a306214520b563ebdd4c32fd87c0f05ff8f12366c35b9204e3fb35085fe959f852bb1255c99f673c896c94ccb227
7
+ data.tar.gz: ad759caa51dae3942176697965c0313a699702415c44c5f9d4eaf329028e72acc9702ce357c269fa3ebee95f5ee07e46d3af216fc518f5702cf91dd4ae78736c
@@ -3,6 +3,12 @@
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.3.9]
7
+ - #106 from eamsc/sqs-special-map
8
+ - #107 from eamsc/sqs-resource
9
+ - Added SQS sdk/client/resource for use in custom resources
10
+ - Fix shared ruby function runtime
11
+
6
12
  ## [1.3.8]
7
13
  - Merge pull request #101 from eamsc/sqs-special-map Added SQS RedrivePolicy attributes to special map because they aren't being properly camelized.
8
14
  - Merge pull request #102 from eamsc/resource-symbol-sub fix for undefined method `sub` for symbol
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- jets (1.3.8)
14
+ jets (1.3.9)
15
15
  actionpack (>= 5.2.1)
16
16
  actionview (>= 5.2.1)
17
17
  activerecord (>= 5.2.1)
@@ -23,6 +23,7 @@ PATH
23
23
  aws-sdk-lambda
24
24
  aws-sdk-s3
25
25
  aws-sdk-sns
26
+ aws-sdk-sqs
26
27
  colorize
27
28
  dotenv
28
29
  gems
@@ -66,7 +67,7 @@ GEM
66
67
  tzinfo (~> 1.1)
67
68
  arel (9.0.0)
68
69
  aws-eventstream (1.0.1)
69
- aws-partitions (1.125.0)
70
+ aws-partitions (1.126.0)
70
71
  aws-sdk-apigateway (1.23.0)
71
72
  aws-sdk-core (~> 3, >= 3.39.0)
72
73
  aws-sigv4 (~> 1.0)
@@ -97,6 +98,9 @@ GEM
97
98
  aws-sdk-sns (1.9.0)
98
99
  aws-sdk-core (~> 3, >= 3.39.0)
99
100
  aws-sigv4 (~> 1.0)
101
+ aws-sdk-sqs (1.10.0)
102
+ aws-sdk-core (~> 3, >= 3.39.0)
103
+ aws-sigv4 (~> 1.0)
100
104
  aws-sigv4 (1.0.3)
101
105
  builder (3.2.3)
102
106
  byebug (10.0.2)
@@ -38,6 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency "aws-sdk-lambda"
39
39
  spec.add_dependency "aws-sdk-s3"
40
40
  spec.add_dependency "aws-sdk-sns"
41
+ spec.add_dependency "aws-sdk-sqs"
41
42
  spec.add_dependency "colorize"
42
43
  spec.add_dependency "dotenv"
43
44
  spec.add_dependency "gems" # jets-gems dependency
@@ -6,6 +6,7 @@ require "aws-sdk-s3"
6
6
  require "aws-sdk-sts"
7
7
  # Not used in Jets internally but convenient for shared resources
8
8
  require "aws-sdk-sns"
9
+ require "aws-sdk-sqs"
9
10
 
10
11
  module Jets::AwsServices
11
12
  autoload :StackStatus, 'jets/aws_services/stack_status'
@@ -47,6 +48,11 @@ module Jets::AwsServices
47
48
  end
48
49
  memoize :sns
49
50
 
51
+ def sqs
52
+ Aws::SQS::Client.new
53
+ end
54
+ memoize :sqs
55
+
50
56
  def sts
51
57
  Aws::STS::Client.new
52
58
  end
@@ -59,7 +59,7 @@ module Jets
59
59
  "TemplateUrl" => "TemplateURL",
60
60
  "Ttl" => "TTL",
61
61
  "MaxReceiveCount" => "maxReceiveCount",
62
- "DeadLetterQueueArn" => "deadLetterQueueArn",
62
+ "DeadLetterTargetArn" => "deadLetterTargetArn",
63
63
  }
64
64
  end
65
65
  end
@@ -17,7 +17,8 @@ module Jets
17
17
  # base custom inflections
18
18
  def base
19
19
  {
20
- sns: 'sns'
20
+ sns: 'sns',
21
+ sqs: 'sqs'
21
22
  }
22
23
  end
23
24
 
@@ -14,6 +14,7 @@ class Jets::Resource
14
14
  autoload :Route53, 'jets/resource/route53'
15
15
  autoload :S3, 'jets/resource/s3'
16
16
  autoload :Sns, 'jets/resource/sns'
17
+ autoload :Sqs, 'jets/resource/sqs'
17
18
  autoload :Standardizer, 'jets/resource/standardizer'
18
19
 
19
20
  attr_reader :definition, :replacements
@@ -0,0 +1,3 @@
1
+ module Jets::Resource::Sqs
2
+ autoload :Queue, 'jets/resource/sqs/queue'
3
+ end
@@ -36,7 +36,7 @@ module Jets::Stack::Main::Dsl
36
36
  memory_size: Jets.config.function.memory_size,
37
37
  }
38
38
  props = defaults.merge(props)
39
- props[:runtime] = "nodejs8.10" if props[:runtime].to_s == "ruby"
39
+ props[:runtime] = "ruby2.5" if props[:runtime].to_s == "ruby"
40
40
  props[:handler] = handler(props[:handler])
41
41
 
42
42
  resource(id, "AWS::Lambda::Function", props)
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.3.8"
2
+ VERSION = "1.3.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: aws-sdk-sqs
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: colorize
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -731,6 +745,7 @@ files:
731
745
  - lib/jets/resource/route53/record_set.rb
732
746
  - lib/jets/resource/s3.rb
733
747
  - lib/jets/resource/sns.rb
748
+ - lib/jets/resource/sqs.rb
734
749
  - lib/jets/resource/standardizer.rb
735
750
  - lib/jets/route.rb
736
751
  - lib/jets/router.rb