forest_liana 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d2287a32a5ee8e81bbc97697900a3800cee4de3
4
- data.tar.gz: 0e01a294ec3a1b0b938c1112535cf8c37d775946
3
+ metadata.gz: 14ab097ffc6a225f2195936253472b5c52a73e3b
4
+ data.tar.gz: 60a23d3c4b9a13db8f87c8debf710b80394651e9
5
5
  SHA512:
6
- metadata.gz: ad468f869e5f7e3bb1530f6e50ef37dfb5a6d96e4bc1501c9d2ff220257985bca35ff0376ed32d7a7901d5fa81df35e44a98477ec7101988bfe1fcee838c485f
7
- data.tar.gz: 9f4d66b3a55c9e6e544df1359179a5a84bedb55a0533a687d402ff4c2496150dc4c46db075ce6d70ea1babd9d261b771a21c8812330e4a0b877c690a1376cf2c
6
+ metadata.gz: 01f1d41c1d3b33fd91fdc3d1b1275a0ccbdbb29bc41b29b73d782883dfb7e5490eeebf2b409fa919f1cb40edb0c489a3a0fbb10571b17cd44e10ff1734b771f6
7
+ data.tar.gz: 38ed452888ca8f14d894395b2fb3cbae2319c2c9dcbdfea7bcd039e3439a77fc25d682e6390dffa26a85beae01f43d27e8a4d0cb732f5c74a0e6d9f998adefce
@@ -16,11 +16,11 @@ module ForestLiana
16
16
  def index
17
17
  begin
18
18
  if request.format == 'csv'
19
- return head :forbidden unless PermissionsChecker.new(@resource, 'export').is_authorized?
19
+ return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'export').is_authorized?
20
20
  elsif params.has_key?(:searchToEdit)
21
- return head :forbidden unless PermissionsChecker.new(@resource, 'searchToEdit').is_authorized?
21
+ return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'searchToEdit').is_authorized?
22
22
  else
23
- return head :forbidden unless PermissionsChecker.new(@resource, 'list').is_authorized?
23
+ return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'list').is_authorized?
24
24
  end
25
25
 
26
26
  getter = ForestLiana::ResourcesGetter.new(@resource, params)
@@ -41,7 +41,7 @@ module ForestLiana
41
41
 
42
42
  def show
43
43
  begin
44
- return head :forbidden unless PermissionsChecker.new(@resource, 'show').is_authorized?
44
+ return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'show').is_authorized?
45
45
 
46
46
  getter = ForestLiana::ResourceGetter.new(@resource, params)
47
47
  getter.perform
@@ -56,7 +56,7 @@ module ForestLiana
56
56
 
57
57
  def create
58
58
  begin
59
- return head :forbidden unless PermissionsChecker.new(@resource, 'create').is_authorized?
59
+ return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'create').is_authorized?
60
60
 
61
61
  creator = ForestLiana::ResourceCreator.new(@resource, params)
62
62
  creator.perform
@@ -79,7 +79,7 @@ module ForestLiana
79
79
 
80
80
  def update
81
81
  begin
82
- return head :forbidden unless PermissionsChecker.new(@resource, 'update').is_authorized?
82
+ return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'update').is_authorized?
83
83
 
84
84
  updater = ForestLiana::ResourceUpdater.new(@resource, params)
85
85
  updater.perform
@@ -102,7 +102,7 @@ module ForestLiana
102
102
 
103
103
  def destroy
104
104
  begin
105
- return head :forbidden unless PermissionsChecker.new(@resource, 'delete').is_authorized?
105
+ return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'delete').is_authorized?
106
106
 
107
107
  @resource.destroy(params[:id])
108
108
  head :no_content
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "2.8.1"
2
+ VERSION = "2.8.2"
3
3
  end
Binary file
@@ -23086,3 +23086,448 @@ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an
23086
23086
  ForestLianaTest: test_truth
