react_on_rails 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 433c2e02e818baef806f19c692ac592bf2b2432d
4
- data.tar.gz: e76b2550dc94fd1d5d59a2a0228d9635948d50a9
3
+ metadata.gz: bd9b9b65d290177a63655ae64925547393005194
4
+ data.tar.gz: 46092839fb6e7248821eb54c2fe36df79182fb58
5
5
  SHA512:
6
- metadata.gz: b2f71eb4005709fab9e7f5037a5fdbf56640c848dbbf153c5781ffa4347e76a18f613f77322392ae581cbcc0b316ea44f00e9401292bac9ef54e940f843a042f
7
- data.tar.gz: 509db7c5d5850795687c75d5ff8701f5ecf80551155fdfce54cabb339006c1973573b71495f1927ed6a9bfdc8f58ed0c9ddb0a32d81c0b6956cfb6714a23907d
6
+ metadata.gz: 824085aad96d224ee346a02a84a93ef283a760b48296d7c5e2307d94f7d08438aa9d5d2b7feaa6565dda89d8c30485d76686f7008824e78ed9c5a5b81ba3b506
7
+ data.tar.gz: 791025cd056f9e2515a2a0240a4077804642069603e54855c224a95834f57ca30a70c32923aaad5273bf449f833125d296d26da3a478678b5af13d03794be771
data/CHANGELOG.md CHANGED
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. Items under
4
4
  Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
5
5
  ## [Unreleased]
6
6
 
7
- ## [4.0.0.beta.3] - 2016-03-14
7
+ ## [4.0.0] - 2016-03-14
8
8
  ##### Added
9
9
  - Added optional parameter for ReactOnRails.getStore(name, throwIfMissing = true) so that you can check if a store is defined easily.
10
10
  - Added controller `module ReactOnRails::Controller`. Adds method `redux_store` to setup redux stores in the view.
@@ -220,8 +220,8 @@ Best done with Object destructing:
220
220
 
221
221
  ##### Fixed
222
222
  - Fix several generator related issues.
223
- [Unreleased]: https://github.com/shakacode/react_on_rails/compare/4.0.0.beta.3...master
224
- [4.0.0.beta.3]: https://github.com/shakacode/react_on_rails/compare/3.0.6...4.0.0-beta.3
223
+ [Unreleased]: https://github.com/shakacode/react_on_rails/compare/4.0.0...master
224
+ [4.0.0]: https://github.com/shakacode/react_on_rails/compare/3.0.6...4.0.0
225
225
  [3.0.6]: https://github.com/shakacode/react_on_rails/compare/3.0.5...3.0.6
226
226
  [3.0.5]: https://github.com/shakacode/react_on_rails/compare/3.0.4...3.0.5
227
227
  [3.0.4]: https://github.com/shakacode/react_on_rails/compare/3.0.3...3.0.4
@@ -2,7 +2,6 @@
2
2
  The generator has created the necessary files and gems for deployment to Heroku. If you have installed manually, you will need to provide these files yourself:
3
3
 
4
4
  + `Procfile`: used by Heroku and Foreman to start the Puma server
5
- + `.buildpacks`: used to install Ruby and Node environments
6
5
  + `12factor` gem: required by Heroku
7
6
  + `'puma'` gem: recommended Heroku webserver
8
7
  + `config/puma.rb`: Puma webserver config file
@@ -10,18 +9,19 @@ The generator has created the necessary files and gems for deployment to Heroku.
10
9
 
11
10
  ## How to Deploy
12
11
 
13
- React on Rails requires both a ruby environment (for Rails) and a Node environment (for Webpack), so you will need to have Heroku use multiple buildpacks. Currently, we would suggest using [DDollar's Heroku Buildpack Multi](https://github.com/ddollar/heroku-buildpack-multi).
12
+ React on Rails requires both a ruby environment (for Rails) and a Node environment (for Webpack), so you will need to have Heroku use multiple buildpacks.
14
13
 
15
- Assuming you have downloaded and installed the Heroku command-line utility and have initialized the app, you will need to tell Heroku to use Heroku Buildpack Multi via the command-line:
14
+ Assuming you have downloaded and installed the Heroku command-line utility and have initialized the app, you will need to tell Heroku to use both buildpacks via the command-line:
16
15
 
17
16
  ```
18
- heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi
17
+ heroku buildpacks:set heroku/ruby
18
+ heroku buildpacks:add --index 1 heroku/nodejs
19
19
  ```
20
20
 
21
- Heroku will now be able to use the multiple buildpacks specified in `.buildpacks`.
22
-
23
21
  For more information, see [Using Multiple Buildpacks for an App](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app)
24
22
 
23
+ If for some reason you need custom buildpacks that are not officially supported by Heroku ([see this page](https://devcenter.heroku.com/articles/buildpacks)), we recommend checking out [heroku-buildpack-multi](https://github.com/ddollar/heroku-buildpack-multi).
24
+
25
25
  ## Fresh Rails Install
26
26
 
27
27
  ### Swap out sqlite for postgres by doing the following:
data/docs/tutorial-v2.md CHANGED
@@ -146,9 +146,10 @@ Run this command that looks like this from your new heroku app
146
146
 
147
147
  heroku git:remote -a my-name-react-on-rails
148
148
 
149
- Set the correct buildpack for using react-on-rails:
149
+ Set heroku to use multiple buildpacks:
150
150
 
151
- heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi
151
+ heroku buildpacks:set heroku/ruby
152
+ heroku buildpacks:add --index 1 heroku/nodejs
152
153
 
153
154
 
154
155
  ### Swap out sqlite for postgres by doing the following:
@@ -10,8 +10,7 @@ module ReactOnRails
10
10
 
11
11
  def copy_heroku_deployment_files
12
12
  base_path = "heroku_deployment"
13
- %w(.buildpacks
14
- Procfile
13
+ %w(Procfile
15
14
  config/puma.rb).each { |file| copy_file("#{base_path}/#{file}", file) }
16
15
  end
17
16
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ReactOnRails
3
- VERSION = "4.0.0".freeze
3
+ VERSION = "4.0.1".freeze
4
4
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-15 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -385,7 +385,6 @@ files:
385
385
  - lib/generators/react_on_rails/templates/dev_tests/spec/rails_helper.rb
386
386
  - lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
387
387
  - lib/generators/react_on_rails/templates/dev_tests/spec/spec_helper.rb
388
- - lib/generators/react_on_rails/templates/heroku_deployment/.buildpacks
389
388
  - lib/generators/react_on_rails/templates/heroku_deployment/Procfile
390
389
  - lib/generators/react_on_rails/templates/heroku_deployment/config/puma.rb
391
390
  - lib/generators/react_on_rails/templates/js_linters/client/.eslintignore
@@ -1,2 +0,0 @@
1
- https://github.com/heroku/heroku-buildpack-nodejs.git
2
- https://github.com/heroku/heroku-buildpack-ruby.git