No commit activity in last 3 years
No release in over 3 years
Make global's configuration writable.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.0
~> 2.13

Runtime

~> 0.1
 Project Readme

Global::Configuration::Writable

Build Status

Make global's configuration writable

global: https://rubygems.org/gems/global

CAUTION

This gem is unholy. You break global's referential transparency that's so cute, pretty, precious and trustworthy. You'll shoot your foot. I just warned. Think twice.

Installation

Add this line to your application's Gemfile:

gem 'global-configuration-writable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install global-configuration-writable

Usage

pry> Global.some_config.some_entry
=> "some value"
pry> Global.some_config.some_entry = "new value"
NoMethodError: undefined method `some_entry=' for Global::Configuration

pry> require 'global-configuration-writable'
=> true

pry> Global.some_config.some_entry = "new value"
=> "new value"  # causes no error
pry> Global.some_config.some_entry
=> "new value"

Contributing

  1. Fork it ( https://github.com/knagano/global-configuration-writable/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request