ree_lib 1.0.12 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +8 -8
  3. data/lib/ree_lib/packages/ree_mapper/package/ree_mapper/mapper_factory.rb +3 -3
  4. data/lib/ree_lib/packages/ree_mapper/spec/ree_mapper/types/type_options_spec.rb +14 -0
  5. data/lib/ree_lib/packages/ree_object/package/ree_object/functions/dump_as_json.rb +2 -2
  6. data/lib/ree_lib/version.rb +1 -1
  7. metadata +2 -33
  8. data/lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/human_time_zone_offset.schema.json +0 -34
  9. data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/convert_key.schema.json +0 -27
  10. data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_key.schema.json +0 -31
  11. data/lib/ree_lib/packages/ree_http/schemas/ree_http/add_auth.schema.json +0 -31
  12. data/lib/ree_lib/packages/ree_http/schemas/ree_http/basic_auth.schema.json +0 -15
  13. data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_request.schema.json +0 -70
  14. data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_requester.schema.json +0 -46
  15. data/lib/ree_lib/packages/ree_http/schemas/ree_http/execute_request.schema.json +0 -42
  16. data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/get_default_logger.schema.json +0 -27
  17. data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/set_default_logger.schema.json +0 -27
  18. data/lib/ree_lib/packages/ree_http/schemas/ree_http/get.schema.json +0 -22
  19. data/lib/ree_lib/packages/ree_http/schemas/ree_http/get_http.schema.json +0 -42
  20. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_delete.schema.json +0 -74
  21. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_get.schema.json +0 -66
  22. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_patch.schema.json +0 -74
  23. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_post.schema.json +0 -74
  24. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_put.schema.json +0 -74
  25. data/lib/ree_lib/packages/ree_http/schemas/ree_http/post.schema.json +0 -22
  26. data/lib/ree_lib/packages/ree_http/schemas/ree_http/post_http.schema.json +0 -42
  27. data/lib/ree_lib/packages/ree_http/schemas/ree_http/response.schema.json +0 -15
  28. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_data_migration.schema.json +0 -31
  29. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_schema_migration.schema.json +0 -31
  30. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_data_migrations_table.schema.json +0 -27
  31. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_schema_migrations_table.schema.json +0 -27
  32. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/migrate_db.schema.json +0 -15
  33. data/lib/ree_lib/packages/ree_object/schemas/ree_object/functions/to_hash.schema.json +0 -27
  34. data/lib/ree_lib/packages/ree_string/schemas/ree_string/functions/is_blank.schema.json +0 -27
  35. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/html_scrubber.schema.json +0 -34
  36. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/safe_list_sanitizer.schema.json +0 -24
  37. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize.schema.json +0 -35
  38. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/save_list_sanitizer.schema.json +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5642d84c9a164bab7fd9b03ba1e34ab6f50a56001e0d0f5c03bfeb329891c2bf
4
- data.tar.gz: 1ef62cc8d2db588c1f1b91a7d6899e7e1f96df2039c6fb833a77d6f3af35ee17
3
+ metadata.gz: 50fd7b502f104dfc8e4fa0c36ccacdb6f398fb6c0fe00205f8f0c7881677bb7b
4
+ data.tar.gz: 8805dea30c4a4c25e88318e92ffcfd04b96884c61787752062fcce57bbd94c74
5
5
  SHA512:
6
- metadata.gz: 81a32a78567d690bbeef04c74d4636bfe7ba3e9096870be936cae4420ce3371bb74f8d237545dd7a73dc543b147a952aeed85eaff180a1ea07222bc4eb3fbb7b
7
- data.tar.gz: a7e6e807ec71aec8275dd753abb1f491adfc75228051b65059fd1eb55e4816696f0d95e2550be78535fca6e8b5daec4c864eb395a5037619e41715e2ed7d9b8c
6
+ metadata.gz: a5133c6ed7bb344519cad05fa0f0f1bf20521cc5872e2255a96288537371ddeb527630fdba0e9940bb78c477072cfced47be0d9811efbae2d62a217b0365c124
7
+ data.tar.gz: 0f2d2cfbaa485412af4ec05764f355d9a46a9f1b5509a102d6c6e2ba900ec4c10fb98950531aacb03b5dd02efb7e5d6661b84004a25b5360c7b25382bb1e7969
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree_lib (1.0.12)
4
+ ree_lib (1.0.14)
5
5
  binding_of_caller (~> 1.0.0)
