rquest 1.0.4 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8e9c105156c55e454ce83def1bf7b510cda4852
4
- data.tar.gz: da15cb62c55daadfd472b2e1ccf8de93520c33ce
3
+ metadata.gz: b46b8d2b8b3c3f6556bcdc6f1c26756704565a12
4
+ data.tar.gz: f61616f72273e7ced413e06850c8104de7c4bdf0
5
5
  SHA512:
6
- metadata.gz: 5168e5cf92da783751c71f3795452e59acc2f120be97f97bbdb1f14b0b3eec7508c26dd3073601b946827ec0840873b61bc6e50ee615aa6469a60504b56b57cf
7
- data.tar.gz: f214c7fdeeb10623726432bd0805dfbe933b64405d8db49591e9ac40fa3152ad70ec82a9c0017b432ca9ab726a4aa31d730a30a006dc4b4f3ad3077cb903ebe3
6
+ metadata.gz: e7da78221107cf4cb74b183f90d6b7cd513020cdb488b81169b6316689c665781f10b090da6ddfba953686bca36ae4abb64cb8b0e3841697d77967a9310c5f9b
7
+ data.tar.gz: b18a74558268d62a5db0c89c3728667c904612c83965b38e0a15e98be30ceae2c7cae94750f1b3c8c018c5b215290cf774398119d755ca0b669386af0640052e
data/README.md CHANGED
@@ -8,6 +8,11 @@ Rquest makes it easy to build request and gives you full control over every aspe
8
8
 
9
9
  In addition Rquest is an object that can handle a full session request cycle. You can say log in have the authentication cookies set by the server and then proceed to parse your dashboard.
10
10
 
11
+ ## Credit where credit is due
12
+ - Special thanks to nicksieger for the multipart-post gem.
13
+ - Special thanks to minad for the mimemagic gem.
14
+ - Both of these were crucial in creating the easy file upload feature.
15
+
11
16
  ## Installation
12
17
 
13
18
  Add this line to your application's Gemfile:
@@ -104,6 +104,9 @@ module Rquest
104
104
 
105
105
  def set_headers
106
106
  set_cookies if @cookies.any?
107
+ if @settings[:form_type] == :json
108
+ @http_request_client["Content-Type"] = "application/json"
109
+ end
107
110
  @headers.each do |key, value|
108
111
  @http_request_client[key.to_s] = value.to_s
109
112
  end
@@ -1,3 +1,3 @@
1
1
  module Rquest
2
- VERSION = "1.0.4"
2
+ VERSION = "2.0"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rquest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: '2.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Tyrel Corporation
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -138,6 +138,7 @@ files:
138
138
  - rquest-1.0.1.gem
139
139
  - rquest-1.0.2.gem
140
140
  - rquest-1.0.3.gem
141
+ - rquest-1.0.4.gem
141
142
  - rquest.gemspec
142
143
  homepage: https://github.com/thetyrelcorporation/rquest
143
144
  licenses:
@@ -159,10 +160,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
160
  version: '0'
160
161
  requirements: []
161
162
  rubyforge_project:
162
- rubygems_version: 2.4.3
163
+ rubygems_version: 2.4.8
163
164
  signing_key:
164
165
  specification_version: 4
165
166
  summary: A helper library to easily define restful web requests in ruby. It wraps
166
167
  NET::HTTP in an intuitive work flow modeled off of the Postman Chrome extension.
167
168
  test_files: []
168
- has_rdoc: