Permalink
Browse files

Run tests for both 3.1.x and 3.2.x in travis

  • Loading branch information...
1 parent 9a59c6d commit cea7d4c6017e7e30a051fd387c55941914fae854 @carlosantoniodasilva committed Jan 24, 2012
Showing with 23 additions and 4 deletions.
  1. +3 −0 .travis.yml
  2. +3 −1 Gemfile
  3. +14 −0 Gemfile-rails.3.1.x
  4. +3 −3 README.md
View
@@ -1,4 +1,7 @@
before_install: gem update --system
+gemfile:
+ - Gemfile-rails.3.1.x
+ - Gemfile
rvm:
- ree
- 1.9.3
View
@@ -1,8 +1,10 @@
source "http://rubygems.org"
-# Specify your gem's dependencies in i18n_alchemy.gemspec
gemspec
+gem "activerecord", "~> 3.2.0"
+gem "activesupport", "~> 3.2.0"
+
platform :jruby do
gem "activerecord-jdbcsqlite3-adapter", "~> 1.2.0"
end
View
@@ -0,0 +1,14 @@
+source "http://rubygems.org"
+
+gemspec
+
+gem "activerecord", "~> 3.1.0"
+gem "activesupport", "~> 3.1.0"
+
+platform :jruby do
+ gem "activerecord-jdbcsqlite3-adapter", "~> 1.2.0"
+end
+
+platform :ruby do
+ gem "sqlite3", "~> 1.3.4"
+end
View
@@ -15,9 +15,9 @@ I've already used the delocalize gem in some of these projects, and validates_ti
I18nAlchemy is pretty straigthforward to use, you just need to include it in your ActiveRecord model. Lets say we are working with a Product model:
```ruby
- class Product < ActiveRecord::Base
- include I18n::Alchemy
- end
+class Product < ActiveRecord::Base
+ include I18n::Alchemy
+end
```
By mixing the module into your model, you get the *localized* method:

0 comments on commit cea7d4c

Please sign in to comment.