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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3f17df25c652f79c9d0cdcd0c1eddce4f95a4b5
4
- data.tar.gz: 66c4677132c33fef5bb89e910c1eec4bad9aff74
3
+ metadata.gz: 615fcfc969daad3b212316bc07fd6d8fe32927a0
4
+ data.tar.gz: 71229b73198cf6207699eae5532daf527416a7ad
5
5
  SHA512:
6
- metadata.gz: c4fd4a9a1e77b75619bae1367c895f69649e097771678b64e6d24a52f2807a34d2c8b5b351ec66f8c0add94e5aa5aa5130e4f3ca1fa73269fc2809678540235c
7
- data.tar.gz: 5531be7c1597d4374020b1cae591dbf05a5cc4767d2e4f52d1c299674674b1505107bb1a6563bfc0e81291b4d44ced63393539ac484e3646e31eeb88c7a4ab49
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.2...master
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ReactOnRails
3
- VERSION = "6.0.2".freeze
3
+ VERSION = "6.0.3".freeze
4
4
  end
@@ -7,13 +7,15 @@ module ReactOnRails
7
7
  end
8
8
 
9
9
  def symlink_file(target, symlink)
10
- if not File.exist?(symlink) or File.lstat(symlink).symlink?
11
- if File.exist?(target)
12
- puts "React On Rails: Symlinking #{target} to #{symlink}"
13
- FileUtils.ln_s target, symlink, force: true
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 #{symlink} already exists. Failed to symlink #{target}"
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
- full_digested_path = ReactOnRails::assets_path.join(digested_path)
41
- full_nondigested_path = ReactOnRails::assets_path.join(logical_path)
42
- extension = full_digested_path.extname
43
- full_digested_gz_path = full_digested_path.sub_ext("#{extension}.gz")
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
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.2
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-06 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool