workato-connector-sdk 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+ require 'active_support/hash_with_indifferent_access'
5
+
6
+ module Workato
7
+ module Extension
8
+ module HashWithIndifferentAccess
9
+ refine ::ActiveSupport::HashWithIndifferentAccess.singleton_class do
10
+ def wrap(value)
11
+ return ::ActiveSupport::HashWithIndifferentAccess.new unless value
12
+ return value if value.is_a?(ActiveSupport::HashWithIndifferentAccess)
13
+
14
+ value.with_indifferent_access
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -2,6 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require 'rails-html-sanitizer'
5
+ require 'workato/utilities/xml'
5
6
 
6
7
  module Workato
7
8
  module Extension
@@ -168,7 +169,7 @@ module Workato
168
169
  end
169
170
 
170
171
  def from_xml
171
- Connector::Sdk::Xml.parse_xml_to_hash self
172
+ Workato::Utilities::Xml.parse_xml_to_hash(self)
172
173
  end
173
174
 
174
175
  TO_COUNTRY_METHODS.each do |suffix|
@@ -4,10 +4,10 @@
4
4
  require 'nokogiri'
5
5
 
6
6
  module Workato
7
- module Connector
8
- module Sdk
9
- module Xml
10
- def self.parse_xml_to_hash(payload, strip_namespaces: false)
7
+ module Utilities
8
+ module Xml
9
+ class << self
10
+ def parse_xml_to_hash(payload, strip_namespaces: false)
11
11
  parse_options = Nokogiri::XML::ParseOptions.new.nonet
12
12
  lazy_reader = Nokogiri::XML::Reader(payload, nil, nil, parse_options).to_enum.lazy
13
13
  lazy_reader.each_with_object([{}]) do |node, ancestors|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workato-connector-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Abolmasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-28 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: 2.0.2
229
+ version: 2.1.0
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: 2.0.2
236
+ version: 2.1.0
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: ruby-progressbar
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -448,6 +448,7 @@ files:
448
448
  - lib/workato/cli/generators/connector_generator.rb
449
449
  - lib/workato/cli/generators/master_key_generator.rb
450
450
  - lib/workato/cli/main.rb
451
+ - lib/workato/cli/multi_auth_selected_fallback.rb
451
452
  - lib/workato/cli/oauth2_command.rb
452
453
  - lib/workato/cli/push_command.rb
453
454
  - lib/workato/cli/schema_command.rb
@@ -461,7 +462,9 @@ files:
461
462
  - lib/workato/connector/sdk/dsl/account_property.rb
462
463
  - lib/workato/connector/sdk/dsl/aws.rb
463
464
  - lib/workato/connector/sdk/dsl/call.rb
465
+ - lib/workato/connector/sdk/dsl/csv.rb
464
466
  - lib/workato/connector/sdk/dsl/error.rb
467
+ - lib/workato/connector/sdk/dsl/execution_context.rb
465
468
  - lib/workato/connector/sdk/dsl/http.rb
466
469
  - lib/workato/connector/sdk/dsl/lookup_table.rb
467
470
  - lib/workato/connector/sdk/dsl/time.rb
@@ -488,14 +491,15 @@ files:
488
491
  - lib/workato/connector/sdk/trigger.rb
489
492
  - lib/workato/connector/sdk/version.rb
490
493
  - lib/workato/connector/sdk/workato_schemas.rb
491
- - lib/workato/connector/sdk/xml.rb
492
494
  - lib/workato/extension/array.rb
493
495
  - lib/workato/extension/case_sensitive_headers.rb
496
+ - lib/workato/extension/content_encoding_decoder.rb
494
497
  - lib/workato/extension/currency.rb
495
498
  - lib/workato/extension/date.rb
496
499
  - lib/workato/extension/enumerable.rb
497
500
  - lib/workato/extension/extra_chain_cert.rb
498
501
  - lib/workato/extension/hash.rb
502
+ - lib/workato/extension/hash_with_indifferent_access.rb
499
503
  - lib/workato/extension/integer.rb
500
504
  - lib/workato/extension/nil_class.rb
501
505
  - lib/workato/extension/object.rb
@@ -506,6 +510,7 @@ files:
506
510
  - lib/workato/testing/vcr_encrypted_cassette_serializer.rb
507
511
  - lib/workato/testing/vcr_multipart_body_matcher.rb
508
512
  - lib/workato/utilities/encoding.rb
513
+ - lib/workato/utilities/xml.rb
509
514
  - lib/workato/web/app.rb
510
515
  - templates/.rspec.erb
511
516
  - templates/Gemfile.erb
@@ -525,7 +530,13 @@ metadata:
525
530
  documentation_uri: https://docs.workato.com/developing-connectors/sdk/cli.html
526
531
  homepage_uri: https://www.workato.com/
527
532
  source_code_uri: https://github.com/workato/workato-connector-sdk
528
- post_install_message:
533
+ post_install_message: |2+
534
+
535
+ If you updated from workato-connector-sdk prior 1.2.0 your tests could be broken.
536
+
537
+ For more details see here:
538
+ https://github.com/workato/workato-connector-sdk/releases/tag/v1.2.0
539
+
529
540
  rdoc_options: []
530
541
  require_paths:
531
542
  - lib
@@ -545,3 +556,4 @@ signing_key:
545
556
  specification_version: 4
546
557
  summary: Gem for running adapter's code outside Workato infrastructure
547
558
  test_files: []
559
+ ...