forest_liana 7.4.0 → 7.4.1

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
  SHA256:
3
- metadata.gz: adc1d7ec157183e6001f0c62980ae41cac6812a06e4fb8d1d5189609e478c2c6
4
- data.tar.gz: 21ccd896ff434a672683d6d384aa70e80b531c95189294551c3466a5ead3a5b6
3
+ metadata.gz: 8f6d7b1f15f9049662a8a2275159a353fe9430460a6057c18af99fb3b23e9ccb
4
+ data.tar.gz: 5f10ad94306023a27b17921225f7df4f25ac5e97e37c0d4e5be0220a6f57038b
5
5
  SHA512:
6
- metadata.gz: ce716a35923e78b2d00f066aa717e2a4fcd62506fe9073d370cbf30af90b1474a26cf940cd0a2aed1cf959b6c93cfe9314268e4a9ed048042ec3f04b9a227826
7
- data.tar.gz: 5bb96fed2cc7218d162d4f0ac9df00b6270efa909deaab5ed84289cebe41606b36230423844584b9d65efd7b19588f06f42f90798d6515a05c0a2e2c2755011d
6
+ metadata.gz: edb8fa9ca2626c71fe716c8ea79f98015c0333ee7d0b178098170673ac3535cdfbaf56b0d00fee5a8e4d168ea4d7b8f69fd06eeb8e517e096d2d25669a4982cd
7
+ data.tar.gz: 7d40c81c9cf17a84444f696cd977549629b9d5bfd0c94241e81bfb564e8b3ac9a858bd016265ceccc89d4a9bb176b364b3ee75b3bf76aa014d15f80173589a09
@@ -57,10 +57,12 @@ module ForestLiana
57
57
  @collections_sent.each do |collection|
58
58
  collection['actions'].each do |action|
59
59
  c = get_collection(collection['name'])
60
- a = get_action(c, action['name'])
61
- load = !a.hooks.nil? && a.hooks.key?(:load) && a.hooks[:load].is_a?(Proc)
62
- change = !a.hooks.nil? && a.hooks.key?(:change) && a.hooks[:change].is_a?(Hash) ? a.hooks[:change].keys : []
63
- action['hooks'] = {'load' => load, 'change' => change}
60
+ unless c.nil?
61
+ a = get_action(c, action['name'])
62
+ load = !a.hooks.nil? && a.hooks.key?(:load) && a.hooks[:load].is_a?(Proc)
63
+ change = !a.hooks.nil? && a.hooks.key?(:change) && a.hooks[:change].is_a?(Hash) ? a.hooks[:change].keys : []
64
+ action['hooks'] = {'load' => load, 'change' => change}
65
+ end
64
66
  end
65
67
  end
66
68
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "7.4.0"
2
+ VERSION = "7.4.1"
3
3
  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: 7.4.0
4
+ version: 7.4.1
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-04 00:00:00.000000000 Z
11
+ date: 2021-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -510,171 +510,171 @@ signing_key:
510
510
  specification_version: 4
511
511
  summary: Official Rails Liana for Forest
512
512
  test_files:
513
- - test/test_helper.rb
514
- - test/dummy/config.ru
515
- - test/dummy/bin/setup
516
- - test/dummy/bin/bundle
517
- - test/dummy/bin/rake
518
- - test/dummy/bin/rails
519
- - test/dummy/Rakefile
520
513
  - test/dummy/db/schema.rb
521
- - test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
514
+ - test/dummy/db/migrate/20160627172951_create_tree.rb
522
515
  - test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb
523
- - test/dummy/db/migrate/20150608130516_create_date_field.rb
524
- - test/dummy/db/migrate/20150608132621_create_string_field.rb
525
- - test/dummy/db/migrate/20160627172810_create_owner.rb
526
516
  - test/dummy/db/migrate/20170614141921_create_serialize_field.rb
