couch_cloner 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/couch_cloner.gemspec CHANGED
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency "couchrest", "1.0.1"
20
20
  s.add_dependency "couchrest_model", "~> 1.0.0"
21
21
  s.add_dependency "recloner", "~> 0.1.1"
22
- s.add_dependency "couch_view", "~> 0.0.3"
22
+ s.add_dependency "couch_view", "~> 0.1.1"
23
23
  end
@@ -1,5 +1,9 @@
1
- module Hidden
2
- def conditions
3
- "#{super} && doc.couch_visible == false"
1
+ module CouchCloner
2
+ module Conditions
3
+ module Hidden
4
+ def conditions
5
+ "#{super} && doc.couch_visible == false"
6
+ end
7
+ end
4
8
  end
5
9
  end
@@ -1,5 +1,9 @@
1
- module Published
2
- def conditions
3
- "#{super} && doc.milestone_memories.length > 0"
1
+ module CouchCloner
2
+ module Conditions
3
+ module Published
4
+ def conditions
5
+ "#{super} && doc.milestone_memories.length > 0"
6
+ end
7
+ end
4
8
  end
5
9
  end
@@ -1,5 +1,9 @@
1
- module Shown
2
- def conditions
3
- "#{super} && doc.couch_visible == true"
1
+ module CouchCloner
2
+ module Conditions
3
+ module Shown
4
+ def conditions
5
+ "#{super} && doc.couch_visible == true"
6
+ end
7
+ end
4
8
  end
5
9
  end
@@ -1,5 +1,9 @@
1
- module Unpublished
2
- def conditions
3
- "#{super} && doc.milestone_memories.length == 0"
1
+ module CouchCloner
2
+ module Conditions
3
+ module Unpublished
4
+ def conditions
5
+ "#{super} && doc.milestone_memories.length == 0"
6
+ end
7
+ end
4
8
  end
5
9
  end
@@ -2,12 +2,12 @@ module CouchCloner
2
2
  module CouchPublish
3
3
  def self.included(base)
4
4
  base.map :clone_id do
5
- conditions ::Published, ::Unpublished
5
+ conditions CouchCloner::Conditions::Published, CouchCloner::Conditions::Unpublished
6
6
  end
7
7
 
8
8
  base.couch_view :by_clone_id_and_start_time do
9
9
  map CouchCloner::ByCloneIdAndStartTime
10
- conditions ::Published, ::Unpublished
10
+ conditions CouchCloner::Conditions::Published, CouchCloner::Conditions::Unpublished
11
11
  end
12
12
  end
13
13
  end
@@ -2,12 +2,12 @@ module CouchCloner
2
2
  module CouchVisible
3
3
  def self.included(base)
4
4
  base.map :clone_id do
5
- conditions ::Shown, ::Hidden
5
+ conditions CouchCloner::Conditions::Shown, CouchCloner::Conditions::Hidden
6
6
  end
7
7
 
8
8
  base.couch_view :by_clone_id_and_start_time do
9
9
  map CouchCloner::ByCloneIdAndStartTime do
10
- conditions ::Shown, ::Hidden
10
+ conditions CouchCloner::Conditions::Shown, CouchCloner::Conditions::Hidden
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_cloner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Parker
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-24 00:00:00 Z
18
+ date: 2011-08-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: cucumber
@@ -162,9 +162,9 @@ dependencies:
162
162
  hash: 25
163
163
  segments:
164
164
  - 0
165
- - 0
166
- - 3
167
- version: 0.0.3
165
+ - 1
166
+ - 1
167
+ version: 0.1.1
168
168
  type: :runtime
169
169
  version_requirements: *id010
170
170
  description: Create clones of CouchDB documents, and schedule them for publication.