reactrb 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -0
- data/config.ru +17 -15
- data/lib/react/hash.rb +13 -0
- data/lib/reactive-ruby/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c7c553310c819ca91fadbba5cf5f19cd118bae9
|
4
|
+
data.tar.gz: 38dca74d91eab8f2271b048ca1f3782cd888be82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6583de4e46ea0460ce2ff2a0f3c1e3e2a686f8f30ae7f29b2beaebac5006483ab5eff3013432d6073625a51373df348e14d59eaadda5e442ad2326f3dcaa23ec
|
7
|
+
data.tar.gz: 00c24c09bb98d0dcb5d80f9def713019b04cf388422e44ef73d9064745e82278c9df8dbfc668307349acf6397551fb61620b335637696ec43c15bf5d76fb642a
|
data/Gemfile
CHANGED
@@ -1,3 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
#gem 'opal-rails', git: "https://github.com/opal/opal-rails.git"
|
3
|
+
#gem 'opal', "~> 0.9.x"
|
4
|
+
#gem 'opal-rails', git: "https://github.com/reactrb/opal-rails.git"
|
5
|
+
#gem 'opal-rspec-rails', git: 'https://github.com/reactrb/opal-rspec-rails.git'
|
6
|
+
|
3
7
|
gemspec
|
data/config.ru
CHANGED
@@ -6,18 +6,20 @@ require "opal-jquery"
|
|
6
6
|
|
7
7
|
Opal.append_path File.expand_path('../spec', __FILE__)
|
8
8
|
|
9
|
-
sprockets_env = Opal::RSpec::SprocketsEnvironment.new
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
#
|
22
|
-
|
23
|
-
|
9
|
+
sprockets_env = Opal::RSpec::SprocketsEnvironment.new rescue nil
|
10
|
+
if sprockets_env
|
11
|
+
run Opal::Server.new(sprockets: sprockets_env) { |s|
|
12
|
+
s.main = 'opal/rspec/sprockets_runner'
|
13
|
+
sprockets_env.add_spec_paths_to_sprockets
|
14
|
+
s.debug = false
|
15
|
+
s.index_path = 'spec/index.html.erb'
|
16
|
+
}
|
17
|
+
else
|
18
|
+
run Opal::Server.new { |s|
|
19
|
+
s.main = 'opal/rspec/sprockets_runner'
|
20
|
+
s.append_path 'spec'
|
21
|
+
#s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
|
22
|
+
s.debug = true
|
23
|
+
s.index_path = 'spec/index.html.erb'
|
24
|
+
}
|
25
|
+
end
|
data/lib/react/hash.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
class Hash
|
2
|
+
|
3
|
+
alias_method :_pre_react_patch_initialize, :initialize
|
4
|
+
|
5
|
+
def initialize(defaults = undefined, &block)
|
6
|
+
if (`defaults===null`)
|
7
|
+
_pre_react_patch_initialize(&block)
|
8
|
+
else
|
9
|
+
_pre_react_patch_initialize(defaults, &block)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chang
|
@@ -339,6 +339,7 @@ files:
|
|
339
339
|
- lib/react/event.rb
|
340
340
|
- lib/react/ext/hash.rb
|
341
341
|
- lib/react/ext/string.rb
|
342
|
+
- lib/react/hash.rb
|
342
343
|
- lib/react/native_library.rb
|
343
344
|
- lib/react/observable.rb
|
344
345
|
- lib/react/rendering_context.rb
|