rails-react-views 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b023ad6f9bf11a32bac03938ad40d5799b1b547765533797f2d14d725efd4950
4
- data.tar.gz: 38d49a56d77f70d888069b0f414f6e8aff79a48eed689704432fa6285dd5d094
3
+ metadata.gz: fc41bd10d999965569459f8913b9359d2a2e4a921b1de8c3213b38ab46c04ab1
4
+ data.tar.gz: 8b430b6328f34ca3c80f3e5fb88d54f941ecb85fe8d063afcfee3aa148544f19
5
5
  SHA512:
6
- metadata.gz: 3f234735d6ab4fb12dc6ef3303bbbe04d64a153002cf9983e1a1ddf4af99ff6bf0c78fd56d74928e274919cd5b0b279ce4fd6175d74d940e8f5fc7b3e652b8c3
7
- data.tar.gz: 8df9deb60085b227388fa595689e59b711a441c46b85187c8ff2c308d87df226b672f5968f0ff8f0fbdd511df8d1eb44d4f5df2ca8638d05af943b00060b7daa
6
+ metadata.gz: d55204280e58e7bff48dd11bd12bafae308f231d7bdd9b03c4f408cd2d9f044f7c4d65991f485f3efe5082fd97c564edf0a5b04c77705f05dbf97a587d5a47c8
7
+ data.tar.gz: ac09e337076987ebc22c717d80a12b23a4920636294daab9d6442e61f367a274af61c59a1aae44f639591ae8ecc6e649733226b8dbd8326234a1f7806f202a4f
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Nick Geerts
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Rails React Views
2
+
3
+ A library for full integration of React.js views in Ruby on Rails.
@@ -6,6 +6,8 @@ module RailsReactViews
6
6
  end
7
7
 
8
8
  def config
9
+ return default_config unless File.exists?(Rails.root.join('node_modules/rails-react-views/dist/cjs/server/scripts/config.js'))
10
+
9
11
  `#{node} node_modules/rails-react-views/dist/cjs/server/scripts/config.js`
10
12
  end
11
13
 
@@ -19,6 +21,10 @@ module RailsReactViews
19
21
  "BABEL_ENV=test node_modules/.bin/babel-node -x '.js,.jsx,.ts,.tsx'"
20
22
  end
21
23
  end
24
+
25
+ def default_config
26
+ '{"server":true,"port":3030,"workers":8,"cmd":true,"layout":"application","prerender":"default"}'
27
+ end
22
28
  end
23
29
  end
24
30
  end
@@ -1,3 +1,3 @@
1
1
  module RailsReactViews
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-react-views
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Geerts
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-26 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: A library for full integration of React.js views in Ruby on Rails.
56
- email:
56
+ email:
57
57
  executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
@@ -75,7 +75,7 @@ metadata:
75
75
  homepage_uri: https://rubygems.org/gems/rails-react-views
76
76
  source_code_uri: https://github.com/njjkgeerts/rails-react-views
77
77
  changelog_uri: https://github.com/njjkgeerts/rails-react-views/releases
78
- post_install_message:
78
+ post_install_message:
79
79
  rdoc_options: []
80
80
  require_paths:
81
81
  - lib
@@ -90,8 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.1.6
94
- signing_key:
93
+ rubygems_version: 3.2.33
94
+ signing_key:
95
95
  specification_version: 4
96
96
  summary: React.js views for Ruby on Rails
97
97
  test_files: []
data/LICENSE DELETED
@@ -1 +0,0 @@
1
- ../LICENSE
data/README.md DELETED
@@ -1 +0,0 @@
1
- ../README.md