chuckle 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: bb75c4f41beff84dd3b97784cdaff8241a146fc2
4
- data.tar.gz: 638ddf1861e82e0982cbe8d04d8b415aa34c1d44
3
+ metadata.gz: 370d11531835cb5e2c6a06e947f0e7270195c2d2
4
+ data.tar.gz: 49457ddedf721927e9cdce13c96b6ab311356a60
5
5
  SHA512:
6
- metadata.gz: 60e3caeccb0b6044f3528d9f97249c81a7786ffecff43e7875fc5cda6f1c9c763687f5b9b4c349e740d323a954b03d563ff025c7d1812038d5099f8ae5fe7878
7
- data.tar.gz: 2a95541f81a21d3397ebf9a924bf590c716ce646499c070f65ccdf13c255d5e98989045522a1f6840700c619f6aa3d9c24e88d61103b61696c662faf6aea5d79
6
+ metadata.gz: 9ba2f917cde22f73987f312c98ddc619eade4e2d265cfe10dda2a1a184519d36eafe1b21d7c150cd850108330df2bc7786a7661661d80c905653efba7009c45d
7
+ data.tar.gz: 40b4f8ad2c3d918fd5fbaee7ec31a494d394dd2c4118ce51e35f787f6dc7d8f822e152b719228ba0e95868dd191fc5cc26a61910ccaa29465914ce65c11fcf01
data/README.md CHANGED
@@ -58,7 +58,7 @@ Pass these `Chuckle::Client.new`:
58
58
 
59
59
  ## Changelog
60
60
 
61
- * 1.0.4 - added support for --cacert, --capath and --insecure (@nkriege)
61
+ * 1.0.4 (Dec 6, 2014) - added support for --cacert, --capath and --insecure (@nkriege)
62
62
 
63
63
 
64
64
  ## Limitations
@@ -70,7 +70,7 @@ module Chuckle
70
70
 
71
71
  if request.body
72
72
  command += ["--data-binary", request.body]
73
- command += ["--header", "Content-Type: application/x-www-form-urlencoded"]
73
+ command += ["--header", "Content-Type: #{client.content_type}"]
74
74
  end
75
75
 
76
76
  if client.cookies?
@@ -5,6 +5,7 @@ module Chuckle
5
5
  cache_errors: true,
6
6
  cacert: nil,
7
7
  capath: nil,
8
+ content_type: "application/x-www-form-urlencoded",
8
9
  cookies: false,
9
10
  expires_in: :never,
10
11
  insecure: false,
@@ -46,6 +47,10 @@ module Chuckle
46
47
  options[:capath]
47
48
  end
48
49
 
50
+ def content_type
51
+ options[:content_type]
52
+ end
53
+
49
54
  # are cookies enabled?
50
55
  def cookies?
51
56
  options[:cookies]
@@ -1,4 +1,4 @@
1
1
  module Chuckle
2
2
  # Gem version
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chuckle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Doppelt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-06 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project: chuckle
148
- rubygems_version: 2.2.2
148
+ rubygems_version: 2.4.1
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Chuckle - an http client that caches on disk.