README.md in react-rails-2.2.1 vs README.md in react-rails-2.3.0
- old
+ new
@@ -192,11 +192,11 @@
- an object that responds to `#to_json`; or
- an already-stringified JSON object (see [JBuilder note](#use-with-jbuilder) below).
- `html_options` may include:
- `tag:` to use an element other than a `div` to embed `data-react-class` and `data-react-props`.
- `prerender: true` to render the component on the server.
- - `camelize_props` to [transform a props hash](#camelize_props)
+ - `camelize_props` to [transform a props hash](#camelize-props)
- `**other` Any other arguments (eg `class:`, `id:`) are passed through to [`content_tag`](http://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-content_tag).
#### Custom View Helper
@@ -483,5 +483,16 @@
## Development
- Run tests with `rake test` or `appraisal rake test`
- Update React assets with `rake react:update`
- Update the UJS with `rake ujs:update`
+- Releases:
+ - To release a new RubyGems version:
+ - Increment the version in `lib/react/rails/version.rb`
+ - Add an entry to `VERSIONS.md`
+ - Update the changelog (find recent changes on GitHub by listing commits or showing closed PRs)
+ - Commit changes & push to master
+ - `bundle exec rake release`: pushes a tag to GitHub, builds a `.gem`, and pushes to RubyGems
+ - To release a new NPM version:
+ - Update the version in `react_ujs/package.json`
+ - Commit & push to master
+ - `bundle exec rake ujs:publish` (runs `npm publish`)