protocol-http 0.24.0 → 0.24.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9090658dcddc6852ae0af81355da65f40b615ca912fa2886cab18664e7a65b73
4
- data.tar.gz: c853953e6e736c2c31b37211c42c7080de71926f2bf5d7eedf5457c1872a2777
3
+ metadata.gz: 6a301e53d2d2ccaf00604ec927599d152ae68d430067dead05a2155e232d7ac8
4
+ data.tar.gz: 21cd71578d7f5f02a68955b657e8799e0d74b72ffb80afadd59dc948d2d0d9ca
5
5
  SHA512:
6
- metadata.gz: db77e79eac214ede13bdc19cfb19c1b6cca8d3b0473f4414049cfa2ad7fb84bfdf888a1ce0169a97a3966f7a5d3b0d7a9e194a79e6466ae52b4deb266870bd73
7
- data.tar.gz: b44a52164ac2d7ea6fd89746757d524651a07b10eaf509db734b23dc9af5a5d11d7295fe46669c000aa31a935792632ccd2acc2b2b7a3d8c6413bd89fab1d686
6
+ metadata.gz: 43c713f5a9e8862357c4664a7c8d62c1e0a4abd24dbc65b20bd6c2c212752a7c362e30e844f94f321720f97634a77bc0c87d414b23fe62f363e152fbffa6e337
7
+ data.tar.gz: f5bb6d9fd9d6419ddaafdf16391fe3019b8e9feb6a91f2fa246cecbc0123c3432822cc302809f8ac1b26d643ae149e2eeee13b3bd1bd3013a2c35562b45b2368
checksums.yaml.gz.sig CHANGED
Binary file
@@ -41,7 +41,7 @@ module Protocol
41
41
  end
42
42
 
43
43
  # Write the body of the response to the given file path.
44
- def save(path, mode = ::File::WRONLY|::File::CREAT, **options)
44
+ def save(path, mode = ::File::WRONLY|::File::CREAT|::File::TRUNC, **options)
45
45
  if @body
46
46
  ::File.open(path, mode, **options) do |file|
47
47
  self.each do |chunk|
@@ -120,7 +120,7 @@ module Protocol
120
120
  # @argument fragment [String] Set the fragment to this value.
121
121
  # @argument pop [Boolean] If the path contains a trailing filename, pop the last component of the path before appending the new path.
122
122
  # @argument merge [Boolean] If the parameters are specified, merge them with the existing parameters.
123
- def with(path: nil, parameters: nil, fragment: @fragment, pop: true, merge: true)
123
+ def with(path: nil, parameters: nil, fragment: @fragment, pop: false, merge: true)
124
124
  if @parameters
125
125
  if parameters and merge
126
126
  parameters = @parameters.merge(parameters)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.24.0"
8
+ VERSION = "0.24.2"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.24.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -43,7 +43,7 @@ cert_chain:
43
43
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
44
44
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
45
45
  -----END CERTIFICATE-----
46
- date: 2023-01-28 00:00:00.000000000 Z
46
+ date: 2023-06-02 00:00:00.000000000 Z
47
47
  dependencies:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler
@@ -74,7 +74,7 @@ dependencies:
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  - !ruby/object:Gem::Dependency
77
- name: rspec
77
+ name: sus
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
- rubygems_version: 3.4.1
153
+ rubygems_version: 3.4.7
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Provides abstractions to handle HTTP protocols.
metadata.gz.sig CHANGED
Binary file