react_webpack_rails 0.2.0 → 0.2.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: c981ff55a0491767f0c8b6b521117293422993b1
4
- data.tar.gz: 0fa4f59a58b398701a14d16b6dc089977f63edb8
3
+ metadata.gz: 9013d3d9ed832b067ef13eef2818ee979c896e96
4
+ data.tar.gz: 75af140b6ce33183f6917776e5abd6ef790caa39
5
5
  SHA512:
6
- metadata.gz: be91c9be8c46a94a70fd0100448e6a2e77b4c8ed4828f78799c4a920d896608d9a13b9ebf6d255f2fc90044e30e79553b0cb3c270338c4b9e42cfc89571d0adc
7
- data.tar.gz: fb0566a5a651221b866e4cac13a98eb861d4cd3a70eee3f03941da8a147825cf6853fff45480ee48273193f4a0f82db25d8ab6973125d3586c8522fa20ab3d78
6
+ metadata.gz: fad1735106799d939a82f8d0eae96697d529eb60647df587bdb92d4399c752d44d079ac336c8480db3538601861bce6f47983e2cdde443207ad739c49b527323
7
+ data.tar.gz: 2b2debfff85637619d44659abd999efd30ddc437131c66eb50734d4d9201c56c954f3bfbe0d22ab469f9a0c2cc1037de796949ccca3688187d6f026363e6d189
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.1
2
+ * Fix Readme typo
3
+ * Fix json loader in generator
4
+ * Fix node module version in core package.json
5
+
1
6
  ## 0.2.0
2
7
  * Added server-side execution of js
3
8
  * Updated package.json generator,
@@ -18,7 +23,7 @@
18
23
  #### migration 0.1.2 -> 0.2.0
19
24
  * Make sure you have latest npm package installed. In your package.json:
20
25
  ```js
21
- "react_webpack_rails": "0.2.0"
26
+ "react-webpack-rails": "0.2.0"
22
27
  ```
23
28
  * In `app/react/index.js` replace `window.RWR = RWR;` with `RWR.run();` - it's required by node environment.
24
29
  * Setup node server by running server_side generator.
data/README.md CHANGED
@@ -4,9 +4,6 @@
4
4
  #### Rails - Webpack setup with React integration.
5
5
  This gem provides easy and convenient way to build modern JavaScript stack on top of Rails applications using [Webpack](http://webpack.github.io/) and [React](https://facebook.github.io/react/).
6
6
 
7
- ### Development branch!
8
- See [0.1-stable](https://github.com/netguru/react_webpack_rails/tree/0.1-stable) for latest release.
9
-
10
7
  ## Features
11
8
  * [Install Generator](https://github.com/netguru/react_webpack_rails/blob/master/docs/install_generator.md) for quick [Webpack](http://webpack.github.io/) setup.
12
9
  * Integrated [react-hot-loader](https://github.com/gaearon/react-hot-loader)
@@ -112,7 +109,7 @@ RWR.renderComponent('customComponentName', {user_id: 1}, element);
112
109
 
113
110
  ```ruby
114
111
  def action_name
115
- render react_component 'customComponentName', props: { user_id: 1 }
112
+ render react_component: 'customComponentName', props: { user_id: 1 }
116
113
  end
117
114
  ```
118
115
 
data/js/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '0.2.0';
1
+ export default '0.2.1';
@@ -6,7 +6,7 @@ module ReactWebpackRails
6
6
  private
7
7
 
8
8
  def load_json(file)
9
- JSON.load(Rails.root.join(file))
9
+ JSON.load(File.read(Rails.root.join(file)))
10
10
  end
11
11
 
12
12
  def merge_into_package(file, options = {})
@@ -16,7 +16,7 @@
16
16
  "node-sass": "^3.3.3",
17
17
  "react": "^0.14.0",
18
18
  "react-dom": "^0.14.0",
19
- "react-webpack-rails": "0.1.0",
19
+ "react-webpack-rails": "^0.2.1",
20
20
  "sass-loader": "^3.0.0",
21
21
  "webpack": "^1.12.1"
22
22
  },
@@ -1,3 +1,3 @@
1
1
  module ReactWebpackRails
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-webpack-rails",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Js part of react_webpack_rails - webpack based React & Rails integration.",
5
5
  "main": "js/lib/index.js",
6
6
  "files": [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_webpack_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Gawlik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-02-10 00:00:00.000000000 Z
12
+ date: 2016-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.4.5.1
173
+ rubygems_version: 2.4.8
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: React and Rails integration done with webpack