6
6
  i18n (~> 1.12.0)
7
7
  loofah (~> 2.18.0)
@@ -14,8 +14,8 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- addressable (2.8.0)
18
- public_suffix (>= 2.0.2, < 5.0)
17
+ addressable (2.8.1)
18
+ public_suffix (>= 2.0.2, < 6.0)
19
19
  binding_of_caller (1.0.0)
20
20
  debug_inspector (>= 0.0.1)
21
21
  bootsnap (1.13.0)
@@ -38,13 +38,13 @@ GEM
38
38
  msgpack (1.5.4)
39
39
  nokogiri (1.13.8-x86_64-linux)
40
40
  racc (~> 1.4)
41
- oj (3.13.20)
42
- pg (1.4.2)
43
- public_suffix (4.0.7)
41
+ oj (3.13.21)
42
+ pg (1.4.3)
43
+ public_suffix (5.0.0)
44
44
  racc (1.6.0)
45
45
  rainbow (3.1.1)
46
46
  rake (13.0.6)
47
- ree (1.0.3)
47
+ ree (1.0.5)
48
48
  commander (~> 4.6.0)
49
49
  rexml (3.2.5)
50
50
  rollbar (3.3.1)
@@ -66,7 +66,7 @@ GEM
66
66
  timecop (0.9.5)
67
67
  tzinfo (2.0.5)
68
68
  concurrent-ruby (~> 1.0)
69
- webmock (3.16.0)
69
+ webmock (3.18.1)
70
70
  addressable (>= 2.8.0)
71
71
  crack (>= 0.3.2)
72
72
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -90,11 +90,11 @@ class ReeMapper::MapperFactory
90
90
  @mapper.add_field(type, field_name, optional: optional, **opts)
91
91
  end
92
92
 
93
- contract(Symbol, Any, Ksplat[RestKeys => Any] => Nilor[ReeMapper::Field])
94
- def array?(field_name, each:, **opts)
93
+ contract(Symbol, Kwargs[each: Nilor[ReeMapper::Field]], Ksplat[RestKeys => Any], Optblock => Nilor[ReeMapper::Field])
94
+ def array?(field_name, each: nil, **opts, &blk)
95
95
  raise ArgumentError if opts.key?(:optional)
96
96
 
97
- array(field_name, each: each, optional: true, **opts)
97
+ array(field_name, each: each, optional: true, **opts, &blk)
98
98
  end
99
99
 
100
100
  contract(Symbol, Kwargs[key: Nilor[Symbol]], Ksplat[RestKeys => Any], Block => nil)
@@ -34,6 +34,12 @@ RSpec.describe 'ReeMapper::MapperFactory type options' do
34
34
  integer? :opt_number
35
35
  integer :opt_number_long, optional: true
36
36
  array? :opt_array, each: integer
37
+ array? :opt_array_with_blk do
38
+ integer :id
39
+ end
40
+ hash? :optional_hsh do
41
+ integer :id
42
+ end
37
43
  }
38
44
  }
39
45
 
@@ -57,6 +63,14 @@ RSpec.describe 'ReeMapper::MapperFactory type options' do
57
63
  it {
58
64
  expect(mapper.cast({ number: 1, opt_array: [1] })).to eq({ number: 1, opt_array: [1] })
59
65
  }
66
+
67
+ it {
68
+ expect(mapper.cast({ number: 1, opt_array_with_blk: [{ id: 1 }] })).to eq({ number: 1, opt_array_with_blk: [{ id: 1 }] })
69
+ }
70
+
71
+ it {
72
+ expect(mapper.cast({ number: 1, optional_hsh: { id: 1 } })).to eq({ number: 1, optional_hsh: { id: 1 } })
73
+ }
60
74
  end
