httparty 0.23.0 → 0.23.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f336e1951278fdb4b1480a73cf466ab02159e7d20c0bfcafe26a512ead0e8d8f
4
- data.tar.gz: 2ed6bc6ff6afc5055efe6cd21653ab66452b352de1d4a4c84805078daa1704f7
3
+ metadata.gz: 20e6019fdfbb861c0ffe11f3cf52c76c9e404647e52007f3c7aa508d548c68fd
4
+ data.tar.gz: 2f7fce01ab20c8d6c268e80a95fb69d5aa8f471addd3c7d53eb2fdcd9305fcf3
5
5
  SHA512:
6
- metadata.gz: 31011b129880b9158d59598ac20b4dfbf2bc7a8987360c3468f18ec38d54ad1397a746319bf88d5b6c5dae1f55a2ce2b54d7dc1b7750917635f175c1b5ee6efb
7
- data.tar.gz: 101315ce9fff16cd2b67be282c97495ec112cebd2836a65385f268c5ca1de6e803f0ec1589afdf353bab4d94eed1757ec5d3beaa391e107c68dd361d86e83670
6
+ metadata.gz: '08b4cf9fc625f8093c56ff34b2bbfc3c0ed5b5dd3e391112dc10244c0709a5dae10917d15c851ec6ad86882c07c3973556f1b45a7310aed9965c6b9e4bf45fe2'
7
+ data.tar.gz: 1086fee06fe7fa50351b488d62247c34d9516c335c8defc545205c16b779e7a01578271f7a0b28ae495d35d2d6e50314d5d70e916cba84b4a8134ad14f26bdbe
data/httparty.gemspec CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.homepage = "https://github.com/jnunemaker/httparty"
13
13
  s.summary = 'Makes http fun! Also, makes consuming restful web services dead easy.'
14
14
  s.description = 'Makes http fun! Also, makes consuming restful web services dead easy.'
15
+ s.metadata["changelog_uri"] = 'https://github.com/jnunemaker/httparty/releases'
15
16
 
16
17
  s.required_ruby_version = '>= 2.7.0'
17
18
 
@@ -83,6 +83,7 @@ module HTTParty
83
83
  def content_body(object)
84
84
  if file?(object)
85
85
  object = (file = object).read
86
+ object.force_encoding(Encoding::UTF_8) if object.respond_to?(:force_encoding)
86
87
  file.rewind if file.respond_to?(:rewind)
87
88
  end
88
89
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTParty
4
- VERSION = '0.23.0'
4
+ VERSION = '0.23.2'
5
5
  end
data/lib/httparty.rb CHANGED
@@ -62,6 +62,16 @@ module HTTParty
62
62
  # * :+ssl_ca_path+: see HTTParty::ClassMethods.ssl_ca_path.
63
63
 
64
64
  module ClassMethods
65
+ # Turns on or off the foul option.
66
+ #
67
+ # class Foo
68
+ # include HTTParty
69
+ # foul true
70
+ # end
71
+ def foul(bool)
72
+ default_options[:foul] = bool
73
+ end
74
+
65
75
  # Turns on logging
66
76
  #
67
77
  # class Foo
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-03-27 00:00:00.000000000 Z
12
+ date: 2025-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: csv
@@ -130,7 +130,8 @@ files:
130
130
  homepage: https://github.com/jnunemaker/httparty
131
131
  licenses:
132
132
  - MIT
133
- metadata: {}
133
+ metadata:
134
+ changelog_uri: https://github.com/jnunemaker/httparty/releases
134
135
  post_install_message: When you HTTParty, you must party hard!
135
136
  rdoc_options: []
136
137
  require_paths: