forest_liana 7.5.1 → 7.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/application_controller.rb +1 -1
- data/lib/forest_liana/bootstrapper.rb +2 -2
- data/lib/forest_liana/engine.rb +15 -0
- data/lib/forest_liana/version.rb +1 -1
- data/spec/lib/forest_liana/bootstrapper_spec.rb +104 -0
- data/spec/requests/cors_spec.rb +65 -0
- data/spec/requests/count_spec.rb +2 -2
- data/spec/requests/test.ru +12 -0
- metadata +141 -137
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5ae1ded0eccb39f9cd865766053b17ba0887f53109d15d1424b5eb0106fe79
|
4
|
+
data.tar.gz: af2489f53d749ec12c3c8daeecbca39fd351d71894cd2fafe9dba31b44fcedbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fadc88d411dbf662bf99d836a3790d6ff0d17a5db44fd2ba9153632b1e553202693076609bf0355aba7c9859f27ec82c97e4b6364272a92e17d881c1e7b9ad1
|
7
|
+
data.tar.gz: 6b202989c5fbb4481c4b86e0911969703a2bbe8f7b4ab1a01874e14b4cb9bb0c33a313eaaeaf0d49958540325ac4f5e031fa7d8e5d0ca8ba6f3acbf7668eefef
|
@@ -59,8 +59,8 @@ module ForestLiana
|
|
59
59
|
c = get_collection(collection['name'])
|
60
60
|
unless c.nil?
|
61
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 : []
|
62
|
+
load = !a.nil? && !a.hooks.nil? && a.hooks.key?(:load) && a.hooks[:load].is_a?(Proc)
|
63
|
+
change = !a.nil? && !a.hooks.nil? && a.hooks.key?(:change) && a.hooks[:change].is_a?(Hash) ? a.hooks[:change].keys : []
|
64
64
|
action['hooks'] = {'load' => load, 'change' => change}
|
65
65
|
end
|
66
66
|
end
|
data/lib/forest_liana/engine.rb
CHANGED
@@ -8,6 +8,21 @@ require 'bcrypt'
|
|
8
8
|
require_relative 'bootstrapper'
|
9
9
|
require_relative 'collection'
|
10
10
|
|
11
|
+
module Rack
|
12
|
+
class Cors
|
13
|
+
class Resource
|
14
|
+
def to_preflight_headers(env)
|
15
|
+
h = to_headers(env)
|
16
|
+
h['Access-Control-Allow-Private-Network'] = 'true' if env['HTTP_ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK'] == 'true'
|
17
|
+
if env[HTTP_ACCESS_CONTROL_REQUEST_HEADERS]
|
18
|
+
h.merge!('Access-Control-Allow-Headers' => env[HTTP_ACCESS_CONTROL_REQUEST_HEADERS])
|
19
|
+
end
|
20
|
+
h
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
11
26
|
module ForestLiana
|
12
27
|
class Engine < ::Rails::Engine
|
13
28
|
isolate_namespace ForestLiana
|
data/lib/forest_liana/version.rb
CHANGED
@@ -8,5 +8,109 @@ module ForestLiana
|
|
8
8
|
.to include(:database_type)
|
9
9
|
end
|
10
10
|
end
|
11
|
+
|
12
|
+
describe 'generate_action_hooks' do
|
13
|
+
schema = '{
|
14
|
+
"collections": [
|
15
|
+
{
|
16
|
+
"name": "Island",
|
17
|
+
"name_old": "Island",
|
18
|
+
"icon": null,
|
19
|
+
"is_read_only": false,
|
20
|
+
"is_searchable": true,
|
21
|
+
"is_virtual": false,
|
22
|
+
"only_for_relationships": false,
|
23
|
+
"pagination_type": "page",
|
24
|
+
"fields": [
|
25
|
+
{
|
26
|
+
"field": "id",
|
27
|
+
"type": "Number",
|
28
|
+
"default_value": null,
|
29
|
+
"enums": null,
|
30
|
+
"integration": null,
|
31
|
+
"is_filterable": true,
|
32
|
+
"is_read_only": false,
|
33
|
+
"is_required": false,
|
34
|
+
"is_sortable": true,
|
35
|
+
"is_virtual": false,
|
36
|
+
"reference": null,
|
37
|
+
"inverse_of": null,
|
38
|
+
"widget": null,
|
39
|
+
"validations": []
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"field": "first_name",
|
43
|
+
"type": "String",
|
44
|
+
"default_value": null,
|
45
|
+
"enums": null,
|
46
|
+
"integration": null,
|
47
|
+
"is_filterable": true,
|
48
|
+
"is_read_only": false,
|
49
|
+
"is_required": false,
|
50
|
+
"is_sortable": true,
|
51
|
+
"is_virtual": false,
|
52
|
+
"reference": null,
|
53
|
+
"inverse_of": null,
|
54
|
+
"widget": null,
|
55
|
+
"validations": []
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"field": "last_name",
|
59
|
+
"type": "String",
|
60
|
+
"default_value": null,
|
61
|
+
"enums": null,
|
62
|
+
"integration": null,
|
63
|
+
"is_filterable": true,
|
64
|
+
"is_read_only": false,
|
65
|
+
"is_required": false,
|
66
|
+
"is_sortable": true,
|
67
|
+
"is_virtual": false,
|
68
|
+
"reference": null,
|
69
|
+
"inverse_of": null,
|
70
|
+
"widget": null,
|
71
|
+
"validations": []
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"segments": [],
|
75
|
+
"actions": [
|
76
|
+
{
|
77
|
+
"name": "foo",
|
78
|
+
"type": "bulk",
|
79
|
+
"base_url": null,
|
80
|
+
"endpoint": "forest/actions/mark-as-live",
|
81
|
+
"http_method": "POST",
|
82
|
+
"redirect": null,
|
83
|
+
"download": false,
|
84
|
+
"fields": [],
|
85
|
+
"hooks": {
|
86
|
+
"load": false,
|
87
|
+
"change": []
|
88
|
+
}
|
89
|
+
}
|
90
|
+
]
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"meta": {
|
94
|
+
"liana": "forest-rails",
|
95
|
+
"liana_version": "7.6.0",
|
96
|
+
"stack": {
|
97
|
+
"database_type": "postgresql",
|
98
|
+
"orm_version": "7.0.2.4"
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}'
|
102
|
+
|
103
|
+
|
104
|
+
it "Should return actions hooks empty for the island collection" do
|
105
|
+
allow(ForestLiana).to receive(:env_secret).and_return(nil)
|
106
|
+
bootstrapper = Bootstrapper.new
|
107
|
+
content = JSON.parse(schema)
|
108
|
+
bootstrapper.instance_variable_set(:@collections_sent, content['collections'])
|
109
|
+
bootstrapper.instance_variable_set(:@meta_sent, content['meta'])
|
110
|
+
bootstrapper.send(:generate_action_hooks)
|
111
|
+
|
112
|
+
expect(bootstrapper.instance_variable_get("@collections_sent").first['actions'].first['hooks']).to eq({"load"=>false, "change"=>[]})
|
113
|
+
end
|
114
|
+
end
|
11
115
|
end
|
12
116
|
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
require 'rack/test'
|
3
|
+
require 'rack/cors'
|
4
|
+
|
5
|
+
class CaptureResult
|
6
|
+
def initialize(app, options = {})
|
7
|
+
@app = app
|
8
|
+
@result_holder = options[:holder]
|
9
|
+
end
|
10
|
+
|
11
|
+
def call(env)
|
12
|
+
env['HTTP_ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK'] = 'true'
|
13
|
+
response = @app.call(env)
|
14
|
+
@result_holder.cors_result = env[Rack::Cors::RACK_CORS]
|
15
|
+
response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe Rack::Cors do
|
20
|
+
|
21
|
+
include Rack::Test::Methods
|
22
|
+
|
23
|
+
attr_accessor :cors_result
|
24
|
+
|
25
|
+
def load_app(name, options = {})
|
26
|
+
test = self
|
27
|
+
Rack::Builder.new do
|
28
|
+
use CaptureResult, holder: test
|
29
|
+
eval File.read(File.dirname(__FILE__) + "/#{name}.ru")
|
30
|
+
use FakeProxy if options[:proxy]
|
31
|
+
map('/') do
|
32
|
+
run(lambda do |_env|
|
33
|
+
[
|
34
|
+
200,
|
35
|
+
{
|
36
|
+
'Content-Type' => 'text/html',
|
37
|
+
},
|
38
|
+
['success']
|
39
|
+
]
|
40
|
+
end)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
let(:app) { load_app('test') }
|
46
|
+
|
47
|
+
describe 'preflight requests' do
|
48
|
+
it 'should allow private network' do
|
49
|
+
preflight_request('http://localhost:3000', '/')
|
50
|
+
assert !last_response.headers['Access-Control-Allow-Private-Network'].nil?
|
51
|
+
assert last_response.headers['Access-Control-Allow-Private-Network'] == 'true'
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
protected
|
56
|
+
|
57
|
+
def preflight_request(origin, path, opts = {})
|
58
|
+
header 'Origin', origin
|
59
|
+
unless opts.key?(:method) && opts[:method].nil?
|
60
|
+
header 'Access-Control-Request-Method', opts[:method] ? opts[:method].to_s.upcase : 'GET'
|
61
|
+
end
|
62
|
+
header 'Access-Control-Request-Headers', opts[:headers] if opts[:headers]
|
63
|
+
options path
|
64
|
+
end
|
65
|
+
end
|
data/spec/requests/count_spec.rb
CHANGED
@@ -94,7 +94,7 @@ describe 'Requesting Owner', :type => :request do
|
|
94
94
|
|
95
95
|
it 'should equal to deactivated response' do
|
96
96
|
get '/forest/Owner/count', params: params, headers: headers
|
97
|
-
expect(response.body).to eq('{"meta":{"count":"deactivated
|
97
|
+
expect(response.body).to eq('{"meta":{"count":"deactivated"}}')
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -115,7 +115,7 @@ describe 'Requesting Owner', :type => :request do
|
|
115
115
|
|
116
116
|
it 'should equal to deactivated response' do
|
117
117
|
get '/forest/Owner/1/relationships/trees/count', params: params, headers: headers
|
118
|
-
expect(response.body).to eq('{"meta":{"count":"deactivated
|
118
|
+
expect(response.body).to eq('{"meta":{"count":"deactivated"}}')
|
119
119
|
end
|
120
120
|
end
|
121
121
|
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
|
+
version: 7.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -381,9 +381,11 @@ files:
|
|
381
381
|
- spec/rails_helper.rb
|
382
382
|
- spec/requests/actions_controller_spec.rb
|
383
383
|
- spec/requests/authentications_spec.rb
|
384
|
+
- spec/requests/cors_spec.rb
|
384
385
|
- spec/requests/count_spec.rb
|
385
386
|
- spec/requests/resources_spec.rb
|
386
387
|
- spec/requests/stats_spec.rb
|
388
|
+
- spec/requests/test.ru
|
387
389
|
- spec/services/forest_liana/apimap_sorter_spec.rb
|
388
390
|
- spec/services/forest_liana/filters_parser_spec.rb
|
389
391
|
- spec/services/forest_liana/has_many_getter_spec.rb
|
@@ -513,174 +515,176 @@ signing_key:
|
|
513
515
|
specification_version: 4
|
514
516
|
summary: Official Rails Liana for Forest
|
515
517
|
test_files:
|
516
|
-
- test/
|
517
|
-
- test/
|
518
|
-
- test/
|
519
|
-
- test/
|
520
|
-
- test/
|
521
|
-
- test/
|
522
|
-
- test/
|
523
|
-
- test/
|
524
|
-
- test/
|
525
|
-
- test/
|
518
|
+
- test/test_helper.rb
|
519
|
+
- test/fixtures/reference.yml
|
520
|
+
- test/fixtures/owner.yml
|
521
|
+
- test/fixtures/tree.yml
|
522
|
+
- test/fixtures/string_field.yml
|
523
|
+
- test/fixtures/belongs_to_field.yml
|
524
|
+
- test/fixtures/has_many_through_field.yml
|
525
|
+
- test/fixtures/has_many_field.yml
|
526
|
+
- test/fixtures/serialize_field.yml
|
527
|
+
- test/fixtures/has_one_field.yml
|
528
|
+
- test/dummy/bin/rake
|
529
|
+
- test/dummy/bin/bundle
|
530
|
+
- test/dummy/bin/rails
|
531
|
+
- test/dummy/bin/setup
|
532
|
+
- test/dummy/Rakefile
|
533
|
+
- test/dummy/config/boot.rb
|
526
534
|
- test/dummy/config/secrets.yml
|
527
|
-
- test/dummy/config/
|
535
|
+
- test/dummy/config/application.rb
|
528
536
|
- test/dummy/config/routes.rb
|
529
|
-
- test/dummy/config/locales/en.yml
|
530
537
|
- test/dummy/config/environments/development.rb
|
531
538
|
- test/dummy/config/environments/test.rb
|
532
539
|
- test/dummy/config/environments/production.rb
|
533
|
-
- test/dummy/config/
|
540
|
+
- test/dummy/config/database.yml
|
541
|
+
- test/dummy/config/environment.rb
|
542
|
+
- test/dummy/config/locales/en.yml
|
534
543
|
- test/dummy/config/initializers/assets.rb
|
535
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
536
|
-
- test/dummy/config/initializers/inflections.rb
|
537
|
-
- test/dummy/config/initializers/session_store.rb
|
538
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
539
544
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
540
545
|
- test/dummy/config/initializers/mime_types.rb
|
546
|
+
- test/dummy/config/initializers/inflections.rb
|
547
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
548
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
549
|
+
- test/dummy/config/initializers/session_store.rb
|
541
550
|
- test/dummy/config/initializers/wrap_parameters.rb
|
542
|
-
- test/dummy/
|
543
|
-
- test/dummy/
|
544
|
-
- test/dummy/
|
545
|
-
- test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
|
546
|
-
- test/dummy/db/migrate/20160627172810_create_owner.rb
|
547
|
-
- test/dummy/db/migrate/20150608132621_create_string_field.rb
|
548
|
-
- test/dummy/db/migrate/20150608150016_create_has_many_field.rb
|
549
|
-
- test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb
|
550
|
-
- test/dummy/db/migrate/20150608130516_create_date_field.rb
|
551
|
-
- test/dummy/db/migrate/20150608133044_create_has_one_field.rb
|
552
|
-
- test/dummy/db/migrate/20170614141921_create_serialize_field.rb
|
553
|
-
- test/dummy/db/migrate/20181111162121_create_references_table.rb
|
554
|
-
- test/dummy/db/migrate/20150608131610_create_float_field.rb
|
555
|
-
- test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb
|
556
|
-
- test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
|
557
|
-
- test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
|
558
|
-
- test/dummy/db/migrate/20160627172951_create_tree.rb
|
559
|
-
- test/dummy/db/migrate/20160628173505_add_timestamps.rb
|
560
|
-
- test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb
|
561
|
-
- test/dummy/db/migrate/20150608131603_create_decimal_field.rb
|
562
|
-
- test/dummy/app/assets/javascripts/application.js
|
551
|
+
- test/dummy/README.rdoc
|
552
|
+
- test/dummy/app/views/layouts/application.html.erb
|
553
|
+
- test/dummy/app/controllers/application_controller.rb
|
563
554
|
- test/dummy/app/assets/stylesheets/application.css
|
564
555
|
- test/dummy/app/assets/config/manifest.js
|
565
|
-
- test/dummy/app/
|
566
|
-
- test/dummy/app/
|
567
|
-
- test/dummy/app/models/belongs_to_field.rb
|
568
|
-
- test/dummy/app/models/decimal_field.rb
|
569
|
-
- test/dummy/app/models/string_field.rb
|
570
|
-
- test/dummy/app/models/integer_field.rb
|
556
|
+
- test/dummy/app/assets/javascripts/application.js
|
557
|
+
- test/dummy/app/helpers/application_helper.rb
|
571
558
|
- test/dummy/app/models/has_many_through_field.rb
|
572
559
|
- test/dummy/app/models/boolean_field.rb
|
573
|
-
- test/dummy/app/models/
|
574
|
-
- test/dummy/app/models/polymorphic_field.rb
|
575
|
-
- test/dummy/app/models/has_and_belongs_to_many_field.rb
|
560
|
+
- test/dummy/app/models/float_field.rb
|
576
561
|
- test/dummy/app/models/belongs_to_class_name_field.rb
|
577
|
-
- test/dummy/app/models/
|
578
|
-
- test/dummy/app/models/
|
562
|
+
- test/dummy/app/models/has_and_belongs_to_many_field.rb
|
563
|
+
- test/dummy/app/models/string_field.rb
|
564
|
+
- test/dummy/app/models/date_field.rb
|
565
|
+
- test/dummy/app/models/decimal_field.rb
|
579
566
|
- test/dummy/app/models/tree.rb
|
580
|
-
- test/dummy/app/models/
|
581
|
-
- test/dummy/app/models/has_many_field.rb
|
582
|
-
- test/dummy/app/models/has_one_field.rb
|
567
|
+
- test/dummy/app/models/reference.rb
|
583
568
|
- test/dummy/app/models/has_many_class_name_field.rb
|
584
|
-
- test/dummy/app/
|
585
|
-
- test/dummy/app/
|
586
|
-
- test/dummy/
|
587
|
-
- test/dummy/
|
588
|
-
- test/dummy/
|
589
|
-
- test/dummy/
|
590
|
-
- test/dummy/
|
591
|
-
- test/dummy/
|
592
|
-
- test/
|
569
|
+
- test/dummy/app/models/serialize_field.rb
|
570
|
+
- test/dummy/app/models/owner.rb
|
571
|
+
- test/dummy/app/models/polymorphic_field.rb
|
572
|
+
- test/dummy/app/models/integer_field.rb
|
573
|
+
- test/dummy/app/models/belongs_to_field.rb
|
574
|
+
- test/dummy/app/models/has_one_field.rb
|
575
|
+
- test/dummy/app/models/has_many_field.rb
|
576
|
+
- test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb
|
577
|
+
- test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb
|
578
|
+
- test/dummy/db/migrate/20160628173505_add_timestamps.rb
|
579
|
+
- test/dummy/db/migrate/20150608131603_create_decimal_field.rb
|
580
|
+
- test/dummy/db/migrate/20181111162121_create_references_table.rb
|
581
|
+
- test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
|
582
|
+
- test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb
|
583
|
+
- test/dummy/db/migrate/20150608150016_create_has_many_field.rb
|
584
|
+
- test/dummy/db/migrate/20150608131430_create_integer_field.rb
|
585
|
+
- test/dummy/db/migrate/20160627172810_create_owner.rb
|
586
|
+
- test/dummy/db/migrate/20150608133044_create_has_one_field.rb
|
587
|
+
- test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
|
588
|
+
- test/dummy/db/migrate/20150608132621_create_string_field.rb
|
589
|
+
- test/dummy/db/migrate/20150608130516_create_date_field.rb
|
590
|
+
- test/dummy/db/migrate/20160627172951_create_tree.rb
|
591
|
+
- test/dummy/db/migrate/20170614141921_create_serialize_field.rb
|
592
|
+
- test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
|
593
|
+
- test/dummy/db/migrate/20150608131610_create_float_field.rb
|
594
|
+
- test/dummy/db/migrate/20150608132159_create_boolean_field.rb
|
595
|
+
- test/dummy/db/schema.rb
|
596
|
+
- test/dummy/public/422.html
|
597
|
+
- test/dummy/public/500.html
|
598
|
+
- test/dummy/public/favicon.ico
|
599
|
+
- test/dummy/public/404.html
|
600
|
+
- test/dummy/config.ru
|
601
|
+
- test/services/forest_liana/operator_date_interval_parser_test.rb
|
602
|
+
- test/services/forest_liana/schema_adapter_test.rb
|
603
|
+
- test/routing/route_test.rb
|
593
604
|
- test/forest_liana_test.rb
|
594
|
-
-
|
595
|
-
-
|
596
|
-
-
|
597
|
-
-
|
598
|
-
-
|
599
|
-
-
|
600
|
-
-
|
601
|
-
- test/fixtures/reference.yml
|
602
|
-
- test/fixtures/string_field.yml
|
603
|
-
- spec/rails_helper.rb
|
604
|
-
- spec/requests/stats_spec.rb
|
605
|
-
- spec/requests/actions_controller_spec.rb
|
606
|
-
- spec/requests/authentications_spec.rb
|
607
|
-
- spec/requests/resources_spec.rb
|
608
|
-
- spec/requests/count_spec.rb
|
609
|
-
- spec/services/forest_liana/resource_updater_spec.rb
|
610
|
-
- spec/services/forest_liana/ip_whitelist_checker_spec.rb
|
611
|
-
- spec/services/forest_liana/permissions_formatter_spec.rb
|
612
|
-
- spec/services/forest_liana/resources_getter_spec.rb
|
613
|
-
- spec/services/forest_liana/apimap_sorter_spec.rb
|
614
|
-
- spec/services/forest_liana/permissions_checker_live_queries_spec.rb
|
615
|
-
- spec/services/forest_liana/value_stat_getter_spec.rb
|
616
|
-
- spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
|
617
|
-
- spec/services/forest_liana/smart_action_field_validator_spec.rb
|
618
|
-
- spec/services/forest_liana/scope_manager_spec.rb
|
619
|
-
- spec/services/forest_liana/filters_parser_spec.rb
|
620
|
-
- spec/services/forest_liana/permissions_getter_spec.rb
|
621
|
-
- spec/services/forest_liana/has_many_getter_spec.rb
|
622
|
-
- spec/services/forest_liana/line_stat_getter_spec.rb
|
623
|
-
- spec/services/forest_liana/pie_stat_getter_spec.rb
|
624
|
-
- spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
|
625
|
-
- spec/services/forest_liana/schema_adapter_spec.rb
|
626
|
-
- spec/dummy/config.ru
|
627
|
-
- spec/dummy/config/application.rb
|
628
|
-
- spec/dummy/config/database.yml
|
605
|
+
- spec/spec_helper.rb
|
606
|
+
- spec/dummy/bin/rake
|
607
|
+
- spec/dummy/bin/bundle
|
608
|
+
- spec/dummy/bin/rails
|
609
|
+
- spec/dummy/bin/setup
|
610
|
+
- spec/dummy/Rakefile
|
611
|
+
- spec/dummy/config/boot.rb
|
629
612
|
- spec/dummy/config/secrets.yml
|
630
|
-
- spec/dummy/config/
|
613
|
+
- spec/dummy/config/application.rb
|
631
614
|
- spec/dummy/config/routes.rb
|
632
615
|
- spec/dummy/config/environments/development.rb
|
633
616
|
- spec/dummy/config/environments/test.rb
|
634
617
|
- spec/dummy/config/environments/production.rb
|
635
|
-
- spec/dummy/config/
|
618
|
+
- spec/dummy/config/database.yml
|
619
|
+
- spec/dummy/config/environment.rb
|
636
620
|
- spec/dummy/config/initializers/assets.rb
|
637
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
638
|
-
- spec/dummy/config/initializers/inflections.rb
|
639
|
-
- spec/dummy/config/initializers/session_store.rb
|
640
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
641
621
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
642
622
|
- spec/dummy/config/initializers/mime_types.rb
|
623
|
+
- spec/dummy/config/initializers/inflections.rb
|
643
624
|
- spec/dummy/config/initializers/forest_liana.rb
|
625
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
626
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
627
|
+
- spec/dummy/config/initializers/session_store.rb
|
644
628
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
645
|
-
- spec/dummy/
|
646
|
-
- spec/dummy/db/migrate/20210526084712_create_products.rb
|
647
|
-
- spec/dummy/db/migrate/20210326140855_create_locations.rb
|
648
|
-
- spec/dummy/db/migrate/20210326110524_create_references.rb
|
649
|
-
- spec/dummy/db/migrate/20210511141752_create_owners.rb
|
650
|
-
- spec/dummy/db/migrate/20190226174951_create_tree.rb
|
651
|
-
- spec/dummy/db/migrate/20190226172951_create_user.rb
|
652
|
-
- spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
|
653
|
-
- spec/dummy/db/migrate/20190226173051_create_isle.rb
|
654
|
-
- spec/dummy/db/migrate/20190716135241_add_type_to_user.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
|
629
|
+
- spec/dummy/README.rdoc
|
658
630
|
- spec/dummy/app/views/layouts/application.html.erb
|
659
|
-
- spec/dummy/app/models/user.rb
|
660
|
-
- spec/dummy/app/models/owner.rb
|
661
|
-
- spec/dummy/app/models/location.rb
|
662
|
-
- spec/dummy/app/models/reference.rb
|
663
|
-
- spec/dummy/app/models/tree.rb
|
664
|
-
- spec/dummy/app/models/product.rb
|
665
|
-
- spec/dummy/app/models/island.rb
|
666
631
|
- spec/dummy/app/config/routes.rb
|
667
|
-
- spec/dummy/app/controllers/application_controller.rb
|
668
632
|
- spec/dummy/app/controllers/forest/islands_controller.rb
|
633
|
+
- spec/dummy/app/controllers/application_controller.rb
|
634
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
635
|
+
- spec/dummy/app/assets/config/manifest.js
|
636
|
+
- spec/dummy/app/assets/javascripts/application.js
|
669
637
|
- spec/dummy/app/helpers/application_helper.rb
|
670
|
-
- spec/dummy/
|
671
|
-
- spec/dummy/
|
672
|
-
- spec/dummy/
|
638
|
+
- spec/dummy/app/models/product.rb
|
639
|
+
- spec/dummy/app/models/island.rb
|
640
|
+
- spec/dummy/app/models/tree.rb
|
641
|
+
- spec/dummy/app/models/reference.rb
|
642
|
+
- spec/dummy/app/models/owner.rb
|
643
|
+
- spec/dummy/app/models/user.rb
|
644
|
+
- spec/dummy/app/models/location.rb
|
645
|
+
- spec/dummy/db/migrate/20210326110524_create_references.rb
|
646
|
+
- spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
|
647
|
+
- spec/dummy/db/migrate/20210326140855_create_locations.rb
|
648
|
+
- spec/dummy/db/migrate/20190226174951_create_tree.rb
|
649
|
+
- spec/dummy/db/migrate/20190226173051_create_isle.rb
|
650
|
+
- spec/dummy/db/migrate/20210526084712_create_products.rb
|
651
|
+
- spec/dummy/db/migrate/20190226172951_create_user.rb
|
652
|
+
- spec/dummy/db/migrate/20210511141752_create_owners.rb
|
653
|
+
- spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
|
654
|
+
- spec/dummy/db/schema.rb
|
655
|
+
- spec/dummy/lib/forest_liana/collections/island.rb
|
673
656
|
- spec/dummy/lib/forest_liana/collections/user.rb
|
674
657
|
- spec/dummy/lib/forest_liana/collections/location.rb
|
675
|
-
- spec/dummy/lib/forest_liana/
|
676
|
-
- spec/dummy/
|
677
|
-
- spec/dummy/
|
678
|
-
- spec/
|
679
|
-
- spec/
|
680
|
-
- spec/
|
658
|
+
- spec/dummy/lib/forest_liana/controllers/owners_controller.rb
|
659
|
+
- spec/dummy/lib/forest_liana/controllers/owner_trees_controller.rb
|
660
|
+
- spec/dummy/config.ru
|
661
|
+
- spec/services/forest_liana/filters_parser_spec.rb
|
662
|
+
- spec/services/forest_liana/resource_updater_spec.rb
|
663
|
+
- spec/services/forest_liana/scope_manager_spec.rb
|
664
|
+
- spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
|
665
|
+
- spec/services/forest_liana/apimap_sorter_spec.rb
|
666
|
+
- spec/services/forest_liana/value_stat_getter_spec.rb
|
667
|
+
- spec/services/forest_liana/permissions_formatter_spec.rb
|
668
|
+
- spec/services/forest_liana/permissions_checker_live_queries_spec.rb
|
669
|
+
- spec/services/forest_liana/pie_stat_getter_spec.rb
|
670
|
+
- spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
|
671
|
+
- spec/services/forest_liana/ip_whitelist_checker_spec.rb
|
672
|
+
- spec/services/forest_liana/line_stat_getter_spec.rb
|
673
|
+
- spec/services/forest_liana/has_many_getter_spec.rb
|
674
|
+
- spec/services/forest_liana/schema_adapter_spec.rb
|
675
|
+
- spec/services/forest_liana/smart_action_field_validator_spec.rb
|
676
|
+
- spec/services/forest_liana/resources_getter_spec.rb
|
677
|
+
- spec/services/forest_liana/permissions_getter_spec.rb
|
678
|
+
- spec/requests/resources_spec.rb
|
679
|
+
- spec/requests/cors_spec.rb
|
680
|
+
- spec/requests/stats_spec.rb
|
681
|
+
- spec/requests/authentications_spec.rb
|
682
|
+
- spec/requests/actions_controller_spec.rb
|
683
|
+
- spec/requests/test.ru
|
684
|
+
- spec/requests/count_spec.rb
|
681
685
|
- spec/config/initializers/logger_spec.rb
|
682
|
-
- spec/
|
686
|
+
- spec/rails_helper.rb
|
687
|
+
- spec/helpers/forest_liana/schema_helper_spec.rb
|
688
|
+
- spec/helpers/forest_liana/query_helper_spec.rb
|
683
689
|
- spec/lib/forest_liana/schema_file_updater_spec.rb
|
684
690
|
- spec/lib/forest_liana/bootstrapper_spec.rb
|
685
|
-
- spec/helpers/forest_liana/query_helper_spec.rb
|
686
|
-
- spec/helpers/forest_liana/schema_helper_spec.rb
|