react_on_rails 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/CHANGELOG.md +7 -1
- data/lib/react_on_rails/version.rb +1 -1
- data/lib/tasks/assets.rake +11 -20
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 615fcfc969daad3b212316bc07fd6d8fe32927a0
|
4
|
+
data.tar.gz: 71229b73198cf6207699eae5532daf527416a7ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60b88505284d82b6c1380f0196496f21c12ebec8521277a358435f3afac95bfd2cee86db1a0cc13215fafe579be9784855640cf40f9d86b862d0f86b6e43a99
|
7
|
+
data.tar.gz: 2bc9b19b2fed46618a5de9248a8611501a6f3b9760503e0dbd57c3367e454ffc2e5ae29762adb7a78b6ff6228404aac9a8593900bac6b70beb67fb2f86b503f6
|
data/.travis.yml
CHANGED
@@ -12,14 +12,16 @@ gemfile:
|
|
12
12
|
- spec/dummy/Gemfile
|
13
13
|
|
14
14
|
env:
|
15
|
-
- export RAILS_ENV=test DRIVER=selenium_chrome
|
15
|
+
- export RAILS_ENV=test DRIVER=selenium_chrome CHROME_BIN=/usr/bin/google-chrome
|
16
16
|
|
17
17
|
before_install:
|
18
18
|
- sudo apt-get update
|
19
19
|
- curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose
|
20
20
|
- chmod +x docker-compose
|
21
21
|
- sudo mv docker-compose /usr/local/bin
|
22
|
-
- sudo apt-get install -y xvfb
|
22
|
+
- sudo apt-get install -y xvfb libappindicator1 fonts-liberation
|
23
|
+
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
24
|
+
- sudo dpkg -i google-chrome*.deb
|
23
25
|
|
24
26
|
install:
|
25
27
|
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 5.10.0
|
data/CHANGELOG.md
CHANGED
@@ -2,8 +2,13 @@
|
|
2
2
|
All notable changes to this project will be documented in this file. Items under `Unreleased` is upcoming features that will be out in next version.
|
3
3
|
|
4
4
|
Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
|
5
|
+
|
5
6
|
## [Unreleased]
|
6
7
|
|
8
|
+
## [6.0.3]
|
9
|
+
##### Fixed
|
10
|
+
- Added assets symlinking support on Heroku [#446](https://github.com/shakacode/react_on_rails/pull/446) by [Alexey Karasev](https://github.com/alleycat-at-git).
|
11
|
+
|
7
12
|
## [6.0.2]
|
8
13
|
##### Fixed
|
9
14
|
- Fix colisions in ids of DOM nodes generated by `react_component` by indexing in using an UUID rather than an auto-increment value. This means that it should be overriden using the `id` parameter of `react_component` if one wants to generate a predictable id (_e.g._ for testing purpose). See [Issue #437](https://github.com/shakacode/react_on_rails/issues/437). Fixed in [#438](https://github.com/shakacode/react_on_rails/pull/438) by [Michael Baudino](https://github.com/michaelbaudino).
|
@@ -340,7 +345,8 @@ Best done with Object destructing:
|
|
340
345
|
##### Fixed
|
341
346
|
- Fix several generator related issues.
|
342
347
|
|
343
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.0.
|
348
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.0.3...master
|
349
|
+
[6.0.3]: https://github.com/shakacode/react_on_rails/compare/6.0.2...6.0.3
|
344
350
|
[6.0.2]: https://github.com/shakacode/react_on_rails/compare/6.0.1...6.0.2
|
345
351
|
[6.0.1]: https://github.com/shakacode/react_on_rails/compare/6.0.0...6.0.1
|
346
352
|
[6.0.0]: https://github.com/shakacode/react_on_rails/compare/5.2.0...6.0.0
|
data/lib/tasks/assets.rake
CHANGED
@@ -7,13 +7,15 @@ module ReactOnRails
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def symlink_file(target, symlink)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
target_path = ReactOnRails::assets_path.join(target)
|
11
|
+
symlink_path = ReactOnRails::assets_path.join(symlink)
|
12
|
+
if not File.exist?(symlink_path) or File.lstat(symlink_path).symlink?
|
13
|
+
if File.exist?(target_path)
|
14
|
+
puts "React On Rails: Symlinking #{target_path} to #{symlink_path}"
|
15
|
+
`cd #{ReactOnRails::assets_path} && ln -s #{target} #{symlink}`
|
14
16
|
end
|
15
17
|
else
|
16
|
-
puts "React On Rails: File #{
|
18
|
+
puts "React On Rails: File #{symlink_path} already exists. Failed to symlink #{target_path}"
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
@@ -37,13 +39,10 @@ namespace :react_on_rails do
|
|
37
39
|
manifest_data["assets"].each do |logical_path, digested_path|
|
38
40
|
regex = ReactOnRails.configuration.symlink_non_digested_assets_regex
|
39
41
|
if logical_path =~ regex
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
full_nondigested_gz_path = full_nondigested_path.sub_ext("#{extension}.gz")
|
45
|
-
ReactOnRails::symlink_file(full_digested_path, full_nondigested_path)
|
46
|
-
ReactOnRails::symlink_file(full_digested_gz_path, full_nondigested_gz_path)
|
42
|
+
digested_gz_path = "#{digested_path}.gz"
|
43
|
+
logical_gz_path = "#{logical_path}.gz"
|
44
|
+
ReactOnRails::symlink_file(digested_path, logical_path)
|
45
|
+
ReactOnRails::symlink_file(digested_gz_path, logical_gz_path)
|
47
46
|
end
|
48
47
|
end
|
49
48
|
end
|
@@ -115,11 +114,3 @@ Rake::Task["assets:precompile"]
|
|
115
114
|
Rake::Task["react_on_rails:assets:delete_broken_symlinks"].invoke
|
116
115
|
end
|
117
116
|
|
118
|
-
# puts "Enhancing assets:precompile with react_on_rails:assets:compile_environment"
|
119
|
-
# Rake::Task["assets:precompile"]
|
120
|
-
# .clear_prerequisites
|
121
|
-
# .enhance([:environment]) do
|
122
|
-
# Rake::Task["react_on_rails:assets:compile_environment"].invoke
|
123
|
-
# Rake::Task["react_on_rails:assets:symlink_non_digested_assets"].invoke
|
124
|
-
# Rake::Task["react_on_rails:assets:delete_broken_symlinks"].invoke
|
125
|
-
# end
|
data/package.json
CHANGED
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: 6.0.
|
4
|
+
version: 6.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|