couch_potato 1.1.2 → 1.1.4
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 +1 -0
- data/CHANGES.md +8 -0
- data/lib/couch_potato/database.rb +0 -5
- data/lib/couch_potato/version.rb +1 -1
- data/lib/couch_potato.rb +0 -1
- data/spec/unit/database_spec.rb +0 -8
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8f5c231fcf0ed9657baf832752652a1b04ec331
|
|
4
|
+
data.tar.gz: 1918a304d3b741fe970677e9ce4da467df692f11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a10c00c94ef2642ff0c458a223e56a14e913d7202c07555e308266600ecfffaffec1f2595b09460da30ee22acc4cac132451b4292a6282bdb65f1468e994f5b6
|
|
7
|
+
data.tar.gz: c9714c1620976ea921df67afe9e59058415c4e16006e71203b012eade16c09bcfecb1541c28960a7703deafee6135c401bddec7298c753734fa0d92dcd287a0c
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
## Changes
|
|
2
2
|
|
|
3
|
+
### 1.1.4
|
|
4
|
+
|
|
5
|
+
* Removes the dependency to json/add/core (cstettner)
|
|
6
|
+
|
|
7
|
+
### 1.1.3
|
|
8
|
+
|
|
9
|
+
* removes check if database exists to avoid lots of additional requests (Alexander Lang)
|
|
10
|
+
|
|
3
11
|
### 1.1.2
|
|
4
12
|
|
|
5
13
|
* fixes `CouchPotato.models` did not include subclasses
|
|
@@ -5,11 +5,6 @@ module CouchPotato
|
|
|
5
5
|
|
|
6
6
|
def initialize(couchrest_database)
|
|
7
7
|
@couchrest_database = couchrest_database
|
|
8
|
-
begin
|
|
9
|
-
couchrest_database.info
|
|
10
|
-
rescue RestClient::ResourceNotFound
|
|
11
|
-
raise "Database '#{couchrest_database.name}' does not exist."
|
|
12
|
-
end
|
|
13
8
|
end
|
|
14
9
|
|
|
15
10
|
# executes a view and return the results. you pass in a view spec
|
data/lib/couch_potato/version.rb
CHANGED
data/lib/couch_potato.rb
CHANGED
data/spec/unit/database_spec.rb
CHANGED
|
@@ -11,14 +11,6 @@ module Parent
|
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
describe CouchPotato::Database, 'new' do
|
|
15
|
-
it "should raise an exception if the database doesn't exist" do
|
|
16
|
-
lambda {
|
|
17
|
-
CouchPotato::Database.new CouchRest.database('couch_potato_invalid')
|
|
18
|
-
}.should raise_error('Database \'couch_potato_invalid\' does not exist.')
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
14
|
describe CouchPotato::Database, 'full_url_to_database' do
|
|
23
15
|
before(:all) do
|
|
24
16
|
@database_url = CouchPotato::Config.database_name
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: couch_potato
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Lang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
222
222
|
version: '0'
|
|
223
223
|
requirements: []
|
|
224
224
|
rubyforge_project:
|
|
225
|
-
rubygems_version: 2.2.
|
|
225
|
+
rubygems_version: 2.2.2
|
|
226
226
|
signing_key:
|
|
227
227
|
specification_version: 4
|
|
228
228
|
summary: Ruby persistence layer for CouchDB
|