This repository was archived by the owner on Oct 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +7
-19824
lines changed Expand file tree Collapse file tree 5 files changed +7
-19824
lines changed Original file line number Diff line number Diff line change 23
23
rack (1.6.0 )
24
24
rack-protection (1.5.3 )
25
25
rack
26
+ react-source (0.12.2 )
26
27
sinatra (1.4.5 )
27
28
rack (~> 1.4 )
28
29
rack-protection (~> 1.4 )
@@ -42,5 +43,6 @@ PLATFORMS
42
43
DEPENDENCIES
43
44
opal-jquery
44
45
opal-rspec (~> 0.3.0.beta3 )
46
+ react-source (~> 0.12 )
45
47
react.rb !
46
48
sinatra
Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ require 'bundler'
2
2
Bundler . require
3
3
4
4
require "opal-rspec"
5
+ require "react/source"
5
6
6
7
Opal . append_path File . expand_path ( '../spec' , __FILE__ )
7
8
8
9
run Opal ::Server . new { |s |
9
10
s . main = 'opal/rspec/sprockets_runner'
10
11
s . append_path 'spec'
12
+ s . append_path File . dirname ( ::React ::Source . bundled_path_for ( "react-with-addons.js" ) )
11
13
s . debug = true
12
14
s . index_path = 'spec/reactjs/index.html.erb'
13
15
}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
18
18
s . add_runtime_dependency 'opal' , '~> 0.6.0'
19
19
s . add_runtime_dependency 'opal-activesupport'
20
+ s . add_development_dependency 'react-source' , '~> 0.12'
20
21
s . add_development_dependency 'opal-rspec' , '~> 0.3.0.beta3'
21
22
s . add_development_dependency 'sinatra'
22
23
s . add_development_dependency 'opal-jquery'
Original file line number Diff line number Diff line change 3
3
< head >
4
4
</ head >
5
5
< body >
6
- <%= javascript_include_tag 'reactjs/ react-with-addons.js ' %>
6
+ <%= javascript_include_tag 'react-with-addons' %>
7
7
<%= javascript_include_tag @server . main %>
8
8
< div id ="placeholder " style ="display: none "> </ div >
9
9
</ body >
10
- </ html >
10
+ </ html >
You can’t perform that action at this time.
0 commit comments