61
75
 
62
76
  describe 'null:' do
@@ -40,13 +40,13 @@ class ReeObject::DumpAsJson
40
40
  elsif obj.is_a?(Array)
41
41
  {
42
42
  'type' => ARRAY,
43
- 'class' => obj.class,
43
+ 'class' => 'Array',
44
44
  'value' => obj.map { recursively_convert(_1, cache) }
45
45
  }
46
46
  elsif obj.is_a?(Hash)
47
47
  {
48
48
  'type' => HASH,
49
- 'class' => obj.class,
49
+ 'class' => 'Hash',
50
50
  'value' => convert_hash(obj, cache)
51
51
  }
52
52
  elsif obj.is_a?(Proc)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReeLib
4
- VERSION = "1.0.12"
4
+ VERSION = "1.0.14"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ree_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-29 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ree
@@ -556,7 +556,6 @@ files:
556
556
  - lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/hours_ago.schema.json
557
557
  - lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/hours_diff.schema.json
558
558
  - lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/hours_since.schema.json
559
- - lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/human_time_zone_offset.schema.json
560
559
  - lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/human_zone_offset.schema.json
561
560
  - lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/in_default_time_zone.schema.json
562
561
  - lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/in_time_zone.schema.json
@@ -765,13 +764,11 @@ files:
765
764
  - lib/ree_lib/packages/ree_hash/package/ree_hash/functions/transform_keys.rb
766
765
  - lib/ree_lib/packages/ree_hash/package/ree_hash/functions/transform_values.rb
767
766
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/build_filter_keys.schema.json
768
- - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/convert_key.schema.json
769
767
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
770
768
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/merge.schema.json
771
769
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/slice.schema.json
772
770
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/stringify_keys.schema.json
773
771
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/symbolize_keys.schema.json
774
- - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_key.schema.json
775
772
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_keys.schema.json
776
773
  - lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_values.schema.json
777
774
  - lib/ree_lib/packages/ree_hash/spec/package_schema_spec.rb
@@ -801,15 +798,9 @@ files:
801
798
  - lib/ree_lib/packages/ree_http/package/ree_http/functions/http_post.rb
802
799
  - lib/ree_lib/packages/ree_http/package/ree_http/functions/http_put.rb
803
800
  - lib/ree_lib/packages/ree_http/package/ree_http/http_exceptions.rb
804
- - lib/ree_lib/packages/ree_http/schemas/ree_http/add_auth.schema.json
805
- - lib/ree_lib/packages/ree_http/schemas/ree_http/basic_auth.schema.json
806
- - lib/ree_lib/packages/ree_http/schemas/ree_http/build_request.schema.json
807
- - lib/ree_lib/packages/ree_http/schemas/ree_http/build_requester.schema.json
808
- - lib/ree_lib/packages/ree_http/schemas/ree_http/execute_request.schema.json
809
801
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/build_request.schema.json
810
802
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/build_request_executor.schema.json
811
803
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/execute_request.schema.json
812
- - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/get_default_logger.schema.json
813
804
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_delete.schema.json
814
805
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_exec.schema.json
815
806
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_get.schema.json
@@ -818,17 +809,6 @@ files:
818
809
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_patch.schema.json
819
810
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_post.schema.json
820
811
  - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_put.schema.json
821
- - lib/ree_lib/packages/ree_http/schemas/ree_http/functions/set_default_logger.schema.json
822
- - lib/ree_lib/packages/ree_http/schemas/ree_http/get.schema.json
823
- - lib/ree_lib/packages/ree_http/schemas/ree_http/get_http.schema.json
824
- - lib/ree_lib/packages/ree_http/schemas/ree_http/http_delete.schema.json
825
- - lib/ree_lib/packages/ree_http/schemas/ree_http/http_get.schema.json
826
- - lib/ree_lib/packages/ree_http/schemas/ree_http/http_patch.schema.json
827
- - lib/ree_lib/packages/ree_http/schemas/ree_http/http_post.schema.json
828
- - lib/ree_lib/packages/ree_http/schemas/ree_http/http_put.schema.json
829
- - lib/ree_lib/packages/ree_http/schemas/ree_http/post.schema.json
830
- - lib/ree_lib/packages/ree_http/schemas/ree_http/post_http.schema.json
831
- - lib/ree_lib/packages/ree_http/schemas/ree_http/response.schema.json
832
812
  - lib/ree_lib/packages/ree_http/spec/package_schema_spec.rb