527
- - test/dummy/db/migrate/20150608131430_create_integer_field.rb
528
- - test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb
529
- - test/dummy/db/migrate/20150608131610_create_float_field.rb
530
- - test/dummy/db/migrate/20160628173505_add_timestamps.rb
531
- - test/dummy/db/migrate/20150608150016_create_has_many_field.rb
517
+ - test/dummy/db/migrate/20150608133044_create_has_one_field.rb
518
+ - test/dummy/db/migrate/20150608130516_create_date_field.rb
532
519
  - test/dummy/db/migrate/20150608131603_create_decimal_field.rb
520
+ - test/dummy/db/migrate/20160628173505_add_timestamps.rb
533
521
  - test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
522
+ - test/dummy/db/migrate/20150608131430_create_integer_field.rb
534
523
  - test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb
535
524
  - test/dummy/db/migrate/20181111162121_create_references_table.rb
536
- - test/dummy/db/migrate/20160627172951_create_tree.rb
537
- - test/dummy/db/migrate/20150608133044_create_has_one_field.rb
538
- - test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
525
+ - test/dummy/db/migrate/20160627172810_create_owner.rb
526
+ - test/dummy/db/migrate/20150608131610_create_float_field.rb
527
+ - test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
528
+ - test/dummy/db/migrate/20150608132621_create_string_field.rb
539
529
  - test/dummy/db/migrate/20150608132159_create_boolean_field.rb
540
- - test/dummy/public/422.html
530
+ - test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb
531
+ - test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
532
+ - test/dummy/db/migrate/20150608150016_create_has_many_field.rb
533
+ - test/dummy/config.ru
534
+ - test/dummy/Rakefile
535
+ - test/dummy/app/controllers/application_controller.rb
536
+ - test/dummy/app/helpers/application_helper.rb
537
+ - test/dummy/app/models/boolean_field.rb
538
+ - test/dummy/app/models/decimal_field.rb
539
+ - test/dummy/app/models/has_many_field.rb
540
+ - test/dummy/app/models/float_field.rb
541
+ - test/dummy/app/models/reference.rb
542
+ - test/dummy/app/models/belongs_to_field.rb
543
+ - test/dummy/app/models/belongs_to_class_name_field.rb
544
+ - test/dummy/app/models/owner.rb
545
+ - test/dummy/app/models/has_many_class_name_field.rb
546
+ - test/dummy/app/models/has_many_through_field.rb
547
+ - test/dummy/app/models/integer_field.rb
548
+ - test/dummy/app/models/tree.rb
549
+ - test/dummy/app/models/date_field.rb
550
+ - test/dummy/app/models/has_and_belongs_to_many_field.rb
551
+ - test/dummy/app/models/polymorphic_field.rb
552
+ - test/dummy/app/models/serialize_field.rb
553
+ - test/dummy/app/models/string_field.rb
554
+ - test/dummy/app/models/has_one_field.rb
555
+ - test/dummy/app/views/layouts/application.html.erb
556
+ - test/dummy/app/assets/stylesheets/application.css
557
+ - test/dummy/app/assets/javascripts/application.js
558
+ - test/dummy/app/assets/config/manifest.js
559
+ - test/dummy/public/404.html
541
560
  - test/dummy/public/favicon.ico
561
+ - test/dummy/public/422.html
542
562
  - test/dummy/public/500.html
543
- - test/dummy/public/404.html
544
563
  - test/dummy/README.rdoc
545
- - test/dummy/config/secrets.yml
564
+ - test/dummy/bin/setup
565
+ - test/dummy/bin/rails
566
+ - test/dummy/bin/bundle
567
+ - test/dummy/bin/rake
546
568
  - test/dummy/config/environments/test.rb
547
569
  - test/dummy/config/environments/production.rb
548
570
  - test/dummy/config/environments/development.rb
549
571
  - test/dummy/config/boot.rb
