Skip to content

Commit

Permalink
Optional dependencies described
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Pankowecki (Gavdi) committed Jan 18, 2011
1 parent 9e06db5 commit 0992b5f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ ex. provided with GlobalBoolean.kernel!
Use
require 'activemodel-warnings/global_boolean'
if you want the attribute of skip_warnings=(attribute) to be parsed with GlobalBoolean.Boolean() method
ex. provided by global_boolean gam but without executing GlobalBoolean.kernel!
ex. provided by global_boolean gam but without executing GlobalBoolean.kernel!


Be sure to require global_boolean before require of this gem.
If using bundler then just put the declaration of global_boolean in Gemfile above activemodel-warnings
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
switch to: require active_model-warnings ?
4 changes: 4 additions & 0 deletions activemodel-warnings.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Gem::Specification.new do |s|
s.add_development_dependency "gavdi-acolyte", "= 0.1.2"
s.add_development_dependency "mocha"

# s.add_optional_dependency "global_boolean", "~> 0.1.1" # There is no such thing as add_optional_dependency. Just to notify the users
# Read http://yehudakatz.com/2010/04/17/ruby-require-order-problems/
# Read README file to learn about how to use the gem with or without global_boolean support

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
Expand Down
4 changes: 3 additions & 1 deletion lib/activemodel-warnings/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module ActiveModel

module Warnings
VERSION = "0.0.1"
VERSION = "1.0.0"
end

end

0 comments on commit 0992b5f

Please sign in to comment.