-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup parliament-ruby for sinatra compatibilty
- Loading branch information
1 parent
e07d742
commit 8b81b04
Showing
4 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
module Parliament | ||
# Decorator namespace | ||
module Decorator | ||
# require all the decorators | ||
Dir[File.join(File.dirname(__FILE__), '../parliament/decorator', '*.rb')].each { |decorator| require decorator } | ||
require_relative '../parliament/decorator/constituency_area' | ||
require_relative '../parliament/decorator/constituency_group' | ||
|
||
require_relative '../parliament/decorator/contact_point' | ||
|
||
require_relative '../parliament/decorator/gender' | ||
require_relative '../parliament/decorator/gender_identity' | ||
|
||
require_relative '../parliament/decorator/house' | ||
require_relative '../parliament/decorator/house_incumbency' | ||
require_relative '../parliament/decorator/house_seat' | ||
|
||
require_relative '../parliament/decorator/incumbency' | ||
|
||
require_relative '../parliament/decorator/party' | ||
require_relative '../parliament/decorator/party_membership' | ||
|
||
require_relative '../parliament/decorator/person' | ||
|
||
require_relative '../parliament/decorator/postal_address' | ||
|
||
require_relative '../parliament/decorator/seat_incumbency' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Parliament | ||
VERSION = '0.6.3'.freeze | ||
VERSION = '0.7.4'.freeze | ||
end |