omcms-ruby-client 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +10 -0
- data/.github/workflows/semantic-pr.yaml +18 -0
- data/.github/workflows/semantic-release.yaml +31 -0
- data/.releaserc.yaml +26 -0
- data/README.md +1 -0
- data/lib/omcms/client.rb +2 -1
- data/lib/omcms/middleware/parse_response.rb +1 -1
- data/lib/omcms/middleware/set_header.rb +1 -1
- data/lib/omcms/version.rb +1 -1
- data/lib/omcms.rb +0 -1
- data/omcms-ruby-client.gemspec +2 -5
- metadata +10 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab39e0ec91ceb944add5ef432e128f57cf100ff63e465a7753d7016c4e3aefdf
|
4
|
+
data.tar.gz: 542fc89c8d2ef2e3a29938aa4b4f107f7c22a2c45c49d07df501a6a40e871733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c306e712943c1287f268e0f770cf11b38b26631c960185d05f3ff9503abe294d1a6409b515bfc526235af3e2249427e3203d8c3469d1d7e0cd2bb12ea4cfb5cf
|
7
|
+
data.tar.gz: e171d02809aaa2baf2c579dddcc9bae8c0ba5bce249994496edd6ab6f3c5bd6666016bd823a91b07acdabe0c0df75b2a9349fee50a4d9493ca162115e3743cd1
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<!--- Summarize your changes here -->
|
2
|
+
|
3
|
+
## JIRA Issue
|
4
|
+
|
5
|
+
[<change_me>](https://equitymultiple.atlassian.net/browse/<change_me>)
|
6
|
+
|
7
|
+
## Rationale
|
8
|
+
<!--- describe how your changes solve the linked issue -->
|
9
|
+
<!--- if any alternatives were considered, explain the -->
|
10
|
+
<!--- tradeoffs, and how this solution was ultimately chosen -->
|
@@ -0,0 +1,18 @@
|
|
1
|
+
name: 'Semantic PR'
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
types:
|
6
|
+
- opened
|
7
|
+
- edited
|
8
|
+
- synchronize
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
main:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
# Please look up the latest version at
|
15
|
+
# https://github.com/amannn/action-semantic-pull-request/releases
|
16
|
+
- uses: amannn/action-semantic-pull-request@v5.5.3
|
17
|
+
env:
|
18
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: Semantic Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
paths-ignore:
|
8
|
+
- '.github/**'
|
9
|
+
- 'README.md'
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
semantic-release:
|
13
|
+
name: Semantic Release
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
concurrency: semantic-release
|
16
|
+
steps:
|
17
|
+
- name: Checkout
|
18
|
+
uses: actions/checkout@v4.1.7
|
19
|
+
with:
|
20
|
+
persist-credentials: false
|
21
|
+
|
22
|
+
- name: Semantic Release
|
23
|
+
id: semantic
|
24
|
+
uses: cycjimmy/semantic-release-action@v4.1.0
|
25
|
+
with:
|
26
|
+
semantic_version: 19.0.5
|
27
|
+
extra_plugins: |
|
28
|
+
conventional-changelog-conventionalcommits@5.0.0
|
29
|
+
@semantic-release/exec@6.0.3
|
30
|
+
env:
|
31
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.releaserc.yaml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
# The branches on which releases should happen
|
3
|
+
branches:
|
4
|
+
- main
|
5
|
+
plugins:
|
6
|
+
# commit-analyzer determines the type of release by analyzing commits with conventional-changelog
|
7
|
+
# we use the default angular commit message conventions
|
8
|
+
# https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit
|
9
|
+
- "@semantic-release/commit-analyzer"
|
10
|
+
|
11
|
+
# Generate release notes for the commits added since the last release with conventional-changelog
|
12
|
+
- "@semantic-release/release-notes-generator"
|
13
|
+
|
14
|
+
# Update the CHANGELOG.md file
|
15
|
+
- - "@semantic-release/changelog"
|
16
|
+
- changelogFile: CHANGELOG.md
|
17
|
+
|
18
|
+
# Publishes a GitHub "release" and comments on released Pull Requests/Issues.
|
19
|
+
- - "@semantic-release/github"
|
20
|
+
- assets:
|
21
|
+
- CHANGELOG.md
|
22
|
+
|
23
|
+
# Commits release assets (changelog) to the repo
|
24
|
+
- - "@semantic-release/git"
|
25
|
+
- assets:
|
26
|
+
- CHANGELOG.md
|
data/README.md
CHANGED
@@ -35,6 +35,7 @@ $omcms = OMCMS::Client.new(
|
|
35
35
|
private_key: ENV["OMCMS_PRIVATE_KEY"],
|
36
36
|
open_timeout: ENV["OMCMS_OPEN_TIMEOUT"], # optional default to 10 seconds
|
37
37
|
timeout: ENV["OMCMS_TIMEOUT"] # optional default to 20 seconds
|
38
|
+
adapter: :httpclient # optional HTTP adapter and defaults to `Faraday.default_adapter`
|
38
39
|
)
|
39
40
|
```
|
40
41
|
|
data/lib/omcms/client.rb
CHANGED
@@ -17,7 +17,7 @@ module OMCMS
|
|
17
17
|
f.request :omcms_set_header
|
18
18
|
f.response :omcms_parse_response
|
19
19
|
f.response :json, content_type: /\bjson$/
|
20
|
-
f.adapter
|
20
|
+
f.adapter @adapter
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
@@ -37,6 +37,7 @@ module OMCMS
|
|
37
37
|
@host = opts[:host]
|
38
38
|
@open_timeout = opts[:open_timeout] || 10
|
39
39
|
@timeout = opts[:timeout] || 20
|
40
|
+
@adapter = opts[:adapter] || Faraday.default_adapter
|
40
41
|
end
|
41
42
|
end
|
42
43
|
end
|
data/lib/omcms/version.rb
CHANGED
data/lib/omcms.rb
CHANGED
data/omcms-ruby-client.gemspec
CHANGED
@@ -14,9 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.description = "omcms-ruby-client make is simpler to use OMCMS connector APIs
|
15
15
|
and integrate with existing Ruby application"
|
16
16
|
spec.homepage = "https://github.com/equitymultiple/omcms-ruby-client"
|
17
|
-
|
18
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
spec.metadata["source_code_uri"] = "https://github.com/equitymultiple/omcms-ruby-client"
|
17
|
+
spec.license = nil
|
20
18
|
|
21
19
|
# Specify which files should be added to the gem when it is released.
|
22
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -26,10 +24,9 @@ Gem::Specification.new do |spec|
|
|
26
24
|
spec.bindir = "exe"
|
27
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
26
|
spec.require_paths = ["lib"]
|
29
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
27
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.2.0")
|
30
28
|
|
31
29
|
spec.add_dependency "faraday", ">= 2.0", "< 3"
|
32
|
-
spec.add_dependency "faraday-httpclient", "~> 2.0"
|
33
30
|
|
34
31
|
spec.metadata["rubygems_mfa_required"] = "true"
|
35
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omcms-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pradeep Rawat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -30,20 +30,6 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '3'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: faraday-httpclient
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.0'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '2.0'
|
47
33
|
description: |-
|
48
34
|
omcms-ruby-client make is simpler to use OMCMS connector APIs
|
49
35
|
and integrate with existing Ruby application
|
@@ -53,7 +39,11 @@ executables: []
|
|
53
39
|
extensions: []
|
54
40
|
extra_rdoc_files: []
|
55
41
|
files:
|
42
|
+
- ".github/pull_request_template.md"
|
43
|
+
- ".github/workflows/semantic-pr.yaml"
|
44
|
+
- ".github/workflows/semantic-release.yaml"
|
56
45
|
- ".gitignore"
|
46
|
+
- ".releaserc.yaml"
|
57
47
|
- ".rspec"
|
58
48
|
- ".travis.yml"
|
59
49
|
- Gemfile
|
@@ -77,10 +67,9 @@ files:
|
|
77
67
|
- lib/omcms/version.rb
|
78
68
|
- omcms-ruby-client.gemspec
|
79
69
|
homepage: https://github.com/equitymultiple/omcms-ruby-client
|
80
|
-
licenses:
|
70
|
+
licenses:
|
71
|
+
-
|
81
72
|
metadata:
|
82
|
-
homepage_uri: https://github.com/equitymultiple/omcms-ruby-client
|
83
|
-
source_code_uri: https://github.com/equitymultiple/omcms-ruby-client
|
84
73
|
rubygems_mfa_required: 'true'
|
85
74
|
post_install_message:
|
86
75
|
rdoc_options: []
|
@@ -90,14 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
79
|
requirements:
|
91
80
|
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version: 2.
|
82
|
+
version: 3.2.0
|
94
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
84
|
requirements:
|
96
85
|
- - ">="
|
97
86
|
- !ruby/object:Gem::Version
|
98
87
|
version: '0'
|
99
88
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
89
|
+
rubygems_version: 3.5.19
|
101
90
|
signing_key:
|
102
91
|
specification_version: 4
|
103
92
|
summary: A Ruby SDK for OMCMS APIs
|