forest_liana 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/router.rb +3 -6
- data/app/serializers/forest_liana/serializer_factory.rb +8 -13
- data/app/services/forest_liana/controller_factory.rb +10 -13
- data/lib/forest_liana.rb +5 -1
- data/lib/forest_liana/collection.rb +6 -12
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +438 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdcfc1dfdb58006d7eca833c02395c326b1a78c2
|
4
|
+
data.tar.gz: 2d5d491ebb0b47257a96b66d5f2952c6beef391c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ebafba446d1151c41761baf20df2e5fcf90930fe8ee883f03652ec693fa1fc1ecd35ea09d839f2d18141d26f00e4e8e0b98082b88eecbdac72a0eaf11636c6
|
7
|
+
data.tar.gz: a550862adbbe92846b88f7f8e87dd75262961b9b6077f7a0eb07861b1cdbd969daf01e1867d792d5c182dee978df75873c9a21b8b2dbecdf5fc1042ccf7804d4
|
@@ -4,13 +4,10 @@ class ForestLiana::Router
|
|
4
4
|
resource = ForestLiana::SchemaUtils.find_model_from_collection_name(params[:collection])
|
5
5
|
|
6
6
|
begin
|
7
|
-
|
8
|
-
|
7
|
+
component_prefix = ForestLiana.component_prefix(resource)
|
8
|
+
controller_name = "#{component_prefix}Controller"
|
9
9
|
|
10
|
-
|
11
|
-
name += class_name.demodulize
|
12
|
-
|
13
|
-
controller = "ForestLiana::UserSpace::#{name}Controller".constantize
|
10
|
+
controller = "ForestLiana::UserSpace::#{controller_name}".constantize
|
14
11
|
action = nil
|
15
12
|
|
16
13
|
case env['REQUEST_METHOD']
|
@@ -4,12 +4,7 @@ module ForestLiana
|
|
4
4
|
class SerializerFactory
|
5
5
|
|
6
6
|
def self.define_serializer(active_record_class, serializer)
|
7
|
-
|
8
|
-
module_name = class_name.deconstantize
|
9
|
-
|
10
|
-
name = module_name if module_name
|
11
|
-
name += class_name.demodulize
|
12
|
-
serializer_name = "#{name}Serializer"
|
7
|
+
serializer_name = self.build_serializer_name(active_record_class)
|
13
8
|
|
14
9
|
# NOTICE: Create the serializer in the UserSpace to avoid conflicts with
|
15
10
|
# serializer created from integrations, actions, segments, etc.
|
@@ -47,13 +42,8 @@ module ForestLiana
|
|
47
42
|
elsif active_record_class == ForestLiana::Model::Segment
|
48
43
|
"ForestLiana::SegmentSerializer"
|
49
44
|
else
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
name = module_name if module_name
|
54
|
-
name += class_name.demodulize
|
55
|
-
|
56
|
-
"ForestLiana::UserSpace::#{name}Serializer"
|
45
|
+
serializer_name = self.build_serializer_name(active_record_class)
|
46
|
+
"ForestLiana::UserSpace::#{serializer_name}"
|
57
47
|
end
|
58
48
|
end
|
59
49
|
|
@@ -258,6 +248,11 @@ module ForestLiana
|
|
258
248
|
|
259
249
|
private
|
260
250
|
|
251
|
+
def self.build_serializer_name(active_record_class)
|
252
|
+
component_prefix = ForestLiana.component_prefix(active_record_class)
|
253
|
+
serializer_name = "#{component_prefix}Serializer"
|
254
|
+
end
|
255
|
+
|
261
256
|
def key(active_record_class)
|
262
257
|
active_record_class.to_s.tableize.to_sym
|
263
258
|
end
|
@@ -2,12 +2,7 @@ module ForestLiana
|
|
2
2
|
class ControllerFactory
|
3
3
|
|
4
4
|
def self.define_controller(active_record_class, service)
|
5
|
-
|
6
|
-
module_name = class_name.deconstantize
|
7
|
-
|
8
|
-
name = module_name if module_name
|
9
|
-
name += class_name.demodulize
|
10
|
-
controller_name = "#{name}Controller"
|
5
|
+
controller_name = self.build_controller_name(active_record_class)
|
11
6
|
|
12
7
|
unless ForestLiana::UserSpace.const_defined?(controller_name)
|
13
8
|
ForestLiana::UserSpace.const_set(controller_name, service)
|
@@ -15,13 +10,8 @@ module ForestLiana
|
|
15
10
|
end
|
16
11
|
|
17
12
|
def self.get_controller_name(active_record_class)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
name = module_name if module_name
|
22
|
-
name += class_name.demodulize
|
23
|
-
|
24
|
-
"ForestLiana::UserSpace::#{name}Controller"
|
13
|
+
controller_name = self.build_controller_name(active_record_class)
|
14
|
+
"ForestLiana::UserSpace::#{controller_name}"
|
25
15
|
end
|
26
16
|
|
27
17
|
def controller_for(active_record_class)
|
@@ -30,5 +20,12 @@ module ForestLiana
|
|
30
20
|
ForestLiana::ControllerFactory.define_controller(active_record_class, controller)
|
31
21
|
controller
|
32
22
|
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def self.build_controller_name(active_record_class)
|
27
|
+
component_prefix = ForestLiana.component_prefix(active_record_class)
|
28
|
+
"#{component_prefix}Controller"
|
29
|
+
end
|
33
30
|
end
|
34
31
|
end
|
data/lib/forest_liana.rb
CHANGED
@@ -43,11 +43,15 @@ module ForestLiana
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.name_for(model)
|
46
|
-
self.names_overriden[model] || model.try(:name)
|
46
|
+
self.names_overriden[model] || model.try(:name).gsub('::', '__')
|
47
47
|
end
|
48
48
|
|
49
49
|
# TODO: Remove once lianas prior to 2.0.0 are not supported anymore.
|
50
50
|
def self.name_old_for(model)
|
51
51
|
self.names_old_overriden[model] || model.try(:table_name)
|
52
52
|
end
|
53
|
+
|
54
|
+
def self.component_prefix(model)
|
55
|
+
self.name_for(model).classify
|
56
|
+
end
|
53
57
|
end
|
@@ -160,25 +160,19 @@ module ForestLiana::Collection
|
|
160
160
|
if smart_collection?
|
161
161
|
"#{collection_name.to_s.classify}Serializer"
|
162
162
|
else
|
163
|
-
|
164
|
-
|
163
|
+
component_prefix = ForestLiana.component_prefix(active_record_class)
|
164
|
+
serializer_name = "#{component_prefix}Serializer"
|
165
165
|
|
166
|
-
|
167
|
-
name += class_name.demodulize
|
168
|
-
|
169
|
-
"ForestLiana::UserSpace::#{name}Serializer"
|
166
|
+
"ForestLiana::UserSpace::#{serializer_name}"
|
170
167
|
end
|
171
168
|
end
|
172
169
|
|
173
170
|
def serializer_name_for_reference(reference)
|
174
171
|
association = opts[:reference].split('.').first
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
name = module_name if module_name
|
179
|
-
name += class_name.demodulize
|
172
|
+
component_prefix = association.classify
|
173
|
+
serializer_name = "#{component_prefix}Serializer"
|
180
174
|
|
181
|
-
"ForestLiana::UserSpace::#{
|
175
|
+
"ForestLiana::UserSpace::#{serializer_name}"
|
182
176
|
end
|
183
177
|
|
184
178
|
def smart_collection?
|
data/lib/forest_liana/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -130790,3 +130790,441 @@ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribut
|
|
130790
130790
|
[1m[35mSQL (0.3ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
|
130791
130791
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
130792
130792
|
[1m[35m (0.4ms)[0m rollback transaction
|
130793
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
130794
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
130795
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
130796
|
+
FROM sqlite_master
|
130797
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
130798
|
+
UNION ALL
|
130799
|
+
SELECT sql
|
130800
|
+
FROM sqlite_temp_master
|
130801
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
130802
|
+
[0m
|
130803
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
130804
|
+
FROM sqlite_master
|
130805
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
130806
|
+
UNION ALL
|
130807
|
+
SELECT sql
|
130808
|
+
FROM sqlite_temp_master
|
130809
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
130810
|
+
|
130811
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
130812
|
+
FROM sqlite_master
|
130813
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
130814
|
+
UNION ALL
|
130815
|
+
SELECT sql
|
130816
|
+
FROM sqlite_temp_master
|
130817
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
130818
|
+
[0m
|
130819
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
130820
|
+
FROM sqlite_master
|
130821
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
130822
|
+
UNION ALL
|
130823
|
+
SELECT sql
|
130824
|
+
FROM sqlite_temp_master
|
130825
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
130826
|
+
|
130827
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
130828
|
+
FROM sqlite_master
|
130829
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
130830
|
+
UNION ALL
|
130831
|
+
SELECT sql
|
130832
|
+
FROM sqlite_temp_master
|
130833
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
130834
|
+
[0m
|
130835
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
130836
|
+
FROM sqlite_master
|
130837
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
130838
|
+
UNION ALL
|
130839
|
+
SELECT sql
|
130840
|
+
FROM sqlite_temp_master
|
130841
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
130842
|
+
|
130843
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
130844
|
+
FROM sqlite_master
|
130845
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
130846
|
+
UNION ALL
|
130847
|
+
SELECT sql
|
130848
|
+
FROM sqlite_temp_master
|
130849
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
130850
|
+
[0m
|
130851
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
130852
|
+
[1m[35m (0.8ms)[0m begin transaction
|
130853
|
+
[1m[36mFixture Delete (4.3ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
130854
|
+
[1m[35mFixture Insert (3.8ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
130855
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)[0m
|
130856
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
130857
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
130858
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
130859
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
130860
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
130861
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
130862
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
130863
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
130864
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
130865
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
130866
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
130867
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)[0m
|
130868
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
130869
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)[0m
|
130870
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
130871
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)[0m
|
130872
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
130873
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)[0m
|
130874
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
130875
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
130876
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
130877
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)[0m
|
130878
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
130879
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)[0m
|
130880
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
130881
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
130882
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
130883
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
130884
|
+
[1m[35mFixture Delete (3.9ms)[0m DELETE FROM "has_many_fields"
|
130885
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
130886
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
130887
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
130888
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
130889
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
130890
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
130891
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
130892
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
130893
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
130894
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
130895
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
130896
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
130897
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
130898
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
130899
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
130900
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
130901
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
130902
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
130903
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
130904
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
130905
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
130906
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "has_one_fields"
|
130907
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)[0m
|
130908
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
|
130909
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)[0m
|
130910
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
|
130911
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)[0m
|
130912
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
|
130913
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)[0m
|
130914
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
|
130915
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)[0m
|
130916
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
|
130917
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)[0m
|
130918
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
|
130919
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)[0m
|
130920
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
|
130921
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)[0m
|
130922
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
|
130923
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)[0m
|
130924
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
|
130925
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)[0m
|
130926
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
|
130927
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)[0m
|
130928
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
|
130929
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)[0m
|
130930
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
|
130931
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)[0m
|
130932
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
|
130933
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)[0m
|
130934
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
|
130935
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)[0m
|
130936
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
|
130937
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "owners"[0m
|
130938
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2016-05-30 09:00:00.000000', '2017-06-27 20:00:00.000000')
|
130939
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2017-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
130940
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2015-05-02 09:00:00.000000', '2016-06-28 08:00:00.000000')
|
130941
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
130942
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
130943
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
130944
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
130945
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
130946
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
130947
|
+
[1m[36mFixture Delete (6.6ms)[0m [1mDELETE FROM "string_fields"[0m
|
130948
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
130949
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
130950
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
130951
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
130952
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
130953
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
130954
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
130955
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
130956
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
130957
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
130958
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
130959
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
130960
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
130961
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
130962
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
130963
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
130964
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
130965
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
130966
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
130967
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
130968
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
130969
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
130970
|
+
[1m[35mFixture Insert (0.7ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
130971
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
130972
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
130973
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
130974
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
130975
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
130976
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
130977
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
130978
|
+
[1m[35mFixture Delete (1.3ms)[0m DELETE FROM "trees"
|
130979
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2010-02-11 11:00:00.000000', '2010-02-11 11:00:00.000000')[0m
|
130980
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2010-02-15 21:00:00.000000', '2010-02-15 21:00:00.000000')
|
130981
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2012-04-11 12:00:00.000000', '2012-04-11 12:00:00.000000')[0m
|
130982
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
|
130983
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2014-06-18 09:00:00.000000', '2014-06-18 09:00:00.000000')[0m
|
130984
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-12-11 18:34:30.000000', '2017-12-11 18:34:30.000000')
|
130985
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-12-11 18:34:30.000000', '2017-12-11 18:34:30.000000')[0m
|
130986
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-12-11 18:34:30.000000', '2017-12-11 18:34:30.000000')
|
130987
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
130988
|
+
[1m[35m (0.1ms)[0m begin transaction
|
130989
|
+
-------------------------------------------------------------------------------------------------
|
130990
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
130991
|
+
-------------------------------------------------------------------------------------------------
|
130992
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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')[0m
|
130993
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
130994
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
130995
|
+
----------------------------------------------------------------------------------------------------
|
130996
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
130997
|
+
----------------------------------------------------------------------------------------------------
|
130998
|
+
[1m[35m (0.4ms)[0m 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')
|
130999
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131000
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131001
|
+
-----------------------------------------------------------------------------
|
131002
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
131003
|
+
-----------------------------------------------------------------------------
|
131004
|
+
[1m[36m (0.6ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)[0m
|
131005
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131006
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131007
|
+
----------------------------------------------------------------------------------------------------
|
131008
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
131009
|
+
----------------------------------------------------------------------------------------------------
|
131010
|
+
[1m[35m (0.4ms)[0m 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)
|
131011
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131012
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131013
|
+
-----------------------------------------------------------------------------------------
|
131014
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
131015
|
+
-----------------------------------------------------------------------------------------
|
131016
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC[0m
|
131017
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
131018
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131019
|
+
---------------------------------------------------------------------------------------
|
131020
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
131021
|
+
---------------------------------------------------------------------------------------
|
131022
|
+
[1m[35m (1.5ms)[0m 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
|
131023
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131024
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131025
|
+
---------------------------
|
131026
|
+
ForestLianaTest: test_truth
|
131027
|
+
---------------------------
|
131028
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131029
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131030
|
+
---------------------------------------------------------------------
|
131031
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
131032
|
+
---------------------------------------------------------------------
|
131033
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131034
|
+
[1m[35m (0.3ms)[0m begin transaction
|
131035
|
+
--------------------------------------------------------------------------
|
131036
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
131037
|
+
--------------------------------------------------------------------------
|
131038
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131039
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131040
|
+
-------------------------------------------------------------------------
|
131041
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
131042
|
+
-------------------------------------------------------------------------
|
131043
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131044
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131045
|
+
---------------------------------------------------------
|
131046
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
131047
|
+
---------------------------------------------------------
|
131048
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131049
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131050
|
+
------------------------------------------------------------------------
|
131051
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
131052
|
+
------------------------------------------------------------------------
|
131053
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131054
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131055
|
+
-----------------------------------------------------------
|
131056
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
131057
|
+
-----------------------------------------------------------
|
131058
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131060
|
+
--------------------------------------------------------------------------
|
131061
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
131062
|
+
--------------------------------------------------------------------------
|
131063
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
131064
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131065
|
+
---------------------------------------------------------------------------
|
131066
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
131067
|
+
---------------------------------------------------------------------------
|
131068
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131069
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131070
|
+
--------------------------------------------------------
|
131071
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
131072
|
+
--------------------------------------------------------
|
131073
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
131074
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131075
|
+
----------------------------------------------------------------------------------
|
131076
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
131077
|
+
----------------------------------------------------------------------------------
|
131078
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
131079
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131080
|
+
------------------------------------------------------------------------------------
|
131081
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
131082
|
+
------------------------------------------------------------------------------------
|
131083
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
131084
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131085
|
+
-------------------------------------------------------------------------
|
131086
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
131087
|
+
-------------------------------------------------------------------------
|
131088
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131089
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131090
|
+
-----------------------------------
|
131091
|
+
ForestLiana::RouteTest: test_Routes
|
131092
|
+
-----------------------------------
|
131093
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
131094
|
+
[1m[35m (0.3ms)[0m begin transaction
|
131095
|
+
------------------------------------------------------------------------------------------------------
|
131096
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
131097
|
+
------------------------------------------------------------------------------------------------------
|
131098
|
+
[1m[36mSerializeField Load (0.3ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
131099
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
131100
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
131101
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131102
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131103
|
+
------------------------------------------------------------------------------------------------------------
|
131104
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
131105
|
+
------------------------------------------------------------------------------------------------------------
|
131106
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
131107
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
131108
|
+
[1m[35mSQL (1.6ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
|
131109
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
131110
|
+
[1m[35m (2.4ms)[0m rollback transaction
|
131111
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
131112
|
+
---------------------------------------------------------------------------------------------------------
|
131113
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
131114
|
+
---------------------------------------------------------------------------------------------------------
|
131115
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
131116
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131117
|
+
[1m[35m (0.4ms)[0m begin transaction
|
131118
|
+
---------------------------------------------------------------------------------------------------
|
131119
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
131120
|
+
---------------------------------------------------------------------------------------------------
|
131121
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
131122
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
131123
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
131124
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
131125
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
131126
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131127
|
+
--------------------------------------------------------------------
|
131128
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
131129
|
+
--------------------------------------------------------------------
|
131130
|
+
[1m[36mSQL (0.7ms)[0m [1mSELECT "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[0m
|
131131
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "has_one_fields"
|
131132
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131133
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131134
|
+
--------------------------------------------------------------------
|
131135
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
131136
|
+
--------------------------------------------------------------------
|
131137
|
+
[1m[36mOwner Load (0.3ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
131138
|
+
[1m[35mSQL (0.2ms)[0m 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" = ? [["owner_id", 1]]
|
131139
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
131140
|
+
[1m[35mSQL (0.6ms)[0m 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]]
|
131141
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
131142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131143
|
+
-----------------------------------------------------------------
|
131144
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
131145
|
+
-----------------------------------------------------------------
|
131146
|
+
[1m[36mSQL (0.4ms)[0m [1mSELECT "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[0m
|
131147
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "string_fields"
|
131148
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131149
|
+
[1m[35m (0.2ms)[0m begin transaction
|
131150
|
+
----------------------------------------------------------------
|
131151
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
131152
|
+
----------------------------------------------------------------
|
131153
|
+
[1m[36mSQL (0.3ms)[0m [1mSELECT "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[0m
|
131154
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
131155
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131156
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131157
|
+
------------------------------------------------------------------------------------------------
|
131158
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
131159
|
+
------------------------------------------------------------------------------------------------
|
131160
|
+
[1m[36mSQL (0.4ms)[0m [1mSELECT "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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
131161
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')
|
131162
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131163
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131164
|
+
-------------------------------------------------------------------------
|
131165
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
131166
|
+
-------------------------------------------------------------------------
|
131167
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
131168
|
+
[1m[35mSQL (2.5ms)[0m 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 [["owner_id", 1]]
|
131169
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
131170
|
+
[1m[35mSQL (0.4ms)[0m 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]]
|
131171
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
131172
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131173
|
+
-----------------------------------------------------------
|
131174
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
131175
|
+
-----------------------------------------------------------
|
131176
|
+
[1m[36mSQL (3.7ms)[0m [1mSELECT "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" < '2017-12-11 18:33:31 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
131177
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-12-11 18:33:31 UTC')
|
131178
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
131179
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131180
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
131181
|
+
------------------------------------------------------------------------------------
|
131182
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
131183
|
+
------------------------------------------------------------------------------------
|
131184
|
+
[1m[35mSQL (0.3ms)[0m 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
|
131185
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')[0m
|
131186
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131187
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131188
|
+
-----------------------------------------------------------------
|
131189
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
131190
|
+
-----------------------------------------------------------------
|
131191
|
+
[1m[35mSQL (1.9ms)[0m 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
|
131192
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
131193
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131194
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131195
|
+
------------------------------------------------------------------------------------------------------
|
131196
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
131197
|
+
------------------------------------------------------------------------------------------------------
|
131198
|
+
[1m[35mSQL (0.3ms)[0m 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
|
131199
|
+
[1m[36m (1.3ms)[0m [1mSELECT 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)')[0m
|
131200
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
131201
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
131202
|
+
-------------------------------------------------------------------------------------------
|
131203
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
131204
|
+
-------------------------------------------------------------------------------------------
|
131205
|
+
[1m[35mSQL (0.6ms)[0m 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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0
|
131206
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
131207
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131209
|
+
----------------------------------------------------------------
|
131210
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
131211
|
+
----------------------------------------------------------------
|
131212
|
+
[1m[35mSQL (0.4ms)[0m 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
|
131213
|
+
[1m[36m (0.8ms)[0m [1mSELECT 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')[0m
|
131214
|
+
[1m[35m (9.9ms)[0m rollback transaction
|
131215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131216
|
+
---------------------------------------------------------------------------
|
131217
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
131218
|
+
---------------------------------------------------------------------------
|
131219
|
+
[1m[35mOwner Load (0.2ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
131220
|
+
[1m[36mSQL (5.8ms)[0m [1mSELECT "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%')[0m [["owner_id", 1]]
|
131221
|
+
[1m[35m (0.3ms)[0m 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]]
|
131222
|
+
[1m[36mSQL (0.4ms)[0m [1mSELECT "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[0m [["owner_id", 1]]
|
131223
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131224
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131225
|
+
-----------------------------------------------------------------------
|
131226
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
131227
|
+
-----------------------------------------------------------------------
|
131228
|
+
[1m[35mSQL (0.8ms)[0m 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
|
131229
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "belongs_to_fields"[0m
|
131230
|
+
[1m[35m (7.1ms)[0m 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.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|