attr_searchable 0.0.5 → 0.0.6

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.
@@ -18,6 +18,19 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.post_install_message =<<MESSAGE
22
+ ----------------------------------------------------------------------------
23
+ DEPRECATION WARNING
24
+
25
+ The 'attr_searchable' gem has been deprecated and replaced by 'search_cop',
26
+ because the DSL has recently changed quite a bit to become even more simple,
27
+ featureful and concise. Please migrate to 'search_cop' as soon as possible.
28
+
29
+ search_cop: https://github.com/mrkamel/search_cop
30
+ migration: https://github.com/mrkamel/search_cop/blob/master/MIGRATION.md
31
+ ----------------------------------------------------------------------------
32
+ MESSAGE
33
+
21
34
  spec.add_dependency "treetop"
22
35
 
23
36
  spec.add_development_dependency "bundler", "~> 1.3"
@@ -34,6 +34,8 @@ module AttrSearchable
34
34
  end
35
35
 
36
36
  def self.included(base)
37
+ warn "[DEPRECATION] The 'attr_searchable' gem has been deprecated and replaced by 'search_cop'. See: https://github.com/mrkamel/search_cop#attrsearchable-is-now-searchcop"
38
+
37
39
  base.class_attribute :searchable_attributes
38
40
  base.searchable_attributes = {}
39
41
 
@@ -1,3 +1,3 @@
1
1
  module AttrSearchable
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attr_searchable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-17 00:00:00.000000000 Z
12
+ date: 2014-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: treetop
@@ -168,7 +168,12 @@ files:
168
168
  homepage: https://github.com/mrkamel/attr_searchable
169
169
  licenses:
170
170
  - MIT
171
- post_install_message:
171
+ post_install_message: ! "----------------------------------------------------------------------------\n
172
+ \ DEPRECATION WARNING\n\nThe 'attr_searchable' gem has
173
+ been deprecated and replaced by 'search_cop',\nbecause the DSL has recently changed
174
+ quite a bit to become even more simple,\nfeatureful and concise. Please migrate
175
+ to 'search_cop' as soon as possible.\n\nsearch_cop: https://github.com/mrkamel/search_cop\nmigration:
176
+ \ https://github.com/mrkamel/search_cop/blob/master/MIGRATION.md\n----------------------------------------------------------------------------\n"
172
177
  rdoc_options: []
173
178
  require_paths:
174
179
  - lib