couchrest 2.0.0.rc1 → 2.0.0.rc2

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: 12c93fb012d1d27b5ca89ab37547b0f00ad65f8e
4
- data.tar.gz: d0a51beddbe852ac9e69374bbb9370e7a6bf296c
3
+ metadata.gz: e11ffbb5106aa947148918e8df2dca90b71e7760
4
+ data.tar.gz: 5cb76649c5af7b0b7be771a1238b9d4d2a9c4748
5
5
  SHA512:
6
- metadata.gz: 2bc6d4a7f0c928d9da0e11237e41c62c6d9c0ddc15b0d06b5107664b59bf76c9ebc5fa6f040ee1fc2be77b67aedfa9738ad4a0c48e0219bb6a3a8ce76cf0ec03
7
- data.tar.gz: a552470d47f04d65e62333f9af5d8f27af4779ce3612a5f0757ebd737caa4a91fdccc27e6d890e8289d92aa05668fa14ac59405956e9f1196aad12156a77e650
6
+ metadata.gz: 82bd9c1a4249d4ada2e838462b8bd1a56b02b709262aa3906da17bba1e2e0f142a4daebfe7ae9dff11f85782bbd8dac4cfac0953a72204c40b931993e3fcd312
7
+ data.tar.gz: cc004a48286023ccf7c68ba48f4c5380729391c62ef160860b94a262295b43b8d400ccc92b983d6f734bb5dfc71c86fbff142a947748c734945cf6a0b21f046c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.rc1
1
+ 2.0.0.rc2
@@ -1,4 +1,9 @@
1
- == 2.0.0.rc1
1
+ == 2.0.0.rc2
2
+
3
+ * Minor changes
4
+ * Forcing HTTP basic connections when user+pass provided to avoid 401 (@samlown via @cloudant)
5
+
6
+ == 2.0.0.rc1 - 2015-07-13
2
7
 
3
8
  * Major Changes
4
9
  * Refactoring to support persisitent HTTP connections with HTTPClient gem (@samlown)
@@ -112,6 +112,7 @@ module CouchRest
112
112
 
113
113
  # Authentication
114
114
  unless uri.user.to_s.empty?
115
+ http.force_basic_auth = true
115
116
  http.set_auth(uri.to_s, uri.user, uri.password)
116
117
  end
117
118
 
@@ -206,6 +206,7 @@ describe CouchRest::Connection do
206
206
  stub_request(:get, "http://user:pass@mock/db/test")
207
207
  .to_return(:body => doc.to_json)
208
208
  conn = CouchRest::Connection.new(URI "http://user:pass@mock")
209
+ expect(conn.http.www_auth.basic_auth.force_auth).to be_true
209
210
  conn.get("db/test")
210
211
  end
211
212
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc1
4
+ version: 2.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - J. Chris Anderson
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-07-13 00:00:00.000000000 Z
15
+ date: 2015-08-18 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: httpclient