better_sqs 0.1.0 → 0.1.1.dev1
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/better_sqs.gemspec +2 -2
- data/lib/better_sqs/configuration.rb +8 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63484b3cd8215fb19abf98085eca7b153c274169
|
|
4
|
+
data.tar.gz: 7422076a9e499aba201ac1b5492e933f0726f23d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57e3bc4b81267f4bb474368c19a38f3caeaedfda4bcd2da230d1c27c7d19407cd3f073c60d24cedbd5e21dabe2747b821df04fda94326d2316761d3c1f10c28e
|
|
7
|
+
data.tar.gz: b0f806e5c7233226ba97941f4b500fd1b19b0c8cb485dd1f3df5f21a9770fe41dbb95d6e7952720dfffdccdc0a59f82bbc87f453c135269a38bafd4f88d6660c
|
data/better_sqs.gemspec
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "better_sqs"
|
|
3
|
-
s.version = "0.1.
|
|
3
|
+
s.version = "0.1.1.dev1"
|
|
4
4
|
s.license = "MIT"
|
|
5
|
-
s.date = "2016-
|
|
5
|
+
s.date = "2016-02-24"
|
|
6
6
|
s.summary = "A more idiomatic interface to SQS."
|
|
7
7
|
s.description = "A convenient API for developers to interact with SQS with a trivial amount of effort"
|
|
8
8
|
s.authors = ["Courtland Caldwell"]
|
|
@@ -11,14 +11,21 @@ module BetterSqs
|
|
|
11
11
|
@sqs_message_deferral_seconds = 60
|
|
12
12
|
@aws_access_key_id = ENV["AWS_ACCESS_KEY_ID"]
|
|
13
13
|
@aws_secret_access_key = ENV["AWS_SECRET_ACCESS_KEY"]
|
|
14
|
-
@region = ENV["AWS_REGION"]
|
|
14
|
+
@region = ENV["AWS_REGION"] || "us-east-1"
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def configure_aws
|
|
18
|
+
return configure_region_only unless aws_secret_access_key && aws_access_key_id
|
|
18
19
|
Aws.config.update(
|
|
19
20
|
region: region,
|
|
20
21
|
credentials: Aws::Credentials.new(aws_access_key_id, aws_secret_access_key),
|
|
21
22
|
)
|
|
22
23
|
end
|
|
24
|
+
|
|
25
|
+
private
|
|
26
|
+
|
|
27
|
+
def configure_region_only
|
|
28
|
+
Aws.config.update(region: region)
|
|
29
|
+
end
|
|
23
30
|
end
|
|
24
31
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: better_sqs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1.dev1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Courtland Caldwell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lincoln_logger
|
|
@@ -147,9 +147,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
147
147
|
version: '0'
|
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
|
-
- - "
|
|
150
|
+
- - ">"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version:
|
|
152
|
+
version: 1.3.1
|
|
153
153
|
requirements: []
|
|
154
154
|
rubyforge_project:
|
|
155
155
|
rubygems_version: 2.2.2
|