couchrest_model 2.1.0.beta2 → 2.1.0.rc1

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: d9d09e0aa83e793199ecb3d666f57623870fd63c
4
- data.tar.gz: e4faadfdc65e72a4212a59932c8953fb80ae04ee
3
+ metadata.gz: d9cebaec8e04dcd93d4d5f53740ba5ce5b6af068
4
+ data.tar.gz: 71c3fb5e884c883124e05b2d69b60be3f474f7a1
5
5
  SHA512:
6
- metadata.gz: 61d9e906196acbd827666ca4541b682b066b48bafe1adcdf34bd08f163a4c977ec5c22769afde441c5b259694239298d584308f59c67eaa95db2f62e4b1965a7
7
- data.tar.gz: 13360a9c60b859e5e39723d585efe273f57198d70e8c38662dc248c5449b04fb07b3d36c91689e78e42c13ba851e30872f37c5b060fcfabdd45a4a4aec06cad2
6
+ metadata.gz: 9cfc97e0e45f07cfadfb6d9bdfe89e7a1437e1ffbb935c6584d0f0d83ebb3fce064490330cc84452ff2237548358ca805e7bdf15d3b8d586b7800235297c91d9
7
+ data.tar.gz: 7e0148b1299d685cb49af8c554ef5855b69e47cb270ed120b8ddebc5d2db2cd791f2a88de2689ca799d1b416b31f0886ba5c992b83056eeb496055c521e2dade
data/.travis.yml CHANGED
@@ -1,12 +1,14 @@
1
1
  rvm:
2
2
  - 2.3.0
3
3
  - 2.2.2
4
- - 2.1.5
4
+ - 2.1.10
5
5
  - 2.0.0
6
- - jruby-19mode
6
+ - jruby
7
7
  services: couchdb
8
8
  matrix:
9
9
  allow_failures:
10
10
  - rvm: jruby
11
11
  before_install:
12
12
  - gem install bundler
13
+ env:
14
+ - JRUBY_OPTS=--2.0
data/Gemfile CHANGED
@@ -2,3 +2,5 @@
2
2
  source "https://rubygems.org"
3
3
  gemspec
4
4
 
5
+ # Enable for testing against local couchrest
6
+ # gem "couchrest", path: "/Users/sam/workspace/couchrest"
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.beta2
1
+ 2.1.0.rc1
@@ -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.rc3")
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 => 'http',
29
- :host => 'localhost',
30
- :port => '5984',
31
- :prefix => 'couchrest',
32
- :suffix => nil,
33
- :join => '_',
34
- :username => nil,
35
- :password => nil
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
@@ -27,7 +27,7 @@ module CouchRest
27
27
  end
28
28
 
29
29
  def server
30
- @server ||= CouchRest::Server.new(prepare_server_uri)
30
+ @server ||= CouchRest::Server.new(prepare_server_uri, :persistent => connection_configuration[:persistent])
31
31
  end
32
32
 
33
33
  def prepare_database(db = nil)
@@ -16,6 +16,7 @@ require "mime/types"
16
16
  require "enumerator"
17
17
  require "time"
18
18
  require "digest/md5"
19
+ require "yaml"
19
20
 
20
21
  require "bigdecimal" # used in typecast
21
22
  require "bigdecimal/util" # used in typecast
@@ -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.beta2
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-02-25 00:00:00.000000000 Z
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.rc3
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.rc3
30
+ version: 2.0.0
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: activemodel
33
33
  requirement: !ruby/object:Gem::Requirement