simple_http_service 0.1.5 → 0.1.7
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/workflows/gem-push.yml +48 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -1
- data/lib/simple_http_service/version.rb +1 -1
- data/simple_http_service.gemspec +8 -5
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea68d78d958a569dece26b5b60efa27f2da46c125ff59bc1e939c5506acd9e26
|
4
|
+
data.tar.gz: 2ee206dec36b3af754f143368c17f6705423415837be9be676376590c18175f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18903c936847a8f46932c5cfddbf014e4153071647c3d98d53e2f9a21555422de1e4084338f74e8255ae9b7dae3b62ad6d8d7caced9521a745c588f40a5a92b8
|
7
|
+
data.tar.gz: 9b6c1b15e3b22004eafc45c6dbba709f93eb7f8e5a3747752aafc8c60b947b0c516fcb10fdf214d6e2d169c6bde7431db0ffd45f86b1d93ea14de773448d23dc
|
@@ -0,0 +1,48 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ "master" ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ "master" ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Publish
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
permissions:
|
14
|
+
contents: read
|
15
|
+
packages: write
|
16
|
+
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- name: Set up Ruby 3.0.0
|
20
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
21
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
22
|
+
# uses: ruby/setup-ruby@v1
|
23
|
+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
24
|
+
with:
|
25
|
+
ruby-version: 3.0.0
|
26
|
+
|
27
|
+
- name: Publish to GPR
|
28
|
+
run: |
|
29
|
+
mkdir -p $HOME/.gem
|
30
|
+
touch $HOME/.gem/credentials
|
31
|
+
chmod 0600 $HOME/.gem/credentials
|
32
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
33
|
+
gem build *.gemspec
|
34
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
35
|
+
env:
|
36
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
37
|
+
OWNER: ${{ github.repository_owner }}
|
38
|
+
|
39
|
+
- name: Publish to RubyGems
|
40
|
+
run: |
|
41
|
+
mkdir -p $HOME/.gem
|
42
|
+
touch $HOME/.gem/credentials
|
43
|
+
chmod 0600 $HOME/.gem/credentials
|
44
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
45
|
+
gem build *.gemspec
|
46
|
+
gem push *.gem
|
47
|
+
env:
|
48
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
# SimpleHttpService
|
1
|
+
# SimpleHttpService
|
2
|
+
|
3
|
+
[](https://badge.fury.io/rb/simple_http_service)
|
4
|
+
[](https://badge.fury.io/rb/simple_http_service)
|
5
|
+
[](https://github.com/gklsan/simple_http_service/network)
|
6
|
+
[](https://github.com/gklsan/simple_http_service/stargazers)
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
2
8
|
|
3
9
|
SimpleHttpService is a simple Ruby library to make HTTP requests with customizable options for headers, timeouts, and retries. It provides a convenient way to create and send HTTP requests using a clean and simple interface.
|
4
10
|
|
data/simple_http_service.gemspec
CHANGED
@@ -16,11 +16,13 @@ Gem::Specification.new do |spec|
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
17
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
18
|
if spec.respond_to?(:metadata)
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
spec.metadata = {
|
20
|
+
'homepage_uri' => spec.homepage,
|
21
|
+
'source_code_uri' => "https://github.com/gklsan/simple_http_service",
|
22
|
+
'changelog_uri' => "https://github.com/gklsan/simple_http_service/releases",
|
23
|
+
'bug_tracker_uri' => "https://github.com/gklsan/simple_http_service/issues",
|
24
|
+
'documentation_uri' => "https://rubydoc.info/github/gklsan/simple_http_service"
|
25
|
+
}
|
24
26
|
else
|
25
27
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
26
28
|
"public gem pushes."
|
@@ -28,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
28
30
|
|
29
31
|
# Specify which files should be added to the gem when it is released.
|
30
32
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
33
|
+
gemspec = File.basename(__FILE__)
|
31
34
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
32
35
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_http_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gokul (gklsan)
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http
|
@@ -75,6 +75,7 @@ executables: []
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
+
- ".github/workflows/gem-push.yml"
|
78
79
|
- ".gitignore"
|
79
80
|
- ".rspec"
|
80
81
|
- ".travis.yml"
|
@@ -113,7 +114,9 @@ licenses:
|
|
113
114
|
metadata:
|
114
115
|
homepage_uri: https://github.com/gklsan/simple_http_service
|
115
116
|
source_code_uri: https://github.com/gklsan/simple_http_service
|
116
|
-
changelog_uri: https://github.com/gklsan/simple_http_service
|
117
|
+
changelog_uri: https://github.com/gklsan/simple_http_service/releases
|
118
|
+
bug_tracker_uri: https://github.com/gklsan/simple_http_service/issues
|
119
|
+
documentation_uri: https://rubydoc.info/github/gklsan/simple_http_service
|
117
120
|
post_install_message:
|
118
121
|
rdoc_options: []
|
119
122
|
require_paths:
|
@@ -129,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
132
|
- !ruby/object:Gem::Version
|
130
133
|
version: '0'
|
131
134
|
requirements: []
|
132
|
-
rubygems_version: 3.
|
135
|
+
rubygems_version: 3.5.3
|
133
136
|
signing_key:
|
134
137
|
specification_version: 4
|
135
138
|
summary: SimpleHttpService is a simple Ruby library to make HTTP requests with customizable
|