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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 763fdc0eeba122974a101d60e8b17045d3d55dcf63f7144fe4db181a6808b858
4
- data.tar.gz: 2afff645fa2b925e9317100043a2c574574c7245a99edbc29c8da5c508cb766a
3
+ metadata.gz: b0751e4a11947a14a576b1a2b251c53af99a90b7b88e15617f810767efb3cce9
4
+ data.tar.gz: a6dbc5ef43c672a80df58c68159614c02a25a4b377039111d68ac104d9712473
5
5
  SHA512:
6
- metadata.gz: a0e3cf85dfd919a884f90de3bdb1a6896bedc12ed327ae237858ae4182d2565e7d4c19453b2d68f77717ed8763c65ba6565ba654ef34c49aed2273e51d43c5cb
7
- data.tar.gz: 387787c6e6f2ab20ff30714374591fd7211fbb9b3181e35df0a0e27fe800444af1d7428c00c7648c1ba2e3b7f1a1e6672574f0e3a38cfa1124d1bcaadd83adcd
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)
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.0)
11
- aws-partitions (1.430.0)
12
- aws-sdk-athena (1.35.0)
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.112.0)
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.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.1)
24
- rexml (3.2.4)
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
@@ -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
@@ -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
@@ -14,6 +14,7 @@ module Athens
14
14
 
15
15
  version = RUBY_VERSION.split('.').map {|v| v.to_i}
16
16
  @decimal_without_new = (version[0] >= 2 && version[1] >= 5)
17
+ @decimal_without_new = (version[0] == 2 && version[1] >= 5) || (version[0] >= 3)
17
18
  end
18
19
 
19
20
  def state
@@ -1,3 +1,3 @@
1
1
  module Athens
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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
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-03-02 00:00:00.000000000 Z
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.1.4
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