rims 0.2.9 → 0.3.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.
@@ -717,6 +717,30 @@ module RIMS::Test
717
717
  assert_equal(expected_values, limits.to_h)
718
718
  end
719
719
 
720
+ data('default' => [ 1024 * 8, {} ],
721
+ 'config' => [ 1024 * 16, { protocol: { line_length_limit: 1024 * 16 } } ])
722
+ def test_protocol_line_length_limit(data)
723
+ expected_value, config = data
724
+ @c.load(config)
725
+ assert_equal(expected_value, @c.protocol_line_length_limit)
726
+ end
727
+
728
+ data('default' => [ 1024**2 * 10, {} ],
729
+ 'config' => [ 1024**2 * 16, { protocol: { literal_size_limit: 1024**2 * 16 } } ])
730
+ def test_protocol_literal_size_limit(data)
731
+ expected_value, config = data
732
+ @c.load(config)
733
+ assert_equal(expected_value, @c.protocol_literal_size_limit)
734
+ end
735
+
736
+ data('default' => [ 1024**2 * 10, {} ],
737
+ 'config' => [ 1024**2 * 16, { protocol: { command_size_limit: 1024**2 * 16 } } ])
738
+ def test_protocol_command_size_limit(data)
739
+ expected_value, config = data
740
+ @c.load(config)
741
+ assert_equal(expected_value, @c.protocol_command_size_limit)
742
+ end
743
+
720
744
  data('default' => [ [ [ 'EUC-JP', Encoding::EUCJP_MS ],
721
745
  [ 'ISO-2022-JP', Encoding::CP50221 ],
722
746
  [ 'SHIFT_JIS', Encoding::WINDOWS_31J ]
@@ -863,6 +887,21 @@ module RIMS::Test
863
887
  assert_equal(expected_value, @c.bulk_response_count)
864
888
  end
865
889
 
890
+ data('default' => [ 1024**2 * 10, {} ],
891
+ 'config' => [ 33554432,
892
+ { drb_services: {
893
+ engine: {
894
+ bulk_response_size: 33554432
895
+ }
896
+ }
897
+ }
898
+ ])
899
+ def test_bulk_response_size(data)
900
+ expected_value, config = data
901
+ @c.load(config)
902
+ assert_equal(expected_value, @c.bulk_response_size)
903
+ end
904
+
866
905
  data('default' => [ 30, {} ],
867
906
  'config' => [ 15,
868
907
  { drb_services: {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rims
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TOKI Yoshinori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-12 00:00:00.000000000 Z
11
+ date: 2020-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rims-rfc822
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.12
33
+ version: 0.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.12
40
+ version: 0.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: logger-joint
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.0.3
207
+ rubygems_version: 3.1.2
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: RIMS is Ruby IMap Server