forest_liana 1.1.23 → 1.1.25

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: 1667b0443d65ca46628d3b67e05151ada194709e
4
- data.tar.gz: 06ff809ebc4268988858885178755da79bca03e7
3
+ metadata.gz: 08755b0919fd6c4650a1ee4f190b827b6fc05dd6
4
+ data.tar.gz: cd5019b911fbd05c079edb7fd082ed71a1d4a4a5
5
5
  SHA512:
6
- metadata.gz: cd67e80fa3f3c6cb3f1f179b754805e255ebf69bc2e5551c38e8e1a3859714beabb5a7b9319f188260b69a5559bb8795c0a4ffa6982888dba6690c2fdcef56b0
7
- data.tar.gz: 65eca07f4f24cc212e37f6fd4c8350bfc257a6364ea1f8df0b5384bfa679a0ba7ea453fcd24452c375c60d5ff503aab7a9ddf2ac01a46da8af57e764e6fde0f7
6
+ metadata.gz: e1ef1258fecaf84de85d65766e90899def5387e3724cbb6681dbea12d2ef28330ac2a771e1239f628d740bc8c87e90580aa7eda92eb0f4c17f75e2c182b5584e
7
+ data.tar.gz: 45c435f1415f2ad125526460af44867dcb29b336d3602951764a2e4dcd850e839b2b8782f903706d6055721f587cc0d8f0f3bbe83dd52fa72d2b64820f4f8263
@@ -10,7 +10,7 @@ module ForestLiana
10
10
  name = module_name if module_name
11
11
  name += class_name.demodulize
12
12
 
13
- ForestLiana.const_set("#{name}Serializer", serializer)
13
+ ForestLiana::UserSpace.const_set("#{name}Serializer", serializer)
14
14
  end
15
15
 
16
16
  def self.get_serializer_name(active_record_class)
@@ -18,11 +18,11 @@ module ForestLiana
18
18
  "ForestLiana::IntercomConversationSerializer"
19
19
  elsif active_record_class == ::Intercom::User
20
20
  "ForestLiana::IntercomAttributeSerializer"
21
- elsif active_record_class == Stripe::Charge
21
+ elsif active_record_class == ::Stripe::Charge
22
22
  "ForestLiana::StripePaymentSerializer"
23
- elsif active_record_class == Stripe::Card
23
+ elsif active_record_class == ::Stripe::Card
24
24
  "ForestLiana::StripeCardSerializer"
25
- elsif active_record_class == Stripe::Invoice
25
+ elsif active_record_class == ::Stripe::Invoice
26
26
  "ForestLiana::StripeInvoiceSerializer"
27
27
  elsif active_record_class == ForestLiana::Model::Stat
28
28
  "ForestLiana::StatSerializer"
@@ -37,7 +37,7 @@ module ForestLiana
37
37
  name = module_name if module_name
38
38
  name += class_name.demodulize
39
39
 
40
- "ForestLiana::#{name}Serializer"
40
+ "ForestLiana::UserSpace::#{name}Serializer"
41
41
  end
42
42
  end
43
43
 
@@ -126,6 +126,13 @@ module ForestLiana
126
126
  serializer.attribute(attr)
127
127
  end
128
128
 
129
+ # CarrierWave url attribute
130
+ if active_record_class.respond_to?(:mount_uploader)
131
+ active_record_class.uploaders.each do |key, value|
132
+ serializer.attribute(key) { |x| object.send(key).try(:url) }
133
+ end
134
+ end
135
+
129
136
  # Paperclip url attribute
130
137
  if active_record_class.respond_to?(:attachment_definitions)
131
138
  active_record_class.attachment_definitions.each do |key, value|
@@ -37,11 +37,13 @@ module ForestLiana
37
37
 
38
38
  def filter_param
39
39
  if @params[:filter]
40
- @params[:filter].each do |field, value|
40
+ @params[:filter].each do |field, values|
41
41
  next if association?(field)
42
- operator, value = OperatorValueParser.parse(value)
43
- @records = OperatorValueParser.add_where(@records, field, operator,
44
- value)
42
+ values.split(',').each do |value|
43
+ operator, value = OperatorValueParser.parse(value)
44
+ @records = OperatorValueParser.add_where(@records, field, operator,
45
+ value)
46
+ end
45
47
  end
46
48
  end
47
49
 
@@ -62,13 +64,15 @@ module ForestLiana
62
64
 
63
65
  def has_many_filter
64
66
  if @params[:filter]
65
- @params[:filter].each do |field, value|
67
+ @params[:filter].each do |field, values|
66
68
  next unless has_many_association?(field)
67
69
 
68
- if field.include?(':')
69
- @records = has_many_subfield_filter(field, value)
70
- else
71
- @records = has_many_field_filter(field, value)
70
+ values.split(',').each do |value|
71
+ if field.include?(':')
72
+ @records = has_many_subfield_filter(field, value)
73
+ else
74
+ @records = has_many_field_filter(field, value)
75
+ end
72
76
  end
73
77
  end
74
78
  end
@@ -131,9 +135,12 @@ module ForestLiana
131
135
 
132
136
  def belongs_to_filter