23087
23087
  ---------------------------
23088
23088
   (0.0ms) rollback transaction
23089
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
23090
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23091
+  (0.1ms)  SELECT sql
23092
+ FROM sqlite_master
23093
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
23094
+ UNION ALL
23095
+ SELECT sql
23096
+ FROM sqlite_temp_master
23097
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
23098
+ 
23099
+  (0.1ms) SELECT sql
23100
+ FROM sqlite_master
23101
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
23102
+ UNION ALL
23103
+ SELECT sql
23104
+ FROM sqlite_temp_master
23105
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
23106
+
23107
+  (0.1ms)  SELECT sql
23108
+ FROM sqlite_master
23109
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
23110
+ UNION ALL
23111
+ SELECT sql
23112
+ FROM sqlite_temp_master
23113
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
23114
+ 
23115
+  (0.1ms) SELECT sql
23116
+ FROM sqlite_master
23117
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
23118
+ UNION ALL
23119
+ SELECT sql
23120
+ FROM sqlite_temp_master
23121
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
23122
+
23123
+  (0.1ms)  SELECT sql
23124
+ FROM sqlite_master
23125
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
23126
+ UNION ALL
23127
+ SELECT sql
23128
+ FROM sqlite_temp_master
23129
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
23130
+ 
23131
+  (0.2ms) SELECT sql
23132
+ FROM sqlite_master
23133
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
23134
+ UNION ALL
23135
+ SELECT sql
23136
+ FROM sqlite_temp_master
23137
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
23138
+
23139
+  (0.1ms)  SELECT sql
23140
+ FROM sqlite_master
23141
+ WHERE name='index_trees_on_owner_id' AND type='index'
23142
+ UNION ALL
23143
+ SELECT sql
23144
+ FROM sqlite_temp_master
23145
+ WHERE name='index_trees_on_owner_id' AND type='index'
23146
+ 
23147
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23148
+  (0.2ms) begin transaction
23149
+ Fixture Delete (2.1ms) DELETE FROM "has_many_through_fields"
23150
+ Fixture Insert (0.5ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
23151
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
23152
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
23153
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
23154
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
23155
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
23156
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
23157
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
23158
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
23159
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
23160
+ Fixture Delete (0.9ms) DELETE FROM "string_fields"
23161
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
23162
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
23163
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
23164
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
23165
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
23166
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
23167
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
23168
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
23169
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
23170
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
23171
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
23172
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
23173
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
23174
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
23175
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
23176
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
23177
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
23178
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
23179
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
23180
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
23181
+ Fixture Insert (1.5ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
23182
+ Fixture Insert (0.3ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
23183
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
23184
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
23185
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
23186
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
23187
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
23188
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
23189
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
23190
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
23191
+ Fixture Delete (5.2ms) DELETE FROM "belongs_to_fields"
23192
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
23193
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
23194
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
23195
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
23196
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
23197
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
23198
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
23199
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
23200
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
23201
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
23202
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
23203
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
23204
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
23205
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
23206
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
23207
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
23208
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
23209
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
23210
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
23211
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
23212
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
23213
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
23214
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
23215
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
23216
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
23217
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
23218
+ Fixture Insert (0.3ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
23219
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
23220
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
23221
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
23222
+ Fixture Delete (3.5ms) DELETE FROM "trees"
23223
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2011-02-11 11:00:00.000000', '2011-02-11 11:00:00.000000')
23224
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2011-02-15 21:00:00.000000', '2011-02-15 21:00:00.000000')
23225
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2013-04-11 12:00:00.000000', '2013-04-11 12:00:00.000000')
23226
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2016-06-18 09:00:00.000000', '2016-06-18 09:00:00.000000')
23227
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
23228
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2018-06-18 18:50:04.000000', '2018-06-18 18:50:04.000000')
23229
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2018-06-18 18:50:04.000000', '2018-06-18 18:50:04.000000')
23230
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2018-06-18 18:50:04.000000', '2018-06-18 18:50:04.000000')
23231
+ Fixture Delete (0.4ms) DELETE FROM "has_one_fields"
23232
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
23233
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
23234
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
23235
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
23236
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
23237
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
23238
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
23239
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
23240
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
23241
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
23242
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
23243
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
23244
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
23245
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
23246
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
23247
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
23248
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
23249
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
23250
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
23251
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
23252
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
23253
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
23254
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
23255
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
23256
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
23257
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
23258
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
23259
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
23260
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
23261
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
23262
+ Fixture Delete (0.3ms) DELETE FROM "owners"
23263
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2017-05-30 09:00:00.000000', '2018-06-27 20:00:00.000000')
23264
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2018-05-02 09:00:00.000000', '2018-06-28 08:00:00.000000')
23265
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2016-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')
23266
+ Fixture Delete (0.6ms) DELETE FROM "has_many_fields"
23267
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
23268
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
23269
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
23270
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
23271
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
23272
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
23273
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
23274
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
23275
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
23276
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
23277
+ Fixture Delete (0.1ms) DELETE FROM "serialize_fields"
23278
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
23279
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')
23280
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
23281
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')
23282
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
23283
+  (2.1ms) commit transaction
23284
+  (0.1ms) begin transaction
23285
+ -------------------------------------------------------------------------------------------------
23286
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
23287
+ -------------------------------------------------------------------------------------------------
23288
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."status" = '1')
23289
+  (0.0ms) rollback transaction
23290
+  (0.0ms) begin transaction
23291
+ ----------------------------------------------------------------------------------------------------
23292
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
23293
+ ----------------------------------------------------------------------------------------------------
23294
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')
23295
+  (0.0ms) rollback transaction
23296
+  (0.0ms) begin transaction
23297
+ ----------------------------------------------------------------------------------------------------
23298
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
23299
+ ----------------------------------------------------------------------------------------------------
23300
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."checked" = 0)
23301
+  (0.1ms) rollback transaction
23302
+  (0.0ms) begin transaction
23303
+ -----------------------------------------------------------------------------
23304
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
23305
+ -----------------------------------------------------------------------------
23306
+  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
23307
+  (0.0ms) rollback transaction
23308
+  (0.0ms) begin transaction
23309
+ ---------------------------------------------------------------------------------------
23310
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
23311
+ ---------------------------------------------------------------------------------------
23312
+  (1.4ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") AS count_id, belongs_to_fields.has_one_field_id AS belongs_to_fields_has_one_field_id FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" GROUP BY belongs_to_fields.has_one_field_id ORDER BY count_id DESC
23313
+  (0.1ms) rollback transaction
23314
+  (0.0ms) begin transaction
23315
+ -----------------------------------------------------------------------------------------
23316
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
23317
+ -----------------------------------------------------------------------------------------
23318
+  (0.1ms) SELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC
23319
+  (0.0ms) rollback transaction
23320
+  (0.0ms) begin transaction
23321
+ -------------------------------------------------------------------------
23322
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
23323
+ -------------------------------------------------------------------------
23324
+  (0.1ms) rollback transaction
23325
+  (0.0ms) begin transaction
23326
+ ---------------------------------------------------------------------
23327
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
23328
+ ---------------------------------------------------------------------
23329
+  (0.0ms) rollback transaction
23330
+  (0.1ms) begin transaction
23331
+ -------------------------------------------------------------------------
23332
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
23333
+ -------------------------------------------------------------------------
23334
+  (0.0ms) rollback transaction
23335
+  (0.0ms) begin transaction
23336
+ ---------------------------------------------------------------------------
23337
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
23338
+ ---------------------------------------------------------------------------
23339
+  (0.0ms) rollback transaction
23340
+  (0.0ms) begin transaction
23341
+ --------------------------------------------------------------------------
23342
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
23343
+ --------------------------------------------------------------------------
23344
+  (0.1ms) rollback transaction
23345
+  (0.0ms) begin transaction
23346
+ ------------------------------------------------------------------------------------
23347
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
23348
+ ------------------------------------------------------------------------------------
23349
+  (0.3ms) rollback transaction
23350
+  (0.0ms) begin transaction
23351
+ --------------------------------------------------------
23352
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
23353
+ --------------------------------------------------------
23354
+  (0.1ms) rollback transaction
23355
+  (0.0ms) begin transaction
23356
+ ------------------------------------------------------------------------
23357
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
23358
+ ------------------------------------------------------------------------
23359
+  (0.1ms) rollback transaction
23360
+  (0.0ms) begin transaction
23361
+ --------------------------------------------------------------------------
23362
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
23363
+ --------------------------------------------------------------------------
23364
+  (0.1ms) rollback transaction
23365
+  (0.1ms) begin transaction
23366
+ -----------------------------------------------------------
23367
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
23368
+ -----------------------------------------------------------
23369
+  (0.1ms) rollback transaction
23370
+  (0.1ms) begin transaction
23371
+ ---------------------------------------------------------
23372
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
23373
+ ---------------------------------------------------------
23374
+  (0.1ms) rollback transaction
23375
+  (0.0ms) begin transaction
23376
+ ----------------------------------------------------------------------------------
23377
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
23378
+ ----------------------------------------------------------------------------------
23379
+  (0.0ms) rollback transaction
23380
+  (0.0ms) begin transaction
23381
+ ------------------------------------------------------------------------------------------------------
23382
+ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
23383
+ ------------------------------------------------------------------------------------------------------
23384
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
23385
+  (0.2ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)')
23386
+  (0.3ms) rollback transaction
23387
+  (0.1ms) begin transaction
23388
+ ----------------------------------------------------------
23389
+ ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
23390
+ ----------------------------------------------------------
23391
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" > '2018-06-18 18:49:04 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
23392
+  (0.3ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2018-06-18 18:49:04 UTC')
23393
+  (0.1ms) rollback transaction
23394
+  (0.1ms) begin transaction
23395
+ ------------------------------------------------------------
23396
+ ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
23397
+ ------------------------------------------------------------
23398
+ SQL (0.3ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" < '2018-06-18 18:49:05 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
23399
+  (0.1ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2018-06-18 18:49:05 UTC')
23400
+ Owner Load (0.2ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 2]]
23401
+  (0.1ms) rollback transaction
23402
+  (0.1ms) begin transaction
23403
+ ------------------------------------------------------------------------------------------------
23404
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
23405
+ ------------------------------------------------------------------------------------------------
23406
+ SQL (0.3ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
23407
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC')
23408
+  (0.1ms) rollback transaction
23409
+  (0.0ms) begin transaction
23410
+ ------------------------------------------------------------------------------------
23411
+ ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
23412
+ ------------------------------------------------------------------------------------
23413
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
23414
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
23415
+  (0.1ms) rollback transaction
23416
+  (0.0ms) begin transaction
23417
+ ----------------------------------------------------------------
23418
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
23419
+ ----------------------------------------------------------------
23420
+ SQL (0.3ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.field DESC LIMIT 10 OFFSET 0
23421
+  (0.3ms) SELECT COUNT(*) FROM "string_fields"
23422
+  (0.1ms) rollback transaction
23423
+  (0.0ms) begin transaction
23424
+ --------------------------------------------------------------------
23425
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
23426
+ --------------------------------------------------------------------
23427
+ SQL (0.6ms) SELECT "has_one_fields"."id" AS t0_r0, "has_one_fields"."checked" AS t0_r1, "has_one_fields"."status" AS t0_r2, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY "belongs_to_fields"."id" DESC LIMIT 10 OFFSET 0
23428
+  (0.0ms) SELECT COUNT(*) FROM "has_one_fields"
23429
+  (0.0ms) rollback transaction
23430
+  (0.0ms) begin transaction
23431
+ ----------------------------------------------------------------
23432
+ ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
23433
+ ----------------------------------------------------------------
23434
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
23435
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier')
23436
+  (0.0ms) rollback transaction
23437
+  (0.1ms) begin transaction
23438
+ -----------------------------------------------------------------
23439
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
23440
+ -----------------------------------------------------------------
23441
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
23442
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
23443
+  (0.1ms) rollback transaction
23444
+  (0.0ms) begin transaction
23445
+ -----------------------------------------------------------------
23446
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
23447
+ -----------------------------------------------------------------
23448
+ SQL (0.2ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
23449
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
23450
+  (0.1ms) rollback transaction
23451
+  (0.5ms) begin transaction
23452
+ -----------------------------------------------------------------------
23453
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
23454
+ -----------------------------------------------------------------------
23455
+ SQL (1.4ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0
23456
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
23457
+  (0.1ms) rollback transaction
23458
+  (0.1ms) begin transaction
23459
+ -------------------------------------------------------------------------------------------
23460
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
23461
+ -------------------------------------------------------------------------------------------
23462
+ SQL (0.3ms) SELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0
23463
+  (0.1ms) SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC')
23464
+  (0.1ms) rollback transaction
23465
+  (0.1ms) begin transaction
23466
+ -------------------------------------------------------------------------
23467
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
23468
+ -------------------------------------------------------------------------
23469
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
23470
+  (0.2ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') [["owner_id", 1]]
23471
+  (0.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
23472
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
23473
+  (0.1ms) rollback transaction
23474
+  (0.0ms) begin transaction
23475
+ -----------------------------------------------------------------------
23476
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
23477
+ -----------------------------------------------------------------------
23478
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
23479
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
23480
+  (0.4ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
23481
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0 [["owner_id", 1]]
23482
+  (0.1ms) rollback transaction
23483
+  (0.0ms) begin transaction
23484
+ ------------------------------------------------------------------
23485
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
23486
+ ------------------------------------------------------------------
23487
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
23488
+  (0.2ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
23489
+  (0.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
23490
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
23491
+  (0.1ms) rollback transaction
23492
+  (0.1ms) begin transaction
23493
+ ------------------------------------------------------------------------------------------------------
23494
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
23495
+ ------------------------------------------------------------------------------------------------------
23496
+ SerializeField Load (0.2ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
23497
+  (0.1ms) SAVEPOINT active_record_1
23498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23499
+  (0.0ms) rollback transaction
23500
+  (0.1ms) begin transaction
23501
+ ---------------------------------------------------------------------------------------------------
23502
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
23503
+ ---------------------------------------------------------------------------------------------------
23504
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
23505
+  (0.0ms) SAVEPOINT active_record_1
23506
+ SQL (0.4ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
23507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23508
+  (0.7ms) rollback transaction
23509
+  (0.1ms) begin transaction
23510
+ ------------------------------------------------------------------------------------------------------------
23511
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
23512
+ ------------------------------------------------------------------------------------------------------------
23513
+ SerializeField Load (0.3ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
23514
+  (0.1ms) SAVEPOINT active_record_1
23515
+ SQL (0.4ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
23516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23517
+  (0.6ms) rollback transaction
23518
+  (0.1ms) begin transaction
23519
+ ---------------------------------------------------------------------------------------------------------
23520
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
23521
+ ---------------------------------------------------------------------------------------------------------
23522
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
23523
+  (0.0ms) rollback transaction
23524
+  (0.0ms) begin transaction
23525
+ ---------------------------
23526
+ ForestLianaTest: test_truth
23527
+ ---------------------------
23528
+  (0.1ms) rollback transaction
23529
+  (0.0ms) begin transaction
23530
+ -----------------------------------
23531
+ ForestLiana::RouteTest: test_Routes
23532
+ -----------------------------------
23533
+  (0.2ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-15 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails