Module: Tire
- Extended by:
- DSL
- Defined in:
- lib/tire.rb,
lib/tire/dsl.rb,
lib/tire/alias.rb,
lib/tire/index.rb,
lib/tire/utils.rb,
lib/tire/logger.rb,
lib/tire/search.rb,
lib/tire/version.rb,
lib/tire/http/client.rb,
lib/tire/search/scan.rb,
lib/tire/search/sort.rb,
lib/tire/model/import.rb,
lib/tire/model/naming.rb,
lib/tire/model/search.rb,
lib/tire/results/item.rb,
lib/tire/search/facet.rb,
lib/tire/search/query.rb,
lib/tire/configuration.rb,
lib/tire/http/response.rb,
lib/tire/search/filter.rb,
lib/tire/model/indexing.rb,
lib/tire/model/callbacks.rb,
lib/tire/model/percolate.rb,
lib/tire/search/highlight.rb,
lib/tire/http/clients/curb.rb,
lib/tire/model/persistence.rb,
lib/tire/results/collection.rb,
lib/tire/results/pagination.rb,
lib/tire/model/persistence/finders.rb,
lib/tire/model/persistence/storage.rb,
lib/tire/model/persistence/attributes.rb
Defined Under Namespace
Modules: DSL, HTTP, Model, Results, Search, Utils Classes: Alias, Configuration, Index, Logger
Constant Summary collapse
- VERSION =
"0.4.4"
- CHANGELOG =
<<-END IMPORTANT CHANGES LATELY: Version 0.4.1 ------------- * Added a Index#settings method to retrieve index settings as a Hash * Added support for the "scan" search in the Ruby API * Added support for reindexing the index documents into new index * Added basic support for index aliases * Changed, that Index#bulk_store runs against an index endpoint, not against `/_bulk` * Refactorings, fixes, Ruby 1.8 compatibility Version 0.4.2 ------------- * Fixed incorrect handling of PUT requests in the Curb client * Fixed, that blocks passed to `Tire::Index.new` or `Tire.index` losed the scope * Added `Tire::Alias`, interface and DSL to manage aliases as resources END
Class Method Summary collapse
Methods included from DSL
aliases, configure, index, scan, search
Class Method Details
.warn(message) ⇒ Object
47 48 49 50 |
# File 'lib/tire.rb', line 47 def warn() line = caller.detect { |line| line !~ %r|lib\/tire\/| }.sub(/:in .*/, '') STDERR.puts "", "\e[31m[DEPRECATION WARNING] #{}", "(Called from #{line})", "\e[0m" end |