mongoid_silo 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid/silo.rb +1 -1
- data/lib/mongoid_silo/version.rb +1 -1
- data/mongoid_silo.gemspec +2 -2
- metadata +45 -35
- checksums.yaml +0 -7
data/lib/mongoid/silo.rb
CHANGED
@@ -62,7 +62,7 @@ module Mongoid
|
|
62
62
|
|
63
63
|
set_callback :destroy, :after do
|
64
64
|
ident = key[:foreign_key].to_sym
|
65
|
-
MongoidSilo::UpdateSiloWorker.perform_async(self.__send__(ident), "#{key[:parent_class]}", "#{key[:silo_name]}", :
|
65
|
+
MongoidSilo::UpdateSiloWorker.perform_async(self.__send__(ident), "#{key[:parent_class]}", "#{key[:silo_name]}", :destroy, "#{key[:callback]}")
|
66
66
|
end
|
67
67
|
RUBY
|
68
68
|
end
|
data/lib/mongoid_silo/version.rb
CHANGED
data/mongoid_silo.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
21
21
|
gem.require_paths = ["lib"]
|
22
22
|
|
23
|
-
gem.add_dependency 'activesupport', '
|
24
|
-
gem.add_dependency 'mongoid', '
|
23
|
+
gem.add_dependency 'activesupport', '~> 3.2.9'
|
24
|
+
gem.add_dependency 'mongoid', '~> 3.1.0'
|
25
25
|
gem.add_dependency 'sidekiq', '~> 2.7'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,57 +1,64 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_silo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- John Maxwell
|
8
|
-
autorequire:
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-05-21 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: activesupport
|
15
|
-
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - "~>"
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: 3.2.9
|
20
|
-
|
21
|
-
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.9
|
27
|
+
none: false
|
28
|
+
prerelease: false
|
29
|
+
type: :runtime
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: mongoid
|
29
|
-
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
33
|
requirements:
|
31
|
-
- -
|
34
|
+
- - "~>"
|
32
35
|
- !ruby/object:Gem::Version
|
33
36
|
version: 3.1.0
|
34
|
-
|
35
|
-
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
37
39
|
requirements:
|
38
|
-
- -
|
40
|
+
- - "~>"
|
39
41
|
- !ruby/object:Gem::Version
|
40
42
|
version: 3.1.0
|
43
|
+
none: false
|
44
|
+
prerelease: false
|
45
|
+
type: :runtime
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: sidekiq
|
43
|
-
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
49
|
requirements:
|
45
|
-
- - ~>
|
50
|
+
- - "~>"
|
46
51
|
- !ruby/object:Gem::Version
|
47
52
|
version: '2.7'
|
48
|
-
|
49
|
-
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
51
55
|
requirements:
|
52
|
-
- - ~>
|
56
|
+
- - "~>"
|
53
57
|
- !ruby/object:Gem::Version
|
54
58
|
version: '2.7'
|
59
|
+
none: false
|
60
|
+
prerelease: false
|
61
|
+
type: :runtime
|
55
62
|
description: MongoidSilo gives a simple way to create static representations of models
|
56
63
|
email:
|
57
64
|
- john@musicglue.com
|
@@ -59,9 +66,9 @@ executables: []
|
|
59
66
|
extensions: []
|
60
67
|
extra_rdoc_files: []
|
61
68
|
files:
|
62
|
-
- .gitignore
|
63
|
-
- .rspec
|
64
|
-
- .travis.yml
|
69
|
+
- ".gitignore"
|
70
|
+
- ".rspec"
|
71
|
+
- ".travis.yml"
|
65
72
|
- Gemfile
|
66
73
|
- Guardfile
|
67
74
|
- LICENSE.txt
|
@@ -99,26 +106,29 @@ files:
|
|
99
106
|
- spec/support/silovators/make_versioned_grain_belt.rb
|
100
107
|
homepage: https://github.com/musicglue/mongoid_silo
|
101
108
|
licenses: []
|
102
|
-
|
103
|
-
post_install_message:
|
109
|
+
post_install_message:
|
104
110
|
rdoc_options: []
|
105
111
|
require_paths:
|
106
112
|
- lib
|
107
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
114
|
requirements:
|
109
|
-
- -
|
115
|
+
- - ">="
|
110
116
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
117
|
+
version: !binary |-
|
118
|
+
MA==
|
119
|
+
none: false
|
112
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
121
|
requirements:
|
114
|
-
- -
|
122
|
+
- - ">="
|
115
123
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
124
|
+
version: !binary |-
|
125
|
+
MA==
|
126
|
+
none: false
|
117
127
|
requirements: []
|
118
|
-
rubyforge_project:
|
119
|
-
rubygems_version:
|
120
|
-
signing_key:
|
121
|
-
specification_version:
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 1.8.24
|
130
|
+
signing_key:
|
131
|
+
specification_version: 3
|
122
132
|
summary: MongoidSilo is a bit like a Grain Elevator, but without the grain.
|
123
133
|
test_files:
|
124
134
|
- spec/factories/block_project_factory.rb
|
@@ -143,4 +153,4 @@ test_files:
|
|
143
153
|
- spec/support/silovators/make_location_grain_belt.rb
|
144
154
|
- spec/support/silovators/make_name_grain_belt.rb
|
145
155
|
- spec/support/silovators/make_versioned_grain_belt.rb
|
146
|
-
has_rdoc:
|
156
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: bbadce20f890fbbd769e7e31c22b2eb6f0d7aac7
|
4
|
-
data.tar.gz: ed60d1bff0ab3b6647dd0418d94717dbd2559969
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 2d12d1c1e04ad64a591f6028ca83dfc8fe5b0d9119b5cab060cc587c1d5a4dda98fb0868705e205ae402fcca8e5fa91406cbea3b1939233f5fb2fb0dce63c876
|
7
|
-
data.tar.gz: faf9ffde947df0ce32a664f992f38c081367f071ed9eaed0a8230c6e12d8ad295f5ca951314b44f54185bd004f5bce7395d970876aa3a682d8e22249e44c3560
|