Popularity
2.4
Growing
Activity
0.0
Stable
61
31
13
Code Quality Rank:
L5
Monthly Downloads: 2,276
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, Pandrino and other Ruby projects. -
Settingslogic
A simple and straightforward settings solution that uses an ERB enabled YAML file and a singleton design pattern. -
Configatron
A super cool, simple, and feature rich configuration system for Ruby apps. -
Chamber
A surprisingly configurable convention-based approach to managing your application's custom configuration settings.
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
Promo
www.influxdata.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