indexers 4.1.0.0 → 4.1.0.1

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
  SHA1:
3
- metadata.gz: 596797c42610ddbebfd01c173d2d386d6c2d5cd8
4
- data.tar.gz: 02a005767c01ef463b72c99343234e6c5a16145f
3
+ metadata.gz: dfb6293d7448565833f062e82462c5102f531056
4
+ data.tar.gz: c9d4d54d81642f3640b43c4885264e748fe1a51d
5
5
  SHA512:
6
- metadata.gz: 595bfc3426cfd08b942ad4ba599d2eefdaf13af30c6312e7c25113aae37a2b2832a71ad733686793bf21da2ff8cd25c4229f3947c8d78000bf5c86fa5c222bbc
7
- data.tar.gz: 9a52c3bfcc3388583988ea9d245a515ce28fd8e0a810252627eebf883450d113660cb101e1aa1462742756516b3c77d41b38aa3a538129c11e56c463dfb671bb
6
+ metadata.gz: eb6e00eaec82bfb722c58cce834acaa29e95a0ab016f18baf16fcc5633b391630ad83b13d2be47a057d3745b0d36b0b8c78ac91d40db633773937dde2541fdef
7
+ data.tar.gz: b9cb8483b777d4115ae227b969c7672aacd6d8c80c32f07f35e930055ee220175a6e8c88f86298e32560d2dbba32859fd1d22573fc38348e1022833d64bc5672
@@ -8,7 +8,7 @@ module Indexers
8
8
 
9
9
  def inherited(subclass)
10
10
  super
11
- if File.exist?("#{Rails.root}/app/indexers/#{subclass.name.underscore}_indexer.rb")
11
+ if subclass.name && File.exist?("#{Rails.root}/app/indexers/#{subclass.name.underscore}_indexer.rb")
12
12
  subclass.include Indexers::Concern
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module Indexers
2
2
 
3
- VERSION = '4.1.0.0'
3
+ VERSION = '4.1.0.1'
4
4
 
5
5
  end
@@ -20984,3 +20984,185 @@ SearchTest: test_with_and_without
20984
20984
  Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
20985
20985
  Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
20986
20986
   (0.2ms) ROLLBACK
