Skip to content

Commit e955db2

Browse files
authored
Merge pull request #4 from shopsmart/upstream-merge
Upstream merge
2 parents 98942e3 + b1330b1 commit e955db2

16 files changed

Lines changed: 222 additions & 80 deletions

.github/workflows/check-branch.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Check Branch'
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
check_branch:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Comment PR
11+
if: github.base_ref == 'master' && github.head_ref != 'next'
12+
uses: thollander/actions-comment-pull-request@v2
13+
with:
14+
message: |
15+
We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the next branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch.
16+
- name: Check branch
17+
if: github.base_ref == 'master' && github.head_ref != 'next'
18+
run: |
19+
echo "ERROR: We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the next branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch."
20+
exit 1

.github/workflows/release-gem.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v3
17-
- name: Set up Ruby 2.6
18-
uses: actions/setup-ruby@v1
17+
- name: Set up Ruby 2.7
18+
uses: ruby/setup-ruby@v1
1919
with:
20-
ruby-version: 2.6.x
20+
ruby-version: '2.7'
2121

2222
- name: Publish to RubyGems
2323
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
2824
gem build *.gemspec
2925
gem push *.gem
3026
env:
31-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
27+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}

.github/workflows/sast-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/secrets-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6
1+
2.6.10

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# 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
4+
## [1.2.0](https://github.com/contentstack/contentstack-utils-ruby/tree/v1.2.0) (2023-06-20)
5+
- Support for nested assets in the the image and br tag
36
## [1.1.3](https://github.com/contentstack/contentstack-utils-ruby/tree/v1.1.3) (2023-03-16)
47
- Dependency gem max version issue resolved. (Activesupport gem)
58

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @contentstack/security-admin @contentstack/sdk-admin
1+
* @contentstack/security-admin

Gemfile.lock

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
contentstack_utils (1.1.3)
4+
contentstack_utils (1.2.1)
55
activesupport (~> 5.2)
66
nokogiri (~> 1.11)
77

@@ -13,41 +13,43 @@ GEM
1313
i18n (>= 0.7, < 2)
1414
minitest (~> 5.1)
1515
tzinfo (~> 1.1)
16-
addressable (2.8.1)
16+
addressable (2.8.6)
1717
public_suffix (>= 2.0.2, < 6.0)
18-
concurrent-ruby (1.2.2)
19-
crack (0.4.5)
18+
bigdecimal (3.1.7)
19+
concurrent-ruby (1.2.3)
20+
crack (1.0.0)
21+
bigdecimal
2022
rexml
21-
diff-lcs (1.5.0)
23+
diff-lcs (1.5.1)
2224
docile (1.4.0)
23-
hashdiff (1.0.1)
24-
i18n (1.12.0)
25+
hashdiff (1.1.0)
26+
i18n (1.14.4)
2527
concurrent-ruby (~> 1.0)
26-
mini_portile2 (2.8.1)
27-
minitest (5.18.0)
28-
nokogiri (1.14.2)
28+
mini_portile2 (2.8.5)
29+
minitest (5.22.3)
30+
nokogiri (1.13.10)
2931
mini_portile2 (~> 2.8.0)
3032
racc (~> 1.4)
31-
nokogiri (1.14.2-x64-mingw32)
33+
nokogiri (1.13.10-x64-mingw32)
3234
racc (~> 1.4)
33-
public_suffix (5.0.1)
34-
racc (1.6.2)
35+
public_suffix (5.0.4)
36+
racc (1.7.3)
3537
rake (13.0.6)
36-
rexml (3.2.5)
37-
rspec (3.10.0)
38-
rspec-core (~> 3.10.0)
39-
rspec-expectations (~> 3.10.0)
40-
rspec-mocks (~> 3.10.0)
41-
rspec-core (3.10.2)
42-
rspec-support (~> 3.10.0)
43-
rspec-expectations (3.10.2)
38+
rexml (3.2.6)
39+
rspec (3.13.0)
40+
rspec-core (~> 3.13.0)
41+
rspec-expectations (~> 3.13.0)
42+
rspec-mocks (~> 3.13.0)
43+
rspec-core (3.13.0)
44+
rspec-support (~> 3.13.0)
45+
rspec-expectations (3.13.0)
4446
diff-lcs (>= 1.2.0, < 2.0)
45-
rspec-support (~> 3.10.0)
46-
rspec-mocks (3.10.3)
47+
rspec-support (~> 3.13.0)
48+
rspec-mocks (3.13.0)
4749
diff-lcs (>= 1.2.0, < 2.0)
48-
rspec-support (~> 3.10.0)
49-
rspec-support (3.10.3)
50-
simplecov (0.21.2)
50+
rspec-support (~> 3.13.0)
51+
rspec-support (3.13.1)
52+
simplecov (0.22.0)
5153
docile (~> 1.1)
5254
simplecov-html (~> 0.11)
5355
simplecov_json_formatter (~> 0.1)
@@ -56,25 +58,23 @@ GEM
5658
thread_safe (0.3.6)
5759
tzinfo (1.2.11)
5860
thread_safe (~> 0.1)
59-
webmock (3.11.3)
60-
addressable (>= 2.3.6)
61+
webmock (3.23.0)
62+
addressable (>= 2.8.0)
6163
crack (>= 0.3.2)
6264
hashdiff (>= 0.4.0, < 2.0.0)
63-
webrick (1.7.0)
64-
yard (0.9.28)
65-
webrick (~> 1.7.0)
65+
yard (0.9.36)
6666

6767
PLATFORMS
6868
ruby
6969
x64-mingw32
7070

7171
DEPENDENCIES
7272
contentstack_utils!
73-
rake (~> 13.0.3)
74-
rspec (~> 3.10.0)
75-
simplecov (~> 0.21.1)
76-
webmock (~> 3.11.0)
77-
yard (~> 0.9.26)
73+
rake (~> 13.0)
74+
rspec (~> 3.13)
75+
simplecov (~> 0.22)
76+
webmock (~> 3.23)
77+
yard (~> 0.9.36)
7878

7979
BUNDLED WITH
8080
2.3.13

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2012-2023 Contentstack. All Rights Reserved
3+
Copyright (c) 2012-2024 Contentstack. All Rights Reserved
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

contentstack_utils.gemspec

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Gem::Specification.new do |s|
2424
s.add_dependency 'activesupport', '~> 5.2'
2525
s.add_dependency 'nokogiri', '~> 1.11'
2626

27-
s.add_development_dependency 'rake', '~> 13.0.3'
28-
s.add_development_dependency 'rspec', '~> 3.10.0'
29-
s.add_development_dependency 'webmock', '~> 3.11.0'
30-
s.add_development_dependency 'simplecov', '~> 0.21.1'
31-
s.add_development_dependency 'yard', '~> 0.9.26'
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

0 commit comments

Comments
 (0)