lex-elastic_app_search 0.1.0 → 0.2.0

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: ba5beb19e8b1be44847c355f19f6d29333ec137d2361af8d1d576f918bdde2dc
4
- data.tar.gz: b85a04878343d8f8a444f786a82870b9e436211b87c06f3c8ee188aeebdec957
3
+ metadata.gz: d99b1a01a504148c79011586efde5e17646c7f37a427bbadabad8108af416d9b
4
+ data.tar.gz: 16cd2fe68416732be8314597cac0292477be30c7506f1533a454e14ccd4d6d0d
5
5
  SHA512:
6
- metadata.gz: ec63b23ef3a19742f9836417c9509b4ce03b67ca65271b2fdf2272cd00621d5a674ffedbd1fd29672da0be8a5601500d79de91a9f433ff4d7467079b0db8174a
7
- data.tar.gz: 68abe1e2565ba1835de2e6dcd4b830f5791c7b2186796685db4a93cd7b6f38fe51e209a0a4501437f9f691c4fe929606961338b99bf6de7e1282546722f12030
6
+ metadata.gz: dcc8cf0b572981bdec795a982a438fbac1af15b5c707442a3a213c5583508379cbc784f37e273c815f6c3e678e9066432b0a61f4b3c51bffaf4c4075093696d5
7
+ data.tar.gz: 72213bd2cb2907507254d1ddd6aa775405d915b3fd7052880b6590ac80cd8c812e3fdd4020595d85f60abd299e9619b475c0ee9f35e1f03406d9ac19e7ab7c0d
@@ -0,0 +1,16 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+
7
+ jobs:
8
+ ci:
9
+ uses: LegionIO/.github/.github/workflows/ci.yml@main
10
+
11
+ release:
12
+ needs: ci
13
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
14
+ uses: LegionIO/.github/.github/workflows/release.yml@main
15
+ secrets:
16
+ rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
data/.gitignore CHANGED
@@ -6,6 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
-
10
- # rspec failure tracking
11
9
  .rspec_status
data/.rubocop.yml CHANGED
@@ -1,23 +1,48 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.4
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+
1
6
  Layout/LineLength:
2
- Max: 120
7
+ Max: 160
8
+
9
+ Layout/SpaceAroundEqualsInParameterDefault:
10
+ EnforcedStyle: space
11
+
12
+ Layout/HashAlignment:
13
+ EnforcedHashRocketStyle: table
14
+ EnforcedColonStyle: table
15
+
3
16
  Metrics/MethodLength:
4
- Max: 30
17
+ Max: 50
18
+
5
19
  Metrics/ClassLength:
6
20
  Max: 1500
21
+
22
+ Metrics/ModuleLength:
23
+ Max: 1500
24
+
7
25
  Metrics/BlockLength:
8
- Max: 50
9
- Metrics/ParameterLists:
10
- Max: 10
11
- Layout/SpaceAroundEqualsInParameterDefault:
12
- EnforcedStyle: space
26
+ Max: 40
27
+
28
+ Metrics/AbcSize:
29
+ Max: 60
30
+
31
+ Metrics/CyclomaticComplexity:
32
+ Max: 15
33
+
34
+ Metrics/PerceivedComplexity:
35
+ Max: 17
36
+
13
37
  Style/Documentation:
14
38
  Enabled: false
15
- AllCops:
16
- TargetRubyVersion: 2.5
17
- NewCops: enable
39
+
40
+ Style/SymbolArray:
41
+ Enabled: true
42
+
18
43
  Style/FrozenStringLiteralComment:
19
- Enabled: false
44
+ Enabled: true
45
+ EnforcedStyle: always
46
+
20
47
  Naming/FileName:
21
48
  Enabled: false
22
- Style/ClassAndModuleChildren:
23
- Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## [0.2.0] - 2026-03-15
4
+
5
+ ### Added
6
+ - Standalone `Client` class that includes all Runner modules and builds `Elastic::AppSearch::Client` from stored `@opts`
7
+ - Client specs covering initialization, default options, and runner method availability
8
+
9
+ ## [0.1.1] - 2026-03-13
10
+
11
+ ### Added
12
+ - Initial release
data/CLAUDE.md ADDED
@@ -0,0 +1,79 @@
1
+ # lex-elastic_app_search: Elastic App Search Integration for LegionIO
2
+
3
+ **Repository Level 3 Documentation**
4
+ - **Parent**: `/Users/miverso2/rubymine/legion/extensions-other/CLAUDE.md`
5
+ - **Grandparent**: `/Users/miverso2/rubymine/legion/CLAUDE.md`
6
+
7
+ ## Purpose
8
+
9
+ Legion Extension that connects to Elastic App Search. Provides runners for managing engines, documents, search, analytics, schemas, synonyms, curations, credentials, and click-through tracking.
10
+
11
+ **GitHub**: https://github.com/LegionIO/lex-elastic_app_search
12
+ **License**: MIT
13
+ **Version**: 0.2.0
14
+
15
+ ## Architecture
16
+
17
+ ```
18
+ Legion::Extensions::ElasticAppSearch
19
+ ├── Client # Standalone client: includes all runners, usable outside Legion runtime
20
+ ├── Runners/
21
+ │ ├── Analytics # Search analytics
22
+ │ ├── ClickThrough # Click-through tracking
23
+ │ ├── Credentials # API key management
24
+ │ ├── Curations # Search curations
25
+ │ ├── Documents # Document CRUD
26
+ │ ├── Engines # Engine management
27
+ │ ├── Schemas # Schema management
28
+ │ ├── Search # Search queries
29
+ │ └── Synonyms # Synonym sets
30
+ └── Helpers/
31
+ └── Client # Elastic::AppSearch::Client wrapper (used by runners in the Legion runtime)
32
+ ```
33
+
34
+ ## Standalone Usage
35
+
36
+ `Legion::Extensions::ElasticAppSearch::Client` can be instantiated directly without running the Legion framework:
37
+
38
+ ```ruby
39
+ client = Legion::Extensions::ElasticAppSearch::Client.new(
40
+ host: 'http://localhost:3002',
41
+ api_key: 'my-api-key'
42
+ )
43
+ client.list_engines
44
+ ```
45
+
46
+ The constructor accepts `host:` and `api_key:` kwargs (both optional; host defaults to `http://localhost:3002`). Each runner method builds a fresh `Elastic::AppSearch::Client` instance from the stored `@opts`.
47
+
48
+ ## Key Files
49
+
50
+ | Path | Purpose |
51
+ |------|---------|
52
+ | `lib/legion/extensions/elastic_app_search.rb` | Entry point, default settings (host: localhost:3002) |
53
+ | `lib/legion/extensions/elastic_app_search/client.rb` | Standalone client class including all runners |
54
+ | `lib/legion/extensions/elastic_app_search/helpers/client.rb` | Elastic App Search client (host_identifier + api_key) used by the runtime |
55
+ | `lib/legion/extensions/elastic_app_search/runners/` | All runners |
56
+
57
+ ## Dependencies
58
+
59
+ | Gem | Purpose |
60
+ |-----|---------|
61
+ | `elastic-app-search` | Official Elastic App Search Ruby client |
62
+
63
+ ## Configuration
64
+
65
+ Default settings:
66
+ - `host`: `http://localhost:3002`
67
+ - `api_key`: set per-call or via Legion settings
68
+
69
+ ## Development
70
+
71
+ ```bash
72
+ bundle install
73
+ bundle exec rspec
74
+ bundle exec rubocop
75
+ ```
76
+
77
+ ---
78
+
79
+ **Maintained By**: Matthew Iverson (@Esity)
data/Dockerfile ADDED
@@ -0,0 +1,9 @@
1
+ FROM legionio/legion:latest
2
+ LABEL maintainer="Matthew Iverson <matthewdiverson@gmail.com>"
3
+
4
+ RUN mkdir /etc/legionio
5
+ RUN apk update && apk add build-base tzdata gcc git
6
+
7
+ COPY . ./
8
+ RUN gem install lex-elastic_app_search --no-document --no-prerelease
9
+ CMD ruby --yjit $(which legionio)
data/Gemfile CHANGED
@@ -1,4 +1,12 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- # Specify your gem's dependencies in legion-extensions-elastic_app_search.gemspec
3
+ source 'https://rubygems.org'
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'rake'
8
+ gem 'rspec'
9
+ gem 'rspec_junit_formatter'
10
+ gem 'rubocop'
11
+ gem 'simplecov'
12
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,93 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lex-elastic_app_search (0.2.0)
5
+ elastic-app-search
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.8.9)
11
+ public_suffix (>= 2.0.2, < 8.0)
12
+ ast (2.4.3)
13
+ base64 (0.3.0)
14
+ bigdecimal (4.0.1)
15
+ diff-lcs (1.6.2)
16
+ docile (1.4.1)
17
+ elastic-app-search (7.10.0)
18
+ jwt (>= 1.5, < 3.0)
19
+ json (2.19.1)
20
+ json-schema (6.2.0)
21
+ addressable (~> 2.8)
22
+ bigdecimal (>= 3.1, < 5)
23
+ jwt (2.10.2)
24
+ base64
25
+ language_server-protocol (3.17.0.5)
26
+ lint_roller (1.1.0)
27
+ mcp (0.8.0)
28
+ json-schema (>= 4.1)
29
+ parallel (1.27.0)
30
+ parser (3.3.10.2)
31
+ ast (~> 2.4.1)
32
+ racc
33
+ prism (1.9.0)
34
+ public_suffix (7.0.5)
35
+ racc (1.8.1)
36
+ rainbow (3.1.1)
37
+ rake (13.3.1)
38
+ regexp_parser (2.11.3)
39
+ rspec (3.13.2)
40
+ rspec-core (~> 3.13.0)
41
+ rspec-expectations (~> 3.13.0)
42
+ rspec-mocks (~> 3.13.0)
43
+ rspec-core (3.13.6)
44
+ rspec-support (~> 3.13.0)
45
+ rspec-expectations (3.13.5)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.13.0)
48
+ rspec-mocks (3.13.8)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.13.0)
51
+ rspec-support (3.13.7)
52
+ rspec_junit_formatter (0.6.0)
53
+ rspec-core (>= 2, < 4, != 2.12.0)
54
+ rubocop (1.85.1)
55
+ json (~> 2.3)
56
+ language_server-protocol (~> 3.17.0.2)
57
+ lint_roller (~> 1.1.0)
58
+ mcp (~> 0.6)
59
+ parallel (~> 1.10)
60
+ parser (>= 3.3.0.2)
61
+ rainbow (>= 2.2.2, < 4.0)
62
+ regexp_parser (>= 2.9.3, < 3.0)
63
+ rubocop-ast (>= 1.49.0, < 2.0)
64
+ ruby-progressbar (~> 1.7)
65
+ unicode-display_width (>= 2.4.0, < 4.0)
66
+ rubocop-ast (1.49.1)
67
+ parser (>= 3.3.7.2)
68
+ prism (~> 1.7)
69
+ ruby-progressbar (1.13.0)
70
+ simplecov (0.22.0)
71
+ docile (~> 1.1)
72
+ simplecov-html (~> 0.11)
73
+ simplecov_json_formatter (~> 0.1)
74
+ simplecov-html (0.13.2)
75
+ simplecov_json_formatter (0.1.4)
76
+ unicode-display_width (3.2.0)
77
+ unicode-emoji (~> 4.1)
78
+ unicode-emoji (4.2.0)
79
+
80
+ PLATFORMS
81
+ arm64-darwin-25
82
+ ruby
83
+
84
+ DEPENDENCIES
85
+ lex-elastic_app_search!
86
+ rake
87
+ rspec
88
+ rspec_junit_formatter
89
+ rubocop
90
+ simplecov
91
+
92
+ BUNDLED WITH
93
+ 2.6.9
data/README.md CHANGED
@@ -1,44 +1,54 @@
1
- # Legion::Extensions::ElasticAppSearch
1
+ # lex-elastic_app_search
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/legion/extensions/elastic_app_search`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Elastic App Search integration for [LegionIO](https://github.com/LegionIO/LegionIO). Manages engines, documents, search, analytics, schemas, synonyms, curations, credentials, and click-through tracking.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'legion-extensions-elastic_app_search'
7
+ ```bash
8
+ gem install lex-elastic_app_search
13
9
  ```
14
10
 
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install legion-extensions-elastic_app_search
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
11
+ Or add to your Gemfile:
26
12
 
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
13
+ ```ruby
14
+ gem 'lex-elastic_app_search'
15
+ ```
32
16
 
33
- ## Contributing
17
+ ## Runners
18
+
19
+ | Runner | Operations |
20
+ |--------|-----------|
21
+ | Engines | Engine management |
22
+ | Documents | Document CRUD |
23
+ | Search | Search queries |
24
+ | Analytics | Search analytics |
25
+ | Schemas | Schema management |
26
+ | Synonyms | Synonym sets |
27
+ | Curations | Search curations |
28
+ | Credentials | API key management |
29
+ | ClickThrough | Click-through tracking |
30
+
31
+ ## Configuration
32
+
33
+ Default host: `http://localhost:3002`. Override via Legion settings:
34
+
35
+ ```json
36
+ {
37
+ "extensions": {
38
+ "elastic_app_search": {
39
+ "host": "https://your-deployment.ent-search.region.aws.cloud.es.io",
40
+ "api_key": "your-api-key"
41
+ }
42
+ }
43
+ }
44
+ ```
34
45
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/legion-extensions-elastic_app_search. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/legion-extensions-elastic_app_search/blob/master/CODE_OF_CONDUCT.md).
46
+ ## Requirements
36
47
 
