isomorfeus-redux 4.0.23 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/isomorfeus/core_ext/kernel.rb +1 -1
- data/lib/isomorfeus/execution_environment.rb +15 -10
- data/lib/redux/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eee10cde82ff56029869c6158c2e0eb99dc5df7bf7746920d2d155023870cc51
|
4
|
+
data.tar.gz: 312c159a65766706fb871cca8caf8d5c3d8cf037fb6bdb6384b5933c5821f113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a38191643a83bec9f169c8d645c076a539408d3ea4417c11c284a3b91ccf3ce6ca0fafe2105f5da1a5c051d0bdab18118735c8eee22dd771654b478c6529e3b9
|
7
|
+
data.tar.gz: baf7135019055ef0377a1a542130482dec78cd7119bc9d1c20f55294f645492d49fa122bfc067fec7c55ddcce199abc563fec9b3f8402b3154912cedc6aace26
|
data/README.md
CHANGED
@@ -7,12 +7,12 @@ At the [Isomorfeus Framework Project](http://isomorfeus.com)
|
|
7
7
|
|
8
8
|
## Versioning
|
9
9
|
isomorfeus-redux version follows the Redux version which features and API it implements.
|
10
|
-
Isomorfeus-redux 4.
|
10
|
+
Isomorfeus-redux 4.1.x implements features and the API of Redux 4.1 and should be used with Redux 4.1
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
To install redux with the matching version:
|
14
14
|
```
|
15
|
-
yarn add redux@4.0
|
15
|
+
yarn add redux@4.1.0
|
16
16
|
```
|
17
17
|
then add to the Gemfile:
|
18
18
|
```ruby
|
@@ -34,7 +34,7 @@ For full functionality the following are required:
|
|
34
34
|
For the Gemfile:
|
35
35
|
```ruby
|
36
36
|
gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_1_1'
|
37
|
-
gem 'opal-webpack-loader', '~> 0.
|
37
|
+
gem 'opal-webpack-loader', '~> 0.10.1'
|
38
38
|
```
|
39
39
|
|
40
40
|
## Usage within Isomorfeus
|
@@ -48,6 +48,11 @@ module Isomorfeus
|
|
48
48
|
@on_mobile
|
49
49
|
end
|
50
50
|
|
51
|
+
def on_pad?
|
52
|
+
# true if running on a pad
|
53
|
+
@on_pad
|
54
|
+
end
|
55
|
+
|
51
56
|
def on_database?
|
52
57
|
# true if running in database context
|
53
58
|
@on_database
|
@@ -70,16 +75,17 @@ module Isomorfeus
|
|
70
75
|
end
|
71
76
|
|
72
77
|
self.on_ssr = `(typeof process === 'object' && typeof process.release === 'object' && typeof process.release.name === 'string' && process.release.name === 'node') ? true : false`
|
73
|
-
self.on_desktop =
|
74
|
-
self.on_ios = `(typeof Platform === 'object' &&
|
75
|
-
self.on_android = `(typeof Platform === 'object' &&
|
78
|
+
self.on_desktop = false
|
79
|
+
self.on_ios = `(typeof Platform === 'object' && Platform.OS.toLowerCase().includes('ios')) ? true : false`
|
80
|
+
self.on_android = `(typeof Platform === 'object' && Platform.OS.toLowerCase().includes('android')) ? true : false`
|
81
|
+
self.on_pad = `(typeof Platform === 'object') ? (Platform.OS.toLowerCase().includes('ios') && Platform.isPad) : false`
|
82
|
+
self.on_tvos = `(typeof Platform === 'object') ? (Platform.isTV && Platform.OS.toLowerCase().includes('ios') && Platform.isTVOS) : false`
|
83
|
+
self.on_androidtv = `(typeof Platform === 'object') ? (Platform.isTV && Platform.OS.toLowerCase().includes('android')) : false`
|
84
|
+
self.on_tv = `(typeof Platform === 'object') ? Platform.isTV : false`
|
76
85
|
self.on_mobile = self.on_ios? || self.on_android?
|
77
86
|
self.on_database = false
|
78
|
-
self.on_browser = !self.on_ssr? && !self.on_desktop? && !self.on_mobile? && !self.on_database?
|
79
87
|
self.on_server = false
|
80
|
-
self.
|
81
|
-
self.on_androidtv = false
|
82
|
-
self.on_tv = false
|
88
|
+
self.on_browser = !self.on_ssr? && !self.on_desktop? && !self.on_mobile? && !self.on_database? && !self.on_tv?
|
83
89
|
else
|
84
90
|
class << self
|
85
91
|
def on_ssr?; false; end
|
@@ -87,15 +93,14 @@ module Isomorfeus
|
|
87
93
|
def on_ios?; false; end
|
88
94
|
def on_android?; false; end
|
89
95
|
def on_mobile?; false; end
|
96
|
+
def on_pad?; false; end
|
90
97
|
def on_database?; false; end
|
91
98
|
def on_browser?; false; end
|
92
99
|
def on_tvos?; false; end
|
93
100
|
def on_androidtv?; false; end
|
94
101
|
def on_tv?; false; end
|
95
102
|
|
96
|
-
def on_server
|
97
|
-
true # so true ...
|
98
|
-
end
|
103
|
+
def on_server?; true; end
|
99
104
|
end
|
100
105
|
end
|
101
106
|
end
|
data/lib/redux/version.rb
CHANGED
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
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -64,7 +64,7 @@ licenses:
|
|
64
64
|
- MIT
|
65
65
|
metadata:
|
66
66
|
github_repo: ssh://github.com/isomorfeus/gems
|
67
|
-
post_install_message:
|
67
|
+
post_install_message:
|
68
68
|
rdoc_options: []
|
69
69
|
require_paths:
|
70
70
|
- lib
|
@@ -79,8 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
83
|
-
signing_key:
|
82
|
+
rubygems_version: 3.2.15
|
83
|
+
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Redux and Stores for Isomorfeus.
|
86
86
|
test_files: []
|