Skip to content

Commit 8426790

Browse files
committed
moved auto-import element isomorphic_helpers version and serializers
1 parent 9dce00b commit 8426790

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

ruby/hyper-component/hyper-component.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- encoding: utf-8 -*-
22
$:.push File.expand_path('../lib/', __FILE__)
3-
require 'reactive-ruby/version'
3+
require 'hyperstack/component/version'
44

55
Gem::Specification.new do |spec|
66
spec.name = 'hyper-component'

ruby/hyper-component/lib/hyper-component.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
Hyperstack.import 'browser/delay', client_only: true
77
Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS'
88
Hyperstack.import 'hyper-component' # TODO: confirm this does not break anything. Added while converting hyperloop->hyperstack
9+
Hyperstack.import 'hyperstack/component/auto-import' # TODO: confirm we can cancel the import
910

1011
if RUBY_ENGINE == 'opal'
1112
require 'native'
1213
require 'hyperstack/state/observer'
1314
require 'hyperstack/internal/component/validator'
14-
require 'react/element'
15+
require 'hyperstack/component/element'
1516
require 'hyperstack/internal/component/react_wrapper'
1617
require 'hyperstack/component'
1718
require 'hyperstack/internal/component/should_component_update'
@@ -21,18 +22,17 @@
2122
require 'hyperstack/ext/component/object'
2223
require 'hyperstack/ext/component/number'
2324
require 'hyperstack/ext/component/boolean'
24-
require 'reactive-ruby/isomorphic_helpers'
25+
require 'hyperstack/component/isomorphic_helpers'
2526
require 'hyperstack/component/react_api'
2627
require 'hyperstack/internal/component/top_level_rails_component'
27-
require 'reactive-ruby/version'
28+
require 'hyperstack/component/version'
2829
else
2930
require 'opal'
30-
3131
require 'opal-activesupport'
32-
require 'reactive-ruby/version'
32+
require 'hyperstack/component/version'
3333
require 'hyperstack/internal/component/rails'
34-
require 'reactive-ruby/isomorphic_helpers'
35-
require 'reactive-ruby/serializers'
34+
require 'hyperstack/component/isomorphic_helpers'
35+
require 'hyperstack/ext/component/serializers'
3636

3737
Opal.append_path File.expand_path('../', __FILE__).untaint
3838
require 'react/react-source'

ruby/hyper-component/lib/reactrb/auto-import.rb renamed to ruby/hyper-component/lib/hyperstack/component/auto-import.rb

File renamed without changes.
File renamed without changes.

ruby/hyper-component/lib/reactive-ruby/isomorphic_helpers.rb renamed to ruby/hyper-component/lib/hyperstack/component/isomorphic_helpers.rb

File renamed without changes.
File renamed without changes.

ruby/hyper-component/lib/reactive-ruby/serializers.rb renamed to ruby/hyper-component/lib/hyperstack/ext/component/serializers.rb

File renamed without changes.

ruby/hyper-component/spec/test_app/app/views/components.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
end
88
require 'hyperstack/component/server'
99
require 'react/test/utils'
10-
require 'reactrb/auto-import'
10+
require 'hyperstack/component/auto-import'
1111
require 'js'
1212
require 'hyper-store'
1313

0 commit comments

Comments
 (0)