about_page 0.0.3 → 0.0.4

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- about_page (0.0.3)
4
+ about_page (0.0.4)
5
5
  rails (~> 3.2)
6
6
 
7
7
  GEM
data/lib/about_page.rb CHANGED
@@ -8,12 +8,23 @@ module AboutPage
8
8
  autoload :Fedora, "about_page/fedora"
9
9
  autoload :Solr, "about_page/solr"
10
10
 
11
- def self.configure
12
- yield(self.configuration)
11
+ def self.configuration_blocks
12
+ @configuration_blocks ||= []
13
+ end
14
+
15
+ def self.configure &block
16
+ self.configuration_blocks << block
13
17
  end
14
18
 
15
19
  def self.configuration
16
20
  @configuration ||= Configuration.new
21
+
22
+ self.configuration_blocks.delete_if do |block|
23
+ block.call(@configuration)
24
+ true
25
+ end
26
+
27
+ @configuration
17
28
  end
18
29
 
19
30
  def self.reset!
@@ -1,3 +1,3 @@
1
1
  module AboutPage
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: about_page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.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: 2012-05-22 00:00:00.000000000 Z
13
+ date: 2012-07-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -187,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  segments:
189
189
  - 0
190
- hash: 2890899449821864305
190
+ hash: 36777501986760828
191
191
  required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  none: false
193
193
  requirements:
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  segments:
198
198
  - 0
199
- hash: 2890899449821864305
199
+ hash: 36777501986760828
200
200
  requirements: []
201
201
  rubyforge_project:
202
202
  rubygems_version: 1.8.24