mongoid_listable 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,8 @@
1
1
  module Mongoid
2
+ module Listable
2
3
 
3
- # This module contains the core macro for defining listable has_many relationships
4
- #
5
- module Lists
6
-
7
- extend ActiveSupport::Concern
8
-
9
- module ClassMethods
4
+ # This module contains the core macro for defining listable has_many relationships
5
+ module Macros
10
6
 
11
7
  # Macro to set relation on which to make a list
12
8
  #
@@ -52,10 +48,8 @@ module Mongoid
52
48
  block.call *args
53
49
  original_method.bind(self).call *args
54
50
  end
55
- end
51
+ end
56
52
 
57
53
  end
58
-
59
54
  end
60
-
61
55
  end
@@ -0,0 +1,15 @@
1
+ require 'mongoid/listable/macros'
2
+
3
+ module Mongoid
4
+
5
+ module Listable
6
+
7
+ extend ActiveSupport::Concern
8
+
9
+ included do
10
+ extend Mongoid::Listable::Macros
11
+ end
12
+
13
+ end
14
+
15
+ end
@@ -1 +1 @@
1
- require 'mongoid/lists'
1
+ require 'mongoid/listable'
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'mongoid_listable'
7
- spec.version = '0.0.5'
7
+ spec.version = '0.0.6'
8
8
  spec.authors = [ 'richardcalahan' ]
9
9
  spec.email = [ 'richard@calahan.me' ]
10
10
  spec.description = ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_listable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-04 00:00:00.000000000 Z
12
+ date: 2013-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -87,7 +87,8 @@ files:
87
87
  - LICENSE.txt
88
88
  - README.md
89
89
  - Rakefile
90
- - lib/mongoid/lists.rb
90
+ - lib/mongoid/listable.rb
91
+ - lib/mongoid/listable/macros.rb
91
92
  - lib/mongoid_listable.rb
92
93
  - mongoid_listable.gemspec
93
94
  homepage: ''