multiwoven-integrations 0.30.2 → 0.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51616b2e7b06336873aceb0c9e5731526dd7e57ba332eab190bc215d99c4ed8d
4
- data.tar.gz: d376ae2826566eea31fd92dbd4e4ddf16034e1ef9085edf08f7b554744424583
3
+ metadata.gz: 9fd3ed70334fa8ca4cf73fa9c6e47f253e372d9b9358ee3a1004de5880e4656b
4
+ data.tar.gz: 25a4d2b8442bd87197f84cc7c36fe3bbb7864cc0f329312fba37d9742cbc8bee
5
5
  SHA512:
6
- metadata.gz: fc9778e2da0499ed9bec602005b3b69aadd8e038e251d77acc8407bde99dbf213c1ff0d6f937a832c1d4aa660dbae578de8042caf9c0720fca3ddcff2e0d762a
7
- data.tar.gz: a8438815522f82a1bc6db95c6bd29c94a55f182bf459f90c3e01209f54b17e303d939280a63549f6c1eff5da4e57ca1f80e85b98646f6f935995f3a371f7b274
6
+ metadata.gz: '08384a20d53b8b87472c509aedfaf37d68b3445a722686ba49b7fd86a4ef044eeeae7a60fa6cc1191f475b0c221ee6937a01ed635b5df784c1f5c494a9828cf5'
7
+ data.tar.gz: '085bb3fdb255ae339486d00e4747c9e97d5784e5b344dac3e5870c99229dfa71693e8d11831d9661cade3a879a42998e7c650638585be9c152e1b5a4d326702a'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.30.2"
5
+ VERSION = "0.30.3"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -30,7 +30,7 @@ module Multiwoven::Integrations::Source
30
30
  connection_config = sync_config.source.connection_specification
31
31
  connection_config = connection_config.with_indifferent_access
32
32
  url = create_connection(connection_config)
33
- query(url, nil)
33
+ query(url, nil, nil)
34
34
  rescue StandardError => e
35
35
  handle_exception(e, {
36
36
  context: "FIRECRAWL:READ:EXCEPTION",
@@ -58,15 +58,14 @@ module Multiwoven::Integrations::Source
58
58
  FIRECRAWL_CRAWL_URL
59
59
  end
60
60
 
61
- def query(url, query)
62
- has_limit = query.match(/LIMIT\s+(\d+)\s*$/i) if query.present?
63
- if has_limit.present?
61
+ def query(url, _query, limit = 1)
62
+ if limit.present?
64
63
  if @config["includePaths"]&.any?
65
64
  path = @config["includePaths"].first
66
65
  @config["url"] = URI.join(@config["url"], path).to_s
67
66
  end
68
67
  @config.delete("includePaths")
69
- @config[:limit] = has_limit[1].to_i
68
+ @config[:limit] = limit
70
69
  end
71
70
  request = execute_crawl(url)
72
71
  request = JSON.parse(request.body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiwoven-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.2
4
+ version: 0.30.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-06-27 00:00:00.000000000 Z
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport