reactive-ruby 0.7.35 → 0.7.36

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: 05ae08f2b56a80908ec8567ccc3357293ab2c7bc
4
- data.tar.gz: de11dd05910b4caed3bc5f2b2176b3884f6db348
3
+ metadata.gz: 53fab6aeafe7118f114372c43eb59da36686edce
4
+ data.tar.gz: ae2204d49647a1dc551b31e94da088409ede0706
5
5
  SHA512:
6
- metadata.gz: 538f69788b50ced92007ee30f819ddaf1696ce01c61ade058134a7ab36874da6d6de5c354b88849a69d4a7c0634603b1b45163e89e77898acb303f6b567cb6ec
7
- data.tar.gz: f9ea8686c375fb3f52e202e2bb3c1c9579336f3ae13d5260795bd479699da39361de9373d34d80a6419a523cb3c6b6ef5627c8e5f3392fa51b08086a08e61ad7
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 %>
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = "0.7.35"
2
+ VERSION = "0.7.36"
3
3
  end
@@ -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
@@ -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.0'
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'
@@ -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&nbsp;&nbsp;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
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ if ruby?
4
+ RSpec.describe 'test_app generator' do
5
+ it "does not interfer with asset precompilation" do
6
+ expect(system("cd spec/test_app; bundle exec rake assets:precompile")).to be_truthy
7
+ end
8
+ end
9
+ 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.35
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-17 00:00:00.000000000 Z
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.0
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.0
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