RubyGems Navigation menu

switches 0.1.1

Switches lets you turn on and off parts of your code from the commandline. There's a defaults.yml and a current.yml in the background. For example: app/models/user.rb after_create :subscribe_email if Switches.campaign_monitor? >> Switches.campaign_monitor? # => false $ rake switches:on[campaign_monitor] >> Switches.campaign_monitor? # => true $ rake switches:reset # goes back to default.yml $ rake switches:diff # shows diff b/w current.yml and default.yml $ rake s:d # alias for switches:diff $ rake s:c # alias for switches:list_current etc. It's inspired by ActiveSupport's StringInquirer (e.g. Rails.development?) and traditional compile-time assertions.

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 0.1.7 March 30, 2010 (11KB)
  2. 0.1.6 November 19, 2009 (10.5KB)
  3. 0.1.5 November 19, 2009 (11KB)
  4. 0.1.4 November 18, 2009 (11KB)
  5. 0.1.3 November 05, 2009 (10.5KB)
  6. 0.1.1 November 02, 2009 (10.5KB)
全てのバージョンを表示(全8件)

Runtime依存関係 (1):

Development依存関係 (1):

rspec >= 1.2.9

所有者:

作者:

  • Seamus Abshere

SHA 256チェックサム:

=

累計ダウンロード数 28,853

このバージョンのみ 3,423

このバージョンがリリースされたのは:

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: