smart_search 0.0.77 → 0.0.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smart_search.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a39a3652a1261007678c58399fd5a8ae0e342dcc
4
- data.tar.gz: c722ece923f174235c1d7022e17e763d0f83fd91
3
+ metadata.gz: 1f4af5eefa190ff2da06552220c3b1a135d3f27b
4
+ data.tar.gz: c995ec672acfab1a842e86a097d746259189a08e
5
5
  SHA512:
6
- metadata.gz: ac5c72d4b42022bb5b04dd9ce8441009f0491172415fbe9414d9ab24ab03d85a45764e7d501f94358a8b98f5274d362a12e1c8ab4520275c316316541dffdfb4
7
- data.tar.gz: 9c21b39bb8ede89b43c835e41ed065a8fb93df5f84c2024fda18e6efd8cea1d7a7fb1b6a4ab10310ef3fd22bedd8b8e1d491a7d6d673b71c407e9d9e93bcf22d
6
+ metadata.gz: 11db95f681460849922fd90ca132e4e758292f8d5418e6178fc37670f2fbddc095f40dbdf0a2534a5a42f41e0eb3d58201b40acda91b5690b44a77cc61407cc4
7
+ data.tar.gz: c9f5a949b434dd5ba81741643b4c6b47b5fbd10abce8758fe3cb187fc78d4b52c83ef043a490674512affd128eda16194c1a44bce32344f7ad0e337c2f71e0b2
data/lib/smart_search.rb CHANGED
@@ -67,6 +67,8 @@ module SmartSearch
67
67
  def find_by_tags(tags = "", options = {})
68
68
  if self.is_smart_search?
69
69
 
70
+ tags = tags.join(" ") if tags.is_a?(Array)
71
+
70
72
  # Save Data for similarity analysis
71
73
  if tags.size > 3
72
74
  self.connection.execute("INSERT INTO `#{::SmartSearchHistory.table_name}` (`query`) VALUES ('#{tags.gsub(/[^a-zA-ZäöüÖÄÜß\ ]/, '')}');")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.77
4
+ version: 0.0.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Eck