couchrest_model 2.1.0.beta2 → 2.1.0.rc1
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 +4 -4
- data/.travis.yml +4 -2
- data/Gemfile +2 -0
- data/Rakefile +0 -9
- data/VERSION +1 -1
- data/couchrest_model.gemspec +1 -1
- data/history.md +5 -0
- data/lib/couchrest/model/configuration.rb +9 -8
- data/lib/couchrest/model/connection.rb +1 -1
- data/lib/couchrest_model.rb +1 -0
- data/spec/unit/connection_spec.rb +5 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9cebaec8e04dcd93d4d5f53740ba5ce5b6af068
|
4
|
+
data.tar.gz: 71c3fb5e884c883124e05b2d69b60be3f474f7a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cfc97e0e45f07cfadfb6d9bdfe89e7a1437e1ffbb935c6584d0f0d83ebb3fce064490330cc84452ff2237548358ca805e7bdf15d3b8d586b7800235297c91d9
|
7
|
+
data.tar.gz: 7e0148b1299d685cb49af8c554ef5855b69e47cb270ed120b8ddebc5d2db2cd791f2a88de2689ca799d1b416b31f0886ba5c992b83056eeb496055c521e2dade
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -12,12 +12,3 @@ RSpec::Core::RakeTask.new do |t|
|
|
12
12
|
t.pattern = 'spec/**/*_spec.rb'
|
13
13
|
t.rspec_opts = ["-c", "-f progress"]
|
14
14
|
end
|
15
|
-
|
16
|
-
module Rake
|
17
|
-
def self.remove_task(task_name)
|
18
|
-
Rake.application.instance_variable_get('@tasks').delete(task_name.to_s)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
Rake.remove_task("github:release")
|
23
|
-
Rake.remove_task("release")
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.0.
|
1
|
+
2.1.0.rc1
|
data/couchrest_model.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
23
23
|
s.require_paths = ["lib"]
|
24
24
|
|
25
|
-
s.add_dependency("couchrest", "2.0.0
|
25
|
+
s.add_dependency("couchrest", "2.0.0")
|
26
26
|
s.add_dependency("activemodel", "~> 4.0")
|
27
27
|
s.add_dependency("tzinfo", ">= 0.3.22")
|
28
28
|
s.add_development_dependency("rspec", "~> 2.14.1")
|
data/history.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# CouchRest Model Change History
|
2
2
|
|
3
|
+
## 2.1.0 - 2016-07-06
|
4
|
+
|
5
|
+
* Adding "persistent" connection configuration property (@samlown)
|
6
|
+
* Releasing 2.1.0 off of CouchRest 2.0.0.
|
7
|
+
|
3
8
|
## 2.1.0.beta2 - 2016-02-29
|
4
9
|
|
5
10
|
* Changing migration namespace and supporting initial "prepare" phase (@samlown)
|
@@ -25,14 +25,15 @@ module CouchRest
|
|
25
25
|
config.environment = :development
|
26
26
|
config.connection_config_file = File.join(Dir.pwd, 'config', 'couchdb.yml')
|
27
27
|
config.connection = {
|
28
|
-
:protocol
|
29
|
-
:host
|
30
|
-
:port
|
31
|
-
:prefix
|
32
|
-
:suffix
|
33
|
-
:join
|
34
|
-
:username
|
35
|
-
:password
|
28
|
+
:protocol => 'http',
|
29
|
+
:host => 'localhost',
|
30
|
+
:port => '5984',
|
31
|
+
:prefix => 'couchrest',
|
32
|
+
:suffix => nil,
|
33
|
+
:join => '_',
|
34
|
+
:username => nil,
|
35
|
+
:password => nil,
|
36
|
+
:persistent => true
|
36
37
|
}
|
37
38
|
end
|
38
39
|
end
|
data/lib/couchrest_model.rb
CHANGED
@@ -105,6 +105,11 @@ describe CouchRest::Model::Connection do
|
|
105
105
|
@class.server.uri.to_s.should eql("https://foo:bar@127.0.0.1:5985")
|
106
106
|
end
|
107
107
|
|
108
|
+
it "should pass through the persistent connection option" do
|
109
|
+
@class.connection[:persistent] = false
|
110
|
+
expect(@class.server.connection_options[:persistent]).to be_false
|
111
|
+
end
|
112
|
+
|
108
113
|
end
|
109
114
|
|
110
115
|
describe ".prepare_database" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couchrest_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.rc1
|
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: 2016-
|
15
|
+
date: 2016-07-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: couchrest
|
@@ -20,14 +20,14 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - '='
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.0
|
23
|
+
version: 2.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - '='
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 2.0.0
|
30
|
+
version: 2.0.0
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: activemodel
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|