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.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/lib/ree_lib/packages/ree_dao/Package.schema.json +4 -0
- data/lib/ree_lib/packages/ree_dao/package/ree_dao/dsl.rb +13 -1
- data/lib/ree_lib/packages/ree_dao/package/ree_dao/functions/persist_assoc.rb +57 -0
- data/lib/ree_lib/packages/ree_dao/package/ree_dao.rb +2 -2
- data/lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/persist_assoc.schema.json +50 -0
- data/lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/persist_assoc_spec.rb +162 -0
- data/lib/ree_lib/packages/ree_mapper/package/ree_mapper/mapper_factory.rb +3 -3
- data/lib/ree_lib/packages/ree_mapper/spec/ree_mapper/types/type_options_spec.rb +14 -0
- data/lib/ree_lib/version.rb +1 -1
- metadata +5 -33
- data/lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/human_time_zone_offset.schema.json +0 -34
- data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/convert_key.schema.json +0 -27
- data/lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_key.schema.json +0 -31
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/add_auth.schema.json +0 -31
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/basic_auth.schema.json +0 -15
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_request.schema.json +0 -70
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/build_requester.schema.json +0 -46
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/execute_request.schema.json +0 -42
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/get_default_logger.schema.json +0 -27
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/functions/set_default_logger.schema.json +0 -27
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/get.schema.json +0 -22
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/get_http.schema.json +0 -42
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_delete.schema.json +0 -74
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_get.schema.json +0 -66
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_patch.schema.json +0 -74
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_post.schema.json +0 -74
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/http_put.schema.json +0 -74
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/post.schema.json +0 -22
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/post_http.schema.json +0 -42
- data/lib/ree_lib/packages/ree_http/schemas/ree_http/response.schema.json +0 -15
- data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_data_migration.schema.json +0 -31
- data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_schema_migration.schema.json +0 -31
- data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_data_migrations_table.schema.json +0 -27
- data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/create_schema_migrations_table.schema.json +0 -27
- data/lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/migrate_db.schema.json +0 -15
- data/lib/ree_lib/packages/ree_object/schemas/ree_object/functions/to_hash.schema.json +0 -27
- data/lib/ree_lib/packages/ree_string/schemas/ree_string/functions/is_blank.schema.json +0 -27
- data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/html_scrubber.schema.json +0 -34
- data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/safe_list_sanitizer.schema.json +0 -24
- data/lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize.schema.json +0 -35
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a15d911dfb9f1955ac1829941bdb259c1423867dabb407221a1d55232dde3e50
|
4
|
+
data.tar.gz: b76069a3bd3760240ea5232de630f7ff4b372a767b5098ed9a91d7e224f73f7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39b0b379f130624a30c254bc569d3cf8a3942974d036b4bebfc37d1a9c2087917644d61e946b7471b97102b832c43c951d8c209d1f64d9d2d7198b18082f0eed
|
7
|
+
data.tar.gz: 4628fd0c89f2a3670dfb7895decc76aae447057e5d7b0b3591c4942ca1be910b50653d41089589a29a48d794c703921232b4776266721982b30fd78881515ade
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ree_lib (1.0.
|
4
|
+
ree_lib (1.0.15)
|
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.
|
18
|
-
public_suffix (>= 2.0.2, <
|
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)
|
@@ -39,12 +39,12 @@ GEM
|
|
39
39
|
nokogiri (1.13.8-x86_64-linux)
|
40
40
|
racc (~> 1.4)
|
41
41
|
oj (3.13.21)
|
42
|
-
pg (1.4.
|
43
|
-
public_suffix (
|
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.
|
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.
|
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)
|
@@ -28,7 +28,7 @@ module ReeDao::DSL
|
|
28
28
|
dao = build_dao(
|
29
29
|
connection: db,
|
30
30
|
table_name: self.class.instance_variable_get(:@table),
|
31
|
-
mapper:
|
31
|
+
mapper: get_schema_mapper,
|
32
32
|
primary_key: self.class.instance_variable_get(:@primary_key),
|
33
33
|
default_select_columns: self.class.instance_variable_get(:@default_select_columns),
|
34
34
|
)
|
@@ -37,6 +37,18 @@ module ReeDao::DSL
|
|
37
37
|
|
38
38
|
dao
|
39
39
|
end
|
40
|
+
|
41
|
+
def get_schema_mapper
|
42
|
+
mapper = self
|
43
|
+
.class
|
44
|
+
.instance_variable_get(:@schema_mapper)
|
45
|
+
|
46
|
+
if mapper.nil?
|
47
|
+
raise Ree::Error.new("Dao schema mapper is not set. Use `schema` DSL to define it", :invalid_dsl_usage)
|
48
|
+
end
|
49
|
+
|
50
|
+
mapper
|
51
|
+
end
|
40
52
|
end
|
41
53
|
|
42
54
|
module ClassMethods
|
@@ -0,0 +1,57 @@
|
|
1
|
+
class ReeDao::PersistAssoc
|
2
|
+
include Ree::FnDSL
|
3
|
+
|
4
|
+
fn :persist_assoc do
|
5
|
+
link :demodulize, from: :ree_string
|
6
|
+
link :underscore, from: :ree_string
|
7
|
+
end
|
8
|
+
|
9
|
+
contract(
|
10
|
+
-> (v) {
|
11
|
+
v.class.ancestors.include?(ReeDto::EntityDSL)
|
12
|
+
},
|
13
|
+
Sequel::Dataset,
|
14
|
+
Ksplat[
|
15
|
+
root_setter?: Symbol,
|
16
|
+
child_assoc?: Symbol,
|
17
|
+
] => nil
|
18
|
+
)
|
19
|
+
def call(agg_root, assoc_dao, **opts)
|
20
|
+
setter_method = if opts[:root_setter].nil?
|
21
|
+
name = underscore(demodulize(agg_root.class.name))
|
22
|
+
"#{name}_id="
|
23
|
+
else
|
24
|
+
"#{opts[:root_setter]}"
|
25
|
+
end
|
26
|
+
|
27
|
+
assoc_name = if opts[:child_assoc].nil?
|
28
|
+
dto_class = assoc_dao
|
29
|
+
.opts[:schema_mapper]
|
30
|
+
.strategies
|
31
|
+
.detect {_1 .method == :db_load }
|
32
|
+
.output
|
33
|
+
.dto
|
34
|
+
|
35
|
+
name = underscore(demodulize(dto_class.name))
|
36
|
+
"#{name}s"
|
37
|
+
else
|
38
|
+
opts[:child_assoc]
|
39
|
+
end
|
40
|
+
|
41
|
+
agg_root.send(assoc_name).each do |child|
|
42
|
+
if !child.respond_to?(setter_method)
|
43
|
+
raise ArgumentError.new("#{child.class} does not respond to `#{setter_method}` method")
|
44
|
+
end
|
45
|
+
|
46
|
+
child.send(setter_method, agg_root.id)
|
47
|
+
|
48
|
+
if child.id
|
49
|
+
assoc_dao.update(child)
|
50
|
+
else
|
51
|
+
assoc_dao.put(child)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
nil
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"schema_type": "object",
|
3
|
+
"schema_version": "1.0",
|
4
|
+
"name": "persist_assoc",
|
5
|
+
"path": "packages/ree_dao/package/ree_dao/functions/persist_assoc.rb",
|
6
|
+
"mount_as": "fn",
|
7
|
+
"class": "ReeDao::PersistAssoc",
|
8
|
+
"factory": null,
|
9
|
+
"methods": [
|
10
|
+
{
|
11
|
+
"doc": "",
|
12
|
+
"throws": [
|
13
|
+
|
14
|
+
],
|
15
|
+
"return": "Any",
|
16
|
+
"args": [
|
17
|
+
{
|
18
|
+
"arg": "agg_root",
|
19
|
+
"type": "Proc#call"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"arg": "assoc_dao",
|
23
|
+
"type": "Sequel::Dataset"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"arg": "opts",
|
27
|
+
"type": "Ksplat[:root_setter? => Symbol, :child_assoc? => Symbol]"
|
28
|
+
}
|
29
|
+
]
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"links": [
|
33
|
+
{
|
34
|
+
"target": "demodulize",
|
35
|
+
"package_name": "ree_string",
|
36
|
+
"as": "demodulize",
|
37
|
+
"imports": [
|
38
|
+
|
39
|
+
]
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"target": "underscore",
|
43
|
+
"package_name": "ree_string",
|
44
|
+
"as": "underscore",
|
45
|
+
"imports": [
|
46
|
+
|
47
|
+
]
|
48
|
+
}
|
49
|
+
]
|
50
|
+
}
|
@@ -0,0 +1,162 @@
|
|
1
|
+
# frozen_string_literal = true
|
2
|
+
|
3
|
+
RSpec.describe :persist_assoc do
|
4
|
+
link :persist_assoc, from: :ree_dao
|
5
|
+
link :build_sqlite_connection, from: :ree_dao
|
6
|
+
|
7
|
+
let(:connection) { build_sqlite_connection({database: 'sqlite_db'}) }
|
8
|
+
|
9
|
+
before :all do
|
10
|
+
Ree.enable_irb_mode
|
11
|
+
end
|
12
|
+
|
13
|
+
before :each do
|
14
|
+
[:projects, :project_users].each do |name|
|
15
|
+
if connection.table_exists?(name)
|
16
|
+
connection.drop_table(name)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
connection.create_table :projects do
|
21
|
+
primary_key :id
|
22
|
+
end
|
23
|
+
|
24
|
+
connection.create_table :project_users do
|
25
|
+
primary_key :id
|
26
|
+
foreign_key :project_id, :projects, null: false, on_delete: :cascade
|
27
|
+
end
|
28
|
+
|
29
|
+
connection.disconnect
|
30
|
+
end
|
31
|
+
|
32
|
+
after do
|
33
|
+
Ree.disable_irb_mode
|
34
|
+
connection.disconnect
|
35
|
+
end
|
36
|
+
|
37
|
+
it {
|
38
|
+
module TestPersistAssoc
|
39
|
+
include Ree::PackageDSL
|
40
|
+
|
41
|
+
package do
|
42
|
+
depends_on :ree_dao
|
43
|
+
end
|
44
|
+
|
45
|
+
class Db
|
46
|
+
include Ree::BeanDSL
|
47
|
+
|
48
|
+
bean :db do
|
49
|
+
singleton
|
50
|
+
factory :build
|
51
|
+
|
52
|
+
link :build_sqlite_connection, from: :ree_dao
|
53
|
+
end
|
54
|
+
|
55
|
+
def build
|
56
|
+
build_sqlite_connection({database: 'sqlite_db'})
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
class Project
|
61
|
+
include ReeDto::EntityDSL
|
62
|
+
|
63
|
+
properties(
|
64
|
+
id: Nilor[Integer]
|
65
|
+
)
|
66
|
+
|
67
|
+
def project_users
|
68
|
+
@project_users ||= []
|
69
|
+
end
|
70
|
+
|
71
|
+
def add_project_user(pu)
|
72
|
+
project_users.push(pu)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
class ProjectUser
|
77
|
+
include ReeDto::EntityDSL
|
78
|
+
|
79
|
+
properties(
|
80
|
+
id: Nilor[Integer],
|
81
|
+
project_id: Nilor[Integer]
|
82
|
+
)
|
83
|
+
|
84
|
+
contract Integer => Integer
|
85
|
+
def project_id=(id)
|
86
|
+
@project_id = id
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
class ProjectsDao
|
91
|
+
include ReeDao::DSL
|
92
|
+
|
93
|
+
dao :projects_dao do
|
94
|
+
link :db
|
95
|
+
end
|
96
|
+
|
97
|
+
schema Project do
|
98
|
+
integer :id, null: true
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
class ProjectUsersDao
|
103
|
+
include ReeDao::DSL
|
104
|
+
|
105
|
+
dao :project_users_dao do
|
106
|
+
link :db
|
107
|
+
end
|
108
|
+
|
109
|
+
schema ProjectUser do
|
110
|
+
integer :id, null: true
|
111
|
+
integer :project_id
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
project = TestPersistAssoc::Project.new(id: 1)
|
117
|
+
|
118
|
+
project.add_project_user(
|
119
|
+
TestPersistAssoc::ProjectUser.new
|
120
|
+
)
|
121
|
+
|
122
|
+
project.add_project_user(
|
123
|
+
TestPersistAssoc::ProjectUser.new
|
124
|
+
)
|
125
|
+
|
126
|
+
TestPersistAssoc::ProjectsDao.new.put(project)
|
127
|
+
|
128
|
+
persist_assoc(project, TestPersistAssoc::ProjectUsersDao.new)
|
129
|
+
|
130
|
+
expect(project.id).to be_a(Integer)
|
131
|
+
expect(project.project_users.first.id).to be_a(Integer)
|
132
|
+
expect(project.project_users.first.project_id).to eq(project.id)
|
133
|
+
expect(project.project_users.last.id).to be_a(Integer)
|
134
|
+
expect(project.project_users.last.project_id).to eq(project.id)
|
135
|
+
|
136
|
+
# test opts
|
137
|
+
project = TestPersistAssoc::Project.new(id: 2)
|
138
|
+
|
139
|
+
project.add_project_user(
|
140
|
+
TestPersistAssoc::ProjectUser.new
|
141
|
+
)
|
142
|
+
|
143
|
+
project.add_project_user(
|
144
|
+
TestPersistAssoc::ProjectUser.new
|
145
|
+
)
|
146
|
+
|
147
|
+
TestPersistAssoc::ProjectsDao.new.put(project)
|
148
|
+
|
149
|
+
persist_assoc(
|
150
|
+
project,
|
151
|
+
TestPersistAssoc::ProjectUsersDao.new,
|
152
|
+
root_setter: :project_id=,
|
153
|
+
child_assoc: :project_users,
|
154
|
+
)
|
155
|
+
|
156
|
+
expect(project.id).to be_a(Integer)
|
157
|
+
expect(project.project_users.first.id).to be_a(Integer)
|
158
|
+
expect(project.project_users.first.project_id).to eq(project.id)
|
159
|
+
expect(project.project_users.last.id).to be_a(Integer)
|
160
|
+
expect(project.project_users.last.project_id).to eq(project.id)
|
161
|
+
}
|
162
|
+
end
|
@@ -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,
|
94
|
-
def array?(field_name, each
|
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
|
data/lib/ree_lib/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.15
|
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-
|
11
|
+
date: 2022-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ree
|
@@ -248,13 +248,16 @@ files:
|
|
248
248
|
- lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_dao.rb
|
249
249
|
- lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_pg_connection.rb
|
250
250
|
- lib/ree_lib/packages/ree_dao/package/ree_dao/functions/build_sqlite_connection.rb
|
251
|
+
- lib/ree_lib/packages/ree_dao/package/ree_dao/functions/persist_assoc.rb
|
251
252
|
- lib/ree_lib/packages/ree_dao/schemas/ree_dao/beans/connections.schema.json
|
252
253
|
- lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/build_connection.schema.json
|
253
254
|
- lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/build_dao.schema.json
|
254
255
|
- lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/build_pg_connection.schema.json
|
255
256
|
- lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/build_sqlite_connection.schema.json
|
257
|
+
- lib/ree_lib/packages/ree_dao/schemas/ree_dao/functions/persist_assoc.schema.json
|
256
258
|
- lib/ree_lib/packages/ree_dao/spec/package_schema_spec.rb
|
257
259
|
- lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/build_sqlite_connection_spec.rb
|
260
|
+
- lib/ree_lib/packages/ree_dao/spec/ree_dao/functions/persist_assoc_spec.rb
|
258
261
|
- lib/ree_lib/packages/ree_dao/spec/spec_helper.rb
|
259
262
|
- lib/ree_lib/packages/ree_date/.gitignore
|
260
263
|
- lib/ree_lib/packages/ree_date/.rspec
|
@@ -556,7 +559,6 @@ files:
|
|
556
559
|
- lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/hours_ago.schema.json
|
557
560
|
- lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/hours_diff.schema.json
|
558
561
|
- 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
562
|
- lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/human_zone_offset.schema.json
|
561
563
|
- lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/in_default_time_zone.schema.json
|
562
564
|
- lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/in_time_zone.schema.json
|
@@ -765,13 +767,11 @@ files:
|
|
765
767
|
- lib/ree_lib/packages/ree_hash/package/ree_hash/functions/transform_keys.rb
|
766
768
|
- lib/ree_lib/packages/ree_hash/package/ree_hash/functions/transform_values.rb
|
767
769
|
- 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
770
|
- lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/except.schema.json
|
770
771
|
- lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/merge.schema.json
|
771
772
|
- lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/slice.schema.json
|
772
773
|
- lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/stringify_keys.schema.json
|
773
774
|
- 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
775
|
- lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_keys.schema.json
|
776
776
|
- lib/ree_lib/packages/ree_hash/schemas/ree_hash/functions/transform_values.schema.json
|
777
777
|
- lib/ree_lib/packages/ree_hash/spec/package_schema_spec.rb
|
@@ -801,15 +801,9 @@ files:
|
|
801
801
|
- lib/ree_lib/packages/ree_http/package/ree_http/functions/http_post.rb
|
802
802
|
- lib/ree_lib/packages/ree_http/package/ree_http/functions/http_put.rb
|
803
803
|
- 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
804
|
- lib/ree_lib/packages/ree_http/schemas/ree_http/functions/build_request.schema.json
|
810
805
|
- lib/ree_lib/packages/ree_http/schemas/ree_http/functions/build_request_executor.schema.json
|
811
806
|
- 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
807
|
- lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_delete.schema.json
|
814
808
|
- lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_exec.schema.json
|
815
809
|
- lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_get.schema.json
|
@@ -818,17 +812,6 @@ files:
|
|
818
812
|
- lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_patch.schema.json
|
819
813
|
- lib/ree_lib/packages/ree_http/schemas/ree_http/functions/http_post.schema.json
|
820
814
|
- 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
815
|
- lib/ree_lib/packages/ree_http/spec/package_schema_spec.rb
|
833
816
|
- lib/ree_lib/packages/ree_http/spec/ree_http/functions/http_delete_spec.rb
|
834
817
|
- lib/ree_lib/packages/ree_http/spec/ree_http/functions/http_get_spec.rb
|
@@ -970,15 +953,10 @@ files:
|
|
970
953
|
- lib/ree_lib/packages/ree_migrator/package/ree_migrator/functions/apply_migrations.rb
|
971
954
|
- lib/ree_lib/packages/ree_migrator/package/ree_migrator/functions/create_migrations_table.rb
|
972
955
|
- 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
956
|
- lib/ree_lib/packages/ree_migrator/schemas/ree_migrator/functions/apply_migration.schema.json
|
975
957
|
- 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
958
|
- 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
959
|
- 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
960
|
- lib/ree_lib/packages/ree_migrator/spec/db.rb
|
983
961
|
- lib/ree_lib/packages/ree_migrator/spec/package_schema_spec.rb
|
984
962
|
- lib/ree_lib/packages/ree_migrator/spec/ree_migrator/functions/apply_migration_spec.rb
|
@@ -1047,7 +1025,6 @@ files:
|
|
1047
1025
|
- lib/ree_lib/packages/ree_object/schemas/ree_object/functions/is_blank.schema.json
|
1048
1026
|
- lib/ree_lib/packages/ree_object/schemas/ree_object/functions/load_json_dump.schema.json
|
1049
1027
|
- 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
1028
|
- lib/ree_lib/packages/ree_object/schemas/ree_object/functions/to_obj.schema.json
|
1052
1029
|
- lib/ree_lib/packages/ree_object/spec/package_schema_spec.rb
|
1053
1030
|
- lib/ree_lib/packages/ree_object/spec/ree_object/functions/as_json_spec.rb
|
@@ -1086,7 +1063,6 @@ files:
|
|
1086
1063
|
- lib/ree_lib/packages/ree_string/schemas/ree_string/functions/deconstantize.schema.json
|
1087
1064
|
- lib/ree_lib/packages/ree_string/schemas/ree_string/functions/demodulize.schema.json
|
1088
1065
|
- 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
1066
|
- lib/ree_lib/packages/ree_string/schemas/ree_string/functions/pluralize.schema.json
|
1091
1067
|
- lib/ree_lib/packages/ree_string/schemas/ree_string/functions/remove.schema.json
|
1092
1068
|
- lib/ree_lib/packages/ree_string/schemas/ree_string/functions/squish.schema.json
|
@@ -1175,13 +1151,9 @@ files:
|
|
1175
1151
|
- lib/ree_lib/packages/ree_text/schemas/ree_text/functions/escape_javascript.schema.json
|
1176
1152
|
- lib/ree_lib/packages/ree_text/schemas/ree_text/functions/excerpt.schema.json
|
1177
1153
|
- 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
1154
|
- 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
1155
|
- lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_css.schema.json
|
1183
1156
|
- 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
1157
|
- lib/ree_lib/packages/ree_text/schemas/ree_text/functions/simple_format.schema.json
|
1186
1158
|
- lib/ree_lib/packages/ree_text/schemas/ree_text/functions/strip_links.schema.json
|
1187
1159
|
- 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
|
-
}
|