reactive-ruby 0.7.5 → 0.7.6
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.
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.6
|
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-08-
|
11
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -127,7 +127,6 @@ files:
|
|
127
127
|
- example/rails-tutorial/app/models/.keep
|
128
128
|
- example/rails-tutorial/app/models/concerns/.keep
|
129
129
|
- example/rails-tutorial/app/views/components.rb
|
130
|
-
- example/rails-tutorial/app/views/components/home/show.rb
|
131
130
|
- example/rails-tutorial/app/views/layouts/application.html.erb
|
132
131
|
- example/rails-tutorial/bin/bundle
|
133
132
|
- example/rails-tutorial/bin/rails
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# app/views/components/home.rb
|
2
|
-
|
3
|
-
module Components
|
4
|
-
module Home
|
5
|
-
class Show
|
6
|
-
|
7
|
-
include React::Component # will create a new component named Home
|
8
|
-
|
9
|
-
export_component # export the component name into the javascript space
|
10
|
-
|
11
|
-
def render
|
12
|
-
puts "Rendering my first component!"
|
13
|
-
"hello" # render "hello"
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|