Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't emit Ruby warnings when requiring opensearch-dsl #231

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Deprecated
### Removed
### Fixed
- Don't emit Ruby warnings when requiring `opensearch-dsl` ([#231](https://github.com/opensearch-project/opensearch-ruby/issues/231))
### Security

## [3.2.0]
Expand Down
6 changes: 3 additions & 3 deletions lib/opensearch/dsl/search/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def initialize(*_args)
define_method name do |*args|
@hash[name] = args.pop
end
end

define_method name.to_s.gsub(/^_(.*)/, '\1') do |*args|
@hash[name] = args.pop
end
def source(*args)
@hash[:_source] = args.pop
end

# Returns true when there are no search options defined
Expand Down
1 change: 0 additions & 1 deletion lib/opensearch/dsl/search/queries/match.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class Match
option_method :lenient
option_method :zero_terms_query
option_method :cutoff_frequency
option_method :max_expansions
end
end
end
Expand Down
Loading