Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update README

  • Loading branch information...
commit e23da482a45fd33025224cc1bdd02f1d503a9651 1 parent 181b16b
@gutenye authored
Showing with 48 additions and 11 deletions.
  1. +18 −11 README.md
  2. +30 −0 Rakefile
View
29 README.md
@@ -7,7 +7,7 @@
| License: | MIT-LICENSE |
| Documentation: | http://rubydoc.info/gems/optimism/frames |
| Issue Tracker: | https://github.com/GutenYe/optimism/issues |
-| Platforms: | Ruby 1.9.3, Rubinius, JRuby |
+| Ruby Versions: | Ruby 1.9.3, Rubinius, JRuby |
Features
--------
@@ -85,7 +85,8 @@ examples of how this can be done:
p Rc #=> <#Optimism>
p Rc.i.dont.exists #=> <#Optimism>
p Rc.foo? #=> false
- p Rc._has_key?(:foo) #=> false
+ _guten_
+ p Rc._has_key?(:foo) #=> false
p Rc[:foo] #=> nil
### Variable & Path ###
@@ -173,23 +174,29 @@ Note: for a list of blocked methods, see Optimism::BUILTIN_METHODS
rc.group #=> <#Optimism>
+Install
+----------
+
+ gem install optimism
+
+Development [![Dependency Status](https://gemnasium.com/GutenYe/optimism.png?branch=master)](https://gemnasium.com/GutenYe/optimism) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/GutenYe/optimism)
+===========
Contributing
-------------
+-------------
-* Feel free to join the project and make contributions (by submitting a pull request)
-* Submit any bugs/features/ideas to github issue tracker
+* Submit any bugs/features/ideas to github issue tracker.
+
+Pull requests are very welcome! Please try to follow these simple rules if applicable:
+
+* Please create a topic branch for every separate change you make.
+* Make sure your patches are well tested. All specs run with `rake test:portability` must pass.
* Coding Style Guide: https://gist.github.com/1105334
Contributors
------------
-* [contributors](https://github.com/GutenYe/optimism/contributors)
-
-Install
-----------
-
- gem install optimism
+[https://github.com/GutenYe/optimism/contributors](https://github.com/GutenYe/optimism/contributors)
Resources
---------
View
30 Rakefile
@@ -0,0 +1,30 @@
+namespace :test do
+ desc "Run all specs on multiple ruby versions (requires rvm)"
+ task :portability do
+ require "yaml"
+
+ travis_config_file = File.expand_path("../.travis.yml", __FILE__)
+ begin
+ travis_options ||= YAML::load_file(travis_config_file)
+ rescue => ex
+ puts "Travis config file '#{travis_config_file}' could not be found: #{ex.message}"
+ return
+ end
+
+ travis_options['rvm'].each do |version|
+ system <<-BASH
+bash -c 'source ~/.rvm/scripts/rvm;
+rvm #{version};
+ruby_version_string_size=`ruby -v | wc -m`
+echo;
+for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
+echo;
+echo "`ruby -v`";
+for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
+echo;
+RBXOPT="-Xrbc.db" bundle install;
+RBXOPT="-Xrbc.db" bundle exec rspec spec 2>&1;'
+ BASH
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.