133
137
  if @params[:filter]
134
- @params[:filter].each do |field, value|
138
+ @params[:filter].each do |field, values|
135
139
  next unless belongs_to_association?(field)
136
- @records = belongs_to_subfield_filter(field, value)
140
+
141
+ values.split(',').each do |value|
142
+ @records = belongs_to_subfield_filter(field, value)
143
+ end
137
144
  end
138
145
  end
139
146
 
data/lib/forest_liana.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  require 'forest_liana/engine'
2
2
 
3
3
  module ForestLiana
4
+ module UserSpace
5
+ end
6
+
4
7
  mattr_accessor :jwt_signing_key
5
8
  mattr_accessor :integrations
6
9
  mattr_accessor :apimap
@@ -20,8 +20,9 @@ module ForestLiana
20
20
  end
21
21
 
22
22
  config.after_initialize do |app|
23
- return if Rails.env.test?
24
- Bootstraper.new(app).perform
23
+ unless Rails.env.test?
24
+ Bootstraper.new(app).perform
25
+ end
25
26
  end
26
27
  end
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.1.23"
2
+ VERSION = "1.1.25"
3
3
  end
Binary file
@@ -40776,3 +40776,249 @@ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
40776
40776
  ForestLianaTest: test_truth
40777
40777
  ---------------------------
40778
40778
   (0.0ms) rollback transaction
