athens 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +8 -8
- data/README.md +1 -0
- data/lib/athens/configuration.rb +3 -1
- data/lib/athens/connection.rb +2 -1
- data/lib/athens/query.rb +1 -0
- data/lib/athens/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0751e4a11947a14a576b1a2b251c53af99a90b7b88e15617f810767efb3cce9
|
4
|
+
data.tar.gz: a6dbc5ef43c672a80df58c68159614c02a25a4b377039111d68ac104d9712473
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 629cb6c7f875a261ee1285b6e92acf688e51f81efaecd7423fccc14f17bc8e14b54e433a2b02a03abf3bc5c9cc0ddb8c08f3771623340e2e9d16437e448b70ef
|
7
|
+
data.tar.gz: d38b3a46dc522de7de9cb66e457d6a7e10d0baaa77e432262a1ff3bb01104326a405c4341bce6a1d8d77fc24fdd6b51217c8bc93a364002db364e48bd5581cca
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 0.3.5 / 2021-05-19
|
2
|
+
|
3
|
+
* Addition of :aws_profile as a configuration option for credentials (thanks [oisin](https://github.com/oisin))
|
4
|
+
* Fix for BigDecimal in Ruby 3.x (thanks [mediafinger](https://github.com/mediafinger))
|
5
|
+
* Bumped development gem versions to latest releases
|
6
|
+
|
1
7
|
## 0.3.4 / 2021-03-02
|
2
8
|
|
3
9
|
* Added configurable polling period (thanks [jesseproudman](https://github.com/jesseproudman))
|
data/Gemfile.lock
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
athens (0.3.
|
4
|
+
athens (0.3.5)
|
5
5
|
aws-sdk-athena (~> 1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
aws-eventstream (1.1.
|
11
|
-
aws-partitions (1.
|
12
|
-
aws-sdk-athena (1.
|
10
|
+
aws-eventstream (1.1.1)
|
11
|
+
aws-partitions (1.458.0)
|
12
|
+
aws-sdk-athena (1.37.0)
|
13
13
|
aws-sdk-core (~> 3, >= 3.112.0)
|
14
14
|
aws-sigv4 (~> 1.1)
|
15
|
-
aws-sdk-core (3.
|
15
|
+
aws-sdk-core (3.114.0)
|
16
16
|
aws-eventstream (~> 1, >= 1.0.2)
|
17
17
|
aws-partitions (~> 1, >= 1.239.0)
|
18
18
|
aws-sigv4 (~> 1.1)
|
19
19
|
jmespath (~> 1.0)
|
20
|
-
aws-sigv4 (1.2.
|
20
|
+
aws-sigv4 (1.2.3)
|
21
21
|
aws-eventstream (~> 1, >= 1.0.2)
|
22
22
|
jmespath (1.4.0)
|
23
|
-
rake (13.0.
|
24
|
-
rexml (3.2.
|
23
|
+
rake (13.0.3)
|
24
|
+
rexml (3.2.5)
|
25
25
|
|
26
26
|
PLATFORMS
|
27
27
|
ruby
|
data/README.md
CHANGED
@@ -89,6 +89,7 @@ Athens.configure do |config|
|
|
89
89
|
config.output_location = "s3://my-bucket/my-folder/athena/results/" # Required
|
90
90
|
config.aws_access_key = 'access' # Optional
|
91
91
|
config.aws_secret_key = 'secret' # Optional
|
92
|
+
config.aws_profile = 'myprofile' # Optional
|
92
93
|
config.aws_region = 'us-east-1' # Optional
|
93
94
|
config.wait_polling_period = 0.25 # Optional - What period should we poll for the complete query?
|
94
95
|
end
|
data/lib/athens/configuration.rb
CHANGED
@@ -4,7 +4,8 @@ module Athens
|
|
4
4
|
:aws_secret_key,
|
5
5
|
:aws_region,
|
6
6
|
:output_location,
|
7
|
-
:wait_polling_period
|
7
|
+
:wait_polling_period,
|
8
|
+
:aws_profile
|
8
9
|
|
9
10
|
def initialize
|
10
11
|
@aws_access_key = nil
|
@@ -12,6 +13,7 @@ module Athens
|
|
12
13
|
@aws_region = nil
|
13
14
|
@output_location = nil
|
14
15
|
@wait_polling_period = 0.25
|
16
|
+
@aws_profile = nil
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
data/lib/athens/connection.rb
CHANGED
@@ -11,7 +11,8 @@ module Athens
|
|
11
11
|
client_config = {
|
12
12
|
access_key_id: Athens.configuration.aws_access_key,
|
13
13
|
secret_access_key: Athens.configuration.aws_secret_key,
|
14
|
-
region: Athens.configuration.aws_region
|
14
|
+
region: Athens.configuration.aws_region,
|
15
|
+
profile: Athens.configuration.aws_profile
|
15
16
|
}.merge(aws_client_override).compact
|
16
17
|
|
17
18
|
@client = Aws::Athena::Client.new(client_config)
|
data/lib/athens/query.rb
CHANGED
data/lib/athens/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: athens
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schulte
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-athena
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.0.9
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Run simple SQL queries in AWS Athena
|