webpacker-react 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/Rakefile +22 -1
- data/lib/webpacker/react/version.rb +1 -1
- metadata +2 -4
- data/lib/tasks/disable_webpacker_checks.rake +0 -7
- data/lib/tasks/example_app.rake +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e2e2a51f963c1005cd77d81ceba6cb0009ffa2c
|
4
|
+
data.tar.gz: eee2058bbd902129ea6efbbe09b0ebdaef60d6a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c76e4c19700948077880a49d4f20834d63583159656df15457cabbca9cb729c36c282c2b88e001c5b7f80f89f49dedf5b92d7898e813c5c0e2711ec178f99539
|
7
|
+
data.tar.gz: b2c510d8c6f8e2afbb7d02c0b39f429c0dde9d5030d99760786bee9e9ca8cfaca7118dbca40e87992bd3e98e3f1680d3080f3df5b469b570da6e24cd9d6fc2e0
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.3.1] - 2017-05-30
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
- Move test Rake tasks out of `lib/tasks` (fixes #33)
|
13
|
+
|
9
14
|
## [0.3.0] - 2017-05-27
|
10
15
|
|
11
16
|
### Added
|
@@ -28,7 +33,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
28
33
|
- render React components from controllers using `render react_component: 'name'` (#1 by @daninfpj)
|
29
34
|
- basic Hot Module Remplacement (#7 by @mfazekas)
|
30
35
|
|
31
|
-
[Unreleased]: https://github.com/renchap/webpacker-react/compare/v0.3.
|
36
|
+
[Unreleased]: https://github.com/renchap/webpacker-react/compare/v0.3.1...HEAD
|
37
|
+
[0.3.1]: https://github.com/renchap/webpacker-react/tree/v0.3.1
|
32
38
|
[0.3.0]: https://github.com/renchap/webpacker-react/tree/v0.3.0
|
33
39
|
[0.2.0]: https://github.com/renchap/webpacker-react/tree/v0.2.0
|
34
40
|
[0.1.0]: https://github.com/renchap/webpacker-react/tree/v0.1.0
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Webpacker-React [![CircleCI](https://circleci.com/gh/renchap/webpacker-react.svg?style=svg)](https://circleci.com/gh/renchap/webpacker-react)
|
2
2
|
|
3
|
-
*__Note:__ This is the documentation for the Git master branch. Documentation for the latest release (0.3.
|
3
|
+
*__Note:__ This is the documentation for the Git master branch. Documentation for the latest release (0.3.1) is [available here](https://github.com/renchap/webpacker-react/tree/v0.3.1).*
|
4
4
|
|
5
5
|
Webpacker-React makes it easy to use [React](https://facebook.github.io/react/) with [Webpacker](https://github.com/rails/webpacker) in your Rails applications.
|
6
6
|
|
@@ -15,7 +15,7 @@ Your Rails application needs to use Webpacker and have the React integration don
|
|
15
15
|
First, you need to add the webpacker-react gem to your Rails app Gemfile:
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem 'webpacker-react', "~> 0.3.
|
18
|
+
gem 'webpacker-react', "~> 0.3.1"
|
19
19
|
```
|
20
20
|
|
21
21
|
Once done, run `bundle` to install the gem.
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rake/testtask"
|
3
|
+
require "English"
|
3
4
|
|
4
5
|
Rake::TestTask.new(:test) do |t|
|
5
6
|
t.libs << "test"
|
@@ -10,4 +11,24 @@ end
|
|
10
11
|
|
11
12
|
task default: :test
|
12
13
|
|
13
|
-
|
14
|
+
# webpacker:check_webpack_binstubs is looking for binstubs
|
15
|
+
# in the gem root directory. We need to disable it for our
|
16
|
+
# tests, as it tries to check they exist when loading the
|
17
|
+
# example app
|
18
|
+
|
19
|
+
task "webpacker:check_webpack_binstubs"
|
20
|
+
Rake::Task["webpacker:check_webpack_binstubs"].clear
|
21
|
+
|
22
|
+
namespace :example_app do
|
23
|
+
desc "Runs yarn in test/example_app"
|
24
|
+
task :yarn do
|
25
|
+
sh "cd test/example_app && yarn"
|
26
|
+
end
|
27
|
+
|
28
|
+
desc "Runs webpack in test/example_app"
|
29
|
+
task webpack: :yarn do
|
30
|
+
sh "cd test/example_app && NODE_ENV=test ./bin/webpack"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
Rake::Task["test"].enhance ["example_app:webpack"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpacker-react
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renaud Chaput
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webpacker
|
@@ -125,8 +125,6 @@ files:
|
|
125
125
|
- javascript/webpacker_react-npm-module/src/index.js
|
126
126
|
- javascript/webpacker_react-npm-module/src/ujs.js
|
127
127
|
- javascript/webpacker_react-npm-module/yarn.lock
|
128
|
-
- lib/tasks/disable_webpacker_checks.rake
|
129
|
-
- lib/tasks/example_app.rake
|
130
128
|
- lib/webpacker/react.rb
|
131
129
|
- lib/webpacker/react/component.rb
|
132
130
|
- lib/webpacker/react/helpers.rb
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# webpacker:check_webpack_binstubs is looking for binstubs
|
2
|
-
# in the gem root directory. We need to disable it for our
|
3
|
-
# tests, as it tries to check they exist when loading the
|
4
|
-
# example app
|
5
|
-
|
6
|
-
task "webpacker:check_webpack_binstubs"
|
7
|
-
Rake::Task["webpacker:check_webpack_binstubs"].clear
|
data/lib/tasks/example_app.rake
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require "English"
|
2
|
-
|
3
|
-
namespace :example_app do
|
4
|
-
desc "Runs yarn in test/example_app"
|
5
|
-
task :yarn do
|
6
|
-
sh "cd test/example_app && yarn"
|
7
|
-
end
|
8
|
-
|
9
|
-
desc "Runs webpack in test/example_app"
|
10
|
-
task webpack: :yarn do
|
11
|
-
sh "cd test/example_app && NODE_ENV=test ./bin/webpack"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
Rake::Task["test"].enhance ["example_app:webpack"]
|