forest_liana 6.4.1 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|
|
@@ -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/version.rb
CHANGED
|
@@ -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
|
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-06-
|
|
11
|
+
date: 2021-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -371,6 +371,7 @@ files:
|
|
|
371
371
|
- spec/helpers/forest_liana/is_same_data_structure_helper_spec.rb
|
|
372
372
|
- spec/helpers/forest_liana/query_helper_spec.rb
|
|
373
373
|
- spec/helpers/forest_liana/schema_helper_spec.rb
|
|
374
|
+
- spec/lib/forest_liana/bootstrapper_spec.rb
|
|
374
375
|
- spec/rails_helper.rb
|
|
375
376
|
- spec/requests/actions_controller_spec.rb
|
|
376
377
|
- spec/requests/authentications_spec.rb
|
|
@@ -663,6 +664,7 @@ test_files:
|
|
|
663
664
|
- spec/dummy/app/models/location.rb
|
|
664
665
|
- spec/dummy/app/models/island.rb
|
|
665
666
|
- spec/dummy/app/models/reference.rb
|
|
667
|
+
- spec/lib/forest_liana/bootstrapper_spec.rb
|
|
666
668
|
- spec/rails_helper.rb
|
|
667
669
|
- spec/requests/stats_spec.rb
|
|
668
670
|
- spec/requests/resources_spec.rb
|