Popularity
2.3
Declining
Activity
0.0
Stable
61
31
12
Code Quality Rank:
L5
Monthly Downloads: 3,648
Programming language: Ruby
Latest version: v0.0.5
Configus alternatives and similar gems
Based on the "Configuration" category.
Alternatively, view Configus alternatives based on common mentions on social networks and blogs.
-
RailsConfig
Easiest way to add multi-environment yaml settings to Rails, Sinatra, Padrino and other Ruby projects. -
Settingslogic
A simple and straightforward settings solution that uses an ERB enabled YAML file and a singleton design pattern. -
Chamber
A surprisingly configurable convention-based approach to managing your application's custom configuration settings.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Configus or a related project?
README
Configus
Summary
Configus helps you easily manage environment specific settings
Installing
Add this to your Gemfile
:
gem "configus"
Examples
Definition
Configus.build :development do # set current environment
env :production do
site_name 'Example'
web do
domain 'example.com'
protocol 'https'
port 80
uri -> { "#{protocol}://#{domain}:#{port}" }
end
site_uri -> { web.uri }
email do
pop do
address 'pop.example.com'
port 110
end
smtp do
address 'smtp.example.com'
port 25
end
end
end
env :development, :parent => :production do
web do
domain 'localhost'
protocol 'http'
port 9292
end
email do
smtp do
address 'smpt.text.example.com'
end
end
end
end
Usage
configus.site_name # => 'Example'
configus.web.uri # => 'https://example.com:80'
configus.site_uri # => 'https://example.com:80'
configus.email.pop.port # => 110
Rails
define your config in lib/configus.rb
Configus.build Rails.env do
# settings
end
reload
# config/environments/development.rb
ActionDispatch::Reloader.to_prepare do
load Rails.root.join('lib/configus.rb')
end