delayed_job_couchrest_model 0.0.6 → 0.0.7

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.
@@ -19,12 +19,12 @@ module Delayed
19
19
 
20
20
  view_by(:failed_at, :locked_by, :run_at,
21
21
  :map => "function(doc){" +
22
- " if(doc['type'] == 'Delayed::Backend::CouchRest::Job') {" +
22
+ " if(doc['type'] == 'Delayed::Backend::CouchrestModel::Job') {" +
23
23
  " emit([doc.failed_at, doc.locked_by, doc.run_at], null);}" +
24
24
  " }")
25
25
  view_by(:failed_at, :locked_at, :run_at,
26
26
  :map => "function(doc){" +
27
- " if(doc['type'] == 'Delayed::Backend::CouchRest::Job') {" +
27
+ " if(doc['type'] == 'Delayed::Backend::CouchrestModel::Job') {" +
28
28
  " emit([doc.failed_at, doc.locked_at, doc.run_at], null);}" +
29
29
  " }")
30
30
 
@@ -1,6 +1,5 @@
1
1
  require 'couchrest_model'
2
2
  require 'delayed_job'
3
- require 'delayed/serialization/couchrest_model'
4
3
  require 'delayed/backend/couchrest_model'
5
4
 
6
5
  Delayed::Worker.backend = :couchrest_model
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_couchrest_model
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - GTen
@@ -73,7 +73,6 @@ extra_rdoc_files:
73
73
  - README.md
74
74
  files:
75
75
  - lib/delayed/backend/couchrest_model.rb
76
- - lib/delayed/serialization/couchrest_model.rb
77
76
  - lib/delayed_job_couchrest_model.rb
78
77
  - spec/delayed_job_couch_rest_spec.rb
79
78
  - spec/spec.opts
@@ -1,24 +0,0 @@
1
- # class CouchRest::Model::Base
2
- # yaml_as "tag:ruby.yaml.org,2002:CouchrestModel"
3
- #
4
- # def reload
5
- # job = self.class.get self['_id']
6
- # job.each {|k,v| self[k] = v}
7
- # end
8
- # def self.find(id)
9
- # get id
10
- # end
11
- # def self.yaml_new(klass, tag, val)
12
- # klass.get(val['_id'])
13
- # end
14
- # def to_yaml_properties
15
- # ['@id']
16
- # end
17
- # def ==(other)
18
- # if other.is_a? ::CouchRest::Model::Base
19
- # self['_id'] == other['_id']
20
- # else
21
- # super
22
- # end
23
- # end
24
- # end