ree_lib 1.0.13 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  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/version.rb +1 -1
  6. metadata +2 -33
  7. data/lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/human_time_zone_offset.schema.json +0 -34
  8. data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/convert_key.schema.json +0 -27
  9. data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_key.schema.json +0 -31
  10. data/lib/ree_lib/packages/ree_http/schemas/ree_http/add_auth.schema.json +0 -31
  11. data/lib/ree_lib/packages/ree_http/schemas/ree_http/basic_auth.schema.json +0 -15
  12. data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_request.schema.json +0 -70
  13. data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_requester.schema.json +0 -46
  14. data/lib/ree_lib/packages/ree_http/schemas/ree_http/execute_request.schema.json +0 -42
  15. data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/get_default_logger.schema.json +0 -27
  16. data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/set_default_logger.schema.json +0 -27
  17. data/lib/ree_lib/packages/ree_http/schemas/ree_http/get.schema.json +0 -22
  18. data/lib/ree_lib/packages/ree_http/schemas/ree_http/get_http.schema.json +0 -42
  19. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_delete.schema.json +0 -74
  20. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_get.schema.json +0 -66
  21. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_patch.schema.json +0 -74
  22. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_post.schema.json +0 -74
  23. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_put.schema.json +0 -74
  24. data/lib/ree_lib/packages/ree_http/schemas/ree_http/post.schema.json +0 -22
  25. data/lib/ree_lib/packages/ree_http/schemas/ree_http/post_http.schema.json +0 -42
  26. data/lib/ree_lib/packages/ree_http/schemas/ree_http/response.schema.json +0 -15
  27. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_data_migration.schema.json +0 -31
  28. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_schema_migration.schema.json +0 -31
  29. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_data_migrations_table.schema.json +0 -27
  30. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_schema_migrations_table.schema.json +0 -27
  31. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/migrate_db.schema.json +0 -15
  32. data/lib/ree_lib/packages/ree_object/schemas/ree_object/functions/to_hash.schema.json +0 -27
  33. data/lib/ree_lib/packages/ree_string/schemas/ree_string/functions/is_blank.schema.json +0 -27
  34. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/html_scrubber.schema.json +0 -34
  35. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/safe_list_sanitizer.schema.json +0 -24
  36. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize.schema.json +0 -35
  37. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/save_list_sanitizer.schema.json +0 -24
@@ -1,74 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "http_delete",
5
- "path": "packages/ree_http/package/ree_http/http_delete.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::HttpDelete",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPResponse",
16
- "args": [
17
- {
18
- "arg": "url",
19
- "type": "String"
20
- },
21
- {
22
- "arg": "opts",
23
- "type": "Ksplat[:headers? => HashOf[Or[String, Symbol], Any], :open_timeout? => Integer, :timeout? => Integer, :auth? => Ksplat[:basic? => ReeHttp::BasicAuth], :query_params? => HashOf[Or[String, Symbol], Any], :force_ssl? => Bool, :ca_certs? => ArrayOf[File], :proxy? => ReeHttp::Proxy]"
24
- },
25
- {
26
- "arg": "block",
27
- "type": "Block"
28
- }
29
- ]
30
- }
31
- ],
32
- "links": [
33
- {
34
- "target": "add_auth",
35
- "package_name": "ree_http",
36
- "as": "add_auth",
37
- "imports": [
38
-
39
- ]
40
- },
41
- {
42
- "target": "build_request",
43
- "package_name": "ree_http",
44
- "as": "build_request",
45
- "imports": [
46
-
47
- ]
48
- },
49
- {
50
- "target": "build_requester",
51
- "package_name": "ree_http",
52
- "as": "build_requester",
53
- "imports": [
54
-
55
- ]
56
- },
57
- {
58
- "target": "slice",
59
- "package_name": "ree_hash",
60
- "as": "slice",
61
- "imports": [
62
-
63
- ]
64
- },
65
- {
66
- "target": "to_json",
67
- "package_name": "ree_json",
68
- "as": "to_json",
69
- "imports": [
70
-
71
- ]
72
- }
73
- ]
74
- }
@@ -1,66 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "http_get",
5
- "path": "packages/ree_http/package/ree_http/http_get.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::HttpGet",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPResponse",
16
- "args": [
17
- {
18
- "arg": "url",
19
- "type": "String"
20
- },
21
- {
22
- "arg": "opts",
23
- "type": "Ksplat[:headers? => HashOf[Or[String, Symbol], Any], :timeout? => Integer, :auth? => Ksplat[:basic? => ReeHttp::BasicAuth], :query_params? => HashOf[Or[String, Symbol], Any], :force_ssl? => Bool, :ca_certs? => ArrayOf[File], :proxy? => ReeHttp::Proxy]"
24
- },
25
- {
26
- "arg": "block",
27
- "type": "Block"
28
- }
29
- ]
30
- }
31
- ],
32
- "links": [
33
- {
34
- "target": "add_auth",
35
- "package_name": "ree_http",
36
- "as": "add_auth",
37
- "imports": [
38
-
39
- ]
40
- },
41
- {
42
- "target": "build_request",
43
- "package_name": "ree_http",
44
- "as": "build_request",
45
- "imports": [
46
-
47
- ]
48
- },
49
- {
50
- "target": "build_requester",
51
- "package_name": "ree_http",
52
- "as": "build_requester",
53
- "imports": [
54
-
55
- ]
56
- },
57
- {
58
- "target": "slice",
59
- "package_name": "ree_hash",
60
- "as": "slice",
61
- "imports": [
62
-
63
- ]
64
- }
65
- ]
66
- }
@@ -1,74 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "http_patch",
5
- "path": "packages/ree_http/package/ree_http/http_patch.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::HttpPatch",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPResponse",
16
- "args": [
17
- {
18
- "arg": "url",
19
- "type": "String"
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], :proxy? => ReeHttp::Proxy]"
24
- },
25
- {
26
- "arg": "block",
27
- "type": "Block"
28
- }
29
- ]
30
- }
31
- ],
32
- "links": [
33
- {
34
- "target": "add_auth",
35
- "package_name": "ree_http",
36
- "as": "add_auth",
37
- "imports": [
38
-
39
- ]
40
- },
41
- {
42
- "target": "build_request",
43
- "package_name": "ree_http",
44
- "as": "build_request",
45
- "imports": [
46
-
47
- ]
48
- },
49
- {
50
- "target": "build_requester",
51
- "package_name": "ree_http",
52
- "as": "build_requester",
53
- "imports": [
54
-
55
- ]
56
- },
57
- {
58
- "target": "slice",
59
- "package_name": "ree_hash",
60
- "as": "slice",
61
- "imports": [
62
-
63
- ]
64
- },
65
- {
66
- "target": "to_json",
67
- "package_name": "ree_json",
68
- "as": "to_json",
69
- "imports": [
70
-
71
- ]
72
- }
73
- ]
74
- }
@@ -1,74 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "http_post",
5
- "path": "packages/ree_http/package/ree_http/http_post.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::HttpPost",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPResponse",
16
- "args": [
17
- {
18
- "arg": "url",
19
- "type": "String"
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], :proxy? => ReeHttp::Proxy]"
24
- },
25
- {
26
- "arg": "block",
27
- "type": "Block"
28
- }
29
- ]
30
- }
31
- ],
32
- "links": [
33
- {
34
- "target": "add_auth",
35
- "package_name": "ree_http",
36
- "as": "add_auth",
37
- "imports": [
38
-
39
- ]
40
- },
41
- {
42
- "target": "build_request",
43
- "package_name": "ree_http",
44
- "as": "build_request",
45
- "imports": [
46
-
47
- ]
48
- },
49
- {
50
- "target": "build_requester",
51
- "package_name": "ree_http",
52
- "as": "build_requester",
53
- "imports": [
54
-
55
- ]
56
- },
57
- {
58
- "target": "slice",
59
- "package_name": "ree_hash",
60
- "as": "slice",
61
- "imports": [
62
-
63
- ]
64
- },
65
- {
66
- "target": "to_json",
67
- "package_name": "ree_json",
68
- "as": "to_json",
69
- "imports": [
70
-
71
- ]
72
- }
73
- ]
74
- }
@@ -1,74 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "http_put",
5
- "path": "packages/ree_http/package/ree_http/http_put.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::HttpPut",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPResponse",
16
- "args": [
17
- {
18
- "arg": "url",
19
- "type": "String"
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": "add_auth",
35
- "package_name": "ree_http",
36
- "as": "add_auth",
37
- "imports": [
38
-
39
- ]
40
- },
41
- {
42
- "target": "build_request",
43
- "package_name": "ree_http",
44
- "as": "build_request",
45
- "imports": [
46
-
47
- ]
48
- },
49
- {
50
- "target": "build_requester",
51
- "package_name": "ree_http",
52
- "as": "build_requester",
53
- "imports": [
54
-
55
- ]
56
- },
57
- {
58
- "target": "slice",
59
- "package_name": "ree_hash",
60
- "as": "slice",
61
- "imports": [
62
-
63
- ]
64
- },
65
- {
66
- "target": "to_json",
67
- "package_name": "ree_json",
68
- "as": "to_json",
69
- "imports": [
70
-
71
- ]
72
- }
73
- ]
74
- }
@@ -1,22 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "post",
5
- "path": "packages/ree_http/package/ree_http/post.rb",
6
- "mount_as": "object",
7
- "class": "ReeHttp::Post",
8
- "factory": null,
9
- "methods": [
10
-
11
- ],
12
- "links": [
13
- {
14
- "target": "add_auth",
15
- "package_name": "ree_http",
16
- "as": "add_auth",
17
- "imports": [
18
-
19
- ]
20
- }
21
- ]
22
- }
@@ -1,42 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "post_http",
5
- "path": "packages/ree_http/package/ree_http/post_http.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::PostHttp",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Net::HTTPResponse",
16
- "args": [
17
- {
18
- "arg": "url",
19
- "type": "String"
20
- },
21
- {
22
- "arg": "opts",
23
- "type": "Ksplat[:headers? => HashOf[Or[String, Symbol], Or[Integer, String]], :body? => Or[HashOf[Or[Symbol, String], Or[Integer, Float, Bool, String, Hash]], String], :timeout? => Integer, :auth? => Ksplat[:basic? => ReeHttp::BasicAuth], :query_params? => HashOf[Or[String, Symbol], Any], :use_ssl? => Bool]"
24
- },
25
- {
26
- "arg": "block",
27
- "type": "Block"
28
- }
29
- ]
30
- }
31
- ],
32
- "links": [
33
- {
34
- "target": "add_auth",
35
- "package_name": "ree_http",
36
- "as": "add_auth",
37
- "imports": [
38
-
39
- ]
40
- }
41
- ]
42
- }
@@ -1,15 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "response",
5
- "path": "packages/ree_http/package/ree_http/response.rb",
6
- "mount_as": "object",
7
- "class": "ReeHttp::Response",
8
- "factory": null,
9
- "methods": [
10
-
11
- ],
12
- "links": [
13
-
14
- ]
15
- }
@@ -1,31 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "apply_data_migration",
5
- "path": "bounded_contexts/libs/ree_migrator/package/ree_migrator/functions/apply_data_migration.rb",
6
- "mount_as": "fn",
7
- "class": "ReeMigrator::ApplyDataMigration",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
- {
18
- "arg": "connection",
19
- "type": "Sequel::Database"
20
- },
21
- {
22
- "arg": "migration_file_path",
23
- "type": "String"
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": "apply_schema_migration",
5
- "path": "bounded_contexts/libs/ree_migrator/package/ree_migrator/functions/apply_schema_migration.rb",
6
- "mount_as": "fn",
7
- "class": "ReeMigrator::ApplySchemaMigration",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
- {
18
- "arg": "connection",
19
- "type": "Sequel::Database"
20
- },
21
- {
22
- "arg": "migration_file_path",
23
- "type": "String"
24
- }
25
- ]
26
- }
27
- ],
28
- "links": [
29
-
30
- ]
31
- }
@@ -1,27 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "create_data_migrations_table",
5
- "path": "bounded_contexts/libs/ree_migrator/package/ree_migrator/functions/create_data_migrations_table.rb",
6
- "mount_as": "fn",
7
- "class": "ReeMigrator::CreateDataMigrationsTable",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
- {
18
- "arg": "connection",
19
- "type": "Sequel::Database"
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": "create_schema_migrations_table",
5
- "path": "bounded_contexts/libs/ree_migrator/package/ree_migrator/functions/create_schema_migrations_table.rb",
6
- "mount_as": "fn",
7
- "class": "ReeMigrator::CreateSchemaMigrationsTable",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
- {
18
- "arg": "connection",
19
- "type": "Sequel::Database"
20
- }
21
- ]
22
- }
23
- ],
24
- "links": [
25
-
26
- ]
27
- }
@@ -1,15 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "migrate_db",
5
- "path": "bounded_contexts/libs/ree_migrator/package/ree_migrator/migrate_db.rb",
6
- "mount_as": "object",
7
- "class": "ReeMigrator::MigrateDb",
8
- "factory": null,
9
- "methods": [
10
-
11
- ],
12
- "links": [
13
-
14
- ]
15
- }
@@ -1,27 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "to_hash",
5
- "path": "packages/ree_object/package/ree_object/functions/to_hash.rb",
6
- "mount_as": "fn",
7
- "class": "ReeObject::ToHash",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
- "ReeObject::ToHash::RecursiveObjectErr"
14
- ],
15
- "return": "Or[Hash, ArrayOf[Any], Date, Time, Numeric, String, FalseClass, TrueClass, NilClass, Symbol, Module, Class]",
16
- "args": [
17
- {
18
- "arg": "obj",
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": "is_blank",
5
- "path": "packages/ree_string/package/ree_string/functions/is_blank.rb",
6
- "mount_as": "fn",
7
- "class": "ReeString::IsBlank",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Bool",
16
- "args": [
17
- {
18
- "arg": "str",
19
- "type": "String"
20
- }
21
- ]
22
- }
23
- ],
24
- "links": [
25
-
26
- ]
27
- }
@@ -1,34 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "html_scrubber",
5
- "path": "packages/ree_text/package/ree_text/functions/html_scrubber.rb",
6
- "mount_as": "fn",
7
- "class": "ReeText::HtmlScrubber",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "Allows you to permit only your own tags and/or attributes. If tags or attributes are not set, Loofah's behavior will be used.\n+tags=+\nIf set, elements excluded will be stripped.\nIf not, elements are stripped based on Loofahs +HTML5::Scrub.allowed_element?+.\n\n+attributes=+\nIf set, attributes excluded will be removed.\nIf not, attributes are removed based on Loofahs +HTML5::Scrub.scrub_attributes+.",
12
- "throws": [
13
-
14
- ],
15
- "return": "Loofah::Scrubber",
16
- "args": [
17
- {
18
- "arg": "opts",
19
- "type": "Ksplat[:prune? => Bool, :tags? => ArrayOf[String], :attributes? => ArrayOf[String]]"
20
- }
21
- ]
22
- }
23
- ],
24
- "links": [
25
- {
26
- "target": "unescape_html",
27
- "package_name": "ree_text",
28
- "as": "unescape_html",
29
- "imports": [
30
-
31
- ]
32
- }
33
- ]
34
- }