README.md in vuejs-1.0.36 vs README.md in vuejs-1.0.37
- old
+ new
@@ -1,25 +1,33 @@
# Vuejs Gem
-> Reactive Components for Modern Web Interfaces
+> Reactive Components for Modern Web Interfaces by Evan You and Vuejs team
-gem `vuejs` ships with the 1.x & 2.x latest [Vue.js + vue-router + vue-resource + vue-validator + vuex](http://vuejs.org/) and integrate with Rails' asset pipeline. Vue.js is created by Evan You and the vuejs team.
+The rubygem `vuejs` ships with the following goodies:
-The current 2.x version is `Vue.js` (v2.1.8) + `vue-router` (v2.1.1) + `vue-validator` (v3.0.0-alpha.2) + `vuex` (v2.1.1).
-> Note that Vue 2.x is not compatible with 1.x. vue-router 2.0 only works with Vue 2.x`
+ - `vue` (v2.1.10)
+ - `vuex` (v2.1.3)
+ - `vue-router` (v2.1.3)
+ - `vue-validator2` (v2.1.7) + `vue-validator3` (v3.0.0-alpha.2)
+ - `axios` (v0.15.3)
-##### Legacy
-The current 1.x version is `Vue.js` (v1.0.28) + `vue-router` (v0.7.13) + `vue-resource` (v1.0.3)
+It also ships with the following legacy goodies
+ - `vue` (v1.0.28)
+ - `vuex` (v1.0.1)
+ - `vue-router` (v0.7.13)
+ - `vue-resource` (v1.0.3)
+ - `vue-validator` (v1.4.4)
+
# Requirement
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'vuejs'
+ gem 'vuejs'
```
And then execute:
$ bundle
@@ -32,25 +40,46 @@
For 2.x Vue & vue-router or Vue-validator
```
//= require vue2
//= require vue-router2
-//= require vue-validator
-//= require vuex
+//= require vue-validator2
+//= require vuex2
+//= require axios
+```
+## Note1
+
```
+Sprockets::FileNotFound: couldn't find file 'vue-validator' with type 'application/javascript'
+```
+vue-validator has been changed to vue-validator2
+and vue-validator3. Use `//= require vue-validator2` or `//= require vue-validator3` instead.
+Also changed are vuex to vuex2 `//= require vuex2`
+## Note2
+```
+ You are running Vue in development mode.
+ Make sure to turn on production mode when deploying for production.
+ See more tips at https://vuejs.org/guide/deployment.html
+```
+
+Try to use `//= require vue2.min` to remove the warning statement from console.
+
+
For 1.x
```
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require vue
+//= require vuex
//= require vue-router
//= require vue-resource
+//= require vue-validator
//= require_tree .
```
## Development