fmrest-cloud 0.19.0 → 0.20.0.rc1

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: 1c9222281447e0b7808b1908e5c070cdc22ca7a59991f0910699039b15350630
4
- data.tar.gz: 64769b469f920b38e535ad9b01aa6ac716405933aa5b1734c087ff3066b3ac10
3
+ metadata.gz: 0b080753f12ba87013e3811082ba12a04cbe79f9805f3b0682f84e23273612e8
4
+ data.tar.gz: 721b96193e76670dc06303a47499fcf353437fa8a43cdf9d1dcbb6ef687a98d0
5
5
  SHA512:
6
- metadata.gz: c752ea429427f56e32f2a0cf2f9ab246ffa96f2d584ce6903651220c37755b1fbd104f2e2f5636371ab19191838b8f719d4d9894ca54ea517ce2065f7dee037e
7
- data.tar.gz: 8b92527ff69f8219a393055e1a1a872cc0f9102b2079a1fd16c1b955af16c1139864f1e5c56cde073267a32103e1f567bd4e23944b0ff650bc7fac96ff2b2cbf
6
+ metadata.gz: 8c19b29441acb0df8262f4f902acfb89e02c13805f283f326de13aafbc3dbea67a340eb0e5e94bdf9c8d8d04df63e000979c83bf3d53381f1f9d516b77dd5daa
7
+ data.tar.gz: 8b76c49172748a34a5dcdce1ade1eab3ef8e75d11c88b21b72adb97e38ee60139715b2e21dbbdf79842b94bb7747c149a8c9da39a2508f0eb3a45bebfb60a3f6
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.20.0
4
+
5
+ * Forward proxy options to AWS Client when using `fmrest-cloud` gem
6
+
3
7
  ### 0.19.0
4
8
 
5
- * Add native support for FileMaker cloud through the `fmrest-cloud` gem
9
+ * Added native support for FileMaker Cloud through the `fmrest-cloud` gem
6
10
 
7
11
  ### 0.18.0
8
12
 
data/README.md CHANGED
@@ -21,7 +21,7 @@ is natively supported by the gem.
21
21
  * [Connection settings](#connection-settings)
22
22
  * [Session token store](#session-token-store)
23
23
  * [Date fields and timezones](#date-fields-and-timezones)
24
- * [ActiveRecord-like ORM (fmrest-spyke)](#activerecord-like-orm--fmrest-spyke-)
24
+ * [ActiveRecord-like ORM (fmrest-spyke)](#activerecord-like-orm-fmrest-spyke)
25
25
  * [Logging](#logging)
26
26
  * [Gotchas](#gotchas)
27
27
  * [API implementation completeness table](#api-implementation-completeness-table)
@@ -138,7 +138,7 @@ Option | Description | Format
138
138
  `:password` | Your password | String | None
139
139
  `:account_name` | Alias of `:username` | String | None
140
140
  `:ssl` | SSL options to be forwarded to Faraday | Faraday SSL options | None
141
- `:proxy` | Proxy options to be forwarded to Faraday | Faraday proxy options | None
141
+ `:proxy` | Proxy URI e.g. `http://username:password@proxy.host:5000` | String / URI | None
142
142
  `:log` | Log JSON responses to STDOUT | Boolean | `false`
143
143
  `:log_level` | Which log level to log into | Values accepted by `Logger#level=` | `:debug`
144
144
  `:coerce_dates` | See section on [date fields](#date-fields-and-timezones) | Boolean \| `:hybrid` \| `:full` | `false`
@@ -58,10 +58,16 @@ module FmRest
58
58
  password: @settings.password!,
59
59
  pool_id: @settings.cognito_pool_id || COGNITO_POOL_ID,
60
60
  client_id: @settings.cognito_client_id || COGNITO_CLIENT_ID,
61
- aws_client: Aws::CognitoIdentityProvider::Client.new(region: @settings.aws_region || AWS_REGION)
61
+ aws_client: build_aws_client
62
62
  )
63
63
  end
64
64
 
65
+ def build_aws_client
66
+ options = { region: @settings.aws_region || AWS_REGION }
67
+ options[:http_proxy] = @settings.proxy if @settings.proxy?
68
+ Aws::CognitoIdentityProvider::Client.new(options)
69
+ end
70
+
65
71
  def token_store_key(token_type = :id)
66
72
  "#{TOKEN_STORE_PREFIX}:#{token_type}:#{@settings.username!}"
67
73
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fmrest-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Carbajal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-06 00:00:00.000000000 Z
11
+ date: 2021-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fmrest-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.20.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.19.0
26
+ version: 0.20.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-cognito-srp
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,9 +69,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - ">"
73
73
  - !ruby/object:Gem::Version
74
- version: '0'
74
+ version: 1.3.1
75
75
  requirements: []
76
76
  rubygems_version: 3.2.3
77
77
  signing_key: