ree_lib 1.0.13 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/lib/ree_lib/packages/ree_dao/Package.schema.json +4 -0
  4. data/lib/ree_lib/packages/ree_dao/package/ree_dao/dsl.rb +13 -1
  5. data/lib/ree_lib/packages/ree_dao/package/ree_dao/functions/persist_assoc.rb +57 -0
  6. data/lib/ree_lib/packages/ree_dao/package/ree_dao.rb +2 -2
  7. data/lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/persist_assoc.schema.json +50 -0
  8. data/lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/persist_assoc_spec.rb +162 -0
  9. data/lib/ree_lib/packages/ree_mapper/package/ree_mapper/mapper_factory.rb +3 -3
  10. data/lib/ree_lib/packages/ree_mapper/spec/ree_mapper/types/type_options_spec.rb +14 -0
  11. data/lib/ree_lib/version.rb +1 -1
  12. metadata +5 -33
  13. data/lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/human_time_zone_offset.schema.json +0 -34
  14. data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/convert_key.schema.json +0 -27
  15. data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_key.schema.json +0 -31
  16. data/lib/ree_lib/packages/ree_http/schemas/ree_http/add_auth.schema.json +0 -31
  17. data/lib/ree_lib/packages/ree_http/schemas/ree_http/basic_auth.schema.json +0 -15
  18. data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_request.schema.json +0 -70
  19. data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_requester.schema.json +0 -46
  20. data/lib/ree_lib/packages/ree_http/schemas/ree_http/execute_request.schema.json +0 -42
  21. data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/get_default_logger.schema.json +0 -27
  22. data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/set_default_logger.schema.json +0 -27
  23. data/lib/ree_lib/packages/ree_http/schemas/ree_http/get.schema.json +0 -22
  24. data/lib/ree_lib/packages/ree_http/schemas/ree_http/get_http.schema.json +0 -42
  25. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_delete.schema.json +0 -74
  26. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_get.schema.json +0 -66
  27. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_patch.schema.json +0 -74
  28. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_post.schema.json +0 -74
  29. data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_put.schema.json +0 -74
  30. data/lib/ree_lib/packages/ree_http/schemas/ree_http/post.schema.json +0 -22
  31. data/lib/ree_lib/packages/ree_http/schemas/ree_http/post_http.schema.json +0 -42
  32. data/lib/ree_lib/packages/ree_http/schemas/ree_http/response.schema.json +0 -15
  33. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_data_migration.schema.json +0 -31
  34. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_schema_migration.schema.json +0 -31
  35. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_data_migrations_table.schema.json +0 -27
  36. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_schema_migrations_table.schema.json +0 -27
  37. data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/migrate_db.schema.json +0 -15
  38. data/lib/ree_lib/packages/ree_object/schemas/ree_object/functions/to_hash.schema.json +0 -27
  39. data/lib/ree_lib/packages/ree_string/schemas/ree_string/functions/is_blank.schema.json +0 -27
  40. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/html_scrubber.schema.json +0 -34
  41. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/safe_list_sanitizer.schema.json +0 -24
  42. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize.schema.json +0 -35
  43. data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/save_list_sanitizer.schema.json +0 -24
@@ -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
- }
@@ -1,42 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "get_http",
5
- "path": "packages/ree_http/package/ree_http/get_http.rb",
6
- "mount_as": "fn",
7
- "class": "ReeHttp::GetHttp",
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], :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,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
- }