48
+ - Ruby >= 3.4
49
+ - [LegionIO](https://github.com/LegionIO/LegionIO) framework
50
+ - Elastic App Search instance
37
51
 
38
52
  ## License
39
53
 
40
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
-
42
- ## Code of Conduct
43
-
44
- Everyone interacting in the Legion::Extensions::ElasticAppSearch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/legion-extensions-elastic_app_search/blob/master/CODE_OF_CONDUCT.md).
54
+ MIT
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'lib/legion/extensions/elastic_app_search/version'
2
4
 
3
5
  Gem::Specification.new do |spec|
@@ -5,16 +7,21 @@ Gem::Specification.new do |spec|
5
7
  spec.version = Legion::Extensions::ElasticAppSearch::VERSION
6
8
  spec.authors = ['Esity']
7
9
  spec.email = ['matthewdiverson@gmail.com']
8
-
9
- spec.summary = 'Legion ElasticAppSearch'
10
+ spec.summary = 'LegionIO ElasticAppSearch'
10
11
  spec.description = 'Connects Legion to Elastic App Search'
11
- spec.homepage = 'https://bitbucket.org/legion-io/lex-elastic_app_search'
12
+ spec.homepage = 'https://github.com/LegionIO/lex-elastic_app_search'
12
13
  spec.license = 'MIT'
