forest_liana 6.3.6 → 6.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/forest_liana/apimap_sorter.rb +1 -0
- data/app/services/forest_liana/line_stat_getter.rb +1 -1
- data/app/services/forest_liana/schema_adapter.rb +1 -1
- data/config/initializers/logger.rb +16 -13
- data/lib/forest_liana.rb +2 -0
- data/lib/forest_liana/bootstrapper.rb +4 -2
- data/lib/forest_liana/engine.rb +1 -1
- data/lib/forest_liana/version.rb +1 -1
- data/spec/config/initializers/logger_spec.rb +30 -0
- data/spec/dummy/app/models/product.rb +3 -0
- data/spec/dummy/db/migrate/20210526084712_create_products.rb +7 -0
- data/spec/dummy/db/schema.rb +5 -1
- data/spec/lib/forest_liana/bootstrapper_spec.rb +12 -0
- data/spec/services/forest_liana/apimap_sorter_spec.rb +6 -4
- data/spec/services/forest_liana/schema_adapter_spec.rb +13 -0
- metadata +130 -122
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70bf3183ea6336613fa8adca78593528273ae5310ede606c6e2015cc2cdaf822
|
4
|
+
data.tar.gz: 2c22380e8e890746e5f53120b5a501cac67ac6c76727197486969ed3ca4475c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f400b8af1c7430593243690ebf16598e9fc809106e59cee0c02fb4c4243330f3233f05f833fbfd5c896caa872f35c7e5b7a7c505995b9d518defb1809ae820c9
|
7
|
+
data.tar.gz: bb1b48a35c4d7c114d87ff2333789310095b8d5efc9962ad81e260531e290029e3cc90dfe573d7044821f5aab0fe4a0235ff9a0d8866c19badac9764b0977079
|
@@ -23,7 +23,7 @@ module ForestLiana
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def perform
|
26
|
-
value = get_resource().
|
26
|
+
value = get_resource().joins(@includes)
|
27
27
|
|
28
28
|
unless @params[:filters].blank?
|
29
29
|
value = FiltersParser.new(@params[:filters], value, @params[:timezone]).apply_filters
|
@@ -479,7 +479,7 @@ module ForestLiana
|
|
479
479
|
regex = value.source
|
480
480
|
|
481
481
|
# NOTICE: Transform a Ruby regex into a JS one
|
482
|
-
regex = regex.sub('\\A' , '^').sub('\\Z' , '$').sub('\\z' , '$')
|
482
|
+
regex = regex.sub('\\A' , '^').sub('\\Z' , '$').sub('\\z' , '$').gsub(/\n+|\s+/, '')
|
483
483
|
|
484
484
|
column_schema[:validations] << {
|
485
485
|
type: 'is like',
|
@@ -3,21 +3,24 @@ module ForestLiana
|
|
3
3
|
class Logger
|
4
4
|
class << self
|
5
5
|
def log
|
6
|
-
logger
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
if ForestLiana.logger != nil
|
7
|
+
logger = ForestLiana.logger
|
8
|
+
else
|
9
|
+
logger = ::Logger.new(STDOUT)
|
10
|
+
logger_colors = {
|
11
|
+
DEBUG: 34,
|
12
|
+
WARN: 33,
|
13
|
+
ERROR: 31,
|
14
|
+
INFO: 37
|
15
|
+
}
|
13
16
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
17
|
+
logger.formatter = proc do |severity, datetime, progname, message|
|
18
|
+
displayed_message = "[#{datetime.to_s(:db)}] Forest 🌳🌳🌳 " \
|
19
|
+
"#{message}\n"
|
20
|
+
"\e[#{logger_colors[severity.to_sym]}m#{displayed_message}\033[0m"
|
21
|
+
end
|
22
|
+
logger
|
18
23
|
end
|
19
|
-
|
20
|
-
logger
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
data/lib/forest_liana.rb
CHANGED
@@ -27,6 +27,7 @@ module ForestLiana
|
|
27
27
|
mattr_accessor :user_class_name
|
28
28
|
mattr_accessor :names_overriden
|
29
29
|
mattr_accessor :meta
|
30
|
+
mattr_accessor :logger
|
30
31
|
# TODO: Remove once lianas prior to 2.0.0 are not supported anymore.
|
31
32
|
mattr_accessor :names_old_overriden
|
32
33
|
|
@@ -38,6 +39,7 @@ module ForestLiana
|
|
38
39
|
self.user_class_name = nil
|
39
40
|
self.names_overriden = {}
|
40
41
|
self.meta = {}
|
42
|
+
self.logger = nil
|
41
43
|
|
42
44
|
@config_dir = 'lib/forest_liana/**/*.rb'
|
43
45
|
|
@@ -203,10 +203,12 @@ module ForestLiana
|
|
203
203
|
|
204
204
|
def setup_forest_liana_meta
|
205
205
|
ForestLiana.meta = {
|
206
|
-
database_type: database_type,
|
207
206
|
liana: 'forest-rails',
|
208
207
|
liana_version: ForestLiana::VERSION,
|
209
|
-
|
208
|
+
stack: {
|
209
|
+
database_type: database_type,
|
210
|
+
orm_version: Gem.loaded_specs["activerecord"].version.version,
|
211
|
+
}
|
210
212
|
}
|
211
213
|
end
|
212
214
|
|
data/lib/forest_liana/engine.rb
CHANGED
data/lib/forest_liana/version.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
module ForestLiana
|
2
|
+
describe Logger do
|
3
|
+
describe 'self.log' do
|
4
|
+
describe 'with a logger overload' do
|
5
|
+
it 'should return the given logger' do
|
6
|
+
logger = ActiveSupport::Logger.new($stdout)
|
7
|
+
logger.formatter = proc do |severity, datetime, progname, msg|
|
8
|
+
{:message => msg}.to_json
|
9
|
+
end
|
10
|
+
ForestLiana.logger = logger
|
11
|
+
|
12
|
+
expect(Logger.log.is_a?(ActiveSupport::Logger)).to be_truthy
|
13
|
+
expect { Logger.log.error "[error] override logger" }.to output({:message => "[error] override logger"}.to_json).to_stdout_from_any_process
|
14
|
+
expect { Logger.log.info "[info] override logger" }.to output({:message => "[info] override logger"}.to_json).to_stdout_from_any_process
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'with no logger overload' do
|
19
|
+
it 'should return an instance of ::Logger' do
|
20
|
+
ForestLiana.logger = nil
|
21
|
+
|
22
|
+
expect(Logger.log.is_a?(::Logger)).to be_truthy
|
23
|
+
# RegExp is used to check for the forestadmin logger format
|
24
|
+
expect { Logger.log.error "[error] default logger" }.to output(/\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\] Forest .* \[error\]/).to_stdout_from_any_process
|
25
|
+
expect { Logger.log.info "[info] default logger" }.to output(/\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\] Forest .* \[info\]/).to_stdout_from_any_process
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2021_05_26_084712) do
|
14
14
|
|
15
15
|
create_table "isle", force: :cascade do |t|
|
16
16
|
t.string "name"
|
@@ -32,6 +32,10 @@ ActiveRecord::Schema.define(version: 2021_05_11_141752) do
|
|
32
32
|
t.datetime "hired_at"
|
33
33
|
end
|
34
34
|
|
35
|
+
create_table "products", force: :cascade do |t|
|
36
|
+
t.string "uri"
|
37
|
+
end
|
38
|
+
|
35
39
|
create_table "references", force: :cascade do |t|
|
36
40
|
t.datetime "created_at", precision: 6, null: false
|
37
41
|
t.datetime "updated_at", precision: 6, null: false
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module ForestLiana
|
2
|
+
describe Bootstrapper do
|
3
|
+
describe 'setup_forest_liana_meta' do
|
4
|
+
it "should put statistic data related to user stack on a dedicated object" do
|
5
|
+
expect(ForestLiana.meta[:stack])
|
6
|
+
.to include(:orm_version)
|
7
|
+
expect(ForestLiana.meta[:stack])
|
8
|
+
.to include(:database_type)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -4,9 +4,11 @@ module ForestLiana
|
|
4
4
|
context 'on a disordered apimap' do
|
5
5
|
apimap = {
|
6
6
|
'meta': {
|
7
|
-
|
7
|
+
stack: {
|
8
|
+
'orm_version': '4.34.9',
|
9
|
+
'database_type': 'postgresql',
|
10
|
+
},
|
8
11
|
'liana_version': '1.5.24',
|
9
|
-
'database_type': 'postgresql',
|
10
12
|
liana: 'forest-rails',
|
11
13
|
},
|
12
14
|
'data': [{
|
@@ -165,8 +167,8 @@ module ForestLiana
|
|
165
167
|
end
|
166
168
|
|
167
169
|
it 'should sort the meta values' do
|
168
|
-
expect(apimap_sorted['meta'].keys).to eq(
|
169
|
-
|
170
|
+
expect(apimap_sorted['meta'].keys).to eq(['liana', 'liana_version', 'stack'])
|
171
|
+
expect(apimap_sorted['meta']['stack'].keys).to eq(['database_type', 'orm_version'])
|
170
172
|
end
|
171
173
|
end
|
172
174
|
end
|
@@ -12,6 +12,19 @@ module ForestLiana
|
|
12
12
|
)
|
13
13
|
end
|
14
14
|
end
|
15
|
+
|
16
|
+
context 'with a multiline regex validation' do
|
17
|
+
it 'should remove new lines in validation' do
|
18
|
+
|
19
|
+
collection = ForestLiana.apimap.find do |object|
|
20
|
+
object.name.to_s == ForestLiana.name_for(Product)
|
21
|
+
end
|
22
|
+
|
23
|
+
uri_field = collection.fields.find { |field| field[:field] == 'uri' }
|
24
|
+
uri_regex_validation = uri_field[:validations].find { |validation| validation[:type] == "is like"}
|
25
|
+
expect(uri_regex_validation[:value].match('\n')).to eq(nil)
|
26
|
+
end
|
27
|
+
end
|
15
28
|
end
|
16
29
|
end
|
17
30
|
end
|
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: 6.
|
4
|
+
version: 6.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -316,6 +316,7 @@ files:
|
|
316
316
|
- lib/generators/forest_liana/install_generator.rb
|
317
317
|
- lib/tasks/display_apimap.rake
|
318
318
|
- lib/tasks/send_apimap.rake
|
319
|
+
- spec/config/initializers/logger_spec.rb
|
319
320
|
- spec/dummy/README.rdoc
|
320
321
|
- spec/dummy/Rakefile
|
321
322
|
- spec/dummy/app/assets/config/manifest.js
|
@@ -327,6 +328,7 @@ files:
|
|
327
328
|
- spec/dummy/app/models/island.rb
|
328
329
|
- spec/dummy/app/models/location.rb
|
329
330
|
- spec/dummy/app/models/owner.rb
|
331
|
+
- spec/dummy/app/models/product.rb
|
330
332
|
- spec/dummy/app/models/reference.rb
|
331
333
|
- spec/dummy/app/models/tree.rb
|
332
334
|
- spec/dummy/app/models/user.rb
|
@@ -362,12 +364,14 @@ files:
|
|
362
364
|
- spec/dummy/db/migrate/20210326110524_create_references.rb
|
363
365
|
- spec/dummy/db/migrate/20210326140855_create_locations.rb
|
364
366
|
- spec/dummy/db/migrate/20210511141752_create_owners.rb
|
367
|
+
- spec/dummy/db/migrate/20210526084712_create_products.rb
|
365
368
|
- spec/dummy/db/schema.rb
|
366
369
|
- spec/dummy/lib/forest_liana/collections/location.rb
|
367
370
|
- spec/dummy/lib/forest_liana/collections/user.rb
|
368
371
|
- spec/helpers/forest_liana/is_same_data_structure_helper_spec.rb
|
369
372
|
- spec/helpers/forest_liana/query_helper_spec.rb
|
370
373
|
- spec/helpers/forest_liana/schema_helper_spec.rb
|
374
|
+
- spec/lib/forest_liana/bootstrapper_spec.rb
|
371
375
|
- spec/rails_helper.rb
|
372
376
|
- spec/requests/actions_controller_spec.rb
|
373
377
|
- spec/requests/authentications_spec.rb
|
@@ -501,164 +505,168 @@ signing_key:
|
|
501
505
|
specification_version: 4
|
502
506
|
summary: Official Rails Liana for Forest
|
503
507
|
test_files:
|
504
|
-
- test/
|
505
|
-
- test/fixtures/tree.yml
|
506
|
-
- test/fixtures/has_many_field.yml
|
507
|
-
- test/fixtures/serialize_field.yml
|
508
|
-
- test/fixtures/owner.yml
|
509
|
-
- test/fixtures/reference.yml
|
510
|
-
- test/fixtures/string_field.yml
|
511
|
-
- test/fixtures/belongs_to_field.yml
|
512
|
-
- test/fixtures/has_many_through_field.yml
|
513
|
-
- test/fixtures/has_one_field.yml
|
508
|
+
- test/forest_liana_test.rb
|
514
509
|
- test/test_helper.rb
|
515
|
-
- test/services/forest_liana/scope_validator_test.rb
|
516
|
-
- test/services/forest_liana/operator_date_interval_parser_test.rb
|
517
510
|
- test/services/forest_liana/has_many_getter_test.rb
|
518
|
-
- test/services/forest_liana/schema_adapter_test.rb
|
519
511
|
- test/services/forest_liana/pie_stat_getter_test.rb
|
520
|
-
- test/services/forest_liana/value_stat_getter_test.rb
|
521
512
|
- test/services/forest_liana/resource_updater_test.rb
|
522
|
-
- test/
|
523
|
-
- test/
|
524
|
-
- test/
|
525
|
-
- test/
|
526
|
-
- test/
|
527
|
-
- test/
|
528
|
-
- test/
|
529
|
-
- test/
|
530
|
-
- test/
|
531
|
-
- test/
|
532
|
-
- test/
|
533
|
-
- test/
|
534
|
-
- test/
|
535
|
-
- test/
|
536
|
-
- test/dummy/app/views/layouts/application.html.erb
|
537
|
-
- test/dummy/app/models/has_and_belongs_to_many_field.rb
|
538
|
-
- test/dummy/app/models/decimal_field.rb
|
539
|
-
- test/dummy/app/models/owner.rb
|
540
|
-
- test/dummy/app/models/boolean_field.rb
|
541
|
-
- test/dummy/app/models/has_one_field.rb
|
542
|
-
- test/dummy/app/models/has_many_class_name_field.rb
|
543
|
-
- test/dummy/app/models/has_many_through_field.rb
|
544
|
-
- test/dummy/app/models/has_many_field.rb
|
545
|
-
- test/dummy/app/models/belongs_to_field.rb
|
546
|
-
- test/dummy/app/models/integer_field.rb
|
547
|
-
- test/dummy/app/models/belongs_to_class_name_field.rb
|
548
|
-
- test/dummy/app/models/polymorphic_field.rb
|
549
|
-
- test/dummy/app/models/serialize_field.rb
|
550
|
-
- test/dummy/app/models/tree.rb
|
551
|
-
- test/dummy/app/models/float_field.rb
|
552
|
-
- test/dummy/app/models/reference.rb
|
553
|
-
- test/dummy/app/models/date_field.rb
|
554
|
-
- test/dummy/app/models/string_field.rb
|
555
|
-
- test/dummy/app/controllers/application_controller.rb
|
513
|
+
- test/services/forest_liana/value_stat_getter_test.rb
|
514
|
+
- test/services/forest_liana/scope_validator_test.rb
|
515
|
+
- test/services/forest_liana/schema_adapter_test.rb
|
516
|
+
- test/services/forest_liana/operator_date_interval_parser_test.rb
|
517
|
+
- test/routing/route_test.rb
|
518
|
+
- test/fixtures/string_field.yml
|
519
|
+
- test/fixtures/serialize_field.yml
|
520
|
+
- test/fixtures/has_one_field.yml
|
521
|
+
- test/fixtures/has_many_through_field.yml
|
522
|
+
- test/fixtures/has_many_field.yml
|
523
|
+
- test/fixtures/reference.yml
|
524
|
+
- test/fixtures/owner.yml
|
525
|
+
- test/fixtures/belongs_to_field.yml
|
526
|
+
- test/fixtures/tree.yml
|
556
527
|
- test/dummy/db/schema.rb
|
557
|
-
- test/dummy/db/migrate/
|
528
|
+
- test/dummy/db/migrate/20150608131610_create_float_field.rb
|
529
|
+
- test/dummy/db/migrate/20150608131430_create_integer_field.rb
|
530
|
+
- test/dummy/db/migrate/20170614141921_create_serialize_field.rb
|
531
|
+
- test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb
|
558
532
|
- test/dummy/db/migrate/20150608130516_create_date_field.rb
|
559
533
|
- test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
|
560
534
|
- test/dummy/db/migrate/20150608132621_create_string_field.rb
|
561
|
-
- test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
|
562
|
-
- test/dummy/db/migrate/20150608131430_create_integer_field.rb
|
563
|
-
- test/dummy/db/migrate/20160627172951_create_tree.rb
|
564
|
-
- test/dummy/db/migrate/20160628173505_add_timestamps.rb
|
565
|
-
- test/dummy/db/migrate/20150608131610_create_float_field.rb
|
566
|
-
- test/dummy/db/migrate/20160627172810_create_owner.rb
|
567
|
-
- test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
|
568
535
|
- test/dummy/db/migrate/20150608132159_create_boolean_field.rb
|
569
|
-
- test/dummy/db/migrate/20170614141921_create_serialize_field.rb
|
570
|
-
- test/dummy/db/migrate/20150608150016_create_has_many_field.rb
|
571
536
|
- test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb
|
572
|
-
- test/dummy/db/migrate/
|
537
|
+
- test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb
|
573
538
|
- test/dummy/db/migrate/20181111162121_create_references_table.rb
|
539
|
+
- test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
|
540
|
+
- test/dummy/db/migrate/20160627172810_create_owner.rb
|
541
|
+
- test/dummy/db/migrate/20160627172951_create_tree.rb
|
542
|
+
- test/dummy/db/migrate/20150608150016_create_has_many_field.rb
|
543
|
+
- test/dummy/db/migrate/20150608131603_create_decimal_field.rb
|
574
544
|
- test/dummy/db/migrate/20150608133044_create_has_one_field.rb
|
575
|
-
- test/dummy/db/migrate/
|
576
|
-
- test/dummy/
|
577
|
-
- test/dummy/
|
578
|
-
- test/dummy/
|
579
|
-
- test/dummy/
|
580
|
-
- test/dummy/
|
545
|
+
- test/dummy/db/migrate/20160628173505_add_timestamps.rb
|
546
|
+
- test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
|
547
|
+
- test/dummy/config.ru
|
548
|
+
- test/dummy/bin/rake
|
549
|
+
- test/dummy/bin/setup
|
550
|
+
- test/dummy/bin/bundle
|
551
|
+
- test/dummy/bin/rails
|
552
|
+
- test/dummy/config/routes.rb
|
553
|
+
- test/dummy/config/boot.rb
|
581
554
|
- test/dummy/config/initializers/mime_types.rb
|
582
555
|
- test/dummy/config/initializers/assets.rb
|
583
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
584
556
|
- test/dummy/config/initializers/session_store.rb
|
557
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
558
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
585
559
|
- test/dummy/config/initializers/cookies_serializer.rb
|
586
|
-
- test/dummy/config/
|
587
|
-
- test/dummy/config/
|
588
|
-
- test/dummy/config/boot.rb
|
560
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
561
|
+
- test/dummy/config/initializers/inflections.rb
|
589
562
|
- test/dummy/config/locales/en.yml
|
563
|
+
- test/dummy/config/secrets.yml
|
590
564
|
- test/dummy/config/environment.rb
|
591
|
-
- test/dummy/config/application.rb
|
592
565
|
- test/dummy/config/environments/production.rb
|
593
566
|
- test/dummy/config/environments/development.rb
|
594
567
|
- test/dummy/config/environments/test.rb
|
595
|
-
- test/dummy/config/
|
568
|
+
- test/dummy/config/database.yml
|
569
|
+
- test/dummy/config/application.rb
|
570
|
+
- test/dummy/README.rdoc
|
571
|
+
- test/dummy/Rakefile
|
572
|
+
- test/dummy/public/favicon.ico
|
573
|
+
- test/dummy/public/404.html
|
574
|
+
- test/dummy/public/422.html
|
575
|
+
- test/dummy/public/500.html
|
576
|
+
- test/dummy/app/controllers/application_controller.rb
|
577
|
+
- test/dummy/app/views/layouts/application.html.erb
|
578
|
+
- test/dummy/app/helpers/application_helper.rb
|
579
|
+
- test/dummy/app/assets/stylesheets/application.css
|
580
|
+
- test/dummy/app/assets/config/manifest.js
|
581
|
+
- test/dummy/app/assets/javascripts/application.js
|
582
|
+
- test/dummy/app/models/boolean_field.rb
|
583
|
+
- test/dummy/app/models/decimal_field.rb
|
584
|
+
- test/dummy/app/models/date_field.rb
|
585
|
+
- test/dummy/app/models/tree.rb
|
586
|
+
- test/dummy/app/models/has_and_belongs_to_many_field.rb
|
587
|
+
- test/dummy/app/models/owner.rb
|
588
|
+
- test/dummy/app/models/belongs_to_class_name_field.rb
|
589
|
+
- test/dummy/app/models/has_many_through_field.rb
|
590
|
+
- test/dummy/app/models/float_field.rb
|
591
|
+
- test/dummy/app/models/polymorphic_field.rb
|
592
|
+
- test/dummy/app/models/has_one_field.rb
|
593
|
+
- test/dummy/app/models/has_many_class_name_field.rb
|
594
|
+
- test/dummy/app/models/belongs_to_field.rb
|
595
|
+
- test/dummy/app/models/integer_field.rb
|
596
|
+
- test/dummy/app/models/serialize_field.rb
|
597
|
+
- test/dummy/app/models/string_field.rb
|
598
|
+
- test/dummy/app/models/has_many_field.rb
|
599
|
+
- test/dummy/app/models/reference.rb
|
596
600
|
- spec/spec_helper.rb
|
597
|
-
- spec/rails_helper.rb
|
598
|
-
- spec/helpers/forest_liana/is_same_data_structure_helper_spec.rb
|
599
|
-
- spec/helpers/forest_liana/schema_helper_spec.rb
|
600
|
-
- spec/helpers/forest_liana/query_helper_spec.rb
|
601
|
-
- spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
|
602
|
-
- spec/services/forest_liana/resources_getter_spec.rb
|
603
|
-
- spec/services/forest_liana/filters_parser_spec.rb
|
604
601
|
- spec/services/forest_liana/permissions_getter_spec.rb
|
602
|
+
- spec/services/forest_liana/resources_getter_spec.rb
|
605
603
|
- spec/services/forest_liana/ip_whitelist_checker_spec.rb
|
604
|
+
- spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
|
605
|
+
- spec/services/forest_liana/filters_parser_spec.rb
|
606
606
|
- spec/services/forest_liana/schema_adapter_spec.rb
|
607
|
+
- spec/services/forest_liana/line_stat_getter_spec.rb
|
607
608
|
- spec/services/forest_liana/permissions_formatter_spec.rb
|
608
609
|
- spec/services/forest_liana/permissions_checker_live_queries_spec.rb
|
609
610
|
- spec/services/forest_liana/apimap_sorter_spec.rb
|
610
|
-
- spec/services/forest_liana/
|
611
|
-
- spec/
|
612
|
-
- spec/
|
613
|
-
- spec/
|
614
|
-
- spec/
|
615
|
-
- spec/requests/resources_spec.rb
|
616
|
-
- spec/dummy/bin/bundle
|
617
|
-
- spec/dummy/bin/setup
|
618
|
-
- spec/dummy/bin/rake
|
619
|
-
- spec/dummy/bin/rails
|
620
|
-
- spec/dummy/config.ru
|
621
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
622
|
-
- spec/dummy/app/assets/config/manifest.js
|
623
|
-
- spec/dummy/app/assets/javascripts/application.js
|
624
|
-
- spec/dummy/app/helpers/application_helper.rb
|
625
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
626
|
-
- spec/dummy/app/models/user.rb
|
627
|
-
- spec/dummy/app/models/owner.rb
|
628
|
-
- spec/dummy/app/models/island.rb
|
629
|
-
- spec/dummy/app/models/location.rb
|
630
|
-
- spec/dummy/app/models/tree.rb
|
631
|
-
- spec/dummy/app/models/reference.rb
|
632
|
-
- spec/dummy/app/config/routes.rb
|
633
|
-
- spec/dummy/app/controllers/application_controller.rb
|
611
|
+
- spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
|
612
|
+
- spec/config/initializers/logger_spec.rb
|
613
|
+
- spec/helpers/forest_liana/is_same_data_structure_helper_spec.rb
|
614
|
+
- spec/helpers/forest_liana/schema_helper_spec.rb
|
615
|
+
- spec/helpers/forest_liana/query_helper_spec.rb
|
634
616
|
- spec/dummy/db/schema.rb
|
617
|
+
- spec/dummy/db/migrate/20190226172951_create_user.rb
|
618
|
+
- spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
|
619
|
+
- spec/dummy/db/migrate/20190226173051_create_isle.rb
|
635
620
|
- spec/dummy/db/migrate/20210511141752_create_owners.rb
|
636
|
-
- spec/dummy/db/migrate/20190226174951_create_tree.rb
|
637
|
-
- spec/dummy/db/migrate/20210326140855_create_locations.rb
|
638
621
|
- spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
|
622
|
+
- spec/dummy/db/migrate/20210326140855_create_locations.rb
|
623
|
+
- spec/dummy/db/migrate/20190226174951_create_tree.rb
|
624
|
+
- spec/dummy/db/migrate/20210526084712_create_products.rb
|
639
625
|
- spec/dummy/db/migrate/20210326110524_create_references.rb
|
640
|
-
- spec/dummy/
|
641
|
-
- spec/dummy/
|
642
|
-
- spec/dummy/
|
643
|
-
- spec/dummy/
|
644
|
-
- spec/dummy/
|
645
|
-
- spec/dummy/
|
646
|
-
- spec/dummy/
|
647
|
-
- spec/dummy/config/initializers/inflections.rb
|
648
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
649
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
650
|
-
- spec/dummy/config/initializers/mime_types.rb
|
626
|
+
- spec/dummy/config.ru
|
627
|
+
- spec/dummy/bin/rake
|
628
|
+
- spec/dummy/bin/setup
|
629
|
+
- spec/dummy/bin/bundle
|
630
|
+
- spec/dummy/bin/rails
|
631
|
+
- spec/dummy/config/routes.rb
|
632
|
+
- spec/dummy/config/boot.rb
|
651
633
|
- spec/dummy/config/initializers/forest_liana.rb
|
634
|
+
- spec/dummy/config/initializers/mime_types.rb
|
652
635
|
- spec/dummy/config/initializers/assets.rb
|
653
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
654
636
|
- spec/dummy/config/initializers/session_store.rb
|
637
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
638
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
655
639
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
640
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
641
|
+
- spec/dummy/config/initializers/inflections.rb
|
656
642
|
- spec/dummy/config/secrets.yml
|
657
|
-
- spec/dummy/config/database.yml
|
658
|
-
- spec/dummy/config/boot.rb
|
659
643
|
- spec/dummy/config/environment.rb
|
660
|
-
- spec/dummy/config/application.rb
|
661
644
|
- spec/dummy/config/environments/production.rb
|
662
645
|
- spec/dummy/config/environments/development.rb
|
663
646
|
- spec/dummy/config/environments/test.rb
|
664
|
-
- spec/dummy/config/
|
647
|
+
- spec/dummy/config/database.yml
|
648
|
+
- spec/dummy/config/application.rb
|
649
|
+
- spec/dummy/lib/forest_liana/collections/user.rb
|
650
|
+
- spec/dummy/lib/forest_liana/collections/location.rb
|
651
|
+
- spec/dummy/README.rdoc
|
652
|
+
- spec/dummy/Rakefile
|
653
|
+
- spec/dummy/app/controllers/application_controller.rb
|
654
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
655
|
+
- spec/dummy/app/config/routes.rb
|
656
|
+
- spec/dummy/app/helpers/application_helper.rb
|
657
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
658
|
+
- spec/dummy/app/assets/config/manifest.js
|
659
|
+
- spec/dummy/app/assets/javascripts/application.js
|
660
|
+
- spec/dummy/app/models/tree.rb
|
661
|
+
- spec/dummy/app/models/owner.rb
|
662
|
+
- spec/dummy/app/models/user.rb
|
663
|
+
- spec/dummy/app/models/product.rb
|
664
|
+
- spec/dummy/app/models/location.rb
|
665
|
+
- spec/dummy/app/models/island.rb
|
666
|
+
- spec/dummy/app/models/reference.rb
|
667
|
+
- spec/lib/forest_liana/bootstrapper_spec.rb
|
668
|
+
- spec/rails_helper.rb
|
669
|
+
- spec/requests/stats_spec.rb
|
670
|
+
- spec/requests/resources_spec.rb
|
671
|
+
- spec/requests/actions_controller_spec.rb
|
672
|
+
- spec/requests/authentications_spec.rb
|