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,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
- }
@@ -1,24 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "safe_list_sanitizer",
5
- "path": "packages/ree_text/package/ree_text/functions/safe_list_sanitizer.rb",
6
- "mount_as": "fn",
7
- "class": "ReeText::SafeListSanitizer",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
-
18
- ]
19
- }
20
- ],
21
- "links": [
22
-
23
- ]
24
- }
@@ -1,35 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "sanitize",
5
- "path": "packages/ree_text/package/ree_text/functions/sanitize.rb",
6
- "mount_as": "fn",
7
- "class": "ReeText::Sanitize",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
- "ArgumentError"
14
- ],
15
- "return": "String",
16
- "args": [
17
- {
18
- "arg": "html",
19
- "type": "String"
20
- },
21
- {
22
- "arg": "prune",
23
- "type": "Bool"
24
- },
25
- {
26
- "arg": "opts",
27
- "type": "Ksplat[:tags? => ArrayOf[String], :attributes? => ArrayOf[String]]"
28
- }
29
- ]
30
- }
31
- ],
32
- "links": [
33
-
34
- ]
35
- }
@@ -1,24 +0,0 @@
1
- {
2
- "schema_type": "object",
3
- "schema_version": "1.0",
4
- "name": "save_list_sanitizer",
5
- "path": "packages/ree_text/package/ree_text/functions/save_list_sanitizer.rb",
6
- "mount_as": "fn",
7
- "class": "ReeText::SaveListSanitizer",
8
- "factory": null,
9
- "methods": [
10
- {
11
- "doc": "",
12
- "throws": [
13
-
14
- ],
15
- "return": "Any",
16
- "args": [
17
-
18
- ]
19
- }
20
- ],
21
- "links": [
22
-
23
- ]
24
- }