550
- - test/dummy/config/routes.rb
551
- - test/dummy/config/locales/en.yml
552
- - test/dummy/config/application.rb
553
572
  - test/dummy/config/database.yml
573
+ - test/dummy/config/application.rb
554
574
  - test/dummy/config/environment.rb
555
575
  - test/dummy/config/initializers/cookies_serializer.rb
556
- - test/dummy/config/initializers/wrap_parameters.rb
557
- - test/dummy/config/initializers/inflections.rb
558
576
  - test/dummy/config/initializers/session_store.rb
559
577
  - test/dummy/config/initializers/assets.rb
560
- - test/dummy/config/initializers/backtrace_silencers.rb
578
+ - test/dummy/config/initializers/inflections.rb
579
+ - test/dummy/config/initializers/wrap_parameters.rb
561
580
  - test/dummy/config/initializers/mime_types.rb
581
+ - test/dummy/config/initializers/backtrace_silencers.rb
562
582
  - test/dummy/config/initializers/filter_parameter_logging.rb
563
- - test/dummy/app/helpers/application_helper.rb
564
- - test/dummy/app/views/layouts/application.html.erb
565
- - test/dummy/app/controllers/application_controller.rb
566
- - test/dummy/app/models/date_field.rb
567
- - test/dummy/app/models/belongs_to_class_name_field.rb
568
- - test/dummy/app/models/float_field.rb
569
- - test/dummy/app/models/has_many_through_field.rb
570
- - test/dummy/app/models/decimal_field.rb
571
- - test/dummy/app/models/serialize_field.rb
572
- - test/dummy/app/models/has_and_belongs_to_many_field.rb
573
- - test/dummy/app/models/has_many_field.rb
574
- - test/dummy/app/models/owner.rb
575
- - test/dummy/app/models/polymorphic_field.rb
576
- - test/dummy/app/models/tree.rb
577
- - test/dummy/app/models/string_field.rb
578
- - test/dummy/app/models/belongs_to_field.rb
579
- - test/dummy/app/models/integer_field.rb
580
- - test/dummy/app/models/has_one_field.rb
581
- - test/dummy/app/models/boolean_field.rb
582
- - test/dummy/app/models/has_many_class_name_field.rb
583
- - test/dummy/app/models/reference.rb
584
- - test/dummy/app/assets/javascripts/application.js
585
- - test/dummy/app/assets/stylesheets/application.css
586
- - test/dummy/app/assets/config/manifest.js
587
- - test/routing/route_test.rb
588
- - test/services/forest_liana/schema_adapter_test.rb
589
- - test/services/forest_liana/operator_date_interval_parser_test.rb
590
- - test/fixtures/belongs_to_field.yml
591
- - test/fixtures/tree.yml
583
+ - test/dummy/config/routes.rb
584
+ - test/dummy/config/secrets.yml
585
+ - test/dummy/config/locales/en.yml
592
586
  - test/fixtures/owner.yml
587
+ - test/fixtures/tree.yml
593
588
  - test/fixtures/reference.yml
589
+ - test/fixtures/serialize_field.yml
594
590
  - test/fixtures/has_many_through_field.yml
595
591
  - test/fixtures/has_one_field.yml
596
- - test/fixtures/serialize_field.yml
597
592
  - test/fixtures/string_field.yml
593
+ - test/fixtures/belongs_to_field.yml
598
594
  - test/fixtures/has_many_field.yml
595
+ - test/services/forest_liana/operator_date_interval_parser_test.rb
596
+ - test/services/forest_liana/schema_adapter_test.rb
599
597
  - test/forest_liana_test.rb
598
+ - test/routing/route_test.rb
599
+ - test/test_helper.rb
600
+ - spec/rails_helper.rb
601
+ - spec/spec_helper.rb
600
602
  - spec/helpers/forest_liana/query_helper_spec.rb
601
603
  - spec/helpers/forest_liana/schema_helper_spec.rb
