mm-concerns 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -10
- data/Gemfile.lock +28 -47
- data/Rakefile +4 -24
- data/VERSION +1 -1
- data/lib/mm-concerns.rb +5 -8
- data/mm-concerns.gemspec +20 -39
- data/spec/mm-concerns_spec.rb +1 -1
- metadata +23 -128
data/Gemfile
CHANGED
@@ -1,14 +1,7 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
3
|
group :development do
|
4
|
-
gem '
|
5
|
-
gem
|
6
|
-
gem
|
7
|
-
|
8
|
-
gem 'ruby-debug'
|
9
|
-
gem "rspec", "~> 2.1.0"
|
10
|
-
gem "yard", "~> 0.6.0"
|
11
|
-
gem "bundler", "~> 1.0.0"
|
12
|
-
gem "jeweler", "~> 1.5.1"
|
13
|
-
gem "rcov", ">= 0"
|
4
|
+
gem 'mongo_mapper'
|
5
|
+
gem "bundler"
|
6
|
+
gem "jeweler"
|
14
7
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,58 +1,39 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (3.
|
5
|
-
activesupport (= 3.
|
6
|
-
builder (~>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
builder (
|
12
|
-
columnize (0.3.2)
|
13
|
-
diff-lcs (1.1.2)
|
4
|
+
activemodel (3.2.2)
|
5
|
+
activesupport (= 3.2.2)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
activesupport (3.2.2)
|
8
|
+
i18n (~> 0.6)
|
9
|
+
multi_json (~> 1.0)
|
10
|
+
bson (1.6.1)
|
11
|
+
builder (3.0.0)
|
14
12
|
git (1.2.5)
|
15
|
-
i18n (0.
|
16
|
-
jeweler (1.
|
17
|
-
bundler (~> 1.0
|
13
|
+
i18n (0.6.0)
|
14
|
+
jeweler (1.8.3)
|
15
|
+
bundler (~> 1.0)
|
18
16
|
git (>= 1.2.5)
|
19
17
|
rake
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
rspec-mocks (~> 2.1.0)
|
35
|
-
rspec-core (2.1.0)
|
36
|
-
rspec-expectations (2.1.0)
|
37
|
-
diff-lcs (~> 1.1.2)
|
38
|
-
rspec-mocks (2.1.0)
|
39
|
-
ruby-debug (0.10.4)
|
40
|
-
columnize (>= 0.1)
|
41
|
-
ruby-debug-base (~> 0.10.4.0)
|
42
|
-
ruby-debug-base (0.10.4)
|
43
|
-
linecache (>= 0.3)
|
44
|
-
yard (0.6.7)
|
18
|
+
rdoc
|
19
|
+
json (1.6.5)
|
20
|
+
mongo (1.6.1)
|
21
|
+
bson (~> 1.6.1)
|
22
|
+
mongo_mapper (0.11.0)
|
23
|
+
activemodel (~> 3.0)
|
24
|
+
activesupport (~> 3.0)
|
25
|
+
plucky (~> 0.4.0)
|
26
|
+
multi_json (1.1.0)
|
27
|
+
plucky (0.4.4)
|
28
|
+
mongo (~> 1.5)
|
29
|
+
rake (0.9.2.2)
|
30
|
+
rdoc (3.12)
|
31
|
+
json (~> 1.4)
|
45
32
|
|
46
33
|
PLATFORMS
|
47
34
|
ruby
|
48
35
|
|
49
36
|
DEPENDENCIES
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
jeweler (~> 1.5.1)
|
54
|
-
mongo_mapper (= 0.9.0)
|
55
|
-
rcov
|
56
|
-
rspec (~> 2.1.0)
|
57
|
-
ruby-debug
|
58
|
-
yard (~> 0.6.0)
|
37
|
+
bundler
|
38
|
+
jeweler
|
39
|
+
mongo_mapper
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'bundler'
|
3
|
+
|
3
4
|
begin
|
4
5
|
Bundler.setup(:default, :development)
|
5
6
|
rescue Bundler::BundlerError => e
|
@@ -7,6 +8,7 @@ rescue Bundler::BundlerError => e
|
|
7
8
|
$stderr.puts "Run `bundle install` to install missing gems"
|
8
9
|
exit e.status_code
|
9
10
|
end
|
11
|
+
|
10
12
|
require 'rake'
|
11
13
|
|
12
14
|
require 'jeweler'
|
@@ -21,30 +23,8 @@ Jeweler::Tasks.new do |gem|
|
|
21
23
|
gem.authors = ["Luke Cunningham"]
|
22
24
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
25
|
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
-
|
26
|
+
gem.add_runtime_dependency 'mongo_mapper', '~> 0.11.0'
|
25
27
|
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
26
28
|
end
|
27
|
-
Jeweler::RubygemsDotOrgTasks.new
|
28
29
|
|
29
|
-
|
30
|
-
require 'rspec/core/rake_task'
|
31
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
32
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
33
|
-
end
|
34
|
-
|
35
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
36
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
37
|
-
spec.rcov = true
|
38
|
-
end
|
39
|
-
|
40
|
-
task :default => :spec
|
41
|
-
|
42
|
-
require 'rake/rdoctask'
|
43
|
-
Rake::RDocTask.new do |rdoc|
|
44
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
-
|
46
|
-
rdoc.rdoc_dir = 'rdoc'
|
47
|
-
rdoc.title = "mm-concerns #{version}"
|
48
|
-
rdoc.rdoc_files.include('README*')
|
49
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
-
end
|
30
|
+
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/lib/mm-concerns.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module ConcernsPlugin
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
module ClassMethods
|
@@ -9,13 +9,10 @@ module MongoMapperConcernsPlugin
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
self.class.concerned_with(concerns)
|
15
|
-
end
|
12
|
+
def concerned_with(*concerns)
|
13
|
+
self.class.concerned_with(concerns)
|
16
14
|
end
|
17
|
-
|
18
15
|
end
|
19
16
|
|
20
|
-
MongoMapper::Document.plugin(
|
21
|
-
MongoMapper::EmbeddedDocument.plugin(
|
17
|
+
MongoMapper::Document.plugin(ConcernsPlugin)
|
18
|
+
MongoMapper::EmbeddedDocument.plugin(ConcernsPlugin)
|
data/mm-concerns.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.
|
7
|
+
s.name = "mm-concerns"
|
8
|
+
s.version = "1.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Luke Cunningham"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2012-03-22"
|
13
|
+
s.description = "A very simple mongomapper plugin that lets you organise your models into subdirectories"
|
14
|
+
s.email = "luke@icaruswings.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
@@ -30,50 +30,31 @@ Gem::Specification.new do |s|
|
|
30
30
|
"spec/mm-concerns_spec.rb",
|
31
31
|
"spec/spec_helper.rb"
|
32
32
|
]
|
33
|
-
s.homepage =
|
33
|
+
s.homepage = "http://github.com/icaruswings/mm-concerns"
|
34
34
|
s.licenses = ["MIT"]
|
35
35
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version =
|
37
|
-
s.summary =
|
38
|
-
s.test_files = [
|
39
|
-
"spec/mm-concerns_spec.rb",
|
40
|
-
"spec/spec_helper.rb"
|
41
|
-
]
|
36
|
+
s.rubygems_version = "1.8.15"
|
37
|
+
s.summary = "A very simple mongomapper plugin that lets you organise your models into subdirectories"
|
42
38
|
|
43
39
|
if s.respond_to? :specification_version then
|
44
40
|
s.specification_version = 3
|
45
41
|
|
46
42
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
|
-
s.add_development_dependency(%q<
|
48
|
-
s.add_development_dependency(%q<
|
49
|
-
s.add_development_dependency(%q<
|
50
|
-
s.
|
51
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.1.0"])
|
52
|
-
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
53
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
|
55
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
43
|
+
s.add_development_dependency(%q<mongo_mapper>, [">= 0"])
|
44
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
45
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
46
|
+
s.add_runtime_dependency(%q<mongo_mapper>, ["~> 0.11.0"])
|
56
47
|
else
|
57
|
-
s.add_dependency(%q<
|
58
|
-
s.add_dependency(%q<
|
59
|
-
s.add_dependency(%q<
|
60
|
-
s.add_dependency(%q<
|
61
|
-
s.add_dependency(%q<rspec>, ["~> 2.1.0"])
|
62
|
-
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
63
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
64
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
65
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
48
|
+
s.add_dependency(%q<mongo_mapper>, [">= 0"])
|
49
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
50
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
51
|
+
s.add_dependency(%q<mongo_mapper>, ["~> 0.11.0"])
|
66
52
|
end
|
67
53
|
else
|
68
|
-
s.add_dependency(%q<
|
69
|
-
s.add_dependency(%q<
|
70
|
-
s.add_dependency(%q<
|
71
|
-
s.add_dependency(%q<
|
72
|
-
s.add_dependency(%q<rspec>, ["~> 2.1.0"])
|
73
|
-
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
74
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
75
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
76
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
54
|
+
s.add_dependency(%q<mongo_mapper>, [">= 0"])
|
55
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
56
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
57
|
+
s.add_dependency(%q<mongo_mapper>, ["~> 0.11.0"])
|
77
58
|
end
|
78
59
|
end
|
79
60
|
|
data/spec/mm-concerns_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm-concerns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 1.1.0
|
5
|
+
version: 1.2.0
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Luke Cunningham
|
@@ -15,147 +10,52 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
13
|
+
date: 2012-03-22 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
type: :development
|
16
|
+
name: mongo_mapper
|
24
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
19
|
requirements:
|
27
|
-
- - "
|
20
|
+
- - ">="
|
28
21
|
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
- 3
|
33
|
-
- 0
|
34
|
-
version: 1.3.0
|
35
|
-
name: bson_ext
|
22
|
+
version: "0"
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
36
25
|
version_requirements: *id001
|
37
26
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
39
|
-
type: :development
|
27
|
+
name: bundler
|
40
28
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - "="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 59
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 9
|
49
|
-
- 0
|
50
|
-
version: 0.9.0
|
51
|
-
name: mongo_mapper
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
prerelease: false
|
55
|
-
type: :development
|
56
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
57
29
|
none: false
|
58
30
|
requirements:
|
59
31
|
- - ">="
|
60
32
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 3
|
62
|
-
segments:
|
63
|
-
- 0
|
64
33
|
version: "0"
|
65
|
-
name: i18n
|
66
|
-
version_requirements: *id003
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
prerelease: false
|
69
34
|
type: :development
|
70
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: jeweler
|
39
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
71
40
|
none: false
|
72
41
|
requirements:
|
73
42
|
- - ">="
|
74
43
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 3
|
76
|
-
segments:
|
77
|
-
- 0
|
78
44
|
version: "0"
|
79
|
-
name: ruby-debug
|
80
|
-
version_requirements: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
prerelease: false
|
83
|
-
type: :development
|
84
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
|
-
requirements:
|
87
|
-
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
hash: 11
|
90
|
-
segments:
|
91
|
-
- 2
|
92
|
-
- 1
|
93
|
-
- 0
|
94
|
-
version: 2.1.0
|
95
|
-
name: rspec
|
96
|
-
version_requirements: *id005
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
prerelease: false
|
99
45
|
type: :development
|
100
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
|
-
requirements:
|
103
|
-
- - ~>
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
hash: 7
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
- 6
|
109
|
-
- 0
|
110
|
-
version: 0.6.0
|
111
|
-
name: yard
|
112
|
-
version_requirements: *id006
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
46
|
prerelease: false
|
115
|
-
|
116
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
|
-
requirements:
|
119
|
-
- - ~>
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
hash: 23
|
122
|
-
segments:
|
123
|
-
- 1
|
124
|
-
- 0
|
125
|
-
- 0
|
126
|
-
version: 1.0.0
|
127
|
-
name: bundler
|
128
|
-
version_requirements: *id007
|
47
|
+
version_requirements: *id003
|
129
48
|
- !ruby/object:Gem::Dependency
|
130
|
-
|
131
|
-
|
132
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
49
|
+
name: mongo_mapper
|
50
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
133
51
|
none: false
|
134
52
|
requirements:
|
135
53
|
- - ~>
|
136
54
|
- !ruby/object:Gem::Version
|
137
|
-
|
138
|
-
|
139
|
-
- 1
|
140
|
-
- 5
|
141
|
-
- 1
|
142
|
-
version: 1.5.1
|
143
|
-
name: jeweler
|
144
|
-
version_requirements: *id008
|
145
|
-
- !ruby/object:Gem::Dependency
|
55
|
+
version: 0.11.0
|
56
|
+
type: :runtime
|
146
57
|
prerelease: false
|
147
|
-
|
148
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
hash: 3
|
154
|
-
segments:
|
155
|
-
- 0
|
156
|
-
version: "0"
|
157
|
-
name: rcov
|
158
|
-
version_requirements: *id009
|
58
|
+
version_requirements: *id004
|
159
59
|
description: A very simple mongomapper plugin that lets you organise your models into subdirectories
|
160
60
|
email: luke@icaruswings.com
|
161
61
|
executables: []
|
@@ -178,7 +78,6 @@ files:
|
|
178
78
|
- mm-concerns.gemspec
|
179
79
|
- spec/mm-concerns_spec.rb
|
180
80
|
- spec/spec_helper.rb
|
181
|
-
has_rdoc: true
|
182
81
|
homepage: http://github.com/icaruswings/mm-concerns
|
183
82
|
licenses:
|
184
83
|
- MIT
|
@@ -192,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
91
|
requirements:
|
193
92
|
- - ">="
|
194
93
|
- !ruby/object:Gem::Version
|
195
|
-
hash:
|
94
|
+
hash: -4583122549277229355
|
196
95
|
segments:
|
197
96
|
- 0
|
198
97
|
version: "0"
|
@@ -201,17 +100,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
100
|
requirements:
|
202
101
|
- - ">="
|
203
102
|
- !ruby/object:Gem::Version
|
204
|
-
hash: 3
|
205
|
-
segments:
|
206
|
-
- 0
|
207
103
|
version: "0"
|
208
104
|
requirements: []
|
209
105
|
|
210
106
|
rubyforge_project:
|
211
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.8.15
|
212
108
|
signing_key:
|
213
109
|
specification_version: 3
|
214
110
|
summary: A very simple mongomapper plugin that lets you organise your models into subdirectories
|
215
|
-
test_files:
|
216
|
-
|
217
|
-
- spec/spec_helper.rb
|
111
|
+
test_files: []
|
112
|
+
|