mumuki-classroom 9.0.1 → 9.4.0

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: 758f9c2cad27a3521fd21607d251b73ba1dccf289d92bb316c3a4b05649e154a
4
- data.tar.gz: d7e093105fb0bb1849bf716382d248ab4417a5779d8786d668312b261cbc7010
3
+ metadata.gz: 1b4c5d2144ef1b1fc3107754cac1e70ee99818e6930408c7aa5ea26acfdca0c6
4
+ data.tar.gz: d939aa1e3165d10669f7a029d5cf7804f62b71e6a9cab4db8b06dae26cfc766f
5
5
  SHA512:
6
- metadata.gz: 18e0f05f9cd7b0b7063de7388be63a6bd3f74aed8ca28539c12ee389b9641a93a623ef96461c2156ef61b65a857cfc53fab36e66040183fc3da1f1b25f48408d
7
- data.tar.gz: 7e4a6e42039d6866b1aa57d38892aa47b53d437856d9a670008ef139a275b9a379dfb0d93b02843faf02c160aafe1f8fa0335e5872531c9de03c09eb6bfad33c
6
+ metadata.gz: afcab977f72fd026340e6d5a839ca57c911bc46538a2c15501b5b089ab193aaa00dc5debd8e178f0a06ab91332e05f9912a4c6fbd7101cdc6c9a2b0539b03468
7
+ data.tar.gz: 7a8536e8401e496f32e13493b0f22a3173edbe2676cb0636c2d6df9f24c7ddab9bb2b6978ff67bc59f2f247e99721e45662379d2fae24781611c0af974876ebd
@@ -0,0 +1,3 @@
1
+ ActiveSupport::Inflector.inflections(:en) do |inflect|
2
+ inflect.acronym 'FAQs'
3
+ end
@@ -17,8 +17,8 @@ module Reporting
17
17
  main_pipeline << {'$match': query}
18
18
  main_pipeline.concat searching.pipeline
19
19
  main_pipeline.concat sorting.pipeline
20
- main_pipeline << {'$project': projection}
21
20
  main_pipeline << {'$sort': sorting.order_by(ordering)}
21
+ main_pipeline << {'$project': projection}
22
22
  end
23
23
 
24
24
  end
@@ -2,7 +2,7 @@ module Sorting
2
2
 
3
3
  def self.aggregate(collection, query, paginated_params, query_params)
4
4
  reporting_pipeline = Reporting.build_pipeline(collection, query, paginated_params, query_params, projection)
5
- query = collection.collection.aggregate(pipeline paginated_params, reporting_pipeline).first
5
+ query = collection.collection.aggregate(pipeline(paginated_params, reporting_pipeline), allow_disk_use: true).first # Must allow disk use for sorting large collections by non-index
6
6
  query_results(query)
7
7
  end
8
8
 
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Classroom
3
- VERSION = '9.0.1'
3
+ VERSION = '9.4.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-classroom
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.1
4
+ version: 9.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 9.0.0
89
+ version: 9.4.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 9.0.0
96
+ version: 9.4.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mumukit-login
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -222,6 +222,7 @@ files:
222
222
  - LICENSE
223
223
  - README.md
224
224
  - Rakefile
225
+ - config/initializers/inflections.rb
225
226
  - lib/mumuki/classroom.rb
226
227
  - lib/mumuki/classroom/collection.rb
227
228
  - lib/mumuki/classroom/engine.rb