602
- - spec/requests/stats_spec.rb
603
- - spec/requests/resources_spec.rb
604
604
  - spec/requests/authentications_spec.rb
605
+ - spec/requests/resources_spec.rb
605
606
  - spec/requests/actions_controller_spec.rb
606
- - spec/dummy/config.ru
607
- - spec/dummy/bin/setup
608
- - spec/dummy/bin/bundle
609
- - spec/dummy/bin/rake
610
- - spec/dummy/bin/rails
611
- - spec/dummy/lib/forest_liana/collections/user.rb
612
- - spec/dummy/lib/forest_liana/collections/island.rb
613
- - spec/dummy/lib/forest_liana/collections/location.rb
614
- - spec/dummy/Rakefile
607
+ - spec/requests/stats_spec.rb
615
608
  - spec/dummy/db/schema.rb
616
- - spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
609
+ - spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
617
610
  - spec/dummy/db/migrate/20190226174951_create_tree.rb
611
+ - spec/dummy/db/migrate/20190226173051_create_isle.rb
618
612
  - spec/dummy/db/migrate/20210526084712_create_products.rb
619
- - spec/dummy/db/migrate/20190226172951_create_user.rb
613
+ - spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
620
614
  - spec/dummy/db/migrate/20210326110524_create_references.rb
621
- - spec/dummy/db/migrate/20190226173051_create_isle.rb
622
- - spec/dummy/db/migrate/20210326140855_create_locations.rb
623
- - spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
615
+ - spec/dummy/db/migrate/20190226172951_create_user.rb
624
616
  - spec/dummy/db/migrate/20210511141752_create_owners.rb
617
+ - spec/dummy/db/migrate/20210326140855_create_locations.rb
618
+ - spec/dummy/config.ru
619
+ - spec/dummy/Rakefile
620
+ - spec/dummy/app/controllers/forest/islands_controller.rb
621
+ - spec/dummy/app/controllers/application_controller.rb
622
+ - spec/dummy/app/helpers/application_helper.rb
623
+ - spec/dummy/app/models/product.rb
624
+ - spec/dummy/app/models/reference.rb
625
+ - spec/dummy/app/models/island.rb
626
+ - spec/dummy/app/models/owner.rb
627
+ - spec/dummy/app/models/tree.rb
628
+ - spec/dummy/app/models/user.rb
629
+ - spec/dummy/app/models/location.rb
630
+ - spec/dummy/app/views/layouts/application.html.erb
631
+ - spec/dummy/app/config/routes.rb
632
+ - spec/dummy/app/assets/stylesheets/application.css
633
+ - spec/dummy/app/assets/javascripts/application.js
634
+ - spec/dummy/app/assets/config/manifest.js
625
635
  - spec/dummy/README.rdoc
626
- - spec/dummy/config/secrets.yml
636
+ - spec/dummy/lib/forest_liana/collections/island.rb
637
+ - spec/dummy/lib/forest_liana/collections/user.rb
638
+ - spec/dummy/lib/forest_liana/collections/location.rb
639
+ - spec/dummy/bin/setup
640
+ - spec/dummy/bin/rails
641
+ - spec/dummy/bin/bundle
642
+ - spec/dummy/bin/rake
627
643
  - spec/dummy/config/environments/test.rb
628
644
  - spec/dummy/config/environments/production.rb
629
645
  - spec/dummy/config/environments/development.rb
630
646
  - spec/dummy/config/boot.rb
631
- - spec/dummy/config/routes.rb
632
- - spec/dummy/config/application.rb
633
647
  - spec/dummy/config/database.yml
648
+ - spec/dummy/config/application.rb
634
649
  - spec/dummy/config/environment.rb
635
650
  - spec/dummy/config/initializers/cookies_serializer.rb
636
- - spec/dummy/config/initializers/wrap_parameters.rb
637
- - spec/dummy/config/initializers/inflections.rb
638
651
  - spec/dummy/config/initializers/session_store.rb
639
- - spec/dummy/config/initializers/forest_liana.rb
640
652
  - spec/dummy/config/initializers/assets.rb
641
- - spec/dummy/config/initializers/backtrace_silencers.rb
653
+ - spec/dummy/config/initializers/forest_liana.rb
654
+ - spec/dummy/config/initializers/inflections.rb
655
+ - spec/dummy/config/initializers/wrap_parameters.rb
642
656
  - spec/dummy/config/initializers/mime_types.rb
657
+ - spec/dummy/config/initializers/backtrace_silencers.rb
643
658
  - spec/dummy/config/initializers/filter_parameter_logging.rb
644
- - spec/dummy/app/helpers/application_helper.rb
645
- - spec/dummy/app/views/layouts/application.html.erb
646
- - spec/dummy/app/controllers/forest/islands_controller.rb
647
- - spec/dummy/app/controllers/application_controller.rb
648
- - spec/dummy/app/models/product.rb
649
- - spec/dummy/app/models/user.rb
650
- - spec/dummy/app/models/owner.rb
651
- - spec/dummy/app/models/tree.rb
652
- - spec/dummy/app/models/island.rb
653
- - spec/dummy/app/models/location.rb
654
- - spec/dummy/app/models/reference.rb
655
- - spec/dummy/app/assets/javascripts/application.js
656
- - spec/dummy/app/assets/stylesheets/application.css
657
- - spec/dummy/app/assets/config/manifest.js
658
- - spec/dummy/app/config/routes.rb
659
- - spec/rails_helper.rb
660
- - spec/services/forest_liana/permissions_getter_spec.rb
661
- - spec/services/forest_liana/filters_parser_spec.rb
662
- - spec/services/forest_liana/schema_adapter_spec.rb
663
- - spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
664
- - spec/services/forest_liana/smart_action_field_validator_spec.rb
659
+ - spec/dummy/config/routes.rb
660
+ - spec/dummy/config/secrets.yml
661
+ - spec/services/forest_liana/resource_updater_spec.rb
662
+ - spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
665
663
  - spec/services/forest_liana/apimap_sorter_spec.rb
664
+ - spec/services/forest_liana/resources_getter_spec.rb
665
+ - spec/services/forest_liana/smart_action_field_validator_spec.rb
666
+ - spec/services/forest_liana/permissions_getter_spec.rb
666
667
  - spec/services/forest_liana/permissions_formatter_spec.rb
667
- - spec/services/forest_liana/line_stat_getter_spec.rb
668
- - spec/services/forest_liana/pie_stat_getter_spec.rb
669
668
  - spec/services/forest_liana/has_many_getter_spec.rb
670
- - spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
669
+ - spec/services/forest_liana/schema_adapter_spec.rb
671
670
  - spec/services/forest_liana/ip_whitelist_checker_spec.rb
672
- - spec/services/forest_liana/resources_getter_spec.rb
673
- - spec/services/forest_liana/value_stat_getter_spec.rb
674
671
  - spec/services/forest_liana/scope_manager_spec.rb
672
+ - spec/services/forest_liana/pie_stat_getter_spec.rb
673
+ - spec/services/forest_liana/filters_parser_spec.rb
675
674
  - spec/services/forest_liana/permissions_checker_live_queries_spec.rb
676
- - spec/services/forest_liana/resource_updater_spec.rb
677
- - spec/lib/forest_liana/bootstrapper_spec.rb
675
+ - spec/services/forest_liana/value_stat_getter_spec.rb
676
+ - spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
677
+ - spec/services/forest_liana/line_stat_getter_spec.rb
678
678
  - spec/lib/forest_liana/schema_file_updater_spec.rb
679
- - spec/spec_helper.rb
679
+ - spec/lib/forest_liana/bootstrapper_spec.rb
680
680
  - spec/config/initializers/logger_spec.rb