We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d0768c commit e2dd902Copy full SHA for e2dd902
1 file changed
lib/gooddata/rest/connection.rb
@@ -33,6 +33,8 @@ class Connection
33
TOKEN_PATH = '/gdc/account/token'
34
KEYS_TO_SCRUB = [:password, :verifyPassword, :authorizationToken]
35
API_LEVEL = 2
36
+ KB = 1024
37
+ MB = 1024 * KB
38
39
ID_LENGTH = 16
40
@@ -177,8 +179,8 @@ def initialize(opts)
177
179
178
180
# Connect using username and password
181
def connect(username, password, options = {})
- if RUBY_VERSION >= '3.3'
- Psych::Parser.code_point_limit = 100_000_000_000
182
+ if RUBY_VERSION >= '3.1'
183
+ Psych::Parser.code_point_limit = 100 * MB
184
end
185
server = options[:server] || Helpers::AuthHelper.read_server
186
options = DEFAULT_LOGIN_PAYLOAD.merge(options)
0 commit comments