isomorfeus-redux 4.0.3 → 4.0.4

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
  SHA256:
3
- metadata.gz: 289d8f48a245a2b04fc86dddbd3749ddbd3a11761fc894bdfa1514f62c997a1f
4
- data.tar.gz: dc5f4acc8a89029428e013948f938fc3075548c22cce79ead2bd64c77905a0fd
3
+ metadata.gz: 4e09d746effc4c63063225aed58daf7d5d64b4c3e958b9d1838d7d2bf3f6a0c8
4
+ data.tar.gz: 1a18a2dadc9879c059d45f00cc66a1025b7fe9d834aa13a9dacac96c8a2d688e
5
5
  SHA512:
6
- metadata.gz: b2afb2f3395951b77af532605e9165a178f49f2df1d12e4f58b55cc66957e5f719009803978b63769cf9e372c67f4da5442ac7298b9b2b55ee4b48c497df618d
7
- data.tar.gz: be7f34e9298e49cf3a788256425615a5e9ee16565b53fbe362c422f646120b6d9b4267171bcdd6a7db5cad1078f936b8d7a3bb15e7765a986f64a61f07225368
6
+ metadata.gz: 6e07fe1a3f01bf4fc6adfe3ea766add3f87a5524106e2629af4f63e1c6e3804583c6cda96bf9fd7b2289bf7ffbe862fdf06a66cafbac6d91d6520252c5a3b1b7
7
+ data.tar.gz: a3a2b9da7c21199c32d92ff96cbe70b99aa6c08ab13983f3e2e6ab2ce4cd46e9693eb7d1e841eaaa42042ee78abdf0203eef105c1317ba0e8945d203c65dcfd0
File without changes
@@ -12,10 +12,7 @@ else
12
12
 
13
13
  Opal.append_path(__dir__.untaint)
14
14
 
15
- if Dir.exist?(File.join('app', 'isomorfeus'))
16
- # Opal.append_path(File.expand_path(File.join('app', 'isomorfeus', 'components')))
17
- Opal.append_path(File.expand_path(File.join('app', 'isomorfeus'))) unless Opal.paths.include?(File.expand_path(File.join('app', 'isomorfeus')))
18
- elsif Dir.exist?('isomorfeus')
15
+ if Dir.exist?('isomorfeus')
19
16
  # Opal.append_path(File.expand_path(File.join('isomorfeus', 'components')))
20
17
  Opal.append_path(File.expand_path('isomorfeus')) unless Opal.paths.include?(File.expand_path('isomorfeus'))
21
18
  end
data/lib/redux.rb CHANGED
@@ -11,25 +11,25 @@ module Redux
11
11
  } else {
12
12
  real_reducers = reducers;
13
13
  }
14
- return Redux.combineReducers(real_reducers);
14
+ return Opal.global.Redux.combineReducers(real_reducers);
15
15
  }
16
16
  end
17
17
 
18
18
  def self.apply_middleware(*middlewares)
19
19
  if middlewares.size == 1
20
- `Redux.applyMiddleware.apply(null, middlewares[0])`
20
+ `Opal.global.Redux.applyMiddleware.apply(null, middlewares[0])`
21
21
  else
22
- `Redux.applyMiddleware.apply(null, middlewares)`
22
+ `Opal.global.Redux.applyMiddleware.apply(null, middlewares)`
23
23
  end
24
24
  end
25
25
 
26
26
  def self.bind_action_creators(*args)
27
27
  dispatch = args.pop
28
- `Redux.bindActionCreators(args, dispatch)`
28
+ `Opal.global.Redux.bindActionCreators(args, dispatch)`
29
29
  end
30
30
 
31
31
  def self.compose(*functions)
32
- `Redux.compose(functions)`
32
+ `Opal.global.Redux.compose(functions)`
33
33
  end
34
34
 
35
35
  def self.create_reducer(&block)
data/lib/redux/store.rb CHANGED
@@ -82,13 +82,13 @@ module Redux
82
82
  real_preloaded_state = preloaded_state;
83
83
  }
84
84
  if (enhancer && real_preloaded_state) {
85
- this.native = Redux.createStore(reducer, real_preloaded_state, enhancer);
85
+ this.native = Opal.global.Redux.createStore(reducer, real_preloaded_state, enhancer);
86
86
  } else if (real_preloaded_state) {
87
- this.native = Redux.createStore(reducer, real_preloaded_state);
87
+ this.native = Opal.global.Redux.createStore(reducer, real_preloaded_state);
88
88
  } else if (enhancer) {
89
- this.native = Redux.createStore(reducer, enhancer);
89
+ this.native = Opal.global.Redux.createStore(reducer, enhancer);
90
90
  } else {
91
- this.native = Redux.createStore(reducer);
91
+ this.native = Opal.global.Redux.createStore(reducer);
92
92
  }
93
93
  }
94
94
  end
data/lib/redux/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Redux
2
- VERSION = '4.0.3'
2
+ VERSION = '4.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-22 00:00:00.000000000 Z
11
+ date: 2019-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -31,12 +31,12 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - README.md
34
35
  - lib/isomorfeus-redux.rb
35
36
  - lib/isomorfeus/promise.rb
36
37
  - lib/redux.rb
37
38
  - lib/redux/store.rb
38
39
  - lib/redux/version.rb
39
- - readme.md
40
40
  homepage: http://isomorfeus.com
41
41
  licenses:
42
42
  - MIT