Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit ca6ba80

Browse files
committed
Depends facebook's official gem
1 parent 312294b commit ca6ba80

File tree

5 files changed

+7
-19824
lines changed

5 files changed

+7
-19824
lines changed

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ GEM
2323
rack (1.6.0)
2424
rack-protection (1.5.3)
2525
rack
26+
react-source (0.12.2)
2627
sinatra (1.4.5)
2728
rack (~> 1.4)
2829
rack-protection (~> 1.4)
@@ -42,5 +43,6 @@ PLATFORMS
4243
DEPENDENCIES
4344
opal-jquery
4445
opal-rspec (~> 0.3.0.beta3)
46+
react-source (~> 0.12)
4547
react.rb!
4648
sinatra

config.ru

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ require 'bundler'
22
Bundler.require
33

44
require "opal-rspec"
5+
require "react/source"
56

67
Opal.append_path File.expand_path('../spec', __FILE__)
78

89
run Opal::Server.new { |s|
910
s.main = 'opal/rspec/sprockets_runner'
1011
s.append_path 'spec'
12+
s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
1113
s.debug = true
1214
s.index_path = 'spec/reactjs/index.html.erb'
1315
}

react.rb.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
1717

1818
s.add_runtime_dependency 'opal', '~> 0.6.0'
1919
s.add_runtime_dependency 'opal-activesupport'
20+
s.add_development_dependency 'react-source', '~> 0.12'
2021
s.add_development_dependency 'opal-rspec', '~> 0.3.0.beta3'
2122
s.add_development_dependency 'sinatra'
2223
s.add_development_dependency 'opal-jquery'

spec/reactjs/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
</head>
55
<body>
6-
<%= javascript_include_tag 'reactjs/react-with-addons.js' %>
6+
<%= javascript_include_tag 'react-with-addons' %>
77
<%= javascript_include_tag @server.main %>
88
<div id="placeholder" style="display: none"></div>
99
</body>
10-
</html>
10+
</html>

0 commit comments

Comments
 (0)