From cfbc5820c52b7f681b33f32f0fba4b8dd60fc7b5 Mon Sep 17 00:00:00 2001 From: ikeqiao Date: Thu, 31 Jul 2014 20:56:58 +0800 Subject: [PATCH] add .travis.yml --- .travis.yml | 10 ++++++++++ README.md | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0f15b0f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: ruby +bundler_args: --without development + +env: + - USE_OFFICIAL_GEM_SOURCE=1 + +rvm: + - 2.0.0 + +script: RAILS_ENV=test bundle exec rake spec spec \ No newline at end of file diff --git a/README.md b/README.md index 24b5d5b..97103ed 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # HasMagicFields [![Gem Version](https://badge.fury.io/rb/has_magic_fields.png)](http://badge.fury.io/rb/has_magic_fields) +[![CI Status](https://travis-ci.org/ikeqiao/has_magic_fields.svg)](https://travis-ci.org/ikeqiao/has_magic_fields) Allows the addition of custom "magic" fields and attributes on a per-model or per-parent-model basis. This is useful for situations where custom fields are @@ -140,7 +141,7 @@ end parent @account also haven't salary magic field -## get all magic fields +## Get All Magic Fields ```ruby @account.magic_fields #get all meagic_fields both self and children @account.magic_fields_with_scoped #get all meagic_fields self -- libgit2 0.21.0