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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5150a31c5fbde40b2548713ac0ea3e2b4d1132e3
4
- data.tar.gz: 7488cc85091cde5fabcc15b2d899cff4634da59e
3
+ metadata.gz: 0c7c553310c819ca91fadbba5cf5f19cd118bae9
4
+ data.tar.gz: 38dca74d91eab8f2271b048ca1f3782cd888be82
5
5
  SHA512:
6
- metadata.gz: 235d9c179e4a6de7412565380efd763182043fc68c342c7ac1c9d691bf883b520cbf6863d94ddf2732a2dc4c03f71b16a5f765d862d5b31f2b586374b22b1caa
7
- data.tar.gz: f9788e50fdbd37436428b7b1d4d2f15cb74cb053347b0d3dc87b8ebe883473385e780993af9680b8340f4df8c742a7f5357c3fd4ce9924772928f5bd8ee56038
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
- run Opal::Server.new(sprockets: sprockets_env) { |s|
11
- s.main = 'opal/rspec/sprockets_runner'
12
- sprockets_env.add_spec_paths_to_sprockets
13
- s.debug = false
14
- s.index_path = 'spec/index.html.erb'
15
- }
16
-
17
- # run Opal::Server.new { |s|
18
- # s.main = 'opal/rspec/sprockets_runner'
19
- # s.append_path 'spec'
20
- # #s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js"))
21
- # s.debug = true
22
- # s.index_path = 'spec/index.html.erb'
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  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.0
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