net-http-report 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +72 -0
- data/.github/CODEOWNERS +1 -0
- data/.rubocop.yml +10 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/Rakefile +2 -2
- data/bin/console +1 -0
- data/lib/net/http/report.rb +3 -1
- data/lib/net-http-report.rb +2 -2
- data/net-http-report.gemspec +17 -17
- metadata +35 -22
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f57c10a07720ae5752da6c2af8bb831d592ed073bf95f0b2f78c3493cd93a766
|
4
|
+
data.tar.gz: 129688f2359c1199e5f583b756dccc0bea8fd1ea4d06d14898b3d59311554021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c1d0d462b1fe94d87777418a7f829846e85bcfa9b1d8622674b504afb23cba5ff9363d4b531299a237fa4a8b807f424e2be699609d9c10534a50d81524f816
|
7
|
+
data.tar.gz: b3570fcecf5b719207a6ac61fe63f813f1db8307ea865b11f13b1e6641cdf963133c9629bf1aa4b3e5a44902ebbc257399223ca5b6e8ed9ee12807fc0add9ee9
|
@@ -0,0 +1,72 @@
|
|
1
|
+
version: 2.1
|
2
|
+
jobs:
|
3
|
+
lint:
|
4
|
+
docker:
|
5
|
+
- image: salsify/ruby_ci:2.7.7
|
6
|
+
working_directory: ~/net-http-report
|
7
|
+
steps:
|
8
|
+
- checkout
|
9
|
+
- restore_cache:
|
10
|
+
keys:
|
11
|
+
- v1-gems-ruby-2.7.7-{{ checksum "net-http-report.gemspec" }}-{{ checksum "Gemfile" }}
|
12
|
+
- v1-gems-ruby-2.7.7-
|
13
|
+
- run:
|
14
|
+
name: Install Gems
|
15
|
+
command: |
|
16
|
+
if ! bundle check --path=vendor/bundle; then
|
17
|
+
bundle install --path=vendor/bundle --jobs=4 --retry=3
|
18
|
+
bundle clean
|
19
|
+
fi
|
20
|
+
- save_cache:
|
21
|
+
key: v1-gems-ruby-2.7.7-{{ checksum "net-http-report.gemspec" }}-{{ checksum "Gemfile" }}
|
22
|
+
paths:
|
23
|
+
- "vendor/bundle"
|
24
|
+
- "gemfiles/vendor/bundle"
|
25
|
+
- run:
|
26
|
+
name: Run Rubocop
|
27
|
+
command: bundle exec rubocop --config .rubocop.yml
|
28
|
+
test:
|
29
|
+
parameters:
|
30
|
+
ruby_version:
|
31
|
+
type: string
|
32
|
+
docker:
|
33
|
+
- image: salsify/ruby_ci:<< parameters.ruby_version >>
|
34
|
+
environment:
|
35
|
+
CIRCLE_TEST_REPORTS: "test-results"
|
36
|
+
working_directory: ~/net-http-report
|
37
|
+
steps:
|
38
|
+
- checkout
|
39
|
+
- restore_cache:
|
40
|
+
keys:
|
41
|
+
- v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "net-http-report.gemspec" }}-{{ checksum "Gemfile" }}
|
42
|
+
- v1-gems-ruby-<< parameters.ruby_version >>-
|
43
|
+
- run:
|
44
|
+
name: Install Gems
|
45
|
+
command: |
|
46
|
+
if ! bundle check --path=vendor/bundle; then
|
47
|
+
bundle install --path=vendor/bundle --jobs=4 --retry=3
|
48
|
+
bundle clean
|
49
|
+
fi
|
50
|
+
- save_cache:
|
51
|
+
key: v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "net-http-report.gemspec" }}-{{ checksum "Gemfile" }}
|
52
|
+
paths:
|
53
|
+
- "vendor/bundle"
|
54
|
+
- "gemfiles/vendor/bundle"
|
55
|
+
- run:
|
56
|
+
name: Run Tests
|
57
|
+
command: |
|
58
|
+
bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml --format progress spec
|
59
|
+
- store_test_results:
|
60
|
+
path: "test-results"
|
61
|
+
workflows:
|
62
|
+
build:
|
63
|
+
jobs:
|
64
|
+
- lint
|
65
|
+
- test:
|
66
|
+
matrix:
|
67
|
+
parameters:
|
68
|
+
ruby_version:
|
69
|
+
- "2.7.7"
|
70
|
+
- "3.0.5"
|
71
|
+
- "3.1.3"
|
72
|
+
- "3.2.0"
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @jturkel @atsheehan
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
# Net::HTTP::Report Changelog
|
2
2
|
|
3
|
+
## v0.3.0
|
4
|
+
- Add support for Ruby 3.2.
|
5
|
+
- Drop support for Ruby 2.6.
|
6
|
+
|
7
|
+
## v0.2.0
|
8
|
+
- Add support for Ruby 3.0.
|
9
|
+
- Drop support for Ruby < 2.6.
|
10
|
+
|
3
11
|
## v0.1.0
|
4
12
|
- Initial version. Adds Report request class to Net::HTTP module.
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/lib/net/http/report.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Monkey patch Net::HTTP to add support for REPORT requests
|
2
4
|
|
3
5
|
module Net
|
4
6
|
class HTTP
|
5
7
|
class Report < HTTPRequest
|
6
|
-
METHOD = 'REPORT'
|
8
|
+
METHOD = 'REPORT'
|
7
9
|
REQUEST_HAS_BODY = true
|
8
10
|
RESPONSE_HAS_BODY = true
|
9
11
|
end
|
data/lib/net-http-report.rb
CHANGED
data/net-http-report.gemspec
CHANGED
@@ -1,30 +1,28 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
|
5
6
|
Gem::Specification.new do |spec|
|
6
7
|
spec.name = 'net-http-report'
|
7
|
-
spec.version = '0.
|
8
|
+
spec.version = '0.3.0'
|
8
9
|
spec.authors = ['Salsify, Inc']
|
9
10
|
spec.email = ['engineering@salsify.com']
|
10
11
|
|
11
12
|
spec.summary = 'Adds support for HTTP REPORT requests to Net::HTTP.'
|
12
|
-
spec.description =
|
13
|
-
Monkey patches the Net::HTTP standard library to add the HTTP REPORT
|
14
|
-
Request class that integrates with the rest of the Net::HTTP suite.
|
15
|
-
DESC
|
16
|
-
|
13
|
+
spec.description = <<~DESC
|
14
|
+
Monkey patches the Net::HTTP standard library to add the HTTP REPORT
|
15
|
+
Request class that integrates with the rest of the Net::HTTP suite.
|
16
|
+
DESC
|
17
17
|
spec.homepage = 'https://github.com/salsify/net-http-report'
|
18
|
-
|
19
18
|
spec.license = 'MIT'
|
20
19
|
|
21
|
-
|
22
20
|
# Set 'allowed_push_post' to control where this gem can be published.
|
23
21
|
if spec.respond_to?(:metadata)
|
24
22
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
25
|
-
|
23
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
26
24
|
else
|
27
|
-
raise 'RubyGems 2.0 or newer is required to
|
25
|
+
raise 'RubyGems 2.0 or newer is required to set allowed_push_host.'
|
28
26
|
end
|
29
27
|
|
30
28
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -32,10 +30,12 @@ DESC
|
|
32
30
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
33
31
|
spec.require_paths = ['lib']
|
34
32
|
|
35
|
-
spec.
|
36
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
37
|
-
spec.add_development_dependency 'rspec', '~> 3.4'
|
38
|
-
spec.add_development_dependency 'salsify_rubocop', '~> 0.46.0'
|
39
|
-
spec.add_development_dependency 'overcommit', '~> 0.37'
|
33
|
+
spec.required_ruby_version = '>= 2.7'
|
40
34
|
|
35
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
36
|
+
spec.add_development_dependency 'overcommit', '~> 0.37'
|
37
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
38
|
+
spec.add_development_dependency 'rspec', '~> 3.12'
|
39
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
40
|
+
spec.add_development_dependency 'salsify_rubocop', '~> 1.42.1'
|
41
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-http-report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salsify, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,70 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
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: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: overcommit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0.37'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0.37'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
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: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '3.12'
|
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:
|
68
|
+
version: '3.12'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rspec_junit_formatter
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: salsify_rubocop
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
89
|
+
version: 1.42.1
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
96
|
+
version: 1.42.1
|
83
97
|
description: |
|
84
98
|
Monkey patches the Net::HTTP standard library to add the HTTP REPORT
|
85
99
|
Request class that integrates with the rest of the Net::HTTP suite.
|
@@ -91,13 +105,12 @@ executables:
|
|
91
105
|
extensions: []
|
92
106
|
extra_rdoc_files: []
|
93
107
|
files:
|
108
|
+
- ".circleci/config.yml"
|
109
|
+
- ".github/CODEOWNERS"
|
94
110
|
- ".gitignore"
|
95
111
|
- ".overcommit.yml"
|
96
112
|
- ".rspec"
|
97
113
|
- ".rubocop.yml"
|
98
|
-
- ".ruby-gemset"
|
99
|
-
- ".ruby-version"
|
100
|
-
- ".travis.yml"
|
101
114
|
- CHANGELOG.md
|
102
115
|
- Gemfile
|
103
116
|
- LICENSE.txt
|
@@ -113,6 +126,7 @@ licenses:
|
|
113
126
|
- MIT
|
114
127
|
metadata:
|
115
128
|
allowed_push_host: https://rubygems.org
|
129
|
+
rubygems_mfa_required: 'true'
|
116
130
|
post_install_message:
|
117
131
|
rdoc_options: []
|
118
132
|
require_paths:
|
@@ -121,15 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
135
|
requirements:
|
122
136
|
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
138
|
+
version: '2.7'
|
125
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
140
|
requirements:
|
127
141
|
- - ">="
|
128
142
|
- !ruby/object:Gem::Version
|
129
143
|
version: '0'
|
130
144
|
requirements: []
|
131
|
-
|
132
|
-
rubygems_version: 2.5.2
|
145
|
+
rubygems_version: 3.3.26
|
133
146
|
signing_key:
|
134
147
|
specification_version: 4
|
135
148
|
summary: Adds support for HTTP REPORT requests to Net::HTTP.
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
net-http-report
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.3.3
|