contentstack_utils 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release-gem.yml +4 -8
- data/CHANGELOG.md +2 -1
- data/Gemfile.lock +48 -40
- data/LICENSE +1 -1
- data/contentstack_utils.gemspec +9 -9
- data/lib/contentstack_utils/model/options.rb +2 -0
- data/lib/contentstack_utils/version.rb +1 -1
- data/spec/lib/utils_spec.rb +20 -0
- data/spec/mock/json_to_html_mock.rb +99 -1
- metadata +20 -22
- data/.github/workflows/sast-scan.yml +0 -11
- data/.github/workflows/secrets-scan.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057734a6dc4a0d4c83fd080fa38d3b48c3a3f6238450d08c36195426a6621fdc
|
4
|
+
data.tar.gz: a42094278201b9d4c330a3632c5ca7eb3326d8a81053afeae2bd1a9310484fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ade378488cd299eb26c7aa800b77a3effc1a44b9ff46ffa1f677437d28a618e4db81bee3219125c8504f421b7bacafd2496b51637c542d33a38fd74b2e68c35
|
7
|
+
data.tar.gz: afaa54c6991caf5e8bbd84ac00b94494229fcc7317cf00be8feac538a4b1775b6be56e7008c17b89067e641448d3724f6cee3de0f236022336c4e062356fd650
|
@@ -14,18 +14,14 @@ jobs:
|
|
14
14
|
|
15
15
|
steps:
|
16
16
|
- uses: actions/checkout@v3
|
17
|
-
- name: Set up Ruby 2.
|
18
|
-
uses:
|
17
|
+
- name: Set up Ruby 2.7
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
19
|
with:
|
20
|
-
ruby-version: 2.
|
20
|
+
ruby-version: '2.7'
|
21
21
|
|
22
22
|
- name: Publish to RubyGems
|
23
23
|
run: |
|
24
|
-
mkdir -p $HOME/.gem
|
25
|
-
touch $HOME/.gem/credentials
|
26
|
-
chmod 0600 $HOME/.gem/credentials
|
27
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
28
24
|
gem build *.gemspec
|
29
25
|
gem push *.gem
|
30
26
|
env:
|
31
|
-
GEM_HOST_API_KEY:
|
27
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Changelog
|
2
|
-
|
2
|
+
## [1.2.1](https://github.com/contentstack/contentstack-utils-ruby/tree/v1.2.1) (2024-02-27)
|
3
|
+
- Support for JSON RTE with fragment in nested list
|
3
4
|
## [1.2.0](https://github.com/contentstack/contentstack-utils-ruby/tree/v1.2.0) (2023-06-20)
|
4
5
|
- Support for nested assets in the the image and br tag
|
5
6
|
## [1.1.3](https://github.com/contentstack/contentstack-utils-ruby/tree/v1.1.3) (2023-03-16)
|
data/Gemfile.lock
CHANGED
@@ -1,51 +1,60 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
contentstack_utils (1.2.
|
5
|
-
activesupport (>=
|
6
|
-
nokogiri (
|
4
|
+
contentstack_utils (1.2.1)
|
5
|
+
activesupport (>= 7.0)
|
6
|
+
nokogiri (>= 1.11)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (7.
|
11
|
+
activesupport (7.1.3.2)
|
12
|
+
base64
|
13
|
+
bigdecimal
|
12
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
connection_pool (>= 2.2.5)
|
16
|
+
drb
|
13
17
|
i18n (>= 1.6, < 2)
|
14
18
|
minitest (>= 5.1)
|
19
|
+
mutex_m
|
15
20
|
tzinfo (~> 2.0)
|
16
|
-
addressable (2.8.
|
21
|
+
addressable (2.8.6)
|
17
22
|
public_suffix (>= 2.0.2, < 6.0)
|
18
|
-
|
19
|
-
|
23
|
+
base64 (0.2.0)
|
24
|
+
bigdecimal (3.1.6)
|
25
|
+
concurrent-ruby (1.2.3)
|
26
|
+
connection_pool (2.4.1)
|
27
|
+
crack (1.0.0)
|
28
|
+
bigdecimal
|
20
29
|
rexml
|
21
|
-
diff-lcs (1.5.
|
30
|
+
diff-lcs (1.5.1)
|
22
31
|
docile (1.4.0)
|
23
|
-
|
32
|
+
drb (2.2.1)
|
33
|
+
hashdiff (1.1.0)
|
24
34
|
i18n (1.14.1)
|
25
35
|
concurrent-ruby (~> 1.0)
|
26
|
-
|
27
|
-
|
28
|
-
nokogiri (1.
|
29
|
-
mini_portile2 (~> 2.8.2)
|
36
|
+
minitest (5.22.2)
|
37
|
+
mutex_m (0.2.0)
|
38
|
+
nokogiri (1.16.2-arm64-darwin)
|
30
39
|
racc (~> 1.4)
|
31
|
-
public_suffix (5.0.
|
32
|
-
racc (1.7.
|
33
|
-
rake (13.0
|
34
|
-
rexml (3.2.
|
35
|
-
rspec (3.
|
36
|
-
rspec-core (~> 3.
|
37
|
-
rspec-expectations (~> 3.
|
38
|
-
rspec-mocks (~> 3.
|
39
|
-
rspec-core (3.
|
40
|
-
rspec-support (~> 3.
|
41
|
-
rspec-expectations (3.
|
40
|
+
public_suffix (5.0.4)
|
41
|
+
racc (1.7.3)
|
42
|
+
rake (13.1.0)
|
43
|
+
rexml (3.2.6)
|
44
|
+
rspec (3.13.0)
|
45
|
+
rspec-core (~> 3.13.0)
|
46
|
+
rspec-expectations (~> 3.13.0)
|
47
|
+
rspec-mocks (~> 3.13.0)
|
48
|
+
rspec-core (3.13.0)
|
49
|
+
rspec-support (~> 3.13.0)
|
50
|
+
rspec-expectations (3.13.0)
|
42
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
-
rspec-support (~> 3.
|
44
|
-
rspec-mocks (3.
|
52
|
+
rspec-support (~> 3.13.0)
|
53
|
+
rspec-mocks (3.13.0)
|
45
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
-
rspec-support (~> 3.
|
47
|
-
rspec-support (3.
|
48
|
-
simplecov (0.
|
55
|
+
rspec-support (~> 3.13.0)
|
56
|
+
rspec-support (3.13.1)
|
57
|
+
simplecov (0.22.0)
|
49
58
|
docile (~> 1.1)
|
50
59
|
simplecov-html (~> 0.11)
|
51
60
|
simplecov_json_formatter (~> 0.1)
|
@@ -53,23 +62,22 @@ GEM
|
|
53
62
|
simplecov_json_formatter (0.1.4)
|
54
63
|
tzinfo (2.0.6)
|
55
64
|
concurrent-ruby (~> 1.0)
|
56
|
-
webmock (3.
|
57
|
-
addressable (>= 2.
|
65
|
+
webmock (3.23.0)
|
66
|
+
addressable (>= 2.8.0)
|
58
67
|
crack (>= 0.3.2)
|
59
68
|
hashdiff (>= 0.4.0, < 2.0.0)
|
60
|
-
yard (0.9.
|
69
|
+
yard (0.9.36)
|
61
70
|
|
62
71
|
PLATFORMS
|
63
|
-
|
64
|
-
x64-mingw32
|
72
|
+
arm64-darwin-22
|
65
73
|
|
66
74
|
DEPENDENCIES
|
67
75
|
contentstack_utils!
|
68
|
-
rake (~> 13.0
|
69
|
-
rspec (~> 3.
|
70
|
-
simplecov (~> 0.
|
71
|
-
webmock (~> 3.
|
72
|
-
yard (~> 0.9.
|
76
|
+
rake (~> 13.0)
|
77
|
+
rspec (~> 3.13)
|
78
|
+
simplecov (~> 0.22)
|
79
|
+
webmock (~> 3.23)
|
80
|
+
yard (~> 0.9.36)
|
73
81
|
|
74
82
|
BUNDLED WITH
|
75
|
-
2.3.
|
83
|
+
2.3.26
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2012-
|
3
|
+
Copyright (c) 2012-2024 Contentstack. All Rights Reserved
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/contentstack_utils.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = [%q{Contentstack}]
|
10
10
|
s.email = ["support@contentstack.com"]
|
11
11
|
|
12
|
-
s.required_ruby_version = '>=
|
12
|
+
s.required_ruby_version = '>= 3.0'
|
13
13
|
|
14
14
|
s.license = "MIT"
|
15
15
|
s.homepage = "https://github.com/contentstack/contentstack-utils-ruby"
|
@@ -21,12 +21,12 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.test_files = s.files.grep(%r{^spec/})
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
|
-
s.add_dependency 'activesupport', '>=
|
25
|
-
s.add_dependency 'nokogiri', '
|
24
|
+
s.add_dependency 'activesupport', '>= 7.0'
|
25
|
+
s.add_dependency 'nokogiri', '>= 1.11'
|
26
26
|
|
27
|
-
s.add_development_dependency 'rake', '~> 13.0
|
28
|
-
s.add_development_dependency 'rspec', '~> 3.
|
29
|
-
s.add_development_dependency 'webmock', '~> 3.
|
30
|
-
s.add_development_dependency 'simplecov', '~> 0.
|
31
|
-
s.add_development_dependency 'yard', '~> 0.9.
|
32
|
-
end
|
27
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
28
|
+
s.add_development_dependency 'rspec', '~> 3.13'
|
29
|
+
s.add_development_dependency 'webmock', '~> 3.23'
|
30
|
+
s.add_development_dependency 'simplecov', '~> 0.22'
|
31
|
+
s.add_development_dependency 'yard', '~> 0.9.36'
|
32
|
+
end
|
@@ -105,6 +105,8 @@ module ContentstackUtils
|
|
105
105
|
renderString = "<blockquote>#{inner_html}</blockquote>"
|
106
106
|
when 'code'
|
107
107
|
renderString = "<code>#{inner_html}</code>"
|
108
|
+
when 'fragment'
|
109
|
+
renderString = "<fragment>#{inner_html}</fragment>"
|
108
110
|
when 'reference'
|
109
111
|
if (node["attrs"]['type'] === 'asset')
|
110
112
|
renderString = "<img src=#{node["attrs"]['asset-link']} alt=#{node["attrs"]['asset-name']} />"
|
data/spec/lib/utils_spec.rb
CHANGED
@@ -522,6 +522,26 @@ RSpec.describe ContentstackUtils do
|
|
522
522
|
expect(arrayResult).to eq [UnorderListHtml]
|
523
523
|
end
|
524
524
|
|
525
|
+
it 'Should return Order List string for OrderListJson with Fragment doc' do
|
526
|
+
entry = getGQLJSONRTE(OrderListFragmentJson)
|
527
|
+
|
528
|
+
result = ContentstackUtils::GQL.json_to_html(entry['single_rte'], ContentstackUtils::Model::Options.new())
|
529
|
+
arrayResult = ContentstackUtils::GQL.json_to_html(entry['multiple_rte'], ContentstackUtils::Model::Options.new())
|
530
|
+
|
531
|
+
expect(result).to eq OrderListFragmentHtml
|
532
|
+
expect(arrayResult).to eq [OrderListFragmentHtml]
|
533
|
+
end
|
534
|
+
|
535
|
+
it 'Should return Unorder List string for UnorderListJson with Fragment doc' do
|
536
|
+
entry = getGQLJSONRTE(UnorderListFragmentJson)
|
537
|
+
|
538
|
+
result = ContentstackUtils::GQL.json_to_html(entry['single_rte'], ContentstackUtils::Model::Options.new())
|
539
|
+
arrayResult = ContentstackUtils::GQL.json_to_html(entry['multiple_rte'], ContentstackUtils::Model::Options.new())
|
540
|
+
|
541
|
+
expect(result).to eq UnorderListFragmentHtml
|
542
|
+
expect(arrayResult).to eq [UnorderListFragmentHtml]
|
543
|
+
end
|
544
|
+
|
525
545
|
it 'Should return image string for ImgJson doc' do
|
526
546
|
entry = getGQLJSONRTE(ImgJson)
|
527
547
|
|
@@ -9,6 +9,8 @@ H5Html = "<h5>Mauris venenatis dui id massa sollicitudin, non bibendum nunc dict
|
|
9
9
|
H6Html = "<h6>Nunc porta diam vitae purus semper, ut consequat lorem vehicula.</h6>"
|
10
10
|
OrderListHtml = "<ol><li>Morbi in quam molestie, fermentum diam vitae, bibendum ipsum.</li><li>Pellentesque mattis lacus in quam aliquam congue</li><li>Integer feugiat leo dignissim, lobortis enim vitae, mollis lectus.</li><li>Sed in ante lacinia, molestie metus eu, fringilla sapien.</li></ol>"
|
11
11
|
UnorderListHtml = "<ul><li>Sed quis metus sed mi hendrerit mollis vel et odio.</li><li>Integer vitae sem dignissim, elementum libero vel, fringilla massa.</li><li>Integer imperdiet arcu sit amet tortor faucibus aliquet.</li><li>Aenean scelerisque velit vitae dui vehicula, at congue massa sagittis.</li></ul>"
|
12
|
+
OrderListFragmentHtml = "<ol><li><fragment>List Item 1</fragment><ol><li>List Item 1.1</li><li>List Item 1.2</li><li>List Item 1.3</li></ol></li></ol>"
|
13
|
+
UnorderListFragmentHtml = "<ul><li><fragment>List Item 1</fragment><ul><li>List Item 1.1</li><li>List Item 1.2</li><li>List Item 1.3</li></ul></li></ul>"
|
12
14
|
ImgHtml = "<img src='https://images.contentstack.com/v3/Donald.jog.png' />"
|
13
15
|
TableHtml = "<table><thead><tr><th><p>Header 1</p></th><th><p>Header 2</p></th></tr></thead><tbody><tr><td><p>Body row 1 data 1</p></td><td><p>Body row 1 data 2</p></td></tr><tr><td><p>Body row 2 data 1</p></td><td><p>Body row 2 data 2</p></td></tr></tbody></table>"
|
14
16
|
BlockquoteHtml = "<blockquote>Praesent eu ex sed nibh venenatis pretium.</blockquote>"
|
@@ -144,4 +146,100 @@ JSON_EMBEDDED_ITEMS_ENTRY= {
|
|
144
146
|
}
|
145
147
|
}
|
146
148
|
|
147
|
-
EmbedEdges = '{"edges":[{"node":{"system":{"content_type_uid":"sys_assets","uid":"entry_uid_5"},"created_at":"2020-08-19T09:13:05.864Z","updated_at":"2020-09-10T09:35:28.393Z","created_by":"created_at_date","updated_by":"created_at_date","content_type":"image/png","file_size":"36743","filename":"svg-logo-text.png","url":"/v3/svg-logo-text.png","_version":7,"title":"svg-logo-text.png","description":""}},{"node":{"system":{"content_type_uid":"sys_assets","uid":"asset_uid_1"},"created_at":"2020-08-19T09:13:32.785Z","updated_at":"2020-08-19T09:13:32.785Z","created_by":"created_at_date","updated_by":"created_at_date","content_type":"application/pdf","file_size":"13264","filename":"title","url":"/v3/dummy.pdf","_version":1,"title":"dummy.pdf"}},{"node":{"title":"Update this title","url":"","locale":"en-us","system":{"uid":"entry_uid_1","content_type_uid":"content_block"},"_version":5,"_in_progress":false,"multi_line":"","rich_text_editor":""}},{"node":{"title":"updated title","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_3","content_type_uid":"embeddedrte"},"_in_progress":false}},{"node":{"title":"Entry with embedded entry","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_2","content_type_uid":"embeddedrte"},"_in_progress":false}},{"node":{"system":{"uid":"entry_uid_6","content_type_uid":"sys_assets"},"content_type":"image/png","file_size":"36743","filename":"svg-logo-text.png","url":"/v3/svg-logo-text.png","title":"svg-logo-text.png","description":""}},{"node":{"title":"Update this title","url":"","locale":"en-us","system":{"uid":"entry_uid_1","content_type_uid":"content_block"},"_version":5,"_in_progress":false,"multi_line":"","rich_text_editor":""}},{"node":{"title":"updated title","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_3","content_type_uid":"embeddedrte"},"_in_progress":false}},{"node":{"title":"Entry with embedded entry","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_2","content_type_uid":"embeddedrte"},"_in_progress":false}}]}'
|
149
|
+
EmbedEdges = '{"edges":[{"node":{"system":{"content_type_uid":"sys_assets","uid":"entry_uid_5"},"created_at":"2020-08-19T09:13:05.864Z","updated_at":"2020-09-10T09:35:28.393Z","created_by":"created_at_date","updated_by":"created_at_date","content_type":"image/png","file_size":"36743","filename":"svg-logo-text.png","url":"/v3/svg-logo-text.png","_version":7,"title":"svg-logo-text.png","description":""}},{"node":{"system":{"content_type_uid":"sys_assets","uid":"asset_uid_1"},"created_at":"2020-08-19T09:13:32.785Z","updated_at":"2020-08-19T09:13:32.785Z","created_by":"created_at_date","updated_by":"created_at_date","content_type":"application/pdf","file_size":"13264","filename":"title","url":"/v3/dummy.pdf","_version":1,"title":"dummy.pdf"}},{"node":{"title":"Update this title","url":"","locale":"en-us","system":{"uid":"entry_uid_1","content_type_uid":"content_block"},"_version":5,"_in_progress":false,"multi_line":"","rich_text_editor":""}},{"node":{"title":"updated title","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_3","content_type_uid":"embeddedrte"},"_in_progress":false}},{"node":{"title":"Entry with embedded entry","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_2","content_type_uid":"embeddedrte"},"_in_progress":false}},{"node":{"system":{"uid":"entry_uid_6","content_type_uid":"sys_assets"},"content_type":"image/png","file_size":"36743","filename":"svg-logo-text.png","url":"/v3/svg-logo-text.png","title":"svg-logo-text.png","description":""}},{"node":{"title":"Update this title","url":"","locale":"en-us","system":{"uid":"entry_uid_1","content_type_uid":"content_block"},"_version":5,"_in_progress":false,"multi_line":"","rich_text_editor":""}},{"node":{"title":"updated title","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_3","content_type_uid":"embeddedrte"},"_in_progress":false}},{"node":{"title":"Entry with embedded entry","rich_text_editor":[""],"locale":"en-us","system":{"uid":"entry_uid_2","content_type_uid":"embeddedrte"},"_in_progress":false}}]}'
|
150
|
+
|
151
|
+
OrderListFragmentJson = {
|
152
|
+
"type": "ol",
|
153
|
+
"children": [
|
154
|
+
{
|
155
|
+
"type": "li",
|
156
|
+
"children": [
|
157
|
+
{
|
158
|
+
"type": "fragment",
|
159
|
+
"children": [
|
160
|
+
{
|
161
|
+
"text": "List Item 1"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"type": "ol",
|
167
|
+
"children": [
|
168
|
+
{
|
169
|
+
"type": "li",
|
170
|
+
"children": [
|
171
|
+
{
|
172
|
+
"text": "List Item 1.1"
|
173
|
+
}
|
174
|
+
]
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"type": "li",
|
178
|
+
"children": [
|
179
|
+
{
|
180
|
+
"text": "List Item 1.2"
|
181
|
+
}
|
182
|
+
]
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"type": "li",
|
186
|
+
"children": [
|
187
|
+
{
|
188
|
+
"text": "List Item 1.3"
|
189
|
+
}
|
190
|
+
]
|
191
|
+
}
|
192
|
+
]
|
193
|
+
}
|
194
|
+
]
|
195
|
+
}
|
196
|
+
]
|
197
|
+
}
|
198
|
+
|
199
|
+
UnorderListFragmentJson = {
|
200
|
+
"type": "ul",
|
201
|
+
"children": [
|
202
|
+
{
|
203
|
+
"type": "li",
|
204
|
+
"children": [
|
205
|
+
{
|
206
|
+
"type": "fragment",
|
207
|
+
"children": [
|
208
|
+
{
|
209
|
+
"text": "List Item 1"
|
210
|
+
}
|
211
|
+
]
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"type": "ul",
|
215
|
+
"children": [
|
216
|
+
{
|
217
|
+
"type": "li",
|
218
|
+
"children": [
|
219
|
+
{
|
220
|
+
"text": "List Item 1.1"
|
221
|
+
}
|
222
|
+
]
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"type": "li",
|
226
|
+
"children": [
|
227
|
+
{
|
228
|
+
"text": "List Item 1.2"
|
229
|
+
}
|
230
|
+
]
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"type": "li",
|
234
|
+
"children": [
|
235
|
+
{
|
236
|
+
"text": "List Item 1.3"
|
237
|
+
}
|
238
|
+
]
|
239
|
+
}
|
240
|
+
]
|
241
|
+
}
|
242
|
+
]
|
243
|
+
}
|
244
|
+
]
|
245
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentstack_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Contentstack
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,26 +16,26 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.11'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.11'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -44,70 +44,70 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 13.0
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 13.0
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
61
|
+
version: '3.13'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.
|
68
|
+
version: '3.13'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: webmock
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 3.
|
75
|
+
version: '3.23'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 3.
|
82
|
+
version: '3.23'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: '0.22'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: '0.22'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: yard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.9.
|
103
|
+
version: 0.9.36
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.9.
|
110
|
+
version: 0.9.36
|
111
111
|
description: Contentstack Ruby client for the Content Delivery API
|
112
112
|
email:
|
113
113
|
- support@contentstack.com
|
@@ -119,9 +119,7 @@ files:
|
|
119
119
|
- ".github/workflows/codeql-analysis.yml"
|
120
120
|
- ".github/workflows/jira.yml"
|
121
121
|
- ".github/workflows/release-gem.yml"
|
122
|
-
- ".github/workflows/sast-scan.yml"
|
123
122
|
- ".github/workflows/sca-scan.yml"
|
124
|
-
- ".github/workflows/secrets-scan.yml"
|
125
123
|
- ".gitignore"
|
126
124
|
- ".ruby-version"
|
127
125
|
- ".yardopts"
|
@@ -154,7 +152,7 @@ homepage: https://github.com/contentstack/contentstack-utils-ruby
|
|
154
152
|
licenses:
|
155
153
|
- MIT
|
156
154
|
metadata: {}
|
157
|
-
post_install_message:
|
155
|
+
post_install_message:
|
158
156
|
rdoc_options: []
|
159
157
|
require_paths:
|
160
158
|
- lib
|
@@ -162,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
160
|
requirements:
|
163
161
|
- - ">="
|
164
162
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
163
|
+
version: '3.0'
|
166
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
165
|
requirements:
|
168
166
|
- - ">="
|
@@ -170,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
168
|
version: '0'
|
171
169
|
requirements: []
|
172
170
|
rubygems_version: 3.1.6
|
173
|
-
signing_key:
|
171
|
+
signing_key:
|
174
172
|
specification_version: 4
|
175
173
|
summary: Contentstack Ruby Utils for
|
176
174
|
test_files:
|
@@ -1,11 +0,0 @@
|
|
1
|
-
name: SAST Scan
|
2
|
-
on:
|
3
|
-
pull_request:
|
4
|
-
types: [opened, synchronize, reopened]
|
5
|
-
jobs:
|
6
|
-
security:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
steps:
|
9
|
-
- uses: actions/checkout@v2
|
10
|
-
- name: Horusec Scan
|
11
|
-
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/src horuszup/horusec-cli:latest horusec start -p /src -P $(pwd)
|