react_on_rails 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
@@ -13,7 +13,7 @@
13
13
  "babel": "^6.3.26",
14
14
  "babel-cli": "^6.4.5",
15
15
  "babel-core": "^6.4.5",
16
- "babel-eslint": "^5.0.0-beta6",
16
+ "babel-eslint": "^5.0.0-beta8",
17
17
  "babel-loader": "^6.2.1",
18
18
  "babel-plugin-transform-runtime": "^6.4.3",
19
19
  "babel-preset-es2015": "^6.3.13",
@@ -28,14 +28,14 @@
28
28
  "eslint-config-shakacode": "1.0.0",
29
29
  "eslint-plugin-babel": "^3.0.0",
30
30
  "eslint-plugin-react": "^3.16.1",
31
- "jscs": "^2.8.0",
32
- "react": "^0.14.6",
33
- "react-dom": "^0.14.6",
31
+ "jsdom": "^8.0.2",
32
+ "jscs": "^2.9.0",
33
+ "react": "^0.14.7",
34
+ "react-dom": "^0.14.7",
34
35
  "react-transform-hmr": "^1.0.1",
35
36
  "tap-spec": "^4.1.1",
36
37
  "tape": "^4.4.0",
37
- "webpack": "^1.12.12",
38
- "jsdom": "^8.0.0-0"
38
+ "webpack": "^1.12.12"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">= 0.14",
@@ -51,8 +51,8 @@
51
51
  "prepublish": "npm run build",
52
52
  "build": "node_package/scripts/build",
53
53
  "build-watch": "$(npm bin)/babel --watch --out-dir node_package/lib node_package/src",
54
- "eslint": "eslint . --ext .jsx and .js",
55
- "jscs": "jscs . -e -v",
54
+ "eslint": "$(npm bin)/eslint . --ext .jsx and .js",
55
+ "jscs": "$(npm bin)/jscs . -e -v",
56
56
  "lint": "npm run eslint && npm run jscs",
57
57
  "lint:fix": "node_package/scripts/lint-fix",
58
58
  "check": "npm run lint && npm run test",
@@ -5,12 +5,7 @@ namespace :dummy_apps do
5
5
  task :dummy_app do
6
6
  dummy_app_dir = File.join(gem_root, "spec/dummy")
7
7
  bundle_install_in(dummy_app_dir)
8
- dummy_app_client_dir = File.join(dummy_app_dir, "client")
9
-
10
- # Note, we do not put in "npm build" as npm install does that!
11
- sh_in_dir(dummy_app_client_dir, ["npm install",
12
- "$(npm bin)/webpack --config webpack.server.js",
13
- "$(npm bin)/webpack --config webpack.client.js"])
8
+ sh_in_dir(dummy_app_dir, "npm install")
14
9
  end
15
10
 
16
11
  task dummy_apps: [:dummy_app, :node_package] do
@@ -4,18 +4,18 @@ include ReactOnRails::TaskHelpers
4
4
  namespace :lint do
5
5
  desc "Run Rubocop as shell"
6
6
  task :rubocop do
7
- sh_in_dir(gem_root, "rubocop .")
7
+ sh_in_dir(gem_root, "bundle exec rubocop .")
8
8
  end
9
9
 
10
10
  desc "Run ruby-lint as shell"
11
11
  task :ruby do
12
12
  puts "See /ruby-lint.yml for what directories are included."
13
- sh_in_dir(gem_root, "ruby-lint .")
13
+ sh_in_dir(gem_root, "bundle exec ruby-lint .")
14
14
  end
15
15
 
16
16
  desc "Run scss-lint as shell"
17
17
  task :scss do
18
- sh_in_dir(gem_root, "scss-lint spec/dummy/app/assets/stylesheets/")
18
+ sh_in_dir(gem_root, "bundle exec scss-lint spec/dummy/app/assets/stylesheets/")
19
19
  end
20
20
 
21
21
  desc "Run eslint as shell"
@@ -3,7 +3,7 @@ include ReactOnRails::TaskHelpers
3
3
 
4
4
  namespace :node_package do
5
5
  task :build do
6
- sh 'npm run build'
6
+ sh "npm run build"
7
7
  end
8
8
 
9
9
  desc "Has all examples and dummy apps use local node_package folder for react-on-rails node dependency"
@@ -12,14 +12,17 @@ namespace :run_rspec do
12
12
  run_tests_in("", rspec_args: File.join("spec", "react_on_rails"))
13
13
  end
14
14
 
15
+ desc "Runs dummy rspec with turbolinks"
15
16
  task dummy: ["dummy_apps:dummy_app"] do
16
- run_tests_in(File.join("spec", "dummy"), env_vars: "DRIVER=selenium_firefox")
17
+ run_tests_in(File.join("spec", "dummy"))
17
18
  end
18
19
 
20
+ desc "Runs dummy rspec without turbolinks"
19
21
  task dummy_no_turbolinks: ["dummy_apps:dummy_app"] do
20
22
  run_tests_in(File.join("spec", "dummy"),
21
- env_vars: "DRIVER=selenium_firefox DISABLE_TURBOLINKS=TRUE",
23
+ env_vars: "DISABLE_TURBOLINKS=TRUE",
22
24
  command_name: "dummy_no_turbolinks")
25
+ bundle_install_in(dummy_app_dir)
23
26
  end
24
27
 
25
28
  # Dynamically define Rake tasks for each example app found in the examples directory
@@ -24,6 +24,10 @@ module ReactOnRails
24
24
  sh_in_dir(dir, "bundle install")
25
25
  end
26
26
 
27
+ def bundle_install_in_no_turbolinks(dir)
28
+ sh_in_dir(dir, "DISABLE_TURBOLINKS=TRUE bundle install")
29
+ end
30
+
27
31
  # Runs bundle exec using that directory's Gemfile
28
32
  def bundle_exec(dir: nil, args: nil, env_vars: "")
29
33
  sh_in_dir(dir, "#{env_vars} #{args}")
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: 2.2.0
4
+ version: 2.3.0
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-01-29 00:00:00.000000000 Z
11
+ date: 2016-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool