react_on_rails 7.1.0.beta.3 → 8.0.0.beta.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: 8937d7710f0d1a0c426c61b339b088d812f5ae62
4
- data.tar.gz: 38981df2dd2fff9a935055ebe1904b9662796f13
3
+ metadata.gz: 478f006c74e03d3961bfb089ede629f576ce1f8a
4
+ data.tar.gz: d343c8674f77a5ba6716844e87772b205e9cb147
5
5
  SHA512:
6
- metadata.gz: 7563a966d91a544d9ecc9943e78ad219eb0a5b7d4c5c3e1cc3de6fa237def9395746f09a08cedb72c4d1276bbb43172a596c86dbd7b1f480bd37277c6842b82d
7
- data.tar.gz: 4359cc293b9cdace819e1002d77e82459f8cf8a41c9600f72ca0bf80072fc054b3535cd6f93c557cf286ff4efb3bf8daf93c02ef660960efe630edce09e3c0f2
6
+ metadata.gz: 46cea9d995a34d4aa1f6da06eb854809a8a3229a0c2b8c9bae63b285b71a7eee0fb6876d2b40283447ec0313c1e824e6fd527ba6aff1ac58bbf432d718a331de
7
+ data.tar.gz: 3b6227a637dd6faf41c282a395141e6b98dd007817590a09743df7cec4cee62b802c7305c9f3de3b5858662730c39494435dd4786598a8e3a20068b17f8619ed
data/CHANGELOG.md CHANGED
@@ -6,6 +6,25 @@ Contributors: please follow the recommendations outlined at [keepachangelog.com]
6
6
  ## [Unreleased]
7
7
  *Please add entries here for your pull requests.*
8
8
 
9
+ ## [8.0.0] - 2017-05-03
10
+
11
+ ### Added
12
+ Support for WebpackerLite in the generators. [#822](https://github.com/shakacode/react_on_rails/pull/822) by [kaizencodes](https://github.com/kaizencodes) and [justin808](https://github.com/justin808).
13
+
14
+ 1. You do not need to switch to WebpackerLite to use 8.0.0.
15
+ 2. You can find an upgrade example in [react-webpack-rails-tutorial PR #387](https://github.com/shakacode/react-webpack-rails-tutorial/pull/387).
16
+
17
+ ### Changed
18
+ Breaking change is that the default value of symlink_non_digested_assets_regex has changed from this
19
+ old value to nil. This is a breaking change if you didn't have this value set in your
20
+ config/initializers/react_on_rails.rb file and you need this because you're using webpack's CSS
21
+ features and you have not switched to webpacker lite.
22
+
23
+ ```
24
+ symlink_non_digested_assets_regex: /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/,
25
+ ```
26
+
27
+
9
28
  ## [7.0.4] - 2017-04-27
10
29
  - Return empty json when nil in json_safe_and_pretty [#824](https://github.com/shakacode/react_on_rails/pull/824) by [dzirtusss](https://github.com/dzirtusss)
11
30
 
@@ -82,9 +82,8 @@ ReactOnRails.configure do |config|
82
82
  config.server_render_method = "ExecJS"
83
83
  <%- end -%>
84
84
 
85
- # Client js uses assets not digested by rails.
86
- # For any asset matching this regex, non-digested symlink will be created (what webpack's css wants)
87
- # To disable symlinks set this parameter to nil.
88
- config.symlink_non_digested_assets_regex = /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/
89
-
85
+ # If you want to use webpack for CSS and images, and still use the asset pipeline,
86
+ # see https://github.com/shakacode/react_on_rails/blob/master/docs/additional-reading/rails-assets.md
87
+ # And you will use a setting like this.
88
+ # config.symlink_non_digested_assets_regex = /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/
90
89
  end
@@ -98,7 +98,7 @@ module ReactOnRails
98
98
  webpack_generated_files: [],
99
99
  rendering_extension: nil,
100
100
  server_render_method: "",
101
- symlink_non_digested_assets_regex: /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/,
101
+ symlink_non_digested_assets_regex: nil,
102
102
  npm_build_test_command: "",
103
103
  i18n_dir: "",
104
104
  i18n_yml_dir: "",
@@ -1,3 +1,3 @@
1
1
  module ReactOnRails
2
- VERSION = "7.1.0.beta.3".freeze
2
+ VERSION = "8.0.0.beta.1".freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "7.1.0-beta.3",
3
+ "version": "8.0.0-beta.1",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
@@ -11,7 +11,6 @@ include ReactOnRails::TaskHelpers
11
11
 
12
12
  namespace :run_rspec do
13
13
  spec_dummy_dir = File.join("spec", "dummy")
14
- spec_dummy_client_dir = File.join("spec", "dummy", "client")
15
14
 
16
15
  desc "Run RSpec for top level only"
17
16
  task :gem do
@@ -21,14 +20,12 @@ namespace :run_rspec do
21
20
  desc "Runs dummy rspec with turbolinks"
22
21
  task dummy: ["dummy_apps:dummy_app"] do
23
22
  clean_gen_assets(spec_dummy_dir)
24
- gen_assets(spec_dummy_client_dir)
25
23
  run_tests_in(spec_dummy_dir)
26
24
  end
27
25
 
28
26
  desc "Runs dummy rspec without turbolinks"
29
27
  task dummy_no_turbolinks: ["dummy_apps:dummy_app"] do
30
28
  clean_gen_assets(spec_dummy_dir)
31
- gen_assets(spec_dummy_client_dir)
32
29
  run_tests_in(spec_dummy_dir,
33
30
  env_vars: "DISABLE_TURBOLINKS=TRUE",
34
31
  command_name: "dummy_no_turbolinks")
@@ -38,7 +35,6 @@ namespace :run_rspec do
38
35
  desc "Runs dummy respec with turbolinks 2"
39
36
  task dummy_turbolinks_2: ["dummy_apps:dummy_app_with_turbolinks_2"] do
40
37
  clean_gen_assets(spec_dummy_dir)
41
- gen_assets(spec_dummy_client_dir)
42
38
  run_tests_in(spec_dummy_dir, env_vars:
43
39
  "ENABLE_TURBOLINKS_2=TRUE BUNDLE_GEMFILE=#{dummy_app_dir}/Gemfile")
44
40
  end
@@ -119,8 +115,3 @@ def clean_gen_assets(dir)
119
115
  path = calc_path(dir)
120
116
  sh_in_dir(path.realpath, "yarn run build:clean")
121
117
  end
122
-
123
- def gen_assets(dir)
124
- path = calc_path(dir)
125
- sh_in_dir(path.realpath, "yarn run build:test")
126
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0.beta.3
4
+ version: 8.0.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-30 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool