forest_liana 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ module ForestLiana
38
38
  test 'belongsTo relationship' do
39
39
  schema = SchemaAdapter.new(BelongsToField).perform
40
40
  assert schema.fields.include?({
41
- field: 'has_one_field',
41
+ field: :has_one_field,
42
42
  type: 'Number',
43
43
  reference: 'has_one_fields.id',
44
44
  inverseOf: 'belongs_to_field'
@@ -78,7 +78,7 @@ module ForestLiana
78
78
  test 'belongsTo relationhip with specified class_name' do
79
79
  schema = SchemaAdapter.new(BelongsToClassNameField).perform
80
80
  assert schema.fields.include?({
81
- field: 'foo',
81
+ field: :foo,
82
82
  type: 'Number',
83
83
  reference: 'has_one_fields.id',
84
84
  inverseOf: 'belongs_to_class_name_field'
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.5.7
4
+ version: 1.5.8
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-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -267,7 +267,6 @@ files:
267
267
  - test/dummy/db/migrate/20160628173505_add_timestamps.rb
268
268
  - test/dummy/db/schema.rb
269
269
  - test/dummy/db/test.sqlite3
270
- - test/dummy/log/development.log
271
270
  - test/dummy/log/test.log
272
271
  - test/dummy/public/404.html
273
272
  - test/dummy/public/422.html
@@ -373,7 +372,6 @@ test_files:
373
372
  - test/dummy/db/migrate/20160628173505_add_timestamps.rb
374
373
  - test/dummy/db/schema.rb
375
374
  - test/dummy/db/test.sqlite3
376
- - test/dummy/log/development.log
377
375
  - test/dummy/log/test.log
378
376
  - test/dummy/public/404.html
379
377
  - test/dummy/public/422.html
@@ -1,180 +0,0 @@
1
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.3ms) select sqlite_version(*)
3
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateDateField (20150608130516)
6
-  (0.1ms) begin transaction
7
-  (0.8ms) CREATE TABLE "date_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" date)
8
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608130516"]]
9
-  (1.5ms) commit transaction
10
- Migrating to CreateIntegerField (20150608131430)
11
-  (0.1ms) begin transaction
12
-  (0.3ms) CREATE TABLE "integer_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" integer)
13
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131430"]]
14
-  (0.7ms) commit transaction
15
- Migrating to CreateDecimalField (20150608131603)
16
-  (0.1ms) begin transaction
17
-  (0.3ms) CREATE TABLE "decimal_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" decimal)
18
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131603"]]
19
-  (0.6ms) commit transaction
20
- Migrating to CreateFloatField (20150608131610)
21
-  (0.1ms) begin transaction
22
-  (0.3ms) CREATE TABLE "float_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" float)
23
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131610"]]
24
-  (0.8ms) commit transaction
25
- Migrating to CreateBooleanField (20150608132159)
26
-  (0.1ms) begin transaction
27
-  (0.5ms) CREATE TABLE "boolean_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" boolean)
28
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608132159"]]
29
-  (0.7ms) commit transaction
30
- Migrating to CreateStringField (20150608132621)
31
-  (0.1ms) begin transaction
32
-  (0.3ms) CREATE TABLE "string_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar)
33
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608132621"]]
34
-  (0.8ms) commit transaction
35
- Migrating to CreateBelongsToField (20150608133038)
36
-  (0.1ms) begin transaction
37
-  (0.4ms) CREATE TABLE "belongs_to_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer)
38
-  (0.1ms) CREATE INDEX "index_belongs_to_fields_on_has_one_field_id" ON "belongs_to_fields" ("has_one_field_id")
39
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608133038"]]
40
-  (0.8ms) commit transaction
41
- Migrating to CreateHasOneField (20150608133044)
42
-  (0.1ms) begin transaction
43
-  (0.4ms) CREATE TABLE "has_one_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
44
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608133044"]]
45
-  (0.6ms) commit transaction
46
- Migrating to CreateHasManyField (20150608150016)
47
-  (0.1ms) begin transaction
48
-  (0.3ms) CREATE TABLE "has_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
49
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608150016"]]
50
-  (0.7ms) commit transaction
51
- Migrating to CreateBelongsToClassNameField (20150609114636)
52
-  (0.1ms) begin transaction
53
-  (0.7ms) CREATE TABLE "belongs_to_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer) 
54
-  (0.1ms) CREATE INDEX "index_belongs_to_class_name_fields_on_foo_id" ON "belongs_to_class_name_fields" ("foo_id")
55
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150609114636"]]
56
-  (0.8ms) commit transaction
57
- Migrating to CreateHasAndBelongsToManyField (20150612112520)
58
-  (0.1ms) begin transaction
59
-  (0.5ms) CREATE TABLE "has_and_belongs_to_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
60
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150612112520"]]
61
-  (0.9ms) commit transaction
62
- Migrating to CreatePolymorphicField (20150616150629)
63
-  (0.1ms) begin transaction
64
-  (0.4ms) CREATE TABLE "polymorphic_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer)
65
-  (0.2ms) CREATE INDEX "index_polymorphic_fields_on_has_one_field_id" ON "polymorphic_fields" ("has_one_field_id")
66
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150616150629"]]
67
-  (0.7ms) commit transaction
68
- Migrating to CreateHasManyClassNameField (20150623115554)
69
-  (0.0ms) begin transaction
70
-  (0.3ms) CREATE TABLE "has_many_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
71
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150623115554"]]
72
-  (0.7ms) commit transaction
73
- Migrating to CreateHasManyThroughField (20150814081918)
74
-  (0.0ms) begin transaction
75
-  (0.3ms) CREATE TABLE "has_many_through_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
76
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150814081918"]]
77
-  (0.6ms) commit transaction
78
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
79
-  (0.2ms)  SELECT sql
80
- FROM sqlite_master
81
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
82
- UNION ALL
83
- SELECT sql
84
- FROM sqlite_temp_master
85
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
86
- 
87
-  (0.5ms) SELECT sql
88
- FROM sqlite_master
89
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
90
- UNION ALL
91
- SELECT sql
92
- FROM sqlite_temp_master
93
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
94
-
95
-  (0.1ms)  SELECT sql
96
- FROM sqlite_master
97
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
98
- UNION ALL
99
- SELECT sql
100
- FROM sqlite_temp_master
101
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
102
- 
103
- ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
104
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
105
-  (0.1ms)  SELECT sql
106
- FROM sqlite_master
107
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
108
- UNION ALL
109
- SELECT sql
110
- FROM sqlite_temp_master
111
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
112
- 
113
-  (0.1ms) SELECT sql
114
- FROM sqlite_master
115
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
116
- UNION ALL
117
- SELECT sql
118
- FROM sqlite_temp_master
119
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
120
-
121
-  (0.1ms)  SELECT sql
122
- FROM sqlite_master
123
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
124
- UNION ALL
125
- SELECT sql
126
- FROM sqlite_temp_master
127
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
128
- 
129
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
130
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
131
-  (0.1ms)  SELECT sql
132
- FROM sqlite_master
133
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
134
- UNION ALL
135
- SELECT sql
136
- FROM sqlite_temp_master
137
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
138
- 
139
-  (0.1ms) SELECT sql
140
- FROM sqlite_master
141
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
142
- UNION ALL
143
- SELECT sql
144
- FROM sqlite_temp_master
145
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
146
-
147
-  (0.1ms)  SELECT sql
148
- FROM sqlite_master
149
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
150
- UNION ALL
151
- SELECT sql
152
- FROM sqlite_temp_master
153
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
154
- 
155
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
156
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
157
-  (0.1ms)  SELECT sql
158
- FROM sqlite_master
159
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
160
- UNION ALL
161
- SELECT sql
162
- FROM sqlite_temp_master
163
- WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
164
- 
165
-  (0.1ms) SELECT sql
166
- FROM sqlite_master
167
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
168
- UNION ALL
169
- SELECT sql
170
- FROM sqlite_temp_master
171
- WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
172
-
173
-  (0.1ms)  SELECT sql
174
- FROM sqlite_master
175
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
176
- UNION ALL
177
- SELECT sql
178
- FROM sqlite_temp_master
179
- WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
180
-