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

Commit dd2fcb4

Browse files
committed
Update react-tutorial exmaple
1 parent c59b171 commit dd2fcb4

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

example/react-tutorial/Gemfile.lock

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
PATH
22
remote: ../..
33
specs:
4-
react.rb (0.0.1)
4+
react.rb (0.1.0)
55
opal (~> 0.6.0)
66
opal-activesupport
7+
sprockets-es6
8+
therubyracer
79

810
GEM
911
remote: https://rubygems.org/
1012
specs:
11-
hike (1.2.3)
13+
babel-source (4.7.16)
14+
babel-transpiler (0.6.0)
15+
babel-source (>= 4.0, < 5)
16+
execjs (~> 2.0)
17+
execjs (2.4.0)
1218
json (1.8.2)
13-
multi_json (1.10.1)
19+
libv8 (3.16.14.7)
1420
opal (0.6.3)
1521
source_map
1622
sprockets
@@ -21,19 +27,23 @@ GEM
2127
rack (1.6.0)
2228
rack-protection (1.5.3)
2329
rack
24-
react-source (0.12.2)
25-
sinatra (1.4.5)
30+
react-source (0.13.1)
31+
ref (1.0.5)
32+
sinatra (1.4.6)
2633
rack (~> 1.4)
2734
rack-protection (~> 1.4)
28-
tilt (~> 1.3, >= 1.3.4)
35+
tilt (>= 1.3, < 3)
2936
source_map (3.0.1)
3037
json
31-
sprockets (2.12.3)
32-
hike (~> 1.2)
33-
multi_json (~> 1.0)
38+
sprockets (3.0.0.rc.1)
3439
rack (~> 1.0)
35-
tilt (~> 1.1, != 1.3.0)
36-
tilt (1.4.1)
40+
sprockets-es6 (0.6.0)
41+
babel-transpiler
42+
sprockets (~> 3.0.0.beta)
43+
therubyracer (0.12.1)
44+
libv8 (~> 3.16.14.0)
45+
ref
46+
tilt (2.0.1)
3747

3848
PLATFORMS
3949
ruby

example/react-tutorial/config.ru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ get '/' do
4242
<link rel="stylesheet" href="base.css" />
4343
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
4444
<script src="http://cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js"></script>
45-
<script src="/assets/react-with-addons.min.js"></script>
45+
<script src="/assets/react-with-addons.js"></script>
4646
<script src="/assets/example.js"></script>
4747
</head>
4848
<body>

example/react-tutorial/example.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ def render
100100

101101

102102
Document.ready? do
103-
React.render React.create_element(CommentBox, url: "comments.json", poll_interval: 2000), Element.find('#content').get(0)
103+
React.render React.create_element(CommentBox, url: "comments.json", poll_interval: 2000), `document.getElementById('content')`
104104
end

0 commit comments

Comments
 (0)