forest_liana 1.0.0.beta6 → 1.0.0.beta7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/services/forest_liana/schema_adapter.rb +2 -2
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/app/models/belongs_to_field.rb +2 -0
- data/test/dummy/app/models/has_one_field.rb +1 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1062 -195
- data/test/services/forest_liana/schema_adapter_test.rb +12 -10
- metadata +22 -34
- data/test/dummy/db/development.sqlite3 +0 -0
@@ -40,7 +40,8 @@ module ForestLiana
|
|
40
40
|
assert schema.fields.include?({
|
41
41
|
field: 'has_one_field',
|
42
42
|
type: 'Number',
|
43
|
-
reference: 'has_one_fields.id'
|
43
|
+
reference: 'has_one_fields.id',
|
44
|
+
inverseOf: 'belongs_to_field'
|
44
45
|
})
|
45
46
|
end
|
46
47
|
|
@@ -64,15 +65,6 @@ module ForestLiana
|
|
64
65
|
})
|
65
66
|
end
|
66
67
|
|
67
|
-
test 'belongsTo relationhip with specified class_name' do
|
68
|
-
schema = SchemaAdapter.new(BelongsToClassNameField).perform
|
69
|
-
assert schema.fields.include?({
|
70
|
-
field: 'foo',
|
71
|
-
type: 'Number',
|
72
|
-
reference: 'has_one_fields.id'
|
73
|
-
})
|
74
|
-
end
|
75
|
-
|
76
68
|
test 'hasMany relationhip with specified class_name' do
|
77
69
|
schema = SchemaAdapter.new(HasManyClassNameField).perform
|
78
70
|
assert schema.fields.include?({
|
@@ -83,5 +75,15 @@ module ForestLiana
|
|
83
75
|
})
|
84
76
|
end
|
85
77
|
|
78
|
+
test 'belongsTo relationhip with specified class_name' do
|
79
|
+
schema = SchemaAdapter.new(BelongsToClassNameField).perform
|
80
|
+
assert schema.fields.include?({
|
81
|
+
field: 'foo',
|
82
|
+
type: 'Number',
|
83
|
+
reference: 'has_one_fields.id',
|
84
|
+
inverseOf: 'belongs_to_class_name_field'
|
85
|
+
})
|
86
|
+
end
|
87
|
+
|
86
88
|
end
|
87
89
|
end
|
metadata
CHANGED
@@ -1,78 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 1.0.0.beta7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sandro Munda
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '3.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '3.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: jsonapi-serializers
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: jwt
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rack-cors
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
description: Forest Rails Liana
|
@@ -82,6 +73,9 @@ executables: []
|
|
82
73
|
extensions: []
|
83
74
|
extra_rdoc_files: []
|
84
75
|
files:
|
76
|
+
- LICENSE
|
77
|
+
- README.rdoc
|
78
|
+
- Rakefile
|
85
79
|
- app/assets/javascripts/forest_liana/application.js
|
86
80
|
- app/assets/stylesheets/forest_liana/application.css
|
87
81
|
- app/assets/stylesheets/scaffold.css
|
@@ -101,14 +95,13 @@ files:
|
|
101
95
|
- app/views/layouts/forest_liana/application.html.erb
|
102
96
|
- config/initializers/mimetype.rb
|
103
97
|
- config/routes.rb
|
98
|
+
- lib/forest_liana.rb
|
104
99
|
- lib/forest_liana/engine.rb
|
105
100
|
- lib/forest_liana/version.rb
|
106
|
-
- lib/forest_liana.rb
|
107
101
|
- lib/generators/forest_liana/install_generator.rb
|
108
102
|
- lib/tasks/forest_tasks.rake
|
109
|
-
-
|
110
|
-
- Rakefile
|
111
|
-
- README.rdoc
|
103
|
+
- test/dummy/README.rdoc
|
104
|
+
- test/dummy/Rakefile
|
112
105
|
- test/dummy/app/assets/javascripts/application.js
|
113
106
|
- test/dummy/app/assets/stylesheets/application.css
|
114
107
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -131,6 +124,7 @@ files:
|
|
131
124
|
- test/dummy/bin/rails
|
132
125
|
- test/dummy/bin/rake
|
133
126
|
- test/dummy/bin/setup
|
127
|
+
- test/dummy/config.ru
|
134
128
|
- test/dummy/config/application.rb
|
135
129
|
- test/dummy/config/boot.rb
|
136
130
|
- test/dummy/config/database.yml
|
@@ -149,8 +143,6 @@ files:
|
|
149
143
|
- test/dummy/config/locales/en.yml
|
150
144
|
- test/dummy/config/routes.rb
|
151
145
|
- test/dummy/config/secrets.yml
|
152
|
-
- test/dummy/config.ru
|
153
|
-
- test/dummy/db/development.sqlite3
|
154
146
|
- test/dummy/db/migrate/20150608130516_create_date_field.rb
|
155
147
|
- test/dummy/db/migrate/20150608131430_create_integer_field.rb
|
156
148
|
- test/dummy/db/migrate/20150608131603_create_decimal_field.rb
|
@@ -171,8 +163,6 @@ files:
|
|
171
163
|
- test/dummy/public/422.html
|
172
164
|
- test/dummy/public/500.html
|
173
165
|
- test/dummy/public/favicon.ico
|
174
|
-
- test/dummy/Rakefile
|
175
|
-
- test/dummy/README.rdoc
|
176
166
|
- test/forest_liana_test.rb
|
177
167
|
- test/integration/navigation_test.rb
|
178
168
|
- test/services/forest_liana/schema_adapter_test.rb
|
@@ -180,27 +170,26 @@ files:
|
|
180
170
|
homepage:
|
181
171
|
licenses:
|
182
172
|
- GPL v3
|
173
|
+
metadata: {}
|
183
174
|
post_install_message:
|
184
175
|
rdoc_options: []
|
185
176
|
require_paths:
|
186
177
|
- lib
|
187
178
|
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
-
none: false
|
189
179
|
requirements:
|
190
|
-
- -
|
180
|
+
- - ">="
|
191
181
|
- !ruby/object:Gem::Version
|
192
182
|
version: '0'
|
193
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
|
-
none: false
|
195
184
|
requirements:
|
196
|
-
- -
|
185
|
+
- - ">"
|
197
186
|
- !ruby/object:Gem::Version
|
198
187
|
version: 1.3.1
|
199
188
|
requirements: []
|
200
189
|
rubyforge_project:
|
201
|
-
rubygems_version:
|
190
|
+
rubygems_version: 2.4.5
|
202
191
|
signing_key:
|
203
|
-
specification_version:
|
192
|
+
specification_version: 4
|
204
193
|
summary: Forest Rails Liana
|
205
194
|
test_files:
|
206
195
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -244,7 +233,6 @@ test_files:
|
|
244
233
|
- test/dummy/config/routes.rb
|
245
234
|
- test/dummy/config/secrets.yml
|
246
235
|
- test/dummy/config.ru
|
247
|
-
- test/dummy/db/development.sqlite3
|
248
236
|
- test/dummy/db/migrate/20150608130516_create_date_field.rb
|
249
237
|
- test/dummy/db/migrate/20150608131430_create_integer_field.rb
|
250
238
|
- test/dummy/db/migrate/20150608131603_create_decimal_field.rb
|
Binary file
|