20987
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
20988
+  (0.2ms) BEGIN
20989
+ -------------------------
20990
+ SearchTest: test_includes
20991
+ -------------------------
20992
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
20993
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
20994
+  (0.1ms) SAVEPOINT active_record_1
20995
+ SQL (0.5ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-14 05:30:36.973703"], ["updated_at", "2016-12-14 05:30:36.973703"]]
20996
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20997
+  (0.2ms) SAVEPOINT active_record_1
20998
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 27], ["created_at", "2016-12-14 05:30:36.993931"], ["updated_at", "2016-12-14 05:30:36.993931"]]
20999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21000
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 20
21001
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (27)
21002
+  (0.2ms) ROLLBACK
21003
+  (0.1ms) BEGIN
21004
+ ----------------------
21005
+ SearchTest: test_order
21006
+ ----------------------
21007
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21008
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21009
+  (0.1ms) SAVEPOINT active_record_1
21010
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-14 05:30:39.083524"], ["updated_at", "2016-12-14 05:30:39.083524"]]
21011
+  (0.2ms) RELEASE SAVEPOINT active_record_1
21012
+  (0.1ms) SAVEPOINT active_record_1
21013
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 28], ["created_at", "2016-12-14 05:30:39.089484"], ["updated_at", "2016-12-14 05:30:39.089484"]]
21014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21015
+  (0.1ms) SAVEPOINT active_record_1
21016
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 28], ["created_at", "2016-12-14 05:30:39.097123"], ["updated_at", "2016-12-14 05:30:39.097123"]]
21017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21018
+  (0.1ms) SAVEPOINT active_record_1
21019
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 28], ["created_at", "2016-12-14 05:30:39.103640"], ["updated_at", "2016-12-14 05:30:39.103640"]]
21020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21021
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
21022
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
21023
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
21024
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
21025
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
21026
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
21027
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
21028
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
21029
+  (0.2ms) ROLLBACK
21030
+  (0.1ms) BEGIN
21031
+ ---------------------------
21032
+ SearchTest: test_pagination
21033
+ ---------------------------
21034
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21035
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21036
+  (0.1ms) SAVEPOINT active_record_1
21037
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-14 05:30:41.196209"], ["updated_at", "2016-12-14 05:30:41.196209"]]
21038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21039
+  (0.1ms) SAVEPOINT active_record_1
21040
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-14 05:30:41.200796"], ["updated_at", "2016-12-14 05:30:41.200796"]]
21041
+  (0.2ms) RELEASE SAVEPOINT active_record_1
21042
+  (0.1ms) SAVEPOINT active_record_1
21043
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-14 05:30:41.205773"], ["updated_at", "2016-12-14 05:30:41.205773"]]
21044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21045
+  (0.1ms) SAVEPOINT active_record_1
21046
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-14 05:30:41.210767"], ["updated_at", "2016-12-14 05:30:41.210767"]]
21047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21048
+  (0.1ms) SAVEPOINT active_record_1
21049
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-12-14 05:30:41.215848"], ["updated_at", "2016-12-14 05:30:41.215848"]]
21050
+  (0.2ms) RELEASE SAVEPOINT active_record_1
21051
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
21052
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
21053
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
21054
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE 1=0
21055
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
21056
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
21057
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE 1=0
21058
+  (0.2ms) ROLLBACK
21059
+  (0.1ms) BEGIN
21060
+ ---------------------------------
21061
+ SearchTest: test_with_and_without
21062
+ ---------------------------------
21063
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21064
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21065
+  (0.1ms) SAVEPOINT active_record_1
21066
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-14 05:30:43.289696"], ["updated_at", "2016-12-14 05:30:43.289696"]]
21067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21068
+  (0.2ms) SAVEPOINT active_record_1
21069
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-14 05:30:43.294088"], ["updated_at", "2016-12-14 05:30:43.294088"]]
21070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21071
+  (0.2ms) SAVEPOINT active_record_1
21072
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-14 05:30:43.298828"], ["updated_at", "2016-12-14 05:30:43.298828"]]
21073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21074
+  (0.2ms) SAVEPOINT active_record_1
21075
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-14 05:30:43.303533"], ["updated_at", "2016-12-14 05:30:43.303533"]]
21076
+  (0.2ms) RELEASE SAVEPOINT active_record_1
21077
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
21078
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
21079
+  (0.2ms) ROLLBACK
21080
+  (0.1ms) BEGIN
21081
+ ----------------------
21082
+ TaskTest: test_reindex
21083
+ ----------------------
21084
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21085
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21086
+  (0.2ms) ROLLBACK
21087
+  (0.1ms) BEGIN
21088
+ ----------------------
21089
+ TaskTest: test_unindex
21090
+ ----------------------
21091
+  (0.1ms) ROLLBACK
21092
+  (0.1ms) BEGIN
21093
+ --------------------
21094
+ TaskTest: test_index
21095
+ --------------------
21096
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21097
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21098
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21099
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21100
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21101
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21102
+  (0.2ms) ROLLBACK
21103
+  (0.1ms) BEGIN
21104
+ -----------------------
21105
+ IndexTest: test_suggest
21106
+ -----------------------
21107
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21108
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21109
+  (0.1ms) SAVEPOINT active_record_1
21110
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-14 05:30:45.552541"], ["updated_at", "2016-12-14 05:30:45.552541"]]
21111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21112
+  (0.1ms) SAVEPOINT active_record_1
21113
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 29], ["created_at", "2016-12-14 05:30:45.554406"], ["updated_at", "2016-12-14 05:30:45.554406"]]
21114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21115
+  (0.1ms) SAVEPOINT active_record_1
21116
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 29], ["created_at", "2016-12-14 05:30:45.559676"], ["updated_at", "2016-12-14 05:30:45.559676"]]
21117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21118
+  (0.2ms) ROLLBACK
21119
+  (0.1ms) BEGIN
21120
+ --------------------
21121
+ IndexTest: test_find
21122
+ --------------------
21123
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21124
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21125
+  (0.2ms) ROLLBACK
21126
+  (0.1ms) BEGIN
21127
+ -------------------------
21128
+ IndexTest: test_namespace
21129
+ -------------------------
21130
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21131
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21132
+  (0.2ms) ROLLBACK
21133
+  (0.1ms) BEGIN
21134
+ -------------------------
21135
+ RecordTest: test_indexing
21136
+ -------------------------
21137
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
21138
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
21139
+  (0.1ms) SAVEPOINT active_record_1
21140
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-12-14 05:30:47.686239"], ["updated_at", "2016-12-14 05:30:47.686239"]]
21141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21142
+  (0.1ms) SAVEPOINT active_record_1
21143
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 30], ["created_at", "2016-12-14 05:30:47.688292"], ["updated_at", "2016-12-14 05:30:47.688292"]]
21144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21145
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 23
21146
+  (0.1ms) SAVEPOINT active_record_1
21147
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 23]]
21148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21149
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 23
21150
+  (0.2ms) ROLLBACK
21151
+  (0.1ms) BEGIN
21152
+ --------------------
21153
+ DslTest: test_search
21154
+ --------------------
21155
+  (0.1ms) SAVEPOINT active_record_1
21156
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-14 05:30:49.728454"], ["updated_at", "2016-12-14 05:30:49.728454"]]
21157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21158
+  (0.1ms) ROLLBACK
21159
+  (0.1ms) BEGIN
21160
+ -------------------------
21161
+ GeneratorTest: test_index
21162
+ -------------------------
21163
+  (0.2ms) ROLLBACK
21164
+  (0.1ms) BEGIN
21165
+ ---------------------------
21166
+ GeneratorTest: test_install
21167
+ ---------------------------
21168
+  (0.1ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indexers
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0.0
4
+ version: 4.1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi