forest_liana 7.5.0 → 7.6.1
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 +4 -0
- data/app/controllers/forest_liana/associations_controller.rb +6 -4
- data/app/controllers/forest_liana/resources_controller.rb +0 -4
- data/lib/forest_liana/engine.rb +15 -0
- data/lib/forest_liana/version.rb +1 -1
- data/spec/dummy/app/models/owner.rb +1 -0
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/lib/forest_liana/controllers/owner_trees_controller.rb +11 -0
- data/spec/requests/cors_spec.rb +65 -0
- data/spec/requests/count_spec.rb +45 -3
- data/spec/requests/test.ru +12 -0
- metadata +135 -129
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6bd9a95e79440b1a3c14664d2e60a18da465b6a7acbe303b13b74d2e8908625
|
4
|
+
data.tar.gz: e3edb0a7092586733d2f18d35692f87f87fa072dbc249152c5dd1c2f4670d8f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d408f4b76db6423df866bd4abab4b2e3bddf12141a7ea6e3dffe066bdff9af513b77fc77fb7b830395bc25542e5683f0ff571e3ba813fdcbc815af190e9df5e
|
7
|
+
data.tar.gz: e0e945ce71184eca4c57651dda53086e38aee31e0e592f25a6ef6d1c6db95b9ec843617969cf7a47082b85fb8635c086fa2b5ee4baacbcc02a5254b82089d0be
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module ForestLiana
|
2
2
|
class AssociationsController < ForestLiana::ApplicationController
|
3
3
|
if Rails::VERSION::MAJOR < 4
|
4
|
-
before_filter :find_resource
|
5
|
-
before_filter :find_association
|
4
|
+
before_filter :find_resource, except: :count
|
5
|
+
before_filter :find_association, except: :count
|
6
6
|
else
|
7
|
-
before_action :find_resource
|
8
|
-
before_action :find_association
|
7
|
+
before_action :find_resource, except: :count
|
8
|
+
before_action :find_association, except: :count
|
9
9
|
end
|
10
10
|
|
11
11
|
def index
|
@@ -25,6 +25,8 @@ module ForestLiana
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def count
|
28
|
+
find_resource
|
29
|
+
find_association
|
28
30
|
begin
|
29
31
|
getter = HasManyGetter.new(@resource, @association, params, forest_user)
|
30
32
|
getter.count
|
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
data/spec/dummy/config/routes.rb
CHANGED
@@ -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
@@ -3,7 +3,8 @@ require 'rails_helper'
|
|
3
3
|
describe 'Requesting Owner', :type => :request do
|
4
4
|
before(:each) do
|
5
5
|
1.upto(10) do |i|
|
6
|
-
|
6
|
+
owner = Owner.create(name: "Owner #{i}")
|
7
|
+
Tree.create(name: "Tree #{i}", owner_id: owner.id)
|
7
8
|
end
|
8
9
|
end
|
9
10
|
|
@@ -52,13 +53,33 @@ describe 'Requesting Owner', :type => :request do
|
|
52
53
|
|
53
54
|
it 'should equal to 10' do
|
54
55
|
get '/forest/Owner/count', params: params, headers: headers
|
56
|
+
expect(response.body).to eq('{"count":10}')
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'count on relationships' do
|
61
|
+
params = {
|
62
|
+
fields: { 'Tree' => 'id,name,owner' },
|
63
|
+
page: { 'number' => '1', 'size' => '10' },
|
64
|
+
searchExtended: '0',
|
65
|
+
sort: '-id',
|
66
|
+
timezone: 'Europe/Paris'
|
67
|
+
}
|
68
|
+
|
69
|
+
it 'should respond 200' do
|
70
|
+
get '/forest/Owner/1/relationships/trees/count', params: params, headers: headers
|
55
71
|
expect(response.status).to eq(200)
|
56
72
|
end
|
73
|
+
|
74
|
+
it 'should equal to 1' do
|
75
|
+
get '/forest/Owner/1/relationships/trees/count', params: params, headers: headers
|
76
|
+
expect(response.body).to eq('{"count":1}')
|
77
|
+
end
|
57
78
|
end
|
58
79
|
|
59
80
|
describe 'deactivate_count_response' do
|
60
81
|
params = {
|
61
|
-
fields: { '
|
82
|
+
fields: { 'Owner' => 'id,name' },
|
62
83
|
page: { 'number' => '1', 'size' => '10' },
|
63
84
|
search: 'foo',
|
64
85
|
searchExtended: '0',
|
@@ -73,7 +94,28 @@ describe 'Requesting Owner', :type => :request do
|
|
73
94
|
|
74
95
|
it 'should equal to deactivated response' do
|
75
96
|
get '/forest/Owner/count', params: params, headers: headers
|
76
|
-
expect(response.body).to eq('{"meta":{"count":"deactivated
|
97
|
+
expect(response.body).to eq('{"meta":{"count":"deactivated"}}')
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'deactivate_count_response' do
|
102
|
+
params = {
|
103
|
+
fields: { 'Tree' => 'id,name,owner' },
|
104
|
+
page: { 'number' => '1', 'size' => '10' },
|
105
|
+
search: 'foo',
|
106
|
+
searchExtended: '0',
|
107
|
+
sort: '-id',
|
108
|
+
timezone: 'Europe/Paris'
|
109
|
+
}
|
110
|
+
|
111
|
+
it 'should respond 200' do
|
112
|
+
get '/forest/Owner/1/relationships/trees/count', params: params, headers: headers
|
113
|
+
expect(response.status).to eq(200)
|
114
|
+
end
|
115
|
+
|
116
|
+
it 'should equal to deactivated response' do
|
117
|
+
get '/forest/Owner/1/relationships/trees/count', params: params, headers: headers
|
118
|
+
expect(response.body).to eq('{"meta":{"count":"deactivated"}}')
|
77
119
|
end
|
78
120
|
end
|
79
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.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: 2022-
|
11
|
+
date: 2022-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -372,6 +372,7 @@ files:
|
|
372
372
|
- spec/dummy/lib/forest_liana/collections/island.rb
|
373
373
|
- spec/dummy/lib/forest_liana/collections/location.rb
|
374
374
|
- spec/dummy/lib/forest_liana/collections/user.rb
|
375
|
+
- spec/dummy/lib/forest_liana/controllers/owner_trees_controller.rb
|
375
376
|
- spec/dummy/lib/forest_liana/controllers/owners_controller.rb
|
376
377
|
- spec/helpers/forest_liana/query_helper_spec.rb
|
377
378
|
- spec/helpers/forest_liana/schema_helper_spec.rb
|
@@ -380,9 +381,11 @@ files:
|
|
380
381
|
- spec/rails_helper.rb
|
381
382
|
- spec/requests/actions_controller_spec.rb
|
382
383
|
- spec/requests/authentications_spec.rb
|
384
|
+
- spec/requests/cors_spec.rb
|
383
385
|
- spec/requests/count_spec.rb
|
384
386
|
- spec/requests/resources_spec.rb
|
385
387
|
- spec/requests/stats_spec.rb
|
388
|
+
- spec/requests/test.ru
|
386
389
|
- spec/services/forest_liana/apimap_sorter_spec.rb
|
387
390
|
- spec/services/forest_liana/filters_parser_spec.rb
|
388
391
|
- spec/services/forest_liana/has_many_getter_spec.rb
|
@@ -512,173 +515,176 @@ signing_key:
|
|
512
515
|
specification_version: 4
|
513
516
|
summary: Official Rails Liana for Forest
|
514
517
|
test_files:
|
518
|
+
- test/fixtures/belongs_to_field.yml
|
519
|
+
- test/fixtures/has_many_field.yml
|
520
|
+
- test/fixtures/serialize_field.yml
|
521
|
+
- test/fixtures/tree.yml
|
522
|
+
- test/fixtures/string_field.yml
|
523
|
+
- test/fixtures/has_many_through_field.yml
|
524
|
+
- test/fixtures/has_one_field.yml
|
525
|
+
- test/fixtures/reference.yml
|
526
|
+
- test/fixtures/owner.yml
|
527
|
+
- test/forest_liana_test.rb
|
515
528
|
- test/routing/route_test.rb
|
529
|
+
- test/test_helper.rb
|
516
530
|
- test/services/forest_liana/operator_date_interval_parser_test.rb
|
517
531
|
- test/services/forest_liana/schema_adapter_test.rb
|
518
|
-
- test/dummy/config.ru
|
519
532
|
- test/dummy/public/favicon.ico
|
520
|
-
- test/dummy/public/500.html
|
521
533
|
- test/dummy/public/404.html
|
534
|
+
- test/dummy/public/500.html
|
522
535
|
- test/dummy/public/422.html
|
523
|
-
- test/dummy/config/application.rb
|
524
|
-
- test/dummy/config/database.yml
|
525
|
-
- test/dummy/config/secrets.yml
|
526
|
-
- test/dummy/config/environment.rb
|
527
|
-
- test/dummy/config/routes.rb
|
528
|
-
- test/dummy/config/locales/en.yml
|
529
|
-
- test/dummy/config/environments/development.rb
|
530
|
-
- test/dummy/config/environments/test.rb
|
531
|
-
- test/dummy/config/environments/production.rb
|
532
|
-
- test/dummy/config/boot.rb
|
533
|
-
- test/dummy/config/initializers/assets.rb
|
534
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
535
|
-
- test/dummy/config/initializers/inflections.rb
|
536
|
-
- test/dummy/config/initializers/session_store.rb
|
537
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
538
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
539
|
-
- test/dummy/config/initializers/mime_types.rb
|
540
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
541
|
-
- test/dummy/db/schema.rb
|
542
|
-
- test/dummy/db/migrate/20150608131430_create_integer_field.rb
|
543
|
-
- test/dummy/db/migrate/20150608132159_create_boolean_field.rb
|
544
|
-
- test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
|
545
|
-
- test/dummy/db/migrate/20160627172810_create_owner.rb
|
546
536
|
- test/dummy/db/migrate/20150608132621_create_string_field.rb
|
547
|
-
- test/dummy/db/migrate/
|
548
|
-
- test/dummy/db/migrate/
|
537
|
+
- test/dummy/db/migrate/20160628173505_add_timestamps.rb
|
538
|
+
- test/dummy/db/migrate/20160627172951_create_tree.rb
|
549
539
|
- test/dummy/db/migrate/20150608130516_create_date_field.rb
|
550
|
-
- test/dummy/db/migrate/20150608133044_create_has_one_field.rb
|
551
|
-
- test/dummy/db/migrate/20170614141921_create_serialize_field.rb
|
552
|
-
- test/dummy/db/migrate/20181111162121_create_references_table.rb
|
553
|
-
- test/dummy/db/migrate/20150608131610_create_float_field.rb
|
554
540
|
- test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb
|
555
541
|
- test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
|
556
|
-
- test/dummy/db/migrate/
|
557
|
-
- test/dummy/db/migrate/20160627172951_create_tree.rb
|
558
|
-
- test/dummy/db/migrate/20160628173505_add_timestamps.rb
|
542
|
+
- test/dummy/db/migrate/20160627172810_create_owner.rb
|
559
543
|
- test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb
|
544
|
+
- test/dummy/db/migrate/20150608132159_create_boolean_field.rb
|
545
|
+
- test/dummy/db/migrate/20150608131430_create_integer_field.rb
|
546
|
+
- test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
|
547
|
+
- test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb
|
548
|
+
- test/dummy/db/migrate/20170614141921_create_serialize_field.rb
|
549
|
+
- test/dummy/db/migrate/20150608131610_create_float_field.rb
|
560
550
|
- test/dummy/db/migrate/20150608131603_create_decimal_field.rb
|
561
|
-
- test/dummy/
|
562
|
-
- test/dummy/
|
563
|
-
- test/dummy/
|
564
|
-
- test/dummy/
|
565
|
-
- test/dummy/
|
566
|
-
- test/dummy/
|
567
|
-
- test/dummy/
|
568
|
-
- test/dummy/
|
569
|
-
- test/dummy/
|
551
|
+
- test/dummy/db/migrate/20150608150016_create_has_many_field.rb
|
552
|
+
- test/dummy/db/migrate/20150608133044_create_has_one_field.rb
|
553
|
+
- test/dummy/db/migrate/20181111162121_create_references_table.rb
|
554
|
+
- test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
|
555
|
+
- test/dummy/db/schema.rb
|
556
|
+
- test/dummy/config.ru
|
557
|
+
- test/dummy/config/application.rb
|
558
|
+
- test/dummy/config/environments/development.rb
|
559
|
+
- test/dummy/config/environments/production.rb
|
560
|
+
- test/dummy/config/environments/test.rb
|
561
|
+
- test/dummy/config/boot.rb
|
562
|
+
- test/dummy/config/routes.rb
|
563
|
+
- test/dummy/config/secrets.yml
|
564
|
+
- test/dummy/config/database.yml
|
565
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
566
|
+
- test/dummy/config/initializers/mime_types.rb
|
567
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
568
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
569
|
+
- test/dummy/config/initializers/session_store.rb
|
570
|
+
- test/dummy/config/initializers/assets.rb
|
571
|
+
- test/dummy/config/initializers/inflections.rb
|
572
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
573
|
+
- test/dummy/config/environment.rb
|
574
|
+
- test/dummy/config/locales/en.yml
|
575
|
+
- test/dummy/README.rdoc
|
576
|
+
- test/dummy/app/controllers/application_controller.rb
|
570
577
|
- test/dummy/app/models/has_many_through_field.rb
|
571
|
-
- test/dummy/app/models/boolean_field.rb
|
572
|
-
- test/dummy/app/models/owner.rb
|
573
578
|
- test/dummy/app/models/polymorphic_field.rb
|
574
|
-
- test/dummy/app/models/
|
579
|
+
- test/dummy/app/models/string_field.rb
|
580
|
+
- test/dummy/app/models/date_field.rb
|
575
581
|
- test/dummy/app/models/belongs_to_class_name_field.rb
|
576
|
-
- test/dummy/app/models/
|
577
|
-
- test/dummy/app/models/
|
582
|
+
- test/dummy/app/models/owner.rb
|
583
|
+
- test/dummy/app/models/decimal_field.rb
|
578
584
|
- test/dummy/app/models/tree.rb
|
579
|
-
- test/dummy/app/models/float_field.rb
|
580
585
|
- test/dummy/app/models/has_many_field.rb
|
581
|
-
- test/dummy/app/models/has_one_field.rb
|
582
586
|
- test/dummy/app/models/has_many_class_name_field.rb
|
583
|
-
- test/dummy/app/
|
587
|
+
- test/dummy/app/models/boolean_field.rb
|
588
|
+
- test/dummy/app/models/integer_field.rb
|
589
|
+
- test/dummy/app/models/belongs_to_field.rb
|
590
|
+
- test/dummy/app/models/serialize_field.rb
|
591
|
+
- test/dummy/app/models/has_and_belongs_to_many_field.rb
|
592
|
+
- test/dummy/app/models/float_field.rb
|
593
|
+
- test/dummy/app/models/has_one_field.rb
|
594
|
+
- test/dummy/app/models/reference.rb
|
595
|
+
- test/dummy/app/views/layouts/application.html.erb
|
596
|
+
- test/dummy/app/assets/javascripts/application.js
|
597
|
+
- test/dummy/app/assets/stylesheets/application.css
|
598
|
+
- test/dummy/app/assets/config/manifest.js
|
584
599
|
- test/dummy/app/helpers/application_helper.rb
|
585
600
|
- test/dummy/Rakefile
|
586
|
-
- test/dummy/bin/setup
|
587
|
-
- test/dummy/bin/bundle
|
588
|
-
- test/dummy/bin/rails
|
589
601
|
- test/dummy/bin/rake
|
590
|
-
- test/dummy/
|
591
|
-
- test/
|
592
|
-
- test/
|
593
|
-
-
|
594
|
-
-
|
595
|
-
-
|
596
|
-
- test/fixtures/owner.yml
|
597
|
-
- test/fixtures/has_many_field.yml
|
598
|
-
- test/fixtures/serialize_field.yml
|
599
|
-
- test/fixtures/belongs_to_field.yml
|
600
|
-
- test/fixtures/reference.yml
|
601
|
-
- test/fixtures/string_field.yml
|
602
|
+
- test/dummy/bin/rails
|
603
|
+
- test/dummy/bin/bundle
|
604
|
+
- test/dummy/bin/setup
|
605
|
+
- spec/lib/forest_liana/schema_file_updater_spec.rb
|
606
|
+
- spec/lib/forest_liana/bootstrapper_spec.rb
|
607
|
+
- spec/config/initializers/logger_spec.rb
|
602
608
|
- spec/rails_helper.rb
|
603
|
-
- spec/requests/stats_spec.rb
|
604
|
-
- spec/requests/actions_controller_spec.rb
|
605
|
-
- spec/requests/authentications_spec.rb
|
606
|
-
- spec/requests/resources_spec.rb
|
607
|
-
- spec/requests/count_spec.rb
|
608
|
-
- spec/services/forest_liana/resource_updater_spec.rb
|
609
|
-
- spec/services/forest_liana/ip_whitelist_checker_spec.rb
|
610
|
-
- spec/services/forest_liana/permissions_formatter_spec.rb
|
611
|
-
- spec/services/forest_liana/resources_getter_spec.rb
|
612
|
-
- spec/services/forest_liana/apimap_sorter_spec.rb
|
613
|
-
- spec/services/forest_liana/permissions_checker_live_queries_spec.rb
|
614
|
-
- spec/services/forest_liana/value_stat_getter_spec.rb
|
615
|
-
- spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
|
616
|
-
- spec/services/forest_liana/smart_action_field_validator_spec.rb
|
617
609
|
- spec/services/forest_liana/scope_manager_spec.rb
|
618
|
-
- spec/services/forest_liana/
|
619
|
-
- spec/services/forest_liana/permissions_getter_spec.rb
|
620
|
-
- spec/services/forest_liana/has_many_getter_spec.rb
|
610
|
+
- spec/services/forest_liana/value_stat_getter_spec.rb
|
621
611
|
- spec/services/forest_liana/line_stat_getter_spec.rb
|
612
|
+
- spec/services/forest_liana/schema_adapter_spec.rb
|
613
|
+
- spec/services/forest_liana/permissions_formatter_spec.rb
|
622
614
|
- spec/services/forest_liana/pie_stat_getter_spec.rb
|
615
|
+
- spec/services/forest_liana/has_many_getter_spec.rb
|
616
|
+
- spec/services/forest_liana/permissions_getter_spec.rb
|
623
617
|
- spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
|
624
|
-
- spec/services/forest_liana/
|
618
|
+
- spec/services/forest_liana/filters_parser_spec.rb
|
619
|
+
- spec/services/forest_liana/permissions_checker_live_queries_spec.rb
|
620
|
+
- spec/services/forest_liana/ip_whitelist_checker_spec.rb
|
621
|
+
- spec/services/forest_liana/resource_updater_spec.rb
|
622
|
+
- spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
|
623
|
+
- spec/services/forest_liana/apimap_sorter_spec.rb
|
624
|
+
- spec/services/forest_liana/resources_getter_spec.rb
|
625
|
+
- spec/services/forest_liana/smart_action_field_validator_spec.rb
|
626
|
+
- spec/dummy/lib/forest_liana/controllers/owners_controller.rb
|
627
|
+
- spec/dummy/lib/forest_liana/controllers/owner_trees_controller.rb
|
628
|
+
- spec/dummy/lib/forest_liana/collections/user.rb
|
629
|
+
- spec/dummy/lib/forest_liana/collections/island.rb
|
630
|
+
- spec/dummy/lib/forest_liana/collections/location.rb
|
631
|
+
- spec/dummy/db/migrate/20210511141752_create_owners.rb
|
632
|
+
- spec/dummy/db/migrate/20190226173051_create_isle.rb
|
633
|
+
- spec/dummy/db/migrate/20190226172951_create_user.rb
|
634
|
+
- spec/dummy/db/migrate/20210526084712_create_products.rb
|
635
|
+
- spec/dummy/db/migrate/20210326140855_create_locations.rb
|
636
|
+
- spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
|
637
|
+
- spec/dummy/db/migrate/20190226174951_create_tree.rb
|
638
|
+
- spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
|
639
|
+
- spec/dummy/db/migrate/20210326110524_create_references.rb
|
640
|
+
- spec/dummy/db/schema.rb
|
625
641
|
- spec/dummy/config.ru
|
626
642
|
- spec/dummy/config/application.rb
|
627
|
-
- spec/dummy/config/database.yml
|
628
|
-
- spec/dummy/config/secrets.yml
|
629
|
-
- spec/dummy/config/environment.rb
|
630
|
-
- spec/dummy/config/routes.rb
|
631
643
|
- spec/dummy/config/environments/development.rb
|
632
|
-
- spec/dummy/config/environments/test.rb
|
633
644
|
- spec/dummy/config/environments/production.rb
|
645
|
+
- spec/dummy/config/environments/test.rb
|
634
646
|
- spec/dummy/config/boot.rb
|
635
|
-
- spec/dummy/config/
|
636
|
-
- spec/dummy/config/
|
637
|
-
- spec/dummy/config/
|
638
|
-
- spec/dummy/config/initializers/
|
647
|
+
- spec/dummy/config/routes.rb
|
648
|
+
- spec/dummy/config/secrets.yml
|
649
|
+
- spec/dummy/config/database.yml
|
650
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
651
|
+
- spec/dummy/config/initializers/mime_types.rb
|
639
652
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
640
653
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
641
|
-
- spec/dummy/config/initializers/mime_types.rb
|
642
654
|
- spec/dummy/config/initializers/forest_liana.rb
|
643
|
-
- spec/dummy/config/initializers/
|
644
|
-
- spec/dummy/
|
645
|
-
- spec/dummy/
|
646
|
-
- spec/dummy/
|
647
|
-
- spec/dummy/
|
648
|
-
- spec/dummy/
|
649
|
-
- spec/dummy/
|
650
|
-
- spec/dummy/
|
651
|
-
- spec/dummy/
|
652
|
-
- spec/dummy/db/migrate/20190226173051_create_isle.rb
|
653
|
-
- spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
|
654
|
-
- spec/dummy/app/assets/javascripts/application.js
|
655
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
656
|
-
- spec/dummy/app/assets/config/manifest.js
|
657
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
655
|
+
- spec/dummy/config/initializers/session_store.rb
|
656
|
+
- spec/dummy/config/initializers/assets.rb
|
657
|
+
- spec/dummy/config/initializers/inflections.rb
|
658
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
659
|
+
- spec/dummy/config/environment.rb
|
660
|
+
- spec/dummy/README.rdoc
|
661
|
+
- spec/dummy/app/controllers/application_controller.rb
|
662
|
+
- spec/dummy/app/controllers/forest/islands_controller.rb
|
663
|
+
- spec/dummy/app/config/routes.rb
|
658
664
|
- spec/dummy/app/models/user.rb
|
665
|
+
- spec/dummy/app/models/product.rb
|
659
666
|
- spec/dummy/app/models/owner.rb
|
660
|
-
- spec/dummy/app/models/location.rb
|
661
|
-
- spec/dummy/app/models/reference.rb
|
662
667
|
- spec/dummy/app/models/tree.rb
|
663
|
-
- spec/dummy/app/models/product.rb
|
664
668
|
- spec/dummy/app/models/island.rb
|
665
|
-
- spec/dummy/app/
|
666
|
-
- spec/dummy/app/
|
667
|
-
- spec/dummy/app/
|
669
|
+
- spec/dummy/app/models/reference.rb
|
670
|
+
- spec/dummy/app/models/location.rb
|
671
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
672
|
+
- spec/dummy/app/assets/javascripts/application.js
|
673
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
674
|
+
- spec/dummy/app/assets/config/manifest.js
|
668
675
|
- spec/dummy/app/helpers/application_helper.rb
|
669
676
|
- spec/dummy/Rakefile
|
670
|
-
- spec/dummy/lib/forest_liana/controllers/owners_controller.rb
|
671
|
-
- spec/dummy/lib/forest_liana/collections/user.rb
|
672
|
-
- spec/dummy/lib/forest_liana/collections/location.rb
|
673
|
-
- spec/dummy/lib/forest_liana/collections/island.rb
|
674
|
-
- spec/dummy/bin/setup
|
675
|
-
- spec/dummy/bin/bundle
|
676
|
-
- spec/dummy/bin/rails
|
677
677
|
- spec/dummy/bin/rake
|
678
|
-
- spec/dummy/
|
679
|
-
- spec/
|
680
|
-
- spec/
|
681
|
-
- spec/lib/forest_liana/schema_file_updater_spec.rb
|
682
|
-
- spec/lib/forest_liana/bootstrapper_spec.rb
|
678
|
+
- spec/dummy/bin/rails
|
679
|
+
- spec/dummy/bin/bundle
|
680
|
+
- spec/dummy/bin/setup
|
683
681
|
- spec/helpers/forest_liana/query_helper_spec.rb
|
684
682
|
- spec/helpers/forest_liana/schema_helper_spec.rb
|
683
|
+
- spec/requests/actions_controller_spec.rb
|
684
|
+
- spec/requests/resources_spec.rb
|
685
|
+
- spec/requests/test.ru
|
686
|
+
- spec/requests/stats_spec.rb
|
687
|
+
- spec/requests/count_spec.rb
|
688
|
+
- spec/requests/cors_spec.rb
|
689
|
+
- spec/requests/authentications_spec.rb
|
690
|
+
- spec/spec_helper.rb
|