react_on_rails 6.3.2 → 6.3.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 -0
- data/CHANGELOG.md +7 -1
- data/KUDOS.md +6 -0
- data/NEWS.md +6 -0
- data/PROJECTS.md +2 -2
- data/README.md +8 -8
- data/app/helpers/react_on_rails_helper.rb +10 -3
- data/docs/contributor-info/linters.md +9 -4
- data/docs/misc/doctrine.md +1 -1
- data/lib/react_on_rails/assets_precompile.rb +2 -1
- data/lib/react_on_rails/configuration.rb +34 -21
- data/lib/react_on_rails/react_component/options.rb +5 -1
- data/lib/react_on_rails/test_helper/node_process_launcher.rb +6 -6
- data/lib/react_on_rails/test_helper/webpack_assets_status_checker.rb +7 -1
- data/lib/react_on_rails/utils.rb +6 -0
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +19 -19
- data/rakelib/docker.rake +0 -4
- data/react_on_rails.gemspec +2 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1147c015c743e085201d4ad3f0b78abce841901
|
4
|
+
data.tar.gz: 96e20221ddd6595e5de6cd0b159056a8ca5f5b19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4b272797bcaac4c82ef4720acce5ab14b0198934291547766ee257e22dbd7737bc08e3b48559f32c1e7e031b6fa92f3fdc5789613991a2516dfdfe61bd8724e
|
7
|
+
data.tar.gz: 41b5b8240e0ed87f1f7273d812d8b023442e3b594beb42af25ab1a9ba8d1c3ae8b3de3266d3c9f7aaeb4ce203fad5ff77a946d2cacc71bd6257d09bdfd3467c7
|
data/.travis.yml
CHANGED
@@ -3,6 +3,9 @@ sudo: required
|
|
3
3
|
language: ruby
|
4
4
|
|
5
5
|
rvm:
|
6
|
+
- 2.0.0
|
7
|
+
- 2.1.10
|
8
|
+
- 2.2.6
|
6
9
|
- 2.3.1
|
7
10
|
|
8
11
|
services:
|
@@ -33,6 +36,7 @@ before_install:
|
|
33
36
|
install:
|
34
37
|
- nvm install node
|
35
38
|
- node -v
|
39
|
+
- npm install -g npm@3.10.7
|
36
40
|
- npm config set spin false
|
37
41
|
- npm install
|
38
42
|
- bundle install
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ 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
|
+
## [6.3.3] - 2016-12-25
|
10
|
+
##### Changed
|
11
|
+
- By using the hook on `turbolinks:before-visit` to unmount the components, we can ensure that components are unmounted even when Turbolinks cache is disabled. Previously, we used `turbolinks:before-cache` event hook. [#644](https://github.com/shakacode/react_on_rails/pull/644) by [volkanunsal](https://github.com/volkanunsal).
|
12
|
+
- Added support for Ruby 2.0 [#651](https://github.com/shakacode/react_on_rails/pull/651) by [bbonamin](https://github.com/bbonamin).
|
13
|
+
|
9
14
|
## [6.3.2] - 2016-12-5
|
10
15
|
##### Fixed
|
11
16
|
- The `react_component` method was raising a `NameError` when `ReactOnRailsHelper` was included in a plain object. [#636](https://github.com/shakacode/react_on_rails/pull/636) by [jtibbertsma](https://github.com/jtibbertsma).
|
@@ -404,7 +409,8 @@ Best done with Object destructing:
|
|
404
409
|
##### Fixed
|
405
410
|
- Fix several generator related issues.
|
406
411
|
|
407
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.3.
|
412
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.3.3...master
|
413
|
+
[6.3.3]: https://github.com/shakacode/react_on_rails/compare/6.3.2...6.3.3
|
408
414
|
[6.3.2]: https://github.com/shakacode/react_on_rails/compare/6.3.1...6.3.2
|
409
415
|
[6.3.1]: https://github.com/shakacode/react_on_rails/compare/6.3.0...6.3.1
|
410
416
|
[6.3.0]: https://github.com/shakacode/react_on_rails/compare/6.2.1...6.3.0
|
data/KUDOS.md
CHANGED
@@ -38,3 +38,9 @@ https://github.com/shakacode/react_on_rails/pull/591#issuecomment-258685925
|
|
38
38
|
|
39
39
|
### November 15, 2016
|
40
40
|
![2016-11-15_18-15-31](https://cloud.githubusercontent.com/assets/1118459/20334680/23eaab0c-ab60-11e6-8830-8528c2f829a3.png)
|
41
|
+
|
42
|
+
### December 12, 2016
|
43
|
+
![2016-12-17_13-23-21](https://cloud.githubusercontent.com/assets/1118459/21290377/1adacdf2-c45c-11e6-97c1-f726ab749b2d.png)
|
44
|
+
|
45
|
+
### December 20, 2016
|
46
|
+
![2016-12-25_10-02-17](https://cloud.githubusercontent.com/assets/1118459/21472700/70242a1e-ca89-11e6-9522-fb45f7835bbb.png)
|
data/NEWS.md
CHANGED
@@ -3,6 +3,12 @@
|
|
3
3
|
*We'll keep a history of the news. A few bullets at the top will also show on the [README.md](./README.md).*
|
4
4
|
|
5
5
|
* Always see the [CHANGELOG.md](./CHANGELOG.md) for the latest project changes.
|
6
|
+
* 2016-12-20: New Video on Egghead.io: [Creating a component with React on Rails](https://egghead.io/lessons/react-creating-a-component-with-react-on-rails)
|
7
|
+
* 2016-11-03: Spoke at [LA Ruby, 7pm, Thursday, November 10 in Venice, CA: "React on Rails: Why, What, and How?"](http://www.meetup.com/laruby/events/234825187/). [Video and pictures in this article](https://blog.shakacode.com/my-react-on-rails-talk-at-the-la-ruby-rails-meetup-november-10-2016-eaaa83aff800#.ej6h4eglp).
|
8
|
+
* 2016-08-27: We now have a [Documentation Gitbook](https://shakacode.gitbooks.io/react-on-rails/content/) for improved readability & reference.
|
9
|
+
* 2016-08-21: v6.1 ships with serveral new features and bug fixes. See the [Changelog](CHANGELOG.md).
|
10
|
+
* 2016-07-28: If you're doing server rendering, be sure to use mini\_racer! See [issues/428](https://github.com/shakacode/react_on_rails/issues/428). It's supposedly much faster than `therubyracer`.
|
11
|
+
|
6
12
|
* 2016-08-27: We now have a [Documentation Gitbook](https://shakacode.gitbooks.io/react-on-rails/content/) for improved readability & reference.
|
7
13
|
* 2016-08-21: v6.1 ships with serveral new features and bug fixes. See the [Changelog](CHANGELOG.md).
|
8
14
|
* 2016-06-13: 6.0.4 shipped with a critical fix regarding a missing polyfill for `clearTimeout`, used by babel-polyfill.
|
data/PROJECTS.md
CHANGED
@@ -13,8 +13,8 @@
|
|
13
13
|
* **[Apprentus](https://www.apprentus.com/)**: A marketplace to find the best private teachers. Using react-on-rails from the homepage to infinity!
|
14
14
|
* **[Confident Financial Solutions](https://www.mycfsapp.com/)**: Auto Repair Financing to help people get back on the road and back to life.
|
15
15
|
* **[Flyhomes](https://www.flyhomes.com/)**: Real estate brokerage service that awards frequent flyer miles.
|
16
|
-
* **[Undeveloped](https://undeveloped.com/)**: Buy and sell domain names.
|
17
|
-
![
|
16
|
+
* **[Undeveloped](https://undeveloped.com/)**: Buy and sell domain names. ![image](https://cloud.githubusercontent.com/assets/1118459/19623703/7c6d63d0-9870-11e6-83f2-8b83ca49daa9.png)
|
17
|
+
* **[Foxford.ru](http://foxford.ru/)**: Online School ![2016-12-17_13-23-21](https://cloud.githubusercontent.com/assets/1118459/21290377/1adacdf2-c45c-11e6-97c1-f726ab749b2d.png)
|
18
18
|
|
19
19
|
|
20
20
|
## Commercial Products in Development
|
data/README.md
CHANGED
@@ -17,23 +17,23 @@ Follow [@ShakaCode](https://twitter.com/shakacode) for notications of new releas
|
|
17
17
|
# Articles, Videos, and Podcasts
|
18
18
|
|
19
19
|
### Articles
|
20
|
+
|
20
21
|
* [React on Rails, 2000+ 🌟 Stars](https://medium.com/shakacode/react-on-rails-2000-stars-32ff5cfacfbf#.6gmfb2gpy)
|
21
22
|
* [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724)
|
22
23
|
|
23
|
-
###
|
24
|
+
### Videos
|
24
25
|
|
25
|
-
1. [
|
26
|
-
|
27
|
-
|
26
|
+
1. [egghead.io: Creating a component with React on Rails](https://egghead.io/lessons/react-creating-a-component-with-react-on-rails)
|
27
|
+
1. [React On Rails Tutorial Series](https://www.youtube.com/playlist?list=PL5VAKH-U1M6dj84BApfUtvBjvF-0-JfEU)
|
28
|
+
1. [History and Motivation](https://youtu.be/F4oymbUHvoY)
|
29
|
+
1. [Basic Tutorial Walkthrough](https://youtu.be/_bjScw60FBk)
|
30
|
+
1. [Code Walkthrough](https://youtu.be/McQ9UM-_ocQ)
|
28
31
|
|
29
32
|
### Podcasts
|
30
33
|
* [284 Ruby Rogues: React on Rails with Justin Gordon and Rob Wise](https://devchat.tv/ruby-rogues/284-rr-react-on-rails-with-justin-gordon-and-rob-wise)
|
31
34
|
|
32
35
|
# NEWS
|
33
|
-
* 2016-11-03:
|
34
|
-
* 2016-08-27: We now have a [Documentation Gitbook](https://shakacode.gitbooks.io/react-on-rails/content/) for improved readability & reference.
|
35
|
-
* 2016-08-21: v6.1 ships with serveral new features and bug fixes. See the [Changelog](CHANGELOG.md).
|
36
|
-
* 2016-07-28: If you're doing server rendering, be sure to use mini\_racer! See [issues/428](https://github.com/shakacode/react_on_rails/issues/428). It's supposedly much faster than `therubyracer`.
|
36
|
+
* 2016-11-03: Spoke at [LA Ruby: "React on Rails: Why, What, and How?"](http://www.meetup.com/laruby/events/234825187/). [Video and pictures in this article](https://blog.shakacode.com/my-react-on-rails-talk-at-the-la-ruby-rails-meetup-november-10-2016-eaaa83aff800#.ej6h4eglp).
|
37
37
|
* *See [NEWS.md](NEWS.md) for more notes over time.*
|
38
38
|
|
39
39
|
# React on Rails
|
@@ -5,8 +5,11 @@
|
|
5
5
|
# 2. Keep all #{some_var} fully to the left so that all indentation is done evenly in that var
|
6
6
|
require "react_on_rails/prerender_error"
|
7
7
|
require "addressable/uri"
|
8
|
+
require "react_on_rails/utils"
|
8
9
|
|
9
10
|
module ReactOnRailsHelper
|
11
|
+
include ReactOnRails::Utils::Required
|
12
|
+
|
10
13
|
# The env_javascript_include_tag and env_stylesheet_link_tag support the usage of a webpack
|
11
14
|
# dev server for providing the JS and CSS assets during development mode. See
|
12
15
|
# https://github.com/shakacode/react-webpack-rails-tutorial/ for a working example.
|
@@ -255,8 +258,12 @@ module ReactOnRailsHelper
|
|
255
258
|
|
256
259
|
# Returns Array [0]: html, [1]: script to console log
|
257
260
|
# NOTE, these are NOT html_safe!
|
258
|
-
def server_rendered_react_component_html(
|
259
|
-
|
261
|
+
def server_rendered_react_component_html(
|
262
|
+
props, react_component_name, dom_id,
|
263
|
+
prerender: required("prerender"),
|
264
|
+
trace: required("trace"),
|
265
|
+
raise_on_prerender_error: required("raise_on_prerender_error")
|
266
|
+
)
|
260
267
|
return { "html" => "", "consoleReplayScript" => "" } unless prerender
|
261
268
|
|
262
269
|
# On server `location` option is added (`location = request.fullpath`)
|
@@ -342,7 +349,7 @@ ReactOnRails.setStore('#{store_name}', store);
|
|
342
349
|
# This is the definitive list of the default values used for the rails_context, which is the
|
343
350
|
# second parameter passed to both component and store generator functions.
|
344
351
|
# rubocop:disable Metrics/AbcSize
|
345
|
-
def rails_context(server_side:)
|
352
|
+
def rails_context(server_side: required("server_side"))
|
346
353
|
@rails_context ||= begin
|
347
354
|
result = {
|
348
355
|
inMailer: in_mailer?,
|
@@ -3,7 +3,7 @@ These linters support the [ShakaCode Style Guidelines](./style.md)
|
|
3
3
|
|
4
4
|
## Autofix!
|
5
5
|
|
6
|
-
If you haven't tried the autofix options for `
|
6
|
+
If you haven't tried the autofix options for `eslint` and `rubocop`, you're seriously missing out!
|
7
7
|
|
8
8
|
1. Be **SURE** you have a clean git status, as you'll want to review what the autofix does to your code!
|
9
9
|
2. **Rubocop:** Be sure to be in the right directory where you have Ruby files, probably the top level of your Rails project.
|
@@ -11,9 +11,15 @@ If you haven't tried the autofix options for `jscs` and `rubocop`, you're seriou
|
|
11
11
|
rubocop -a
|
12
12
|
```
|
13
13
|
|
14
|
-
3. **
|
14
|
+
3. **eslint:**: Be sure to be in the right directory where you have JS files.
|
15
15
|
```
|
16
|
-
|
16
|
+
eslint --fix .
|
17
|
+
```
|
18
|
+
|
19
|
+
or
|
20
|
+
|
21
|
+
```
|
22
|
+
npm run lint -- --fix
|
17
23
|
```
|
18
24
|
|
19
25
|
Autofixing is a **HUGE** time saver!
|
@@ -60,5 +66,4 @@ You can disable all rules for a line or block, or only specific rules, as shown
|
|
60
66
|
* [ESLint quick start](http://untilfalse.com/eslint-quick-start/)
|
61
67
|
* [RuboCop](https://github.com/bbatsov/rubocop)
|
62
68
|
* [ESLint](http://eslint.org/)
|
63
|
-
* [JSCS](https://github.com/jscs-dev/node-jscs)
|
64
69
|
|
data/docs/misc/doctrine.md
CHANGED
@@ -44,7 +44,7 @@ Here's the chef's selection from the React on Rails community:
|
|
44
44
|
|
45
45
|
### JavaScript Tooling
|
46
46
|
* [Babel](https://babeljs.io/): Transpiler for ES6 into ES5 and much more.
|
47
|
-
* [EsLint](http://eslint.org/)
|
47
|
+
* [EsLint](http://eslint.org/)
|
48
48
|
* [Webpack](http://webpack.github.io/): Generator of deployment assets and provider of hot module reloading.
|
49
49
|
|
50
50
|
By having a common set of tools, we can discuss what we should or shouldn't be using. Thus, this takes out the "JavaScript Fatigue" from having too many unclear choices in the JavaScript world.
|
@@ -69,7 +69,8 @@ module ReactOnRails
|
|
69
69
|
manifest_path = manifest_glob.first
|
70
70
|
manifest_file = File.new(manifest_path)
|
71
71
|
manifest_data = if File.extname(manifest_file) == ".json"
|
72
|
-
|
72
|
+
manifest_file_data = File.read(manifest_path)
|
73
|
+
JSON.parse(manifest_file_data)["assets"]
|
73
74
|
else
|
74
75
|
YAML.load(manifest_file)
|
75
76
|
end
|
@@ -7,35 +7,48 @@ module ReactOnRails
|
|
7
7
|
DEFAULT_GENERATED_ASSETS_DIR = File.join(%w(app assets webpack)).freeze
|
8
8
|
|
9
9
|
def self.setup_config_values
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
@configuration.webpack_generated_files = files
|
16
|
-
end
|
10
|
+
ensure_webpack_generated_files_exists
|
11
|
+
configure_generated_assets_dirs_deprecation
|
12
|
+
ensure_generated_assets_dir_present
|
13
|
+
ensure_server_bundle_js_file_has_no_path
|
14
|
+
end
|
17
15
|
|
18
|
-
|
19
|
-
|
16
|
+
def self.ensure_generated_assets_dir_present
|
17
|
+
return unless @configuration.generated_assets_dir.blank?
|
18
|
+
|
19
|
+
@configuration.generated_assets_dir = DEFAULT_GENERATED_ASSETS_DIR
|
20
|
+
puts "ReactOnRails: Set generated_assets_dir to default: #{DEFAULT_GENERATED_ASSETS_DIR}"
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.configure_generated_assets_dirs_deprecation
|
24
|
+
return unless @configuration.generated_assets_dirs.present?
|
25
|
+
|
26
|
+
puts "[DEPRECATION] ReactOnRails: Use config.generated_assets_dir rather than "\
|
20
27
|
"generated_assets_dirs"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
28
|
+
if @configuration.generated_assets_dir.blank?
|
29
|
+
@configuration.generated_assets_dir = @configuration.generated_assets_dirs
|
30
|
+
else
|
31
|
+
puts "[DEPRECATION] ReactOnRails. You have both generated_assets_dirs and "\
|
25
32
|
"generated_assets_dir defined. Define ONLY generated_assets_dir"
|
26
|
-
end
|
27
33
|
end
|
34
|
+
end
|
28
35
|
|
29
|
-
|
30
|
-
|
31
|
-
|
36
|
+
def self.ensure_webpack_generated_files_exists
|
37
|
+
return unless @configuration.webpack_generated_files.empty?
|
38
|
+
|
39
|
+
files = ["webpack-bundle.js"]
|
40
|
+
if @configuration.server_bundle_js_file.present?
|
41
|
+
files << @configuration.server_bundle_js_file
|
32
42
|
end
|
43
|
+
@configuration.webpack_generated_files = files
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.ensure_server_bundle_js_file_has_no_path
|
47
|
+
return unless @configuration.server_bundle_js_file.include?(File::SEPARATOR)
|
33
48
|
|
34
|
-
|
35
|
-
puts "[DEPRECATION] ReactOnRails: remove path from server_bundle_js_file in configuration. "\
|
49
|
+
puts "[DEPRECATION] ReactOnRails: remove path from server_bundle_js_file in configuration. "\
|
36
50
|
"All generated files must go in #{@configuration.generated_assets_dir}"
|
37
|
-
|
38
|
-
end
|
51
|
+
@configuration.server_bundle_js_file = File.basename(@configuration.server_bundle_js_file)
|
39
52
|
end
|
40
53
|
|
41
54
|
def self.configuration
|
@@ -1,10 +1,14 @@
|
|
1
|
+
require "react_on_rails/utils"
|
2
|
+
|
1
3
|
module ReactOnRails
|
2
4
|
module ReactComponent
|
3
5
|
class Options
|
6
|
+
include Utils::Required
|
7
|
+
|
4
8
|
NO_PROPS = {}.freeze
|
5
9
|
HIDDEN = "display:none".freeze
|
6
10
|
|
7
|
-
def initialize(name
|
11
|
+
def initialize(name: required("name"), options: required("options"))
|
8
12
|
@name = name
|
9
13
|
@options = options
|
10
14
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module ReactOnRails
|
2
2
|
module TestHelper
|
3
3
|
def self.launch_node
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
return unless ReactOnRails.configuration.server_render_method == "NodeJS"
|
5
|
+
|
6
|
+
path = "#{::Rails.root}/client/node"
|
7
|
+
puts "Launching NodeJS server at #{path}"
|
8
|
+
system("cd #{path} && npm start &")
|
9
|
+
sleep(1)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -1,15 +1,21 @@
|
|
1
1
|
require "rake"
|
2
2
|
require "fileutils"
|
3
|
+
require "react_on_rails/utils"
|
3
4
|
|
4
5
|
# You can replace this implementation with your own for use by the
|
5
6
|
# ReactOnRails::TestHelper.ensure_assets_compiled helper
|
6
7
|
module ReactOnRails
|
7
8
|
module TestHelper
|
8
9
|
class WebpackAssetsStatusChecker
|
10
|
+
include Utils::Required
|
9
11
|
# client_dir is typically /client, where all client files go
|
10
12
|
attr_reader :client_dir, :generated_assets_dir
|
11
13
|
|
12
|
-
def initialize(
|
14
|
+
def initialize(
|
15
|
+
generated_assets_dir: required("generated_assets_dir"),
|
16
|
+
client_dir: required("client_dir"),
|
17
|
+
webpack_generated_files: required("webpack_generated_files")
|
18
|
+
)
|
13
19
|
@generated_assets_dir = generated_assets_dir
|
14
20
|
@client_dir = client_dir
|
15
21
|
@webpack_generated_files = webpack_generated_files
|
data/lib/react_on_rails/utils.rb
CHANGED
@@ -19,5 +19,11 @@ module ReactOnRails
|
|
19
19
|
File.join(ReactOnRails.configuration.generated_assets_dir,
|
20
20
|
ReactOnRails.configuration.server_bundle_js_file)
|
21
21
|
end
|
22
|
+
|
23
|
+
module Required
|
24
|
+
def required(arg_name)
|
25
|
+
raise ArgumentError, "#{arg_name} is required"
|
26
|
+
end
|
27
|
+
end
|
22
28
|
end
|
23
29
|
end
|
data/package.json
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-on-rails",
|
3
|
-
"version": "6.3.
|
3
|
+
"version": "6.3.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": {
|
7
7
|
"doc": "docs"
|
8
8
|
},
|
9
9
|
"devDependencies": {
|
10
|
-
"babel-cli": "^6.
|
11
|
-
"babel-core": "^6.
|
12
|
-
"babel-loader": "^6.2.
|
10
|
+
"babel-cli": "^6.18.0",
|
11
|
+
"babel-core": "^6.21.0",
|
12
|
+
"babel-loader": "^6.2.10",
|
13
13
|
"babel-plugin-react-transform": "^2.0.2",
|
14
|
-
"babel-plugin-transform-flow-strip-types": "^6.
|
14
|
+
"babel-plugin-transform-flow-strip-types": "^6.21.0",
|
15
15
|
"babel-plugin-transform-runtime": "^6.15.0",
|
16
|
-
"babel-preset-es2015": "^6.
|
16
|
+
"babel-preset-es2015": "^6.18.0",
|
17
17
|
"babel-preset-react": "^6.16.0",
|
18
18
|
"babel-preset-stage-0": "^6.16.0",
|
19
|
-
"babel-runtime": "^6.
|
19
|
+
"babel-runtime": "^6.20.0",
|
20
20
|
"babel-tape-runner": "^2.0.1",
|
21
|
-
"babel-types": "^6.
|
21
|
+
"babel-types": "^6.21.0",
|
22
22
|
"babelify": "^7.3.0",
|
23
23
|
"blue-tape": "^1.0.0",
|
24
|
-
"eslint": "^3.
|
25
|
-
"eslint-config-shakacode": "^13.2.
|
26
|
-
"eslint-plugin-import": "^2.0
|
24
|
+
"eslint": "^3.12.2",
|
25
|
+
"eslint-config-shakacode": "^13.2.1",
|
26
|
+
"eslint-plugin-import": "^2.2.0",
|
27
27
|
"eslint-plugin-jsx-a11y": "^2.2.3",
|
28
|
-
"eslint-plugin-react": "^6.
|
29
|
-
"flow-bin": "^0.
|
30
|
-
"jsdom": "^9.
|
31
|
-
"react": "^15.
|
32
|
-
"react-dom": "^15.
|
28
|
+
"eslint-plugin-react": "^6.8.0",
|
29
|
+
"flow-bin": "^0.37.4",
|
30
|
+
"jsdom": "^9.9.1",
|
31
|
+
"react": "^15.4.1",
|
32
|
+
"react-dom": "^15.4.1",
|
33
33
|
"react-transform-hmr": "^1.0.4",
|
34
34
|
"redux": "^3.6.0",
|
35
|
-
"release-it": "^2.
|
35
|
+
"release-it": "^2.5.2",
|
36
36
|
"tap-spec": "^4.1.1",
|
37
|
-
"tape": "^4.6.
|
38
|
-
"webpack": "^1.
|
37
|
+
"tape": "^4.6.3",
|
38
|
+
"webpack": "^1.14.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"react": ">= 0.14",
|
data/rakelib/docker.rake
CHANGED
@@ -19,10 +19,6 @@ namespace :docker do
|
|
19
19
|
sh "docker-compose run lint rake lint:eslint"
|
20
20
|
end
|
21
21
|
|
22
|
-
desc "Run jscs linter from docker"
|
23
|
-
task :jscs do
|
24
|
-
sh "docker-compose run lint rake lint:jscs"
|
25
|
-
end
|
26
22
|
desc "Run all linting from docker"
|
27
23
|
task :lint do
|
28
24
|
sh "docker-compose run lint rake lint"
|
data/react_on_rails.gemspec
CHANGED
@@ -19,6 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
+
s.required_ruby_version = '>= 2.0.0'
|
23
|
+
|
22
24
|
s.add_dependency "connection_pool"
|
23
25
|
s.add_dependency "execjs", "~> 2.5"
|
24
26
|
s.add_dependency "rainbow", "~> 2.1"
|
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.3.
|
4
|
+
version: 6.3.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-12-
|
11
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|
@@ -452,7 +452,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
452
452
|
requirements:
|
453
453
|
- - ">="
|
454
454
|
- !ruby/object:Gem::Version
|
455
|
-
version:
|
455
|
+
version: 2.0.0
|
456
456
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
457
457
|
requirements:
|
458
458
|
- - ">="
|
@@ -460,9 +460,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
460
460
|
version: '0'
|
461
461
|
requirements: []
|
462
462
|
rubyforge_project:
|
463
|
-
rubygems_version: 2.
|
463
|
+
rubygems_version: 2.6.8
|
464
464
|
signing_key:
|
465
465
|
specification_version: 4
|
466
466
|
summary: Rails with react server rendering with webpack.
|
467
467
|
test_files: []
|
468
|
-
has_rdoc:
|