about_page 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/about_page.rb +13 -2
- data/lib/about_page/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
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.
|
12
|
-
|
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!
|
data/lib/about_page/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
199
|
+
hash: 36777501986760828
|
200
200
|
requirements: []
|
201
201
|
rubyforge_project:
|
202
202
|
rubygems_version: 1.8.24
|