13
- spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
14
+ spec.required_ruby_version = '>= 3.4'
14
15
 
15
- spec.metadata['homepage_uri'] = spec.homepage
16
- spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/lex-elastic_app_search'
17
- spec.metadata['changelog_uri'] = 'https://bitbucket.org/legion-io/lex-elastic_app_search/src/master/CHANGELOG.md'
16
+ spec.metadata = {
17
+ 'bug_tracker_uri' => 'https://github.com/LegionIO/lex-elastic_app_search/issues',
18
+ 'changelog_uri' => 'https://github.com/LegionIO/lex-elastic_app_search/blob/master/CHANGELOG.md',
19
+ 'documentation_uri' => 'https://github.com/LegionIO/lex-elastic_app_search',
20
+ 'homepage_uri' => 'https://github.com/LegionIO/lex-elastic_app_search',
21
+ 'source_code_uri' => 'https://github.com/LegionIO/lex-elastic_app_search',
22
+ 'wiki_uri' => 'https://github.com/LegionIO/lex-elastic_app_search/wiki',
23
+ 'rubygems_mfa_required' => 'true'
24
+ }
18
25
 
19
26
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
27
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -22,11 +29,5 @@ Gem::Specification.new do |spec|
22
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
30
  spec.require_paths = ['lib']
24
31
 
25
- spec.add_development_dependency 'rake'
26
- spec.add_development_dependency 'rspec'
27
- spec.add_development_dependency 'rubocop'
28
- spec.add_development_dependency 'simplecov'
29
-
30
32
  spec.add_dependency 'elastic-app-search'
31
- spec.add_dependency 'legion-exceptions'
32
33
  end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'helpers/client'
4
+ require_relative 'runners/analytics'
5
+ require_relative 'runners/click_through'
6
+ require_relative 'runners/curations'
7
+ require_relative 'runners/documents'
8
+ require_relative 'runners/engines'
9
+ require_relative 'runners/schemas'
10
+ require_relative 'runners/search'
11
+ require_relative 'runners/synonyms'
12
+
13
+ module Legion
14
+ module Extensions
15
+ module ElasticAppSearch
16
+ class Client
17
+ include Runners::Analytics
18
+ include Runners::ClickThrough
19
+ include Runners::Curations
20
+ include Runners::Documents
21
+ include Runners::Engines
22
+ include Runners::Schemas
23
+ include Runners::Search
24
+ include Runners::Synonyms
25
+
26
+ attr_reader :opts
27
+
28
+ def initialize(host: 'http://localhost:3002', api_key: nil, **extra)
29
+ @opts = { host: host, api_key: api_key, **extra }.compact
30
+ end
31
+
32
+ def client(**_override)
33
+ Elastic::AppSearch::Client.new(
34
+ host_identifier: @opts[:host],
35
+ api_key: @opts[:api_key]
36
+ )
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'elastic-app-search'
2
4
 
3
5
  module Legion
@@ -8,7 +10,7 @@ module Legion
8
10
  def client(**opts)
9
11
  Elastic::AppSearch::Client.new(
10
12
  host_identifier: find_setting('host', opts),
11
- api_key: find_setting('api_key', opts)
13
+ api_key: find_setting('api_key', opts)
12
14
  )
13
15
  end
14
16
  include Legion::Extensions::Helpers::Lex
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -13,15 +15,10 @@ module Legion
13
15
  client(opts).get_credential(name)
14
16
  end
15
17
 
16
- def create(name:, type: 'private', read: true, write: false, access_all_engines: true, engines: [], **opts)
17
- client(opts).create_credential(
18
- { name: name,
19
- type: type,
20
- read: read,
21
- write: write,
22
- access_all_engines: access_all_engines,
23
- engines: engines }
24
- )
18
+ def create(name:, credential_opts: {}, **opts)
19
+ defaults = { type: 'private', read: true, write: false, access_all_engines: true, engines: [] }
20
+ params = defaults.merge(credential_opts).merge(name: name)
21
+ client(opts).create_credential(params)
25
22
  end
26
23
 
27
24
  def update(name:, **opts)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module ElasticAppSearch
4
- VERSION = '0.1.0'.freeze
6
+ VERSION = '0.2.0'
5
7
  end
6
8
  end
7
9
  end
@@ -1,9 +1,21 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'legion/extensions/elastic_app_search/version'
4
+ require 'legion/extensions/elastic_app_search/helpers/client'
5
+ require 'legion/extensions/elastic_app_search/runners/analytics'
6
+ require 'legion/extensions/elastic_app_search/runners/click_through'
7
+ require 'legion/extensions/elastic_app_search/runners/curations'
8
+ require 'legion/extensions/elastic_app_search/runners/documents'
9
+ require 'legion/extensions/elastic_app_search/runners/engines'
10
+ require 'legion/extensions/elastic_app_search/runners/schemas'
11
+ require 'legion/extensions/elastic_app_search/runners/search'
12
+ require 'legion/extensions/elastic_app_search/runners/synonyms'
13
+ require 'legion/extensions/elastic_app_search/client'
2
14
 
3
15
  module Legion
4
16
  module Extensions
5
17
  module ElasticAppSearch
6
- extend Legion::Extensions::Core
18
+ extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core
7
19
 
8
20
  def self.default_settings
9
21
  {
metadata CHANGED
@@ -1,71 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-elastic_app_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-08-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rubocop
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: simplecov
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
12
  - !ruby/object:Gem::Dependency
70
13
  name: elastic-app-search
71
14
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +23,6 @@ dependencies:
80
23
  - - ">="
81
24
  - !ruby/object:Gem::Version
82
25
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: legion-exceptions
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
26
  description: Connects Legion to Elastic App Search
98
27
  email:
99
28
  - matthewdiverson@gmail.com
@@ -101,18 +30,19 @@ executables: []
101
30
  extensions: []
102
31
  extra_rdoc_files: []
103
32
  files:
33
+ - ".github/workflows/ci.yml"
104
34
  - ".gitignore"
105
35
  - ".rspec"
106
36
  - ".rubocop.yml"
107
- - CODE_OF_CONDUCT.md
37
+ - CHANGELOG.md
38
+ - CLAUDE.md
39
+ - Dockerfile
108
40
  - Gemfile
109
- - LICENSE.txt
41
+ - Gemfile.lock
110
42
  - README.md
111
- - Rakefile
112
- - bin/console
113
- - bin/setup
114
43
  - lex-elastic_app_search.gemspec
115
44
  - lib/legion/extensions/elastic_app_search.rb
45
+ - lib/legion/extensions/elastic_app_search/client.rb
116
46
  - lib/legion/extensions/elastic_app_search/helpers/client.rb
117
47
  - lib/legion/extensions/elastic_app_search/runners/analytics.rb
118
48
  - lib/legion/extensions/elastic_app_search/runners/click_through.rb
@@ -124,14 +54,17 @@ files:
124
54
  - lib/legion/extensions/elastic_app_search/runners/search.rb
125
55
  - lib/legion/extensions/elastic_app_search/runners/synonyms.rb
126
56
  - lib/legion/extensions/elastic_app_search/version.rb
127
- homepage: https://bitbucket.org/legion-io/lex-elastic_app_search
57
+ homepage: https://github.com/LegionIO/lex-elastic_app_search
128
58
  licenses:
129
59
  - MIT
130
60
  metadata:
131
- homepage_uri: https://bitbucket.org/legion-io/lex-elastic_app_search
132
- source_code_uri: https://bitbucket.org/legion-io/lex-elastic_app_search
133
- changelog_uri: https://bitbucket.org/legion-io/lex-elastic_app_search/src/master/CHANGELOG.md
134
- post_install_message:
61
+ bug_tracker_uri: https://github.com/LegionIO/lex-elastic_app_search/issues
62
+ changelog_uri: https://github.com/LegionIO/lex-elastic_app_search/blob/master/CHANGELOG.md
63
+ documentation_uri: https://github.com/LegionIO/lex-elastic_app_search
64
+ homepage_uri: https://github.com/LegionIO/lex-elastic_app_search
65
+ source_code_uri: https://github.com/LegionIO/lex-elastic_app_search
66
+ wiki_uri: https://github.com/LegionIO/lex-elastic_app_search/wiki
67
+ rubygems_mfa_required: 'true'
135
68
  rdoc_options: []
136
69
  require_paths:
137
70
  - lib
@@ -139,15 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
72
  requirements:
140
73
  - - ">="
141
74
  - !ruby/object:Gem::Version
142
- version: 2.5.0
75
+ version: '3.4'
143
76
  required_rubygems_version: !ruby/object:Gem::Requirement
144
77
  requirements:
145
78
  - - ">="
146
79
  - !ruby/object:Gem::Version
147
80
  version: '0'
148
81
  requirements: []
149
- rubygems_version: 3.1.2
150
- signing_key:
82
+ rubygems_version: 3.6.9
151
83
  specification_version: 4
152
- summary: Legion ElasticAppSearch
84
+ summary: LegionIO ElasticAppSearch
153
85
  test_files: []
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at matthewdiverson@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [https://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: https://contributor-covenant.org
74
- [version]: https://contributor-covenant.org/version/1/4/
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020 Esity
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'legion/extensions/elastic_app_search'
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require 'irb'
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here