833
813
  - lib/ree_lib/packages/ree_http/spec/ree_http/functions/http_delete_spec.rb
834
814
  - lib/ree_lib/packages/ree_http/spec/ree_http/functions/http_get_spec.rb
@@ -970,15 +950,10 @@ files:
970
950
  - lib/ree_lib/packages/ree_migrator/package/ree_migrator/functions/apply_migrations.rb
971
951
  - lib/ree_lib/packages/ree_migrator/package/ree_migrator/functions/create_migrations_table.rb
972
952
  - lib/ree_lib/packages/ree_migrator/package/ree_migrator/functions/migrate_db.rb
973
- - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_data_migration.schema.json
974
953
  - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_migration.schema.json
975
954
  - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_migrations.schema.json
976
- - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_schema_migration.schema.json
977
- - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_data_migrations_table.schema.json
978
955
  - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_migrations_table.schema.json
979
- - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_schema_migrations_table.schema.json
980
956
  - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/migrate_db.schema.json
981
- - lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/migrate_db.schema.json
982
957
  - lib/ree_lib/packages/ree_migrator/spec/db.rb
983
958
  - lib/ree_lib/packages/ree_migrator/spec/package_schema_spec.rb
984
959
  - lib/ree_lib/packages/ree_migrator/spec/ree_migrator/functions/apply_migration_spec.rb
@@ -1047,7 +1022,6 @@ files:
1047
1022
  - lib/ree_lib/packages/ree_object/schemas/ree_object/functions/is_blank.schema.json
1048
1023
  - lib/ree_lib/packages/ree_object/schemas/ree_object/functions/load_json_dump.schema.json
1049
1024
  - lib/ree_lib/packages/ree_object/schemas/ree_object/functions/not_blank.schema.json
1050
- - lib/ree_lib/packages/ree_object/schemas/ree_object/functions/to_hash.schema.json
1051
1025
  - lib/ree_lib/packages/ree_object/schemas/ree_object/functions/to_obj.schema.json
1052
1026
  - lib/ree_lib/packages/ree_object/spec/package_schema_spec.rb
1053
1027
  - lib/ree_lib/packages/ree_object/spec/ree_object/functions/as_json_spec.rb
@@ -1086,7 +1060,6 @@ files:
1086
1060
  - lib/ree_lib/packages/ree_string/schemas/ree_string/functions/deconstantize.schema.json
1087
1061
  - lib/ree_lib/packages/ree_string/schemas/ree_string/functions/demodulize.schema.json
1088
1062
  - lib/ree_lib/packages/ree_string/schemas/ree_string/functions/indent.schema.json
1089
- - lib/ree_lib/packages/ree_string/schemas/ree_string/functions/is_blank.schema.json
1090
1063
  - lib/ree_lib/packages/ree_string/schemas/ree_string/functions/pluralize.schema.json
1091
1064
  - lib/ree_lib/packages/ree_string/schemas/ree_string/functions/remove.schema.json
1092
1065
  - lib/ree_lib/packages/ree_string/schemas/ree_string/functions/squish.schema.json
@@ -1175,13 +1148,9 @@ files:
1175
1148
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/escape_javascript.schema.json
1176
1149
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/excerpt.schema.json
1177
1150
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/highlight.schema.json
1178
- - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/html_scrubber.schema.json
1179
1151
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/safe_join.schema.json
1180
- - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/safe_list_sanitizer.schema.json
1181
- - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize.schema.json
1182
1152
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_css.schema.json
1183
1153
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
1184
- - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/save_list_sanitizer.schema.json
1185
1154
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/simple_format.schema.json
1186
1155
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/strip_links.schema.json
1187
1156
  - lib/ree_lib/packages/ree_text/schemas/ree_text/functions/strip_tags.schema.json
@@ -1,34 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "human_time_zone_offset",
5
- "path": "packages/ree_datetime/package/ree_datetime/functions/human_time_zone_offset.rb",
6
- "mount_as": "fn",
7
- "class": "ReeDatetime::HumanTimeZoneOffset",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "Returns an array of time zones with short names according to the +offset+",
12
- "throws": [
13
- "ArgumentError"
14
- ],
15
- "return": "#<Ree::Contracts::ArgContracts::ArrayOf:0x00007f3c098c0fe0>",
16
- "args": [
17
- {
18
- "arg": "human_zone_name",
19
- "type": "String"
20
- }
21
- ]
22
- }
23
- ],
24
- "links": [
25
- {
26
- "target": "offset_to_string",
27
- "package_name": "ree_datetime",
28
- "as": "offset_to_string",
29
- "imports": [
30
-
31
- ]
32
- }
33
- ]
34
- }
@@ -1,27 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "convert_key",
5
- "path": "packages/ree_hash/package/ree_hash/functions/convert_key.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHash::ConvertKey",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "Converts key to a String if key is a Symbol",
12
- "throws": [
13
-
14
- ],
15
- "return": "String",
16
- "args": [
17
- {
18
- "arg": "key",
19
- "type": "Ree::Contracts::ArgContracts::Any"
20
- }
21
- ]
22
- }
23
- ],
24
- "links": [
25
-
26
- ]
27
- }
@@ -1,31 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "transform_key",
5
- "path": "packages/ree_hash/package/ree_hash/functions/transform_key.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHash::TransformKey",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Hash",
16
- "args": [
17
- {
18
- "arg": "hash",
19
- "type": "Hash"
20
- },
21
- {
22
- "arg": "proc",
23
- "type": "Hash"
24
- }
25
- ]
26
- }
27
- ],
28
- "links": [
29
-
30
- ]
31
- }
@@ -1,31 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "add_auth",
5
- "path": "packages/ree_http/package/ree_http/add_auth.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::AddAuth",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
- {
18
- "arg": "request",
19
- "type": "Net::HTTPRequest"
20
- },
21
- {
22
- "arg": "auth",
23
- "type": "Hash"
24
- }
25
- ]
26
- }
27
- ],
28
- "links": [
29
-
30
- ]
31
- }
@@ -1,15 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "basic_auth",
5
- "path": "packages/ree_http/package/ree_http/basic_auth.rb",
6
- "mount_as": "object",
7
- "class": "ReeHttp::BasicAuth",
8
- "factory": null,
9
- "methods": [
10
-
11
- ],
12
- "links": [
13
-
14
- ]
15
- }
@@ -1,70 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "build_request",
5
- "path": "packages/ree_http/package/ree_http/build_request.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::BuildRequest",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPRequest",
16
- "args": [
17
- {
18
- "arg": "method",
19
- "type": "Symbol"
20
- },
21
- {
22
- "arg": "url",
23
- "type": "String"
24
- },
25
- {
26
- "arg": "opts",
27
- "type": "Ksplat[:headers? => HashOf[Or[String, Symbol], Any], :body? => Or[HashOf[Or[Symbol, String], Or[Integer, Float, Bool, String, Hash, Array]], String], :open_timeout? => Integer, :timeout? => Integer, :auth? => Ksplat[:basic? => ReeHttp::BasicAuth], :query_params? => HashOf[Or[String, Symbol], Any], :force_ssl? => Bool, :ca_certs? => ArrayOf[File], :client_cert? => Ksplat[\"key\" => File, :passphrase? => String, \"pub\" => File], :proxy? => ReeHttp::Proxy]"
28
- },
29
- {
30
- "arg": "block",
31
- "type": "Block"
32
- }
33
- ]
34
- }
35
- ],
36
- "links": [
37
- {
38
- "target": "add_auth",
39
- "package_name": "ree_http",
40
- "as": "add_auth",
41
- "imports": [
42
-
43
- ]
44
- },
45
- {
46
- "target": "build_requester",
47
- "package_name": "ree_http",
48
- "as": "build_requester",
49
- "imports": [
50
-
51
- ]
52
- },
53
- {
54
- "target": "slice",
55
- "package_name": "ree_hash",
56
- "as": "slice",
57
- "imports": [
58
-
59
- ]
60
- },
61
- {
62
- "target": "to_json",
63
- "package_name": "ree_json",
64
- "as": "to_json",
65
- "imports": [
66
-
67
- ]
68
- }
69
- ]
70
- }
@@ -1,46 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "build_requester",
5
- "path": "packages/ree_http/package/ree_http/build_requester.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::BuildRequester",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTP",
16
- "args": [
17
- {
18
- "arg": "uri",
19
- "type": "URI"
20
- },
21
- {
22
- "arg": "opts",
23
- "type": "Ksplat[:timeout? => Integer, :open_timeout? => Integer, :force_ssl? => Bool, :ca_certs? => ArrayOf[File], :proxy? => ReeHttp::Proxy]"
24
- }
25
- ]
26
- }
27
- ],
28
- "links": [
29
- {
30
- "target": "slice",
31
- "package_name": "ree_hash",
32
- "as": "slice",
33
- "imports": [
34
-
35
- ]
36
- },
37
- {
38
- "target": "to_json",
39
- "package_name": "ree_json",
40
- "as": "to_json",
41
- "imports": [
42
-
43
- ]
44
- }
45
- ]
46
- }
@@ -1,42 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "execute_request",
5
- "path": "packages/ree_http/package/ree_http/execute_request.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::ExecuteRequest",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPResponse",
16
- "args": [
17
- {
18
- "arg": "request",
19
- "type": "Net::HTTPRequest"
20
- },
21
- {
22
- "arg": "opts",
23
- "type": "Ksplat[:headers? => HashOf[Or[String, Symbol], Any], :body? => Or[HashOf[Or[Symbol, String], Or[Integer, Float, Bool, String, Hash]], String], :open_timeout? => Integer, :timeout? => Integer, :auth? => Ksplat[:basic? => ReeHttp::BasicAuth], :query_params? => HashOf[Or[String, Symbol], Any], :force_ssl? => Bool, :ca_certs? => ArrayOf[File], :client_cert? => Ksplat[\"key\" => File, :passphrase? => String, \"pub\" => File], :proxy? => ReeHttp::Proxy]"
24
- },
25
- {
26
- "arg": "block",
27
- "type": "Block"
28
- }
29
- ]
30
- }
31
- ],
32
- "links": [
33
- {
34
- "target": "build_requester",
35
- "package_name": "ree_http",
36
- "as": "build_requester",
37
- "imports": [
38
-
39
- ]
40
- }
41
- ]
42
- }
@@ -1,27 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "get_default_logger",
5
- "path": "packages/ree_http/package/ree_http/functions/get_default_logger.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::GetDefaultLogger",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Nilor[Any]",
16
- "args": [
17
- {
18
- "arg": "logger",
19
- "type": "Any"
20
- }
21
- ]
22
- }
23
- ],
24
- "links": [
25
-
26
- ]
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "set_default_logger",
5
- "path": "packages/ree_http/package/ree_http/functions/set_default_logger.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::SetDefaultLogger",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
- {
18
- "arg": "logger",
19
- "type": "Any"
20
- }
21
- ]
22
- }
23
- ],
24
- "links": [
25
-
26
- ]
27
- }
@@ -1,22 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "get",
5
- "path": "packages/ree_http/package/ree_http/get.rb",
6
- "mount_as": "object",
7
- "class": "ReeHttp::Get",
8
- "factory": null,
9
- "methods": [
10
-
11
- ],
12
- "links": [
13
- {
14
- "target": "basic_auth",
15
- "package_name": "ree_http",
16
- "as": "basic_auth",
17
- "imports": [
18
- "BasicAuth"
19
- ]
20
- }
21
- ]
22
- }