ardm 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,12 +5,12 @@ module Ardm
5
5
  module Repository
6
6
  extend ActiveSupport::Concern
7
7
 
8
- def repository(name=nil)
9
- self.class.repository
8
+ def repository(name=nil, &block)
9
+ self.class.repository(name, &block)
10
10
  end
11
11
 
12
12
  module ClassMethods
13
- def repository(name=nil)
13
+ def repository(name=nil, &block)
14
14
  if name && name != :default
15
15
  raise Ardm::NotImplemented, "Alternate repository names not supported"
16
16
  end
@@ -12,8 +12,8 @@ module Ardm
12
12
  ::DataMapper.finalize
13
13
  end
14
14
 
15
- def self.repository
16
- ::DataMapper.repository
15
+ def self.repository(*args, &block)
16
+ ::DataMapper.repository(*args, &block)
17
17
  end
18
18
 
19
19
  def self.logger
@@ -1,3 +1,3 @@
1
1
  module Ardm
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ardm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-23 00:00:00.000000000 Z
13
+ date: 2014-10-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport