couch_potato 1.1.2 → 1.1.4

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: 25d897ae6682560bf5d76b11e037d2aab1cb67ed
4
- data.tar.gz: 22d1dc7f80cf657bfa12957dd0ac7454b4a09bbe
3
+ metadata.gz: f8f5c231fcf0ed9657baf832752652a1b04ec331
4
+ data.tar.gz: 1918a304d3b741fe970677e9ce4da467df692f11
5
5
  SHA512:
6
- metadata.gz: eb2dc8906dc29cdbd33137bbe94f2336757ab79d38d6082671b4f4d0f5292cfd583c0e4eafcb0dff5ffe79b9d01897f253aa9d1f8c6a4db11d1099b8e0b4c2dc
7
- data.tar.gz: 0598953fcca4915c144ff632cb9d41630dd3493cb42bace24f7550f12f14221baeb159510a7338e51747a87cca02ce5be89cbbc60d13b5944575af8859d6f06d
6
+ metadata.gz: a10c00c94ef2642ff0c458a223e56a14e913d7202c07555e308266600ecfffaffec1f2595b09460da30ee22acc4cac132451b4292a6282bdb65f1468e994f5b6
7
+ data.tar.gz: c9714c1620976ea921df67afe9e59058415c4e16006e71203b012eade16c09bcfecb1541c28960a7703deafee6135c401bddec7298c753734fa0d92dcd287a0c
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
4
  - 2.1.0
5
+ - 2.1.1
5
6
  - jruby-19mode
6
7
  - rbx-2.1.1
7
8
  gemfile:
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
@@ -1,3 +1,3 @@
1
1
  module CouchPotato
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.4"
3
3
  end
data/lib/couch_potato.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'couchrest'
2
2
  require 'json'
3
- require 'json/add/core'
4
3
 
5
4
  require 'ostruct'
6
5
 
@@ -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.2
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-05 00:00:00.000000000 Z
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.0
225
+ rubygems_version: 2.2.2
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: Ruby persistence layer for CouchDB