Browse Source

update readme.

saberma 10 years ago
parent
commit
4a9826ae0d
1 changed files with 14 additions and 0 deletions
  1. 14 0
      README.md

+ 14 - 0
README.md

@@ -4,6 +4,10 @@
 
 ![china_city](http://cl.ly/image/3c212i1e3b1T/ScreenFlow.mp4.gif)
 
+支持 Rails3.1, Rails3.2, Rails4.0。
+
+请留意,Rails3.1 与 Ruby2.0 不兼容,sprockets 无法正常解析 application.js,请使用 Ruby1.9。
+
 ## 简介
 
 这是一个基于 Rails Engine 开发的插件,为 Rails 项目增加省市区三级(或者省市 二级)选择框,可用于实现收货地址等信息的录入。
@@ -47,10 +51,20 @@
 ```bash
 git clone git@github.com:saberma/china_city.git
 cd china_city
+rake appraisal:install
 cd spec/dummy
 rails server # http://localhost:3000/china_city
 ```
 
+## 测试
+
+```bash
+rake appraisal:rails32 spec
+rake appraisal:rails4 spec
+rvm use 1.9.3
+rake appraisal:rails31 spec
+```
+
 ## 类似项目
 
 * https://github.com/Kehao/area_cn_select