40779
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
40780
+  (0.1ms) begin transaction
40781
+ Fixture Delete (1.5ms) DELETE FROM "belongs_to_fields"
40782
+ Fixture Insert (0.7ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
40783
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
40784
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
40785
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
40786
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
40787
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
40788
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
40789
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
40790
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
40791
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
40792
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
40793
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
40794
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
40795
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
40796
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
40797
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
40798
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
40799
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
40800
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
40801
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
40802
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
40803
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
40804
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
40805
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
40806
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
40807
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
40808
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
40809
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
40810
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
40811
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
40812
+ Fixture Delete (0.8ms) DELETE FROM "has_many_fields"
40813
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
40814
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
40815
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
40816
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
40817
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
40818
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
40819
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
40820
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
40821
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
40822
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
40823
+ Fixture Delete (0.3ms) DELETE FROM "has_many_through_fields"
40824
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
40825
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
40826
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
40827
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
40828
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
40829
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
40830
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
40831
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
40832
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
40833
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
40834
+ Fixture Delete (0.3ms) DELETE FROM "has_one_fields"
40835
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (1)
40836
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (2)
40837
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (3)
40838
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (4)
40839
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (5)
40840
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (6)
40841
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id") VALUES (7)
40842
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (8)
40843
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (9)
40844
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (10)
40845
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (11)
40846
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (12)
40847
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (13)
40848
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (14)
40849
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (15)
40850
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (16)
40851
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (17)
40852
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (18)
40853
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (19)
40854
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (20)
40855
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (21)
40856
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (22)
40857
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (23)
40858
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (24)
40859
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (25)
40860
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (26)
40861
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (27)
40862
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (28)
40863
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (29)
40864
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id") VALUES (30)
40865
+ Fixture Delete (0.4ms) DELETE FROM "string_fields"
40866
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
40867
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
40868
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
40869
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
40870
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
40871
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
40872
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
40873
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
40874
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
40875
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
40876
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
40877
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
40878
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
40879
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
40880
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
40881
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
40882
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
40883
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
40884
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
40885
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
40886
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
40887
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
40888
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
40889
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
40890
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
40891
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
40892
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
40893
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
40894
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
40895
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
40896
+  (1.0ms) commit transaction
40897
+  (0.0ms) begin transaction
40898
+ ---------------------------
40899
+ ForestLianaTest: test_truth
40900
+ ---------------------------
40901
+  (0.0ms) rollback transaction
40902
+  (0.2ms) begin transaction
40903
+ ---------------------------------------------------------------------------
40904
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
40905
+ ---------------------------------------------------------------------------
40906
+  (0.1ms) rollback transaction
40907
+  (0.0ms) begin transaction
40908
+ ------------------------------------------------------------------------
40909
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
40910
+ ------------------------------------------------------------------------
40911
+  (0.1ms) rollback transaction
40912
+  (0.1ms) begin transaction
40913
+ ------------------------------------------------------------------------------------
40914
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
40915
+ ------------------------------------------------------------------------------------
40916
+  (0.1ms) rollback transaction
40917
+  (0.1ms) begin transaction
40918
+ -------------------------------------------------------------------------
40919
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
40920
+ -------------------------------------------------------------------------
40921
+  (0.0ms) rollback transaction
40922
+  (0.1ms) begin transaction
40923
+ --------------------------------------------------------
40924
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
40925
+ --------------------------------------------------------
40926
+  (0.0ms) rollback transaction
40927
+  (0.1ms) begin transaction
40928
+ -------------------------------------------------------------------------
40929
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
40930
+ -------------------------------------------------------------------------
40931
+  (0.0ms) rollback transaction
40932
+  (0.0ms) begin transaction
40933
+ --------------------------------------------------------------------------
40934
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
40935
+ --------------------------------------------------------------------------
40936
+  (0.0ms) rollback transaction
40937
+  (0.0ms) begin transaction
40938
+ --------------------------------------------------------------------------
40939
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
40940
+ --------------------------------------------------------------------------
40941
+  (0.1ms) rollback transaction
40942
+  (0.0ms) begin transaction
40943
+ ---------------------------------------------------------------------
40944
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
40945
+ ---------------------------------------------------------------------
40946
+  (0.0ms) rollback transaction
40947
+  (0.0ms) begin transaction
40948
+ ----------------------------------------------------------------------------------
40949
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
40950
+ ----------------------------------------------------------------------------------
40951
+  (0.1ms) rollback transaction
40952
+  (0.0ms) begin transaction
40953
+ ---------------------------------------------------------
40954
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
40955
+ ---------------------------------------------------------
40956
+  (0.1ms) rollback transaction
40957
+  (0.1ms) begin transaction
40958
+ -----------------------------------------------------------
40959
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
40960
+ -----------------------------------------------------------
40961
+  (0.1ms) rollback transaction
40962
+  (0.0ms) begin transaction
40963
+ -----------------------------------------------------------------------------
40964
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_through_association
40965
+ -----------------------------------------------------------------------------
40966
+ HasManyThroughField Load (0.5ms) SELECT has_many_through_fields.*,
40967
+ COUNT(belongs_to_fields.id)
40968
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
40969
+ HasManyField Load (0.2ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
40970
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
40971
+ HasManyThroughField Load (0.1ms) SELECT has_many_through_fields.*,
40972
+ COUNT(belongs_to_fields.id)
40973
+ belongs_to_fields_has_many_count FROM "has_many_through_fields" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."has_many_through_field_id" = "has_many_through_fields"."id" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_through_fields.id ORDER BY belongs_to_fields_has_many_count DESC
40974
+ HasManyField Load (0.1ms) SELECT "has_many_fields".* FROM "has_many_fields" WHERE "has_many_fields"."has_many_through_field_id" IN (2, 3, 1, 4, 5, 6, 7, 8, 9, 10)
40975
+ BelongsToField Load (0.1ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (6, 8, 5)
40976
+  (0.1ms) rollback transaction
40977
+  (0.0ms) begin transaction
40978
+ ---------------------------------------------------------------------
40979
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_many_association
40980
+ ---------------------------------------------------------------------
40981
+ HasManyField Load (0.2ms) SELECT has_many_fields.*,
40982
+ COUNT(belongs_to_fields.id)
40983
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC LIMIT 10 OFFSET 0
40984
+ BelongsToField Load (0.1ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
40985
+ HasManyField Load (0.2ms) SELECT has_many_fields.*,
40986
+ COUNT(belongs_to_fields.id)
40987
+ belongs_to_fields_has_many_count FROM "has_many_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_many_field_id" = "has_many_fields"."id" GROUP BY has_many_fields.id ORDER BY belongs_to_fields_has_many_count DESC
40988
+ BelongsToField Load (0.2ms) SELECT "belongs_to_fields".* FROM "belongs_to_fields" WHERE "belongs_to_fields"."has_many_field_id" IN (7, 1, 2, 3, 4, 5, 6, 9, 10, 8)
40989
+  (0.1ms) rollback transaction
40990
+  (0.1ms) begin transaction
40991
+ -----------------------------------------------------------------------
40992
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
40993
+ -----------------------------------------------------------------------
40994
+ SQL (0.3ms) 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 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC LIMIT 10 OFFSET 0
40995
+ SQL (0.2ms) 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 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" ORDER BY has_one_fields.id ASC
40996
+  (0.1ms) rollback transaction
40997
+  (0.1ms) begin transaction
40998
+ -----------------------------------------------------------------
40999
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
41000
+ -----------------------------------------------------------------
41001
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0
41002
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
41003
+  (0.1ms) rollback transaction
41004
+  (0.1ms) begin transaction
41005
+ --------------------------------------------------------------------
41006
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
41007
+ --------------------------------------------------------------------
41008
+ SQL (0.3ms) SELECT "has_one_fields"."id" AS t0_r0, "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 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC LIMIT 10 OFFSET 0
41009
+ SQL (0.2ms) SELECT "has_one_fields"."id" AS t0_r0, "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 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" ORDER BY belongs_to_fields.id DESC
41010
+  (0.1ms) rollback transaction
41011
+  (0.0ms) begin transaction
41012
+ -----------------------------------------------------------------
41013
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
41014
+ -----------------------------------------------------------------
41015
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
41016
+ StringField Load (0.1ms) SELECT "string_fields".* FROM "string_fields" ORDER BY string_fields.id DESC
41017
+  (0.0ms) rollback transaction
41018
+  (0.1ms) begin transaction
41019
+ ----------------------------------------------------------------
41020
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
41021
+ ----------------------------------------------------------------
41022
+ StringField Load (0.2ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC LIMIT 10 OFFSET 0
41023
+ StringField Load (0.3ms) SELECT "string_fields".* FROM "string_fields" ORDER BY field DESC
41024
+  (0.1ms) 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: 1.1.23
4
+ version: 1.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails