rwr-redux 0.3.0 → 0.4.0

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: 36a0dc245883afb465fb10b4271473744a8fffb2
4
- data.tar.gz: efd6cb621c8949ee78ea69d6242f970ffd23aa3c
3
+ metadata.gz: be4eca4b78faa9b282e09216f8ec630c6f0a7d8a
4
+ data.tar.gz: 29de0a81deca613280206c60bc132a4fe1f98209
5
5
  SHA512:
6
- metadata.gz: 66966465aa0155af43630883102678dc143e4eec8ac92b4d288f09c6b867fb19766c0cfc8f481cf00fb2c6f49f0a9c28e61ec9a9d459820ab6b6cc520958503f
7
- data.tar.gz: 1b68bda1434af2f9b59ebf68feabf0e7fdad0b5146a6d7a9cfda3fc2b2636f990c761d93b05abebd54075f41c9c2cbcb74f52b299d49dec2675ce7c408000520
6
+ metadata.gz: 737588a1d5ed71c6b5fb27a134ca725bbde6675dd514d8e5225e8d25a3a78f4ded25b4d568cab6635ae25bff9f242358654de8cb3b24040dc0c1923e5afcdafd
7
+ data.tar.gz: 30d26a731a95b6cf4dcc4e22db9f51d2068f734ff18e03c44f8a49bd7c2a404e6d04c576a51975d2bd25755d281cefa574cc6feff2f972ab8c5fae9b1cf3f7b3
data/README.md CHANGED
@@ -32,6 +32,8 @@ When a page is loaded, your container component is wrapped with [`<Provider>`](h
32
32
 
33
33
  Register integrations:
34
34
  ```js
35
+ import RWR, { integrationsManager } from 'react-webpack-rails';
36
+
35
37
  integrationsManager.register('redux-store', RWRRedux.storeIntegrationWrapper);
36
38
  integrationsManager.register('redux-container', RWRRedux.containerIntegrationWrapper);
37
39
  ```
@@ -83,6 +83,8 @@ this.props.dispatch(push(path));
83
83
 
84
84
  Register integrations:
85
85
  ```js
86
+ import RWR, { integrationsManager } from 'react-webpack-rails';
87
+
86
88
  integrationsManager.register('redux-store', RWRRedux.storeIntegrationWrapper);
87
89
  integrationsManager.register('redux-container', RWRRedux.containerIntegrationWrapper);
88
90
  integrationsManager.register('redux-router', RWRRedux.routerIntegrationWrapper);
@@ -13,9 +13,20 @@ class RWRRedux {
13
13
  this.storeIntegrationWrapper = ReduxStore.integrationWrapper;
14
14
 
15
15
  this.registerContainer = ReduxContainer.registerContainer;
16
+ this.getContainer = ReduxContainer.getContainer;
17
+ this.createContainer = ReduxContainer.createContainer;
18
+ this.createRootComponent = ReduxContainer.createRootComponent;
19
+ this.renderContainer = ReduxContainer.renderContainer;
20
+ this.unmountContainer = ReduxContainer.unmountContainer;
21
+ this.renderContainerToString = ReduxContainer.renderContainerToString;
16
22
  this.containerIntegrationWrapper = ReduxContainer.integrationWrapper;
17
23
 
18
24
  this.registerRoutes = ReduxRouter.registerRoutes;
25
+ this.getRoutes = ReduxRouter.getRoutes;
26
+ this.createRootRouter = ReduxRouter.createRootRouter;
27
+ this.unmountRouter = ReduxRouter.unmountRouter;
28
+ this.renderRouter = ReduxRouter.renderRouter;
29
+ this.renderRouterToString = ReduxRouter.renderRouterToString;
19
30
  this.routerIntegrationWrapper = ReduxRouter.integrationWrapper;
20
31
  }
21
32
  }
@@ -10,6 +10,12 @@ class ReduxContainer {
10
10
  this.containers = {};
11
11
 
12
12
  this.registerContainer = this.registerContainer.bind(this);
13
+ this.getContainer = this.getContainer.bind(this);
14
+ this.createContainer = this.createContainer.bind(this);
15
+ this.createRootComponent = this.createRootComponent.bind(this);
16
+ this.renderContainer = this.renderContainer.bind(this);
17
+ this.unmountContainer = this.unmountContainer.bind(this);
18
+ this.renderContainerToString = this.renderContainerToString.bind(this);
13
19
  }
14
20
 
15
21
  registerContainer(name, container) {
@@ -13,6 +13,11 @@ class ReduxRouter {
13
13
  this.routes = {};
14
14
 
15
15
  this.registerRoutes = this.registerRoutes.bind(this);
16
+ this.getRoutes = this.getRoutes.bind(this);
17
+ this.createRootRouter = this.createRootRouter.bind(this);
18
+ this.unmountRouter = this.unmountRouter.bind(this);
19
+ this.renderRouter = this.renderRouter.bind(this);
20
+ this.renderRouterToString = this.renderRouterToString.bind(this);
16
21
  }
17
22
 
18
23
  registerRoutes(name, routes) {
@@ -1 +1 @@
1
- export default '0.3.0';
1
+ export default '0.4.0';
@@ -1,5 +1,5 @@
1
1
  module ReactWebpackRails
2
2
  module ReduxIntegration
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rwr-redux",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Redux integration for react_webpack_rails",
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: rwr-redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kacper Goliński
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-06-06 00:00:00.000000000 Z
12
+ date: 2016-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler