reactive-ruby 0.7.35 → 0.7.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/generators/reactive_ruby/test_app/templates/application.rb.erb +3 -3
- data/lib/reactive-ruby/version.rb +1 -1
- data/path_release_steps.md +2 -1
- data/reactive-ruby.gemspec +1 -1
- data/spec/react/dsl_spec.rb +23 -0
- data/spec/reactive-ruby/rails/asset_pipeline_spec.rb +9 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53fab6aeafe7118f114372c43eb59da36686edce
|
4
|
+
data.tar.gz: ae2204d49647a1dc551b31e94da088409ede0706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63cbb7816492eadb362c81f5ceceaf81b5abbf2ffbb37cc8a625a2826d2f797bec710329f01ab3c768418238b2a0fbd20dc98a37c662132a9f32acce55463629
|
7
|
+
data.tar.gz: d854e781186cf9b1f8a99fa438b36eb2803ec529d251846ee42e6a6884502db3dee79758de4c7d92e71192ad6c0d2ba7a65a6e57fe62d396887f5626416484a4
|
data/README.md
CHANGED
@@ -60,7 +60,7 @@ In your Gemfile:
|
|
60
60
|
```ruby
|
61
61
|
gem 'reactive-ruby'
|
62
62
|
gem 'react-rails', '~> 1.3.2'
|
63
|
-
gem 'opal-rails'
|
63
|
+
gem 'opal-rails', '~> 0.8.1'
|
64
64
|
gem 'therubyracer', platforms: :ruby # Required for prerendering
|
65
65
|
# for JRuby you need the below line instead
|
66
66
|
# gem 'therubyrhino, platforms: :jruby
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<% if defined? application_definition
|
2
|
-
require File.expand_path('../boot', __FILE__)
|
1
|
+
<% if defined? application_definition %>
|
3
2
|
require 'rails/all'
|
3
|
+
require File.expand_path('../boot', __FILE__)
|
4
4
|
|
5
5
|
# Require the gems listed in Gemfile, including any gems
|
6
6
|
# you've limited to :test, :development, or :production.
|
@@ -10,4 +10,4 @@ require 'opal-rails'
|
|
10
10
|
require 'reactive-ruby'
|
11
11
|
|
12
12
|
<%= application_definition %>
|
13
|
-
<% end
|
13
|
+
<% end %>
|
data/path_release_steps.md
CHANGED
@@ -4,5 +4,6 @@ For example assuming you are releasing fix to 0.8.18
|
|
4
4
|
1. Checkout 0-8-stable
|
5
5
|
2. Update tests, fix the bug and commit the changes.
|
6
6
|
3. Build & Release to RubyGems (Remember the version in version.rb should already be 0.8.19)
|
7
|
-
4. Create a tag 'v0.8.19' pointing to that commit.
|
7
|
+
4. Create a tag 'v0.8.19' pointing to that commit. (`tag v0.8.19`)
|
8
8
|
5. Bump the version in 0-8-stable to 0.8.20 so it will be ready for the next patch level release.
|
9
|
+
6. Commit the version bump, and do a `git push --tags` so the new tag goes up
|
data/reactive-ruby.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
# For Test Rails App
|
33
33
|
s.add_development_dependency 'rails', '4.2.4'
|
34
34
|
s.add_development_dependency 'react-rails', '1.3.1'
|
35
|
-
s.add_development_dependency 'opal-rails', '0.8.
|
35
|
+
s.add_development_dependency 'opal-rails', '0.8.1'
|
36
36
|
if RUBY_PLATFORM == 'java'
|
37
37
|
s.add_development_dependency 'jdbc-sqlite3'
|
38
38
|
s.add_development_dependency 'activerecord-jdbcsqlite3-adapter'
|
data/spec/react/dsl_spec.rb
CHANGED
@@ -134,5 +134,28 @@ describe 'the React DSL' do
|
|
134
134
|
|
135
135
|
expect(React.render_to_static_markup(React.create_element(Foo))).to eq('<div>Hello Goodby</div>')
|
136
136
|
end
|
137
|
+
|
138
|
+
it "will remove all elements passed as params from the rendering buffer" do
|
139
|
+
stub_const 'X2', Class.new
|
140
|
+
X2.class_eval do
|
141
|
+
include React::Component
|
142
|
+
param :ele
|
143
|
+
def render
|
144
|
+
div do
|
145
|
+
ele.render
|
146
|
+
ele.render
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
stub_const 'Test', Class.new
|
151
|
+
Test.class_eval do
|
152
|
+
include React::Component
|
153
|
+
def render
|
154
|
+
X2(ele: b { "hello" })
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
expect(React.render_to_static_markup(React.create_element(Test))).to eq('<div><b>hello</b><b>hello</b></div>')
|
159
|
+
end
|
137
160
|
end
|
138
161
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactive-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.8.
|
159
|
+
version: 0.8.1
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.8.
|
166
|
+
version: 0.8.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: sqlite3
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -364,6 +364,7 @@ files:
|
|
364
364
|
- spec/react/validator_spec.rb
|
365
365
|
- spec/reactive-ruby/component_loader_spec.rb
|
366
366
|
- spec/reactive-ruby/isomorphic_helpers_spec.rb
|
367
|
+
- spec/reactive-ruby/rails/asset_pipeline_spec.rb
|
367
368
|
- spec/reactive-ruby/rails/component_mount_spec.rb
|
368
369
|
- spec/reactive-ruby/server_rendering/contextual_renderer_spec.rb
|
369
370
|
- spec/spec_helper.rb
|
@@ -412,6 +413,7 @@ test_files:
|
|
412
413
|
- spec/react/validator_spec.rb
|
413
414
|
- spec/reactive-ruby/component_loader_spec.rb
|
414
415
|
- spec/reactive-ruby/isomorphic_helpers_spec.rb
|
416
|
+
- spec/reactive-ruby/rails/asset_pipeline_spec.rb
|
415
417
|
- spec/reactive-ruby/rails/component_mount_spec.rb
|
416
418
|
- spec/reactive-ruby/server_rendering/contextual_renderer_spec.rb
|
417
419
|
- spec/spec_helper.rb
|