From 81e4f2217f0b7c5bfd9f19289bf5131bc16d688c Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 20 Apr 2021 10:17:23 +0300 Subject: [PATCH 01/67] from upstream --- ruby/hyper-model/lib/active_record_base.rb | 22 ++++++++--- .../active_record/class_methods.rb | 12 ++++++ .../spec/batch1/policies/send_access_xspec.rb | 2 +- .../spec/batch6/server_method_spec.rb | 38 +++++++++++++++++++ .../connection_adapter/active_record.rb | 2 +- .../transport/connection_adapter/redis.rb | 2 +- 6 files changed, 70 insertions(+), 8 deletions(-) diff --git a/ruby/hyper-model/lib/active_record_base.rb b/ruby/hyper-model/lib/active_record_base.rb index def9de439..464aeda45 100644 --- a/ruby/hyper-model/lib/active_record_base.rb +++ b/ruby/hyper-model/lib/active_record_base.rb @@ -129,20 +129,32 @@ def finder_method(name, &block) end end - def server_method(name, _opts = {}, &block) - # callable from the server internally - define_method(name, &block) - # callable remotely from the client + def allow_remote_access_to(*methods, &block) + methods = methods.collect { |meth| meth.is_a?(Hash) ? meth.keys : meth }.flatten + methods.each do |name| define_method("__secure_remote_access_to_#{name}") do |_self, acting_user, *args| begin old = self.acting_user self.acting_user = acting_user - send(name, *args) + allowed = !block || instance_eval(&block) rescue nil + return send(name, *args) if allowed + + Hyperstack::InternalPolicy.raise_operation_access_violation( + :illegal_remote_access, "Access denied to #{name}" + ) ensure self.acting_user = old end end end + end + + def server_method(name, _opts = {}, &block) + # callable from the server internally + define_method(name, &block) + # callable remotely from the client + allow_remote_access_to(name) + end # relationships (and scopes) are regulated using a tri-state system. Each # remote access method will return the relationship as normal but will also set diff --git a/ruby/hyper-model/lib/reactive_record/active_record/class_methods.rb b/ruby/hyper-model/lib/reactive_record/active_record/class_methods.rb index e4977b83e..03c15673b 100644 --- a/ruby/hyper-model/lib/reactive_record/active_record/class_methods.rb +++ b/ruby/hyper-model/lib/reactive_record/active_record/class_methods.rb @@ -368,6 +368,18 @@ def server_method(name, default: nil) end end + def allow_remote_access_to(*methods) + methods.each do |meth| + if meth.is_a? Hash + puts "defining these guys: #{meth}" + meth.each { |name, default| server_method(name, default: default) } + else + puts "defining this guy: #{meth}" + server_method(meth) + end + end + end + # define all the methods for each column. To allow overriding the methods they will NOT # be defined if already defined (i.e. by the model) See the instance_methods module for how # super calls are handled in this case. The _hyperstack_internal_setter_... methods diff --git a/ruby/hyper-model/spec/batch1/policies/send_access_xspec.rb b/ruby/hyper-model/spec/batch1/policies/send_access_xspec.rb index dc1887651..3f8ececf3 100644 --- a/ruby/hyper-model/spec/batch1/policies/send_access_xspec.rb +++ b/ruby/hyper-model/spec/batch1/policies/send_access_xspec.rb @@ -42,7 +42,7 @@ def saved_changes it "will allow sending a relationship to a relationship or scope" it "will allow sending a server method to a model" it "will allow sending count to model" - it "will allow sending count to relationship" + it "will allow sending count to relationship" do stub_const "TestModel1Policy", Class.new TestModel1Policy.class_eval do regulate_broadcast do | policy | diff --git a/ruby/hyper-model/spec/batch6/server_method_spec.rb b/ruby/hyper-model/spec/batch6/server_method_spec.rb index 04bdba059..2889318a9 100644 --- a/ruby/hyper-model/spec/batch6/server_method_spec.rb +++ b/ruby/hyper-model/spec/batch6/server_method_spec.rb @@ -88,4 +88,42 @@ class ServerMethodTester < HyperComponent expect(TestModel.count).to be_zero expect(ChildModel.count).to be_zero end + + it "will allow remote access to methods" do + TodoItem.class_eval do + def foo + "foo" + end + + def bar + "bar" + end + + def broken + "broken" + end + + def defaulted + "defaulted" + end + end + isomorphic do + TodoItem.class_eval do + allow_remote_access_to(:foo, :bar) { acting_user.nil? } + allow_remote_access_to(:broken) { acting_user.admin? } + allow_remote_access_to(:dontcallme, defaulted: "loading") { true } + end + end + client_option raise_on_js_errors: :off + expect { TodoItem.last.foo }.on_client_to be_nil + expect { Hyperstack::Model.load { TodoItem.last.foo } }.on_client_to eq("foo") + expect { TodoItem.last.bar }.on_client_to be_nil + expect { Hyperstack::Model.load { TodoItem.last.bar } }.on_client_to eq("bar") + expect { Hyperstack::Model.load { TodoItem.last.broken } }.on_client_to be_nil + expect { TodoItem.last.defaulted }.on_client_to eq "loading" + expect { Hyperstack::Model.load { TodoItem.last.defaulted } }.on_client_to eq("defaulted") + errors = page.driver.browser.manage.logs.get(:browser).select { |m| m.level == "SEVERE" } + expect(errors.count).to eq(2) + expect(errors.first.message).to match(/the server responded with a status of 403 \(Forbidden\)/) + end end diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/active_record.rb b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/active_record.rb index f503b0c24..c1c44da2f 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/active_record.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/active_record.rb @@ -81,7 +81,7 @@ def connect_to_transport(channel, session, root_path) end def disconnect(channel) - Connection.find_by(channel: channel, session: nil).destroy + Connection.find_by(channel: channel, session: nil)&.destroy end def root_path=(path) diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis.rb b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis.rb index 766e0c389..cc1435171 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis.rb @@ -63,7 +63,7 @@ def connect_to_transport(channel, session, root_path) end def disconnect(channel) - Connection.find_by(channel: channel, session: nil).destroy + Connection.find_by(channel: channel, session: nil)&.destroy end def root_path=(path) From 8610633ea6f068a63996cd395a235604b0211c35 Mon Sep 17 00:00:00 2001 From: michail Date: Wed, 23 Jun 2021 11:36:50 +0300 Subject: [PATCH 02/67] upgrade to latest react-rails --- ruby/hyper-component/hyper-component.gemspec | 2 +- ruby/hyper-model/hyper-model.gemspec | 2 +- ruby/hyper-operation/hyper-operation.gemspec | 2 +- ruby/hyper-spec/hyper-spec.gemspec | 2 +- ruby/hyper-state/hyper-state.gemspec | 2 +- ruby/hyper-store/hyper-store.gemspec | 2 +- ruby/rails-hyperstack/rails-hyperstack.gemspec | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ruby/hyper-component/hyper-component.gemspec b/ruby/hyper-component/hyper-component.gemspec index 8239235dc..a1267d81b 100644 --- a/ruby/hyper-component/hyper-component.gemspec +++ b/ruby/hyper-component/hyper-component.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyper-state', Hyperstack::Component::VERSION spec.add_dependency 'hyperstack-config', Hyperstack::Component::VERSION spec.add_dependency 'opal-activesupport', '~> 0.3.1' - spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' + spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' spec.add_development_dependency 'bundler' spec.add_development_dependency 'chromedriver-helper' diff --git a/ruby/hyper-model/hyper-model.gemspec b/ruby/hyper-model/hyper-model.gemspec index 1cb213c15..f64f289bd 100644 --- a/ruby/hyper-model/hyper-model.gemspec +++ b/ruby/hyper-model/hyper-model.gemspec @@ -40,7 +40,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'pusher-fake' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' - spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' + spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' spec.add_development_dependency 'rspec-collection_matchers' spec.add_development_dependency 'rspec-expectations' spec.add_development_dependency 'rspec-its' diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index 1f8b4bdab..8bb2ae0d4 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -39,7 +39,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'pusher-fake' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' - spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' + spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' spec.add_development_dependency 'redis' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rspec-steps', '~> 2.1.1' diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index f2f82ea2a..eb3877e93 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -44,7 +44,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_development_dependency 'puma' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' - spec.add_development_dependency 'react-rails', '>= 2.3.0', '< 2.5.0' + spec.add_development_dependency 'react-rails', '>= 2.3.0', '< 2.7.0' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rspec-collection_matchers' spec.add_development_dependency 'rspec-expectations' diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index 000d0046e..e69b2e520 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'puma' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' - spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' + spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' spec.add_development_dependency 'rspec', '~> 3.7.0' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rspec-steps', '~> 2.1.1' diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index 922292445..faa1ac291 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -33,7 +33,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'puma' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' - spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' + spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' spec.add_development_dependency 'rspec', '~> 3.7.0' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rspec-steps', '~> 2.1.1' diff --git a/ruby/rails-hyperstack/rails-hyperstack.gemspec b/ruby/rails-hyperstack/rails-hyperstack.gemspec index f42541c2d..24305bf2c 100644 --- a/ruby/rails-hyperstack/rails-hyperstack.gemspec +++ b/ruby/rails-hyperstack/rails-hyperstack.gemspec @@ -61,7 +61,7 @@ You can control how much of the stack gets installed as well: spec.add_dependency 'opal-rails' #, '~> 2.0' spec.add_dependency 'opal-browser', '~> 0.2.0' - spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' + spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' # spec.add_dependency 'mini_racer', '~> 0.2.6' # spec.add_dependency 'libv8', '~> 7.3.492.27.1' spec.add_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' From 6da12f6660d2e5f00cc5f03ca0ba4a4b90ee502e Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 31 Aug 2021 14:17:54 +0300 Subject: [PATCH 03/67] rearrange packs --- ruby/hyperstack-config/lib/hyperstack/imports.rb | 2 ++ ruby/hyperstack-config/lib/hyperstack/js_imports.rb | 3 +++ ruby/rails-hyperstack/lib/rails-hyperstack.rb | 8 ++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ruby/hyperstack-config/lib/hyperstack/imports.rb b/ruby/hyperstack-config/lib/hyperstack/imports.rb index bbcad2745..56295fa5f 100644 --- a/ruby/hyperstack-config/lib/hyperstack/imports.rb +++ b/ruby/hyperstack-config/lib/hyperstack/imports.rb @@ -41,7 +41,9 @@ def import_tree(value, cancelled: nil, client_only: nil, server_only: nil) def cancel_import(value) return unless value + puts "cancel_import: #{value}" current_spec = import_list.detect { |old_value, *_rest| value == old_value } + pp current_spec if current_spec current_spec[1] = true else diff --git a/ruby/hyperstack-config/lib/hyperstack/js_imports.rb b/ruby/hyperstack-config/lib/hyperstack/js_imports.rb index b11427504..c3eb44ffa 100644 --- a/ruby/hyperstack-config/lib/hyperstack/js_imports.rb +++ b/ruby/hyperstack-config/lib/hyperstack/js_imports.rb @@ -3,11 +3,14 @@ class << self def js_import(value, client_only: nil, server_only: nil, defines:) defines = [*defines] if RUBY_ENGINE != 'opal' + puts "server js_import #{value}" import(value, client_only: client_only, server_only: server_only, js_import: true) else on_server = `typeof Opal.global.document === 'undefined'` return if (server_only && !on_server) || (client_only && on_server) + puts "client js_import #{value}" defines.each do |name| + #puts "#{name}: #{`Opal.global[#{name}]`}" next unless `Opal.global[#{name}] === undefined` raise "The package #{name} was not found. Add it to the webpack "\ "#{client_only ? 'client_only.js' : 'client_and_server.js'} manifest." diff --git a/ruby/rails-hyperstack/lib/rails-hyperstack.rb b/ruby/rails-hyperstack/lib/rails-hyperstack.rb index 1a167e669..aacf780bd 100644 --- a/ruby/rails-hyperstack/lib/rails-hyperstack.rb +++ b/ruby/rails-hyperstack/lib/rails-hyperstack.rb @@ -2,10 +2,10 @@ require 'rails/generators' # remove these once lap29 is released ... -Hyperstack.js_import 'react/react-source-browser', client_only: true, defines: ['ReactDOM', 'React'] -Hyperstack.js_import 'react/react-source-server', server_only: true, defines: 'React' -#Hyperstack.js_import 'hyper-router/react-router-source', defines: ['ReactRouter', 'ReactRouterDOM', 'History'] -Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS' +# Hyperstack.js_import 'react/react-source-browser', client_only: true, defines: ['ReactDOM', 'React'] +# Hyperstack.js_import 'react/react-source-server', server_only: true, defines: 'React' +# #Hyperstack.js_import 'hyper-router/react-router-source', defines: ['ReactRouter', 'ReactRouterDOM', 'History'] +# Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS' # remove above once lap29 is released ... Hyperstack.import 'hyper-router' From 2ac6512a806ff54a646eb55595af7d6f887d67a7 Mon Sep 17 00:00:00 2001 From: michail Date: Fri, 3 Sep 2021 01:01:05 +0300 Subject: [PATCH 04/67] fix form opal 1.2 opal-rails 2.0.x --- ruby/hyperstack-config/lib/hyperstack/js_imports.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby/hyperstack-config/lib/hyperstack/js_imports.rb b/ruby/hyperstack-config/lib/hyperstack/js_imports.rb index c3eb44ffa..8088dddad 100644 --- a/ruby/hyperstack-config/lib/hyperstack/js_imports.rb +++ b/ruby/hyperstack-config/lib/hyperstack/js_imports.rb @@ -10,8 +10,8 @@ def js_import(value, client_only: nil, server_only: nil, defines:) return if (server_only && !on_server) || (client_only && on_server) puts "client js_import #{value}" defines.each do |name| - #puts "#{name}: #{`Opal.global[#{name}]`}" - next unless `Opal.global[#{name}] === undefined` + puts "#{name}" #": #{`Opal.global[#{name}]`}" + next unless `Opal.global['#{name}'] === undefined` raise "The package #{name} was not found. Add it to the webpack "\ "#{client_only ? 'client_only.js' : 'client_and_server.js'} manifest." end From 7e79a70d273b6fb427b2ccb12ca84b6099e5693d Mon Sep 17 00:00:00 2001 From: michail Date: Fri, 3 Sep 2021 01:06:24 +0300 Subject: [PATCH 05/67] unexpected render (rollback rails webpacker) cleanup debug logs statements --- ruby/hyperstack-config/lib/hyperstack/imports.rb | 2 -- ruby/hyperstack-config/lib/hyperstack/js_imports.rb | 3 --- 2 files changed, 5 deletions(-) diff --git a/ruby/hyperstack-config/lib/hyperstack/imports.rb b/ruby/hyperstack-config/lib/hyperstack/imports.rb index 56295fa5f..bbcad2745 100644 --- a/ruby/hyperstack-config/lib/hyperstack/imports.rb +++ b/ruby/hyperstack-config/lib/hyperstack/imports.rb @@ -41,9 +41,7 @@ def import_tree(value, cancelled: nil, client_only: nil, server_only: nil) def cancel_import(value) return unless value - puts "cancel_import: #{value}" current_spec = import_list.detect { |old_value, *_rest| value == old_value } - pp current_spec if current_spec current_spec[1] = true else diff --git a/ruby/hyperstack-config/lib/hyperstack/js_imports.rb b/ruby/hyperstack-config/lib/hyperstack/js_imports.rb index 8088dddad..75879da49 100644 --- a/ruby/hyperstack-config/lib/hyperstack/js_imports.rb +++ b/ruby/hyperstack-config/lib/hyperstack/js_imports.rb @@ -3,14 +3,11 @@ class << self def js_import(value, client_only: nil, server_only: nil, defines:) defines = [*defines] if RUBY_ENGINE != 'opal' - puts "server js_import #{value}" import(value, client_only: client_only, server_only: server_only, js_import: true) else on_server = `typeof Opal.global.document === 'undefined'` return if (server_only && !on_server) || (client_only && on_server) - puts "client js_import #{value}" defines.each do |name| - puts "#{name}" #": #{`Opal.global[#{name}]`}" next unless `Opal.global['#{name}'] === undefined` raise "The package #{name} was not found. Add it to the webpack "\ "#{client_only ? 'client_only.js' : 'client_and_server.js'} manifest." From d8e85aa84678c157c91c22b02ff4b177141b6b14 Mon Sep 17 00:00:00 2001 From: michail Date: Wed, 15 Sep 2021 14:34:06 +0300 Subject: [PATCH 06/67] patch native components # --- .../hyperstack/internal/component/react_wrapper.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb b/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb index bc0db975c..ec7bc5840 100644 --- a/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb +++ b/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb @@ -27,16 +27,18 @@ def self.import_native_component(opal_class, native_class) @@component_classes[opal_class] = native_class end + # patched + # https://github.com/hyperstack-org/hyperstack/issues/305 def self.eval_native_react_component(name) component = `eval(name)` raise "#{name} is not defined" if `#{component} === undefined` - - component = `component.default` if `component.__esModule` + component = `component.default` if `component.__esModule && component.default` is_component_class = `#{component}.prototype !== undefined` && - (`!!#{component}.prototype.isReactComponent` || - `!!#{component}.prototype.render`) + (`!!#{component}.prototype.isReactComponent` || + `!!#{component}.prototype.render`) + is_memo = `#{component}.type != undefined` && `typeof #{component}.type.render === "function"` has_render_method = `typeof #{component}.render === "function"` - unless is_component_class || stateless?(component) || has_render_method + unless is_component_class || stateless?(component) || has_render_method || is_memo raise 'does not appear to be a native react component' end component From 46c0a5763597f2775cdd253b5fa52ea48c0c0bcf Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 25 Sep 2021 14:29:19 +0300 Subject: [PATCH 07/67] remove old chromedrivers --- ruby/hyper-component/.travis.yml | 2 -- ruby/hyper-component/hyper-component.gemspec | 1 - ruby/hyper-console/hyper-console.gemspec | 1 - ruby/hyper-i18n/.travis.yml | 2 -- ruby/hyper-i18n/hyper-i18n.gemspec | 1 - ruby/hyper-model/.travis.yml | 2 -- ruby/hyper-operation/.travis.yml | 2 -- ruby/hyper-operation/hyper-operation.gemspec | 1 - ruby/hyper-router/.travis.yml | 2 -- ruby/hyper-router/hyper-router.gemspec | 1 - ruby/hyper-spec/.travis.yml | 2 -- ruby/hyper-spec/hyper-spec.gemspec | 1 - ruby/hyper-spec/lib/hyper-spec.rb | 1 + ruby/hyper-state/.travis.yml | 2 -- ruby/hyper-state/hyper-state.gemspec | 1 - ruby/hyper-store/.travis.yml | 2 -- ruby/hyper-store/hyper-store.gemspec | 1 - ruby/hyper-trace/hyper-trace.gemspec | 1 - ruby/hyperstack-config/.travis.yml | 2 -- ruby/hyperstack-config/hyperstack-config.gemspec | 1 - ruby/rails-hyperstack/.travis.yml | 2 -- ruby/rails-hyperstack/rails-hyperstack.gemspec | 1 - 22 files changed, 1 insertion(+), 31 deletions(-) diff --git a/ruby/hyper-component/.travis.yml b/ruby/hyper-component/.travis.yml index a1eec84cf..dd10dbb47 100644 --- a/ruby/hyper-component/.travis.yml +++ b/ruby/hyper-component/.travis.yml @@ -21,8 +21,6 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ - - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi - - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-component/hyper-component.gemspec b/ruby/hyper-component/hyper-component.gemspec index a1267d81b..9cf90317b 100644 --- a/ruby/hyper-component/hyper-component.gemspec +++ b/ruby/hyper-component/hyper-component.gemspec @@ -23,7 +23,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-spec', Hyperstack::Component::VERSION spec.add_development_dependency 'jquery-rails' spec.add_development_dependency 'listen' diff --git a/ruby/hyper-console/hyper-console.gemspec b/ruby/hyper-console/hyper-console.gemspec index 1169dc908..e32c9e62a 100644 --- a/ruby/hyper-console/hyper-console.gemspec +++ b/ruby/hyper-console/hyper-console.gemspec @@ -22,7 +22,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyper-store', Hyperloop::Console::VERSION spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-component', Hyperloop::Console::VERSION spec.add_development_dependency 'hyper-operation', Hyperloop::Console::VERSION spec.add_development_dependency 'hyper-store', Hyperloop::Console::VERSION diff --git a/ruby/hyper-i18n/.travis.yml b/ruby/hyper-i18n/.travis.yml index 3c34b3436..de0bd159b 100644 --- a/ruby/hyper-i18n/.travis.yml +++ b/ruby/hyper-i18n/.travis.yml @@ -18,8 +18,6 @@ before_install: - gem install bundler before_script: - bundle install --jobs=3 --retry=3 - - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi - - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-i18n/hyper-i18n.gemspec b/ruby/hyper-i18n/hyper-i18n.gemspec index 492638eed..65086a1dc 100644 --- a/ruby/hyper-i18n/hyper-i18n.gemspec +++ b/ruby/hyper-i18n/hyper-i18n.gemspec @@ -24,7 +24,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'i18n' spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-model', Hyperstack::I18n::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::I18n::VERSION spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency diff --git a/ruby/hyper-model/.travis.yml b/ruby/hyper-model/.travis.yml index 9a5328ed2..13bad67d6 100644 --- a/ruby/hyper-model/.travis.yml +++ b/ruby/hyper-model/.travis.yml @@ -20,8 +20,6 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ - - if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver-update; fi - - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which chromedriver; fi diff --git a/ruby/hyper-operation/.travis.yml b/ruby/hyper-operation/.travis.yml index 16e36bca3..a7c93c4de 100644 --- a/ruby/hyper-operation/.travis.yml +++ b/ruby/hyper-operation/.travis.yml @@ -24,8 +24,6 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ - - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi - - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index 8bb2ae0d4..47d879443 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -26,7 +26,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'tty-table' spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'database_cleaner' spec.add_development_dependency 'hyper-spec', Hyperstack::Operation::VERSION spec.add_development_dependency 'mysql2' diff --git a/ruby/hyper-router/.travis.yml b/ruby/hyper-router/.travis.yml index 1d580b7d6..24d833891 100644 --- a/ruby/hyper-router/.travis.yml +++ b/ruby/hyper-router/.travis.yml @@ -13,8 +13,6 @@ before_script: - bundle update - bundle exec rails db:setup - cd ../../ - - chromedriver-update - - ls -lR ~/.chromedriver-helper/ script: bundle exec rspec gemfile: - gemfiles/opal_0_11_react-rails_2_4.gemfile diff --git a/ruby/hyper-router/hyper-router.gemspec b/ruby/hyper-router/hyper-router.gemspec index 6332a7485..77f9fcdc3 100644 --- a/ruby/hyper-router/hyper-router.gemspec +++ b/ruby/hyper-router/hyper-router.gemspec @@ -20,7 +20,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'opal-browser', '~> 0.2.0' spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-spec', HyperRouter::VERSION spec.add_development_dependency 'hyper-store', HyperRouter::VERSION spec.add_development_dependency 'listen' diff --git a/ruby/hyper-spec/.travis.yml b/ruby/hyper-spec/.travis.yml index 53741c3e7..350fc4e93 100644 --- a/ruby/hyper-spec/.travis.yml +++ b/ruby/hyper-spec/.travis.yml @@ -18,8 +18,6 @@ before_install: - gem install bundler before_script: - bundle install --jobs=3 --retry=3 - - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi - - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index eb3877e93..b02c201fe 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -22,7 +22,6 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_dependency 'actionview' spec.add_dependency 'capybara' - spec.add_dependency 'chromedriver-helper', '1.2.0' spec.add_dependency 'filecache' spec.add_dependency 'method_source' spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 2.0' diff --git a/ruby/hyper-spec/lib/hyper-spec.rb b/ruby/hyper-spec/lib/hyper-spec.rb index ba89a70e5..c1eb87f4e 100644 --- a/ruby/hyper-spec/lib/hyper-spec.rb +++ b/ruby/hyper-spec/lib/hyper-spec.rb @@ -4,6 +4,7 @@ require 'unparser' require 'method_source' require 'filecache' +require 'webdrivers' require 'capybara/rspec' require 'hyper-spec/internal/client_execution' diff --git a/ruby/hyper-state/.travis.yml b/ruby/hyper-state/.travis.yml index 26da32b7f..301730173 100644 --- a/ruby/hyper-state/.travis.yml +++ b/ruby/hyper-state/.travis.yml @@ -12,8 +12,6 @@ before_script: - cd spec/test_app - bundle update - cd ../../ - - chromedriver-update - - ls -lR ~/.chromedriver-helper/ script: - bundle exec rake spec gemfile: diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index e69b2e520..f09f3417b 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -20,7 +20,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyperstack-config', Hyperstack::State::VERSION spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-component', Hyperstack::State::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::State::VERSION spec.add_development_dependency 'listen' diff --git a/ruby/hyper-store/.travis.yml b/ruby/hyper-store/.travis.yml index 26da32b7f..301730173 100644 --- a/ruby/hyper-store/.travis.yml +++ b/ruby/hyper-store/.travis.yml @@ -12,8 +12,6 @@ before_script: - cd spec/test_app - bundle update - cd ../../ - - chromedriver-update - - ls -lR ~/.chromedriver-helper/ script: - bundle exec rake spec gemfile: diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index faa1ac291..9d143589c 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -21,7 +21,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyperstack-config', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-component', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'listen' diff --git a/ruby/hyper-trace/hyper-trace.gemspec b/ruby/hyper-trace/hyper-trace.gemspec index 0be02035e..d167e26c3 100644 --- a/ruby/hyper-trace/hyper-trace.gemspec +++ b/ruby/hyper-trace/hyper-trace.gemspec @@ -22,6 +22,5 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyperstack-config', HyperTrace::VERSION spec.add_development_dependency 'hyper-spec', HyperTrace::VERSION spec.add_development_dependency "bundler" - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency "rake" end diff --git a/ruby/hyperstack-config/.travis.yml b/ruby/hyperstack-config/.travis.yml index fd04071be..c1869454f 100644 --- a/ruby/hyperstack-config/.travis.yml +++ b/ruby/hyperstack-config/.travis.yml @@ -21,8 +21,6 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ - - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi - - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyperstack-config/hyperstack-config.gemspec b/ruby/hyperstack-config/hyperstack-config.gemspec index c6955534b..088d6aeb7 100644 --- a/ruby/hyperstack-config/hyperstack-config.gemspec +++ b/ruby/hyperstack-config/hyperstack-config.gemspec @@ -29,7 +29,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'websocket' # for hot loader spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' diff --git a/ruby/rails-hyperstack/.travis.yml b/ruby/rails-hyperstack/.travis.yml index 116c1cfd1..647aab049 100644 --- a/ruby/rails-hyperstack/.travis.yml +++ b/ruby/rails-hyperstack/.travis.yml @@ -18,8 +18,6 @@ before_install: - gem install bundler before_script: - bundle install --jobs=3 --retry=3 - - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi - - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/rails-hyperstack/rails-hyperstack.gemspec b/ruby/rails-hyperstack/rails-hyperstack.gemspec index 24305bf2c..339e3553c 100644 --- a/ruby/rails-hyperstack/rails-hyperstack.gemspec +++ b/ruby/rails-hyperstack/rails-hyperstack.gemspec @@ -67,7 +67,6 @@ You can control how much of the stack gets installed as well: spec.add_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'bundler' - spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-spec', Hyperstack::VERSION spec.add_development_dependency 'pry' spec.add_development_dependency 'puma' From 18a0ae3a55ed504988623af7878ec18e915af68a Mon Sep 17 00:00:00 2001 From: michail Date: Fri, 8 Oct 2021 19:29:48 +0300 Subject: [PATCH 08/67] native object does not respond to tap... --- .../lib/hyperstack/internal/component/props_wrapper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb b/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb index 0e51459d2..c5e957043 100644 --- a/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb +++ b/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb @@ -110,9 +110,9 @@ def [](prop) def fetch_from_cache(name, param_type, props) last, cached_value = cache[name] return cached_value if last.equal?(props[name]) - convert_param(name, param_type, props).tap do |value| - cache[name] = [props[name], value] - end + value = convert_param(name, param_type, props) + cache[name] = [props[name], value] + return value end def convert_param(name, param_type, props) From 81d860d368ce741705009e77da22a9bde4fadbc4 Mon Sep 17 00:00:00 2001 From: michail Date: Fri, 26 Nov 2021 16:04:31 +0200 Subject: [PATCH 09/67] update opal browser --- ruby/hyper-operation/hyper-operation.gemspec | 2 +- ruby/hyper-router/hyper-router.gemspec | 2 +- ruby/hyper-spec/hyper-spec.gemspec | 2 +- ruby/hyper-state/hyper-state.gemspec | 2 +- ruby/hyper-store/hyper-store.gemspec | 2 +- ruby/hyperstack-config/hyperstack-config.gemspec | 2 +- ruby/rails-hyperstack/rails-hyperstack.gemspec | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index 47d879443..3f9271fea 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'database_cleaner' spec.add_development_dependency 'hyper-spec', Hyperstack::Operation::VERSION spec.add_development_dependency 'mysql2' - spec.add_development_dependency 'opal-browser', '~> 0.2.0' + spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' diff --git a/ruby/hyper-router/hyper-router.gemspec b/ruby/hyper-router/hyper-router.gemspec index 77f9fcdc3..4fcca0563 100644 --- a/ruby/hyper-router/hyper-router.gemspec +++ b/ruby/hyper-router/hyper-router.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyper-component', HyperRouter::VERSION spec.add_dependency 'hyper-state', HyperRouter::VERSION - spec.add_dependency 'opal-browser', '~> 0.2.0' + spec.add_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'bundler' spec.add_development_dependency 'hyper-spec', HyperRouter::VERSION diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index b02c201fe..1a3c8062a 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -36,7 +36,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_development_dependency 'bundler' spec.add_development_dependency 'hyper-component', HyperSpec::VERSION spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency - spec.add_development_dependency 'opal-browser', '~> 0.2.0' + spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index f09f3417b..7eedccd1a 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'hyper-spec', Hyperstack::State::VERSION spec.add_development_dependency 'listen' # spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.4' - spec.add_development_dependency 'opal-browser', '~> 0.2.0' + spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index 9d143589c..73e13c30c 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'hyper-spec', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'listen' # spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.6' - spec.add_development_dependency 'opal-browser', '~> 0.2.0' + spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' diff --git a/ruby/hyperstack-config/hyperstack-config.gemspec b/ruby/hyperstack-config/hyperstack-config.gemspec index 088d6aeb7..233e7f1ac 100644 --- a/ruby/hyperstack-config/hyperstack-config.gemspec +++ b/ruby/hyperstack-config/hyperstack-config.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'listen', '~> 3.0' # for hot loader # spec.add_dependency 'mini_racer', '~> 0.2.6' spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 2.0' - spec.add_dependency 'opal-browser', '~> 0.2.0' + spec.add_dependency 'opal-browser', '>= 0.2.0' spec.add_dependency 'uglifier' spec.add_dependency 'websocket' # for hot loader diff --git a/ruby/rails-hyperstack/rails-hyperstack.gemspec b/ruby/rails-hyperstack/rails-hyperstack.gemspec index 339e3553c..2756eb3ac 100644 --- a/ruby/rails-hyperstack/rails-hyperstack.gemspec +++ b/ruby/rails-hyperstack/rails-hyperstack.gemspec @@ -60,7 +60,7 @@ You can control how much of the stack gets installed as well: spec.add_dependency 'hyperstack-config', Hyperstack::VERSION spec.add_dependency 'opal-rails' #, '~> 2.0' - spec.add_dependency 'opal-browser', '~> 0.2.0' + spec.add_dependency 'opal-browser', '>= 0.2.0' spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' # spec.add_dependency 'mini_racer', '~> 0.2.6' # spec.add_dependency 'libv8', '~> 7.3.492.27.1' From 8c2c543e1038552172806f893fbfcc066b3599e5 Mon Sep 17 00:00:00 2001 From: michail Date: Fri, 26 Nov 2021 23:45:49 +0200 Subject: [PATCH 10/67] update opal browser for 0.3.1 --- ruby/hyperstack-config/lib/hyperstack-config.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruby/hyperstack-config/lib/hyperstack-config.rb b/ruby/hyperstack-config/lib/hyperstack-config.rb index a10902fe6..9a228bffb 100644 --- a/ruby/hyperstack-config/lib/hyperstack-config.rb +++ b/ruby/hyperstack-config/lib/hyperstack-config.rb @@ -41,7 +41,9 @@ def self.naming_convention Hyperstack.define_setting :hotloader_ping, nil Hyperstack.define_setting :hotloader_ignore_callback_mapping, false Hyperstack.import 'opal', gem: true - Hyperstack.import 'browser', client_only: true + Hyperstack.import 'native', client_only: true + Hyperstack.import 'promise', client_only: true + Hyperstack.import 'browser/setup/full', client_only: true Hyperstack.import 'hyperstack-config', gem: true Hyperstack.import 'hyperstack/autoloader' Hyperstack.import 'hyperstack/autoloader_starter' From 430e45fcec09a071d9edb40bf0bc94e5b2d588e5 Mon Sep 17 00:00:00 2001 From: michail Date: Fri, 17 Dec 2021 08:38:59 +0200 Subject: [PATCH 11/67] update timecop --- ruby/hyper-component/hyper-component.gemspec | 2 +- ruby/hyper-model/hyper-model.gemspec | 2 +- ruby/hyper-operation/hyper-operation.gemspec | 2 +- ruby/hyper-router/hyper-router.gemspec | 2 +- ruby/hyper-spec/hyper-spec.gemspec | 2 +- ruby/hyper-state/hyper-state.gemspec | 2 +- ruby/hyper-store/hyper-store.gemspec | 2 +- ruby/hyperstack-config/hyperstack-config.gemspec | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ruby/hyper-component/hyper-component.gemspec b/ruby/hyper-component/hyper-component.gemspec index 9cf90317b..6134e32da 100644 --- a/ruby/hyper-component/hyper-component.gemspec +++ b/ruby/hyper-component/hyper-component.gemspec @@ -40,5 +40,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-model/hyper-model.gemspec b/ruby/hyper-model/hyper-model.gemspec index f64f289bd..00200c7b2 100644 --- a/ruby/hyper-model/hyper-model.gemspec +++ b/ruby/hyper-model/hyper-model.gemspec @@ -53,5 +53,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'shoulda-matchers' spec.add_development_dependency 'spring-commands-rspec', '~> 1.0.4' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153, '~> 1.3.6' - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index 3f9271fea..7b77bd9ca 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -44,5 +44,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rspec-wait' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-router/hyper-router.gemspec b/ruby/hyper-router/hyper-router.gemspec index 4fcca0563..980d48ffa 100644 --- a/ruby/hyper-router/hyper-router.gemspec +++ b/ruby/hyper-router/hyper-router.gemspec @@ -39,5 +39,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'shoulda' spec.add_development_dependency 'shoulda-matchers' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index 1a3c8062a..78e3592d1 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_dependency 'parser' spec.add_dependency 'rspec' spec.add_dependency 'selenium-webdriver' - spec.add_dependency 'timecop', '~> 0.8.1' + spec.add_dependency 'timecop'#, '~> 0.8.1' spec.add_dependency 'uglifier' spec.add_dependency 'unparser', '>= 0.4.2' spec.add_dependency 'webdrivers' diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index 7eedccd1a..74d888bf7 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -37,5 +37,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index 73e13c30c..e0d9ecb94 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -38,6 +38,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyperstack-config/hyperstack-config.gemspec b/ruby/hyperstack-config/hyperstack-config.gemspec index 233e7f1ac..c0f4f94ae 100644 --- a/ruby/hyperstack-config/hyperstack-config.gemspec +++ b/ruby/hyperstack-config/hyperstack-config.gemspec @@ -39,5 +39,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end From 1437eceed5a713f1d8cce7ca647336ef154f0f89 Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 14 Jun 2022 16:35:35 +0300 Subject: [PATCH 12/67] update version and add publish rake task --- HYPERSTACK_VERSION | 2 +- Rakefile | 26 +++++++++++++++++++ .../lib/hyperstack/component/version.rb | 2 +- .../lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- .../hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- .../lib/hyper-operation/version.rb | 2 +- .../lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- .../lib/hyperstack/state/version.rb | 2 +- .../lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- .../lib/hyperstack/config/version.rb | 2 +- .../lib/hyperstack/version.rb | 2 +- ruby/version.rb | 2 +- 16 files changed, 41 insertions(+), 15 deletions(-) create mode 100644 Rakefile diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index d499b98ff..f69154ba0 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -1.0.0.alpha1 +'1.0.alpha1.8.0002' diff --git a/Rakefile b/Rakefile new file mode 100644 index 000000000..0fa0f4acf --- /dev/null +++ b/Rakefile @@ -0,0 +1,26 @@ +require './ruby/version' +desc 'Publish hyperstack gems to private dir' +task :publish do + base_path = ENV['PWD'] + sh "gem", "install", "geminabox" + # hyper-console + %w{ + hyper-component +hyper-i18n +hyper-model +hyper-operation +hyper-router +hyper-spec +hyper-state +hyper-store +hyper-trace +hyperstack-config +rails-hyperstack}.each do|gem| + puts "Publishing #{gem} gem" + Dir.chdir("#{base_path}/ruby/#{gem}") do + sh 'gem' ,'build', "#{gem}.gemspec" + sh 'gem' ,'inabox' ,"#{gem}-#{Hyperstack::VERSION.tr("'",'')}.gem" ,'-g' ,"https://michail:#{ENV['GEM_SERVER_KEY']}@gems.ru.aegean.gr" + end + + end +end diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index de5a13179..00e9c44d5 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0002' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 7d7cbeb0f..756b28ca4 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 23b0d5f44..be469ef3d 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 414e46f90..ed92b0ad0 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index a5881f945..b81125c4d 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index 2a0e07d81..f9c7c3aca 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index b386e5e32..1f6ca7ef5 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 59df37dbd..af7efccc1 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index b16fd1ced..b14b5c688 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index b6ba5bb77..fcb028167 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index dff9a4eee..8731c901d 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 923640f12..f1f316d62 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8' + VERSION = '1.0.alpha1.8.0002' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 4c001ab78..d4f59ecc7 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0002' end diff --git a/ruby/version.rb b/ruby/version.rb index 3de6fcf01..3f17672fc 100644 --- a/ruby/version.rb +++ b/ruby/version.rb @@ -1,3 +1,3 @@ -module Hyperloop +module Hyperstack VERSION = File.read(File.expand_path("../HYPERSTACK_VERSION", __dir__)).strip end From 718c0bcc7d83ccea63d08a9bd36f929df3538c6b Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 14 Jun 2022 17:36:44 +0300 Subject: [PATCH 13/67] add missing files --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..fbb52ce2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.idea/ +/ruby/**/*.gem \ No newline at end of file From ac77d3436820b42c8f7c8810ebf63eddd381d2d5 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 16 Jun 2022 15:35:18 +0300 Subject: [PATCH 14/67] code layout --- Rakefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Rakefile b/Rakefile index 0fa0f4acf..9faef7f21 100644 --- a/Rakefile +++ b/Rakefile @@ -5,22 +5,22 @@ task :publish do sh "gem", "install", "geminabox" # hyper-console %w{ - hyper-component -hyper-i18n -hyper-model -hyper-operation -hyper-router -hyper-spec -hyper-state -hyper-store -hyper-trace -hyperstack-config -rails-hyperstack}.each do|gem| + hyper-component + hyper-i18n + hyper-model + hyper-operation + hyper-router + hyper-spec + hyper-state + hyper-store + hyper-trace + hyperstack-config + rails-hyperstack + }.each do|gem| puts "Publishing #{gem} gem" Dir.chdir("#{base_path}/ruby/#{gem}") do sh 'gem' ,'build', "#{gem}.gemspec" - sh 'gem' ,'inabox' ,"#{gem}-#{Hyperstack::VERSION.tr("'",'')}.gem" ,'-g' ,"https://michail:#{ENV['GEM_SERVER_KEY']}@gems.ru.aegean.gr" + sh 'gem' ,'inabox' ,"#{gem}-#{Hyperstack::VERSION.tr("'",'')}.gem" ,'-g' ,"https://michail:#{ENV['GEM_SERVER_KEY']}@gems.ru.aegean.gr" end - end end From b3f175aaccae6a1cfd11725f9bde11eb86ce24c2 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 30 Jun 2022 14:23:33 +0300 Subject: [PATCH 15/67] gem updates --- HYPERSTACK_VERSION | 2 +- Rakefile | 1 + ruby/hyper-component/hyper-component.gemspec | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/hyper-i18n.gemspec | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/hyper-model.gemspec | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/hyper-router.gemspec | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/hyper-spec.gemspec | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/hyper-state.gemspec | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/hyper-store.gemspec | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 22 files changed, 22 insertions(+), 21 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index f69154ba0..9740cc07f 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0002' +'1.0.alpha1.8.0004' diff --git a/Rakefile b/Rakefile index 9faef7f21..d17dce33b 100644 --- a/Rakefile +++ b/Rakefile @@ -19,6 +19,7 @@ task :publish do }.each do|gem| puts "Publishing #{gem} gem" Dir.chdir("#{base_path}/ruby/#{gem}") do + #sh ['bundle', 'update'] sh 'gem' ,'build', "#{gem}.gemspec" sh 'gem' ,'inabox' ,"#{gem}-#{Hyperstack::VERSION.tr("'",'')}.gem" ,'-g' ,"https://michail:#{ENV['GEM_SERVER_KEY']}@gems.ru.aegean.gr" end diff --git a/ruby/hyper-component/hyper-component.gemspec b/ruby/hyper-component/hyper-component.gemspec index 6134e32da..34f4544bb 100644 --- a/ruby/hyper-component/hyper-component.gemspec +++ b/ruby/hyper-component/hyper-component.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'jquery-rails' spec.add_development_dependency 'listen' spec.add_development_dependency 'mime-types' - spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'nokogiri' spec.add_development_dependency 'opal-jquery' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 00e9c44d5..426da5fc0 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0002' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0004' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 756b28ca4..e90b880a4 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end end diff --git a/ruby/hyper-i18n/hyper-i18n.gemspec b/ruby/hyper-i18n/hyper-i18n.gemspec index 65086a1dc..d90bd8936 100644 --- a/ruby/hyper-i18n/hyper-i18n.gemspec +++ b/ruby/hyper-i18n/hyper-i18n.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'bundler' spec.add_development_dependency 'hyper-model', Hyperstack::I18n::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::I18n::VERSION - spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0.0' spec.add_development_dependency 'pry' spec.add_development_dependency 'puma' diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index be469ef3d..3d51d3797 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index ed92b0ad0..a24ec171d 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end end diff --git a/ruby/hyper-model/hyper-model.gemspec b/ruby/hyper-model/hyper-model.gemspec index 00200c7b2..4c9a33798 100644 --- a/ruby/hyper-model/hyper-model.gemspec +++ b/ruby/hyper-model/hyper-model.gemspec @@ -30,7 +30,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'factory_bot_rails' spec.add_development_dependency 'hyper-spec', HyperModel::VERSION spec.add_development_dependency 'hyper-trace', HyperModel::VERSION - spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'pg' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index b81125c4d..7baf2e61d 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index f9c7c3aca..10d016c34 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end end diff --git a/ruby/hyper-router/hyper-router.gemspec b/ruby/hyper-router/hyper-router.gemspec index 980d48ffa..cc893a4ca 100644 --- a/ruby/hyper-router/hyper-router.gemspec +++ b/ruby/hyper-router/hyper-router.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'hyper-spec', HyperRouter::VERSION spec.add_development_dependency 'hyper-store', HyperRouter::VERSION spec.add_development_dependency 'listen' - spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0.0' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 1f6ca7ef5..e28530a25 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index 78e3592d1..9f30cd9d6 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -35,7 +35,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_development_dependency 'bundler' spec.add_development_dependency 'hyper-component', HyperSpec::VERSION - spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4' spec.add_development_dependency 'pry-rescue' diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index af7efccc1..50b5412a7 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index 74d888bf7..edc824c57 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'hyper-component', Hyperstack::State::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::State::VERSION spec.add_development_dependency 'listen' - # spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.4' + #spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.4' spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index b14b5c688..d2044e577 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end end diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index e0d9ecb94..7bd44d53b 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'hyper-component', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'listen' - # spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.6' + #spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.6' spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index fcb028167..cfbfa86f3 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 8731c901d..33d6b0af6 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index f1f316d62..330d705cd 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0002' + VERSION = '1.0.alpha1.8.0004' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index d4f59ecc7..129544c89 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0002' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0004' end From f54de063716de00e9e033511e6208deef50aa31c Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 6 Aug 2022 09:26:45 +0300 Subject: [PATCH 16/67] check use of opal promise/v2 with hyperstack --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack-config.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index 9740cc07f..e388063e2 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0004' +'1.0.alpha1.8.0004.promise.v2' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 426da5fc0..c059ea576 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0004' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0004.promise.v2' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index e90b880a4..47d9fbfee 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 3d51d3797..7abf64b2e 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index a24ec171d..9fd6758ef 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 7baf2e61d..61c3d2ce6 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index 10d016c34..675e08e14 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index e28530a25..0359dc4c7 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 50b5412a7..bd33be3fb 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index d2044e577..4f2c86fd8 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index cfbfa86f3..1030a6f55 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 33d6b0af6..9a3151bef 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end diff --git a/ruby/hyperstack-config/lib/hyperstack-config.rb b/ruby/hyperstack-config/lib/hyperstack-config.rb index 9a228bffb..05a03c34c 100644 --- a/ruby/hyperstack-config/lib/hyperstack-config.rb +++ b/ruby/hyperstack-config/lib/hyperstack-config.rb @@ -42,7 +42,7 @@ def self.naming_convention Hyperstack.define_setting :hotloader_ignore_callback_mapping, false Hyperstack.import 'opal', gem: true Hyperstack.import 'native', client_only: true - Hyperstack.import 'promise', client_only: true + Hyperstack.import 'promise/v2', client_only: true Hyperstack.import 'browser/setup/full', client_only: true Hyperstack.import 'hyperstack-config', gem: true Hyperstack.import 'hyperstack/autoloader' diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 330d705cd..85680e246 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0004' + VERSION = '1.0.alpha1.8.0004.promise.v2' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 129544c89..86d792eea 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0004' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0004.promise.v2' end From ed49ef5beabd8672e6a2523d8adb6da2d95321cd Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 9 Aug 2022 16:57:42 +0300 Subject: [PATCH 17/67] new version with promise V2 --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index e388063e2..436086300 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0004.promise.v2' +'1.0.alpha1.8.0005' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index c059ea576..87567dc61 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0004.promise.v2' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0005' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 47d9fbfee..4d2609c72 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 7abf64b2e..5e947c93b 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 9fd6758ef..fdb90137b 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 61c3d2ce6..ff0e73b11 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index 675e08e14..924c18822 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 0359dc4c7..7cc3db494 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index bd33be3fb..31637026a 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index 4f2c86fd8..c3b3e1f40 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index 1030a6f55..54ad070cc 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 9a3151bef..4073b7c5d 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 85680e246..1dee031a4 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0004.promise.v2' + VERSION = '1.0.alpha1.8.0005' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 86d792eea..02b2c8efc 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0004.promise.v2' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0005' end From 05106d97af1afe3e292a284a95919e05bd7348a4 Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 13 Sep 2022 13:08:42 +0300 Subject: [PATCH 18/67] hyperstack update for redis warning --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- .../transport/connection_adapter/redis/redis_record.rb | 4 ++-- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index 436086300..502c2f823 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0005' +'1.0.alpha1.8.0006' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 87567dc61..8bafb150d 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0005' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0006' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 4d2609c72..0eb862a4b 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 5e947c93b..e1651d361 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index fdb90137b..09ee581b9 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index ff0e73b11..987de5493 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb index c1c8440d3..ffc339f40 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb @@ -123,7 +123,7 @@ def save self.class.client.hmset("#{table_name}:#{id}", *self.class.jsonize_attributes(attributes)) unless self.class.client.smembers(table_name).include?(id) - self.class.client.sadd(table_name, id) + self.class.client.sadd?(table_name, id) end true @@ -135,7 +135,7 @@ def update(opts = {}) end def destroy - self.class.client.srem(table_name, id) + self.class.client.srem?(table_name, id) self.class.client.hdel("#{table_name}:#{id}", attributes.keys) diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index 924c18822..d8cca40cc 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 7cc3db494..624feb4eb 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 31637026a..9067269a1 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index c3b3e1f40..1d529b23e 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index 54ad070cc..88f58223e 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 4073b7c5d..721e92cc3 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 1dee031a4..b5ce679ea 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0005' + VERSION = '1.0.alpha1.8.0006' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 02b2c8efc..117ade230 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0005' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0006' end From 7582a4c21f6e63f281ab6943d087f792fa76f4e0 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 22 Dec 2022 11:18:45 +0200 Subject: [PATCH 19/67] failed to update capybara --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index 502c2f823..d407f537e 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0006' +'1.0.alpha1.8.0009' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 8bafb150d..b349f8013 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0006' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0009' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 0eb862a4b..fe6227804 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index e1651d361..8086e406b 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 09ee581b9..8341816c9 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 987de5493..740f3812b 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index d8cca40cc..f9eed06d9 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 624feb4eb..facfe42ce 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 9067269a1..0df34d052 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index 1d529b23e..b8bd934de 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index 88f58223e..eaa0d4ba9 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 721e92cc3..86e621119 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index b5ce679ea..4b2af12c0 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0006' + VERSION = '1.0.alpha1.8.0009' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 117ade230..e8cf35fce 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0006' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0009' end From 2619d4a0151d56db9cc10e7cb132d6dd453ffbde Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 6 Jul 2023 12:48:10 +0300 Subject: [PATCH 20/67] Export --- gocdci.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 gocdci.yml diff --git a/gocdci.yml b/gocdci.yml new file mode 100644 index 000000000..e69de29bb From 047061495c8fb16b0159e45b5a234f622ac86b06 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 6 Jul 2023 12:56:36 +0300 Subject: [PATCH 21/67] gocd pipeline as code --- hyperstack-tests.gocd.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hyperstack-tests.gocd.yaml diff --git a/hyperstack-tests.gocd.yaml b/hyperstack-tests.gocd.yaml new file mode 100644 index 000000000..edca06ebf --- /dev/null +++ b/hyperstack-tests.gocd.yaml @@ -0,0 +1,30 @@ +format_version: 10 +pipelines: + hyperstack-tests: + group: hyperstack + label_template: ${COUNT} + lock_behavior: none + display_order: -1 + materials: + hyperstack: + git: https://github.com/mpantel/hyperstack.git + shallow_clone: false + auto_update: true + branch: edge + stages: + - prepare: + fetch_materials: true + keep_artifacts: false + clean_workspace: false + approval: + type: success + allow_only_on_success: false + jobs: + setup: + timeout: 0 + tasks: + - exec: + arguments: + - -al + command: ls + run_if: passed From d6cdebffac99efaefdd5829aef5b4d529ddc632d Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 6 Jul 2023 14:01:20 +0300 Subject: [PATCH 22/67] add gocd configuration --- hyperstack-tests.gocd.yaml => hyperstack.gocd.yaml | 0 verify-gocd-yaml | 1 + 2 files changed, 1 insertion(+) rename hyperstack-tests.gocd.yaml => hyperstack.gocd.yaml (100%) create mode 100755 verify-gocd-yaml diff --git a/hyperstack-tests.gocd.yaml b/hyperstack.gocd.yaml similarity index 100% rename from hyperstack-tests.gocd.yaml rename to hyperstack.gocd.yaml diff --git a/verify-gocd-yaml b/verify-gocd-yaml new file mode 100755 index 000000000..5dc659c80 --- /dev/null +++ b/verify-gocd-yaml @@ -0,0 +1 @@ + docker run -it -v .:/dojo/work -e GOCDCLI_SKIP_AUTH=false kudulab/gocd-cli-dojo:yaml "gocd configrepo syntax --yaml hyperstack.gocd.yaml" From a1e874cc21436adbf0741688d3301ef07622a006 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:08:19 +0300 Subject: [PATCH 23/67] added Timecop.init method --- .travis.yml | 259 +++++++++++++++++++++++++------------------ HYPERSTACK_VERSION | 2 +- create-docker-image | 5 + hyperstack.gocd.yaml | 4 +- runall | 22 ++++ runtests | 15 +++ 6 files changed, 196 insertions(+), 111 deletions(-) create mode 100755 create-docker-image create mode 100755 runall create mode 100755 runtests diff --git a/.travis.yml b/.travis.yml index 3da3e22aa..fc3867f3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,13 @@ -dist: xenial +dist: focal + +env: + global: + - PGUSER=postgres + - PGPORT=5432 + - PGHOST=localhost addons: + postgresql: '12' apt: sources: - sourceline: 'deb http://dl.yarnpkg.com/debian/ stable main' @@ -8,12 +15,11 @@ addons: - sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main' key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub' packages: - - postgresql-11 - chromium-chromedriver - google-chrome-stable - yarn - redis-server - postgresql: '11' + - postgresql-12 _test_gem_pg: &_test_gem_pg stage: test @@ -25,11 +31,9 @@ _test_gem_pg: &_test_gem_pg - node_modules # NPM packages before_install: - - echo 'installing postgresql' - - sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf - - sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf - - sudo service postgresql stop - - sudo service postgresql start 11 + - sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf + - sudo service postgresql restart + - sleep 1 - postgres --version - sudo rm -f /usr/local/bin/yarn - nvm install 10 @@ -42,6 +46,8 @@ _test_gem_pg: &_test_gem_pg - echo before_script $COMPONENT - echo updating chrome driver - cd ruby/$COMPONENT + - echo creating psql database + - psql -c 'create database hyper_mesh_test_db;' -U postgres - bundle install --jobs=3 --retry=3 - bundle exec ruby -e 'require "webdrivers"; Webdrivers::Chromedriver.update; puts Webdrivers::Chromedriver.current_version' - ls -la ~/.webdrivers @@ -50,6 +56,7 @@ _test_gem_pg: &_test_gem_pg - google-chrome --version - which google-chrome - yarn install + script: - echo running script $COMPONENT - DRIVER=travis bundle exec rake $TASK @@ -78,12 +85,21 @@ _test_gem: &_test_gem mariadb: '10.3' services: - redis-server + before_install: - echo installing $COMPONENT + - sudo apt-get remove --purge mysql-server mysql-client mysql-common + - sudo apt-get autoremove + - sudo apt-get autoclean + - sudo rm -rf /var/lib/mysql + - sudo rm -rf /etc/mysql + - sudo apt install mariadb-server mariadb-client -y + - sudo apt-get install libmysqlclient-dev + # yarn is in /usr/local/bin/yarn version 1.3.2 and is not a package # must remove this zombie for new yarn to work - sudo rm -f /usr/local/bin/yarn - - nvm install 10 + - nvm install 14 - rvm install 2.6.3 # was 2.5.1 - gem install bundler - echo 'install completed' @@ -117,106 +133,133 @@ _deploy_gem: &_deploy_gem jobs: include: - - <<: *_test_gem - env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 + # - <<: *_test_gem + # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 - <<: *_test_gem env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part1 DB=hyper_mesh_test_db - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part2 DB=hyper_mesh_test_db - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part3 DB=hyper_mesh_test_db - - <<: *_test_gem - env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 + # - <<: *_test_gem_pg + # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part1 DB=hyper_mesh_test_db + # - <<: *_test_gem_pg + # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part2 DB=hyper_mesh_test_db + # - <<: *_test_gem_pg + # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part3 DB=hyper_mesh_test_db + # - <<: *_test_gem + # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 - - <<: *_test_gem - env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db - - <<: *_test_gem - env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' + # # - <<: *_test_gem_pg + # # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db + # # - <<: *_test_gem_pg + # # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db + # # - <<: *_test_gem_pg + # # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db + # # - <<: *_test_gem + # # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem - env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db - - <<: *_test_gem_pg - env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db - - <<: *_test_gem - env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' - - - <<: *_deploy_gem - env: COMPONENT=hyper-i18n - - <<: *_deploy_gem - env: COMPONENT=hyper-trace - - <<: *_deploy_gem - env: COMPONENT=hyper-state - - <<: *_deploy_gem - env: COMPONENT=hyper-component - - <<: *_deploy_gem - env: COMPONENT=hyper-model - - <<: *_deploy_gem - env: COMPONENT=hyper-operation - - <<: *_deploy_gem - env: COMPONENT=hyper-router - - <<: *_deploy_gem - env: COMPONENT=hyper-spec - - <<: *_deploy_gem - env: COMPONENT=hyper-store - - <<: *_deploy_gem - env: COMPONENT=rails-hyperstack - - <<: *_deploy_gem - env: COMPONENT=hyperstack-config + # - <<: *_test_gem + # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem + # env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + # - <<: *_test_gem_pg + # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part1 DB=hyper_mesh_test_db + # - <<: *_test_gem_pg + # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part2 DB=hyper_mesh_test_db + # - <<: *_test_gem_pg + # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part3 DB=hyper_mesh_test_db + # - <<: *_test_gem + # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' + + # # - <<: *_test_gem + # # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem + # # env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + # # - <<: *_test_gem_pg + # # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db + # # - <<: *_test_gem_pg + # # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db + # # - <<: *_test_gem_pg + # # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db + # # - <<: *_test_gem + # # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' + + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-i18n + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-trace + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-state + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-component + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-model + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-operation + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-router + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-spec + # # - <<: *_deploy_gem + # # env: COMPONENT=hyper-store + # # - <<: *_deploy_gem + # # env: COMPONENT=rails-hyperstack + # # - <<: *_deploy_gem + # # env: COMPONENT=hyperstack-config diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index d407f537e..17c08c28e 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0009' +'1.0.alpha1.8.0010' diff --git a/create-docker-image b/create-docker-image new file mode 100755 index 000000000..5ab9c8e74 --- /dev/null +++ b/create-docker-image @@ -0,0 +1,5 @@ +#!/bin/bash +#docker run -it -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack /bin/bash + +docker build -t ${PRIVATE_REGISTRY}/base20:hyperstack . +docker push ${PRIVATE_REGISTRY}/base20:hyperstack \ No newline at end of file diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index edca06ebf..d1680a93f 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -25,6 +25,6 @@ pipelines: tasks: - exec: arguments: - - -al - command: ls + - '' + command: runall run_if: passed diff --git a/runall b/runall new file mode 100755 index 000000000..e9b78fe15 --- /dev/null +++ b/runall @@ -0,0 +1,22 @@ +#!/bin/bash + +service postgresql restart +service mysql restart +redis-server & +sleep 1 +psql -c 'create database hyper_mesh_test_db;' -U postgres + +#DRIVER=travis COMPONENT=rails-hyperstack RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-spec RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-trace RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyperstack-config RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-state RUBY_VERSION=2.7.8 ./runtests +DRIVER=travis COMPONENT=hyper-component RUBY_VERSION=2.7.8 ./runtests + +#DRIVER=travis COMPONENT=hyper-router RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-store RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-operation RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part1 DB=hyper_mesh_test_db ./runtests +#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part2 DB=hyper_mesh_test_db ./runtests +#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part3 DB=hyper_mesh_test_db ./runtests +#DRIVER=travis COMPONENT=hyper-i18n RUBY_VERSION=2.7.8 ./runtests diff --git a/runtests b/runtests new file mode 100755 index 000000000..181b2e998 --- /dev/null +++ b/runtests @@ -0,0 +1,15 @@ +#!/bin/bash + +cd /root/hyperstack/ruby/$COMPONENT + +bundle install +yarn install + +#bundle exec chromedriver-update +mkdir -p /usr/lib/chromium-browser +bundle exec ruby -e 'require "webdrivers"; Webdrivers::Chromedriver.update; puts Webdrivers::Chromedriver.current_version' +cp ~/.webdrivers/chromedriver /usr/lib/chromium-browser/chromedriver + +bundle exec rake spec:prepare +#bundle exec rake $TASK +bundle exec rspec ./spec/deprecation_notices/render_spec.rb \ No newline at end of file From 7d879831717d04da762f227cc3f0af2e07abd34b Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:14:57 +0300 Subject: [PATCH 24/67] setup gocd pipeline --- gocdci.yml | 0 hyperstack.gocd.yaml | 4 ++++ 2 files changed, 4 insertions(+) delete mode 100644 gocdci.yml diff --git a/gocdci.yml b/gocdci.yml deleted file mode 100644 index e69de29bb..000000000 diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index d1680a93f..69b424c7e 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -1,4 +1,8 @@ format_version: 10 +environments: + test: + pipelines: + - hyperstack pipelines: hyperstack-tests: group: hyperstack From 81b8a3c120696918482f813187f9a3fd6409b916 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:18:07 +0300 Subject: [PATCH 25/67] setup gocd pipeline --- hyperstack.gocd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 69b424c7e..38bce5087 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -2,7 +2,7 @@ format_version: 10 environments: test: pipelines: - - hyperstack + - hyperstack-test pipelines: hyperstack-tests: group: hyperstack From 381c3c4718aaea42777014fc075ff30c48572560 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:19:18 +0300 Subject: [PATCH 26/67] setup gocd pipeline --- hyperstack.gocd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 38bce5087..cf9c3dd84 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -2,9 +2,9 @@ format_version: 10 environments: test: pipelines: - - hyperstack-test + - hyperstack pipelines: - hyperstack-tests: + hyperstack: group: hyperstack label_template: ${COUNT} lock_behavior: none From 75399707c4bf9fbbfb9e5dedcafbd9a43da87b21 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:20:50 +0300 Subject: [PATCH 27/67] setup gocd pipeline --- hyperstack.gocd.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index cf9c3dd84..9c0bdc488 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -28,7 +28,7 @@ pipelines: timeout: 0 tasks: - exec: - arguments: - - '' - command: runall +# arguments: +# - '' + command: ./runall run_if: passed From d1cf96d2a36f89dad5b65ff0dc0aac651d4efa7e Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:27:53 +0300 Subject: [PATCH 28/67] setup gocd pipeline --- hyperstack.gocd.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 9c0bdc488..07eadfdcd 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -28,7 +28,14 @@ pipelines: timeout: 0 tasks: - exec: -# arguments: -# - '' - command: ./runall + arguments: + - run + - -it + - -w + - /root/hyperstack + - -v + - .:/root/hyperstack + - ${PRIVATE_REGISTRY}/base20:hyperstack + - ./runall + command: docker run_if: passed From 1b63f4f0828a20c8a3d12215361b03f5e899e8fc Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:29:19 +0300 Subject: [PATCH 29/67] setup gocd pipeline --- hyperstack.gocd.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 07eadfdcd..aeb96a3ac 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -30,7 +30,6 @@ pipelines: - exec: arguments: - run - - -it - -w - /root/hyperstack - -v From 994d9695a014daef230031b96378537d6ff32323 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:32:14 +0300 Subject: [PATCH 30/67] setup gocd pipeline --- hyperstack.gocd.yaml | 18 +++++++++--------- run | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100755 run diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index aeb96a3ac..51167e298 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -28,13 +28,13 @@ pipelines: timeout: 0 tasks: - exec: - arguments: - - run - - -w - - /root/hyperstack - - -v - - .:/root/hyperstack - - ${PRIVATE_REGISTRY}/base20:hyperstack - - ./runall - command: docker +# arguments: +# - run +# - -w +# - /root/hyperstack +# - -v +# - .:/root/hyperstack +# - ${PRIVATE_REGISTRY}/base20:hyperstack +# - ./runall + command: ./run run_if: passed diff --git a/run b/run new file mode 100755 index 000000000..f0fd4fc8d --- /dev/null +++ b/run @@ -0,0 +1,2 @@ +#!/bin/bash +docker run -w /root/hyperstack -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack ./runall \ No newline at end of file From aff58b2ac07eabb1841dbf85fb294e3dcd5ae346 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:37:44 +0300 Subject: [PATCH 31/67] setup gocd pipeline --- run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run b/run index f0fd4fc8d..e4684bab3 100755 --- a/run +++ b/run @@ -1,2 +1,2 @@ #!/bin/bash -docker run -w /root/hyperstack -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack ./runall \ No newline at end of file +docker run -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack /bin/bash -c 'cd /root/hyperstack && ./runall' \ No newline at end of file From 280c7d842cf8aaf1cba63f0ad7ba73fb49b127c7 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:44:26 +0300 Subject: [PATCH 32/67] setup gocd pipeline --- run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run b/run index e4684bab3..ed6612667 100755 --- a/run +++ b/run @@ -1,2 +1,2 @@ #!/bin/bash -docker run -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack /bin/bash -c 'cd /root/hyperstack && ./runall' \ No newline at end of file +docker run -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack "/bin/bash -c \"cd /root/hyperstack && ./runall\"" \ No newline at end of file From 82d3472129c340ec855e93e109544877de1f2c35 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 15:46:46 +0300 Subject: [PATCH 33/67] setup gocd pipeline --- run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run b/run index ed6612667..1113d98d0 100755 --- a/run +++ b/run @@ -1,2 +1,2 @@ #!/bin/bash -docker run -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack "/bin/bash -c \"cd /root/hyperstack && ./runall\"" \ No newline at end of file +docker exec -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack -w /root/hyperstack ./runall \ No newline at end of file From 1205ce243484d699550da2177b1ba6801c35cc3e Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:09:59 +0300 Subject: [PATCH 34/67] setup gocd pipeline --- Dockerfile | 49 ++++++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 42 +++++++++++++++++++++++++++++++++++++ hyperstack.gocd.yaml | 14 +++++-------- run | 2 -- 4 files changed, 96 insertions(+), 11 deletions(-) create mode 100644 Dockerfile create mode 100755 docker-compose.yml delete mode 100755 run diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..5da8373af --- /dev/null +++ b/Dockerfile @@ -0,0 +1,49 @@ +ARG PRIVATE_REGISTRY=ci.ru.aegean.gr:5000 +FROM ${PRIVATE_REGISTRY}/base20:ruby + +RUN apt-get -y update && apt-get -y install mariadb-server mariadb-client libmysqlclient-dev postgresql postgresql-contrib +#RUN apt-get -y purge google-chrome-stable \ +# && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ +# && dpkg -i google-chrome*.deb \ +# && sed -i -e 's@exec -a "$0" "$HERE/chrome" "$\@"@exec -a "$0" "$HERE/chrome" "$\@" --no-sandbox --user-data-dir $HOME/chrome-dir@g' /opt/google/chrome/google-chrome + +#chrome driver +#https://stackoverflow.com/questions/50692358/how-to-work-with-a-specific-version-of-chromedriver-while-chrome-browser-gets-up +ARG RUBY_VERSION_TO_INSTALL1=2.7.8 +RUN rbenv install ${RUBY_VERSION_TO_INSTALL1} && rbenv global ${RUBY_VERSION_TO_INSTALL1} \ +&& rbenv rehash && gem install bundler + +#ARG RUBY_VERSION_TO_INSTALL2=3.0.6 +#RUN rbenv install ${RUBY_VERSION_TO_INSTALL2} && rbenv global ${RUBY_VERSION_TO_INSTALL2} \ +#&& rbenv rehash && gem install bundler +# +#ARG RUBY_VERSION_TO_INSTALL3=3.1.4 +#RUN rbenv install ${RUBY_VERSION_TO_INSTALL3} && rbenv global ${RUBY_VERSION_TO_INSTALL3} \ +#&& rbenv rehash && gem install bundler +# +#ARG RUBY_VERSION_TO_INSTALL4=3.2.2 +#RUN rbenv install ${RUBY_VERSION_TO_INSTALL4} && rbenv global ${RUBY_VERSION_TO_INSTALL4} \ +#&& rbenv rehash && gem install bundler + +ENV PGUSER=postgres +ENV PGPORT=5432 +ENV PGHOST=localhost + +RUN sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf + +RUN git config --global --add safe.directory /root/hyperstack + +## RUN apt-get purge google-chrome-stable +#RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb +#RUN dpkg -i google-chrome*.deb + +#RUN apt-get install -y chromium-chromedriver \ +## && ln -s /usr/lib/chromium-browser/chromium-browser /usr/bin/google-chrome \ +# && ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver +# pg_ctlcluster 12 main start +#RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb +#RUN apt-get install -y ./google-chrome-stable_current_amd64.deb +#RUN rm google-chrome-stable_current_amd64.deb + +#&& \ +# gem install rubygems-update && gem update --system && gem update && rbenv rehash \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100755 index 000000000..bbb821ab7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,42 @@ +version: '3.5' + +volumes: + local_gems: + external: true + name: local_gems +# rails_cache: +# node_modules: +# packs: +# packs-test: + +networks: + default: + name: development_network + driver: bridge + ipam: + driver: default + config: + - subnet: ${CONTAINER_SUBNET} + + +services: + ############################# + # Setup the base containers # + ############################# + + hyperstack: + image: ${PRIVATE_REGISTRY}/base20:hyperstack + domainname: ${BASE_TEST_DOMAIN} + hostname: hyperstack + container_name: "hyperstack" + entrypoint: ./runall + stdin_open: true + tty: true + working_dir: /root/hyperstack + environment: + BUNDLE_PATH: "/root/local_gems" + volumes: + - ${MOUNT_PATH:-..}/hyperstack:/root/hyperstack + - local_gems:/root/local_gems + networks: + default: diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 51167e298..6f7d2be02 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -28,13 +28,9 @@ pipelines: timeout: 0 tasks: - exec: -# arguments: -# - run -# - -w -# - /root/hyperstack -# - -v -# - .:/root/hyperstack -# - ${PRIVATE_REGISTRY}/base20:hyperstack -# - ./runall - command: ./run + arguments: + - compose + - run + - hyperstack + command: docker run_if: passed diff --git a/run b/run deleted file mode 100755 index 1113d98d0..000000000 --- a/run +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -docker exec -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack -w /root/hyperstack ./runall \ No newline at end of file From 262cb29e0fad0c139d2d32029ff9fb143d501348 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:14:09 +0300 Subject: [PATCH 35/67] setup gocd pipeline --- runtests | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtests b/runtests index 181b2e998..1ad1f84f0 100755 --- a/runtests +++ b/runtests @@ -11,5 +11,4 @@ bundle exec ruby -e 'require "webdrivers"; Webdrivers::Chromedriver.update; put cp ~/.webdrivers/chromedriver /usr/lib/chromium-browser/chromedriver bundle exec rake spec:prepare -#bundle exec rake $TASK -bundle exec rspec ./spec/deprecation_notices/render_spec.rb \ No newline at end of file +bundle exec rake $TASK From 7e688590b46d237cdb5c87ba36b5194cb91823b0 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:20:23 +0300 Subject: [PATCH 36/67] setup gocd pipeline --- hyperstack.gocd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 6f7d2be02..16d76b20c 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -31,6 +31,7 @@ pipelines: arguments: - compose - run + - -rm - hyperstack command: docker - run_if: passed + run_if: passed \ No newline at end of file From 5188594f46e871d0170ad6b2df5443914c65da3d Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:24:10 +0300 Subject: [PATCH 37/67] setup gocd pipeline --- hyperstack.gocd.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 16d76b20c..268a6d6a7 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -24,6 +24,19 @@ pipelines: type: success allow_only_on_success: false jobs: + cleanup: + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - -rm + - --entrypoint + - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" + - hyperstack + command: docker + run_if: passed setup: timeout: 0 tasks: From 5af68a6ffbb9980e5e253f609807378ae19bb4e3 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:28:54 +0300 Subject: [PATCH 38/67] setup gocd pipeline --- hyperstack.gocd.yaml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 268a6d6a7..7d342ec49 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -16,10 +16,10 @@ pipelines: auto_update: true branch: edge stages: - - prepare: + - execute: fetch_materials: true keep_artifacts: false - clean_workspace: false + clean_workspace: true approval: type: success allow_only_on_success: false @@ -47,4 +47,25 @@ pipelines: - -rm - hyperstack command: docker - run_if: passed \ No newline at end of file + run_if: passed +# - cleanup: +# fetch_materials: false +# keep_artifacts: false +# clean_workspace: false +# approval: +# type: any +# allow_only_on_success: false +# jobs: +# cleanup: +# timeout: 0 +# tasks: +# - exec: +# arguments: +# - compose +# - run +# - -rm +# - --entrypoint +# - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" +# - hyperstack +# command: docker +# run_if: passed \ No newline at end of file From e7679bc32c1b732ebf99726a20d414fabbcbb34f Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:34:58 +0300 Subject: [PATCH 39/67] setup gocd pipeline --- hyperstack.gocd.yaml | 64 +++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 7d342ec49..939498a3a 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -16,15 +16,36 @@ pipelines: auto_update: true branch: edge stages: - - execute: + - cleanup1: + fetch_materials: false + keep_artifacts: false + clean_workspace: false + approval: + type: any + allow_only_on_success: false + jobs: + cleanup: + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - -rm + - --entrypoint + - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" + - hyperstack + command: docker + run_if: passed + - execute: fetch_materials: true keep_artifacts: false - clean_workspace: true + clean_workspace: false approval: type: success allow_only_on_success: false jobs: - cleanup: + run: timeout: 0 tasks: - exec: @@ -32,12 +53,18 @@ pipelines: - compose - run - -rm - - --entrypoint - - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" - hyperstack command: docker run_if: passed - setup: + - cleanup: + fetch_materials: false + keep_artifacts: false + clean_workspace: false + approval: + type: any + allow_only_on_success: false + jobs: + cleanup: timeout: 0 tasks: - exec: @@ -45,27 +72,8 @@ pipelines: - compose - run - -rm + - --entrypoint + - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" - hyperstack command: docker - run_if: passed -# - cleanup: -# fetch_materials: false -# keep_artifacts: false -# clean_workspace: false -# approval: -# type: any -# allow_only_on_success: false -# jobs: -# cleanup: -# timeout: 0 -# tasks: -# - exec: -# arguments: -# - compose -# - run -# - -rm -# - --entrypoint -# - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" -# - hyperstack -# command: docker -# run_if: passed \ No newline at end of file + run_if: passed \ No newline at end of file From 8f0ff981d12620680bbfaf8ba007e5e44b6a3525 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:43:23 +0300 Subject: [PATCH 40/67] setup gocd pipeline --- hyperstack.gocd.yaml | 80 ++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 939498a3a..ab4e839af 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -17,11 +17,11 @@ pipelines: branch: edge stages: - cleanup1: - fetch_materials: false + fetch_materials: true keep_artifacts: false clean_workspace: false approval: - type: any + type: success allow_only_on_success: false jobs: cleanup: @@ -38,42 +38,42 @@ pipelines: command: docker run_if: passed - execute: - fetch_materials: true - keep_artifacts: false - clean_workspace: false - approval: - type: success - allow_only_on_success: false - jobs: - run: - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - -rm - - hyperstack - command: docker - run_if: passed + fetch_materials: true + keep_artifacts: false + clean_workspace: false + approval: + type: success + allow_only_on_success: false + jobs: + run: + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - -rm + - hyperstack + command: docker + run_if: passed - cleanup: - fetch_materials: false - keep_artifacts: false - clean_workspace: false - approval: - type: any - allow_only_on_success: false - jobs: - cleanup: - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - -rm - - --entrypoint - - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" - - hyperstack - command: docker - run_if: passed \ No newline at end of file + fetch_materials: false + keep_artifacts: false + clean_workspace: false + approval: + type: any + allow_only_on_success: false + jobs: + cleanup: + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - -rm + - --entrypoint + - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" + - hyperstack + command: docker + run_if: passed \ No newline at end of file From 8168453837df13bc7b879b4e03614b0f389f8d56 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:44:57 +0300 Subject: [PATCH 41/67] setup gocd pipeline --- hyperstack.gocd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index ab4e839af..eda4326ce 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -61,7 +61,7 @@ pipelines: keep_artifacts: false clean_workspace: false approval: - type: any + type: success allow_only_on_success: false jobs: cleanup: From e7d835338db4c58816c3ab9479694841407d8c96 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:51:34 +0300 Subject: [PATCH 42/67] setup gocd pipeline --- hyperstack.gocd.yaml | 46 ++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index eda4326ce..d7383878c 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -16,27 +16,27 @@ pipelines: auto_update: true branch: edge stages: - - cleanup1: - fetch_materials: true - keep_artifacts: false - clean_workspace: false - approval: - type: success - allow_only_on_success: false - jobs: - cleanup: - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - -rm - - --entrypoint - - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" - - hyperstack - command: docker - run_if: passed +# - cleanup1: +# fetch_materials: true +# keep_artifacts: false +# clean_workspace: false +# approval: +# type: success +# allow_only_on_success: false +# jobs: +# cleanup: +# timeout: 0 +# tasks: +# - exec: +# arguments: +# - compose +# - run +# - --rm +# - --entrypoint +# - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" +# - hyperstack +# command: docker +# run_if: passed - execute: fetch_materials: true keep_artifacts: false @@ -52,7 +52,7 @@ pipelines: arguments: - compose - run - - -rm + - --rm - hyperstack command: docker run_if: passed @@ -71,7 +71,7 @@ pipelines: arguments: - compose - run - - -rm + - --rm - --entrypoint - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" - hyperstack From f3574b0ae741ecdae2d60b41eaa9f9b66df1688e Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:55:57 +0300 Subject: [PATCH 43/67] setup gocd pipeline --- hyperstack.gocd.yaml | 42 +- ruby/hyper-component/.travis.yml | 2 + ruby/hyper-component/Gemfile | 6 +- ruby/hyper-component/hyper-component.gemspec | 11 +- .../lib/hyperstack/component/version.rb | 2 +- .../internal/component/props_wrapper.rb | 6 +- .../internal/component/react_wrapper.rb | 5 +- .../spec/active_support_spec.rb | 1 + .../spec/client_features/component_spec.rb | 8 +- .../spec/client_features/dsl_spec.rb | 2 +- .../client_features/native_library_spec.rb | 2 +- .../opal_jquery_extensions_spec.rb | 2 +- .../client_features/param_declaration_spec.rb | 12 +- .../spec/client_features/state_spec.rb | 2 +- .../param_declaration_legacy_spec.rb | 16 +- ruby/hyper-component/spec/spec_helper.rb | 11 +- .../test_app/app/assets/config/manifest.js | 1 + .../app/hyperstack/components/components.rb | 10 - .../app/xxxjavascript/packs/client_only.js | 7 + .../spec/test_app/config/application.rb | 2 +- ruby/hyper-component/spec/test_app/yarn.lock | 4 + ruby/hyper-console/hyper-console.gemspec | 1 + .../lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/.travis.yml | 2 + ruby/hyper-i18n/hyper-i18n.gemspec | 7 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- .../hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/.travis.yml | 2 + ruby/hyper-model/hyper-model.gemspec | 4 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-model/spec/spec_helper.rb | 6 +- .../test_app/app/assets/config/manifest.js | 2 + ruby/hyper-model/spec/test_app/db/schema.rb | 122 ------ ruby/hyper-operation/.travis.yml | 2 + ruby/hyper-operation/hyper-operation.gemspec | 7 +- .../connection_adapter/redis/redis_record.rb | 4 +- .../hyper-operation/transport/hyperstack.rb | 2 +- .../lib/hyper-operation/version.rb | 2 +- ruby/hyper-operation/spec/spec_helper.rb | 2 +- .../test_app/app/assets/config/manifest.js | 2 + .../spec/test_app/config/application.rb | 1 + ruby/hyper-router/.travis.yml | 2 + ruby/hyper-router/hyper-router.gemspec | 9 +- .../lib/hyperstack/router/version.rb | 2 +- .../test_app/app/assets/config/manifest.js | 3 + ruby/hyper-router/yarn.lock | 248 ++++++++++++ ruby/hyper-spec/.travis.yml | 2 + ruby/hyper-spec/Gemfile | 1 + ruby/hyper-spec/hyper-spec.gemspec | 4 +- ruby/hyper-spec/lib/hyper-spec.rb | 54 ++- .../component_test_helpers working.rbx | 365 ++++++++++++++++++ ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-spec/spec/spec_helper.rb | 1 - ruby/hyper-spec/yarn.lock | 4 + ruby/hyper-state/.travis.yml | 2 + ruby/hyper-state/hyper-state.gemspec | 9 +- .../lib/hyperstack/state/version.rb | 2 +- ruby/hyper-state/yarn.lock | 4 + ruby/hyper-store/.travis.yml | 2 + ruby/hyper-store/hyper-store.gemspec | 7 +- .../lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-store/yarn.lock | 4 + ruby/hyper-trace/hyper-trace.gemspec | 1 + ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyper-trace/yarn.lock | 4 + ruby/hyperstack-config/.travis.yml | 2 + .../hyperstack-config.gemspec | 9 +- .../lib/hyperstack-config.rb | 15 +- .../lib/hyperstack/config/version.rb | 2 +- .../native_wrapper_compatibility.rb | 2 +- .../test_app/app/assets/config/manifest.js | 1 + ruby/hyperstack-config/yarn.lock | 4 + ruby/rails-hyperstack/.ruby-version | 1 - ruby/rails-hyperstack/.travis.yml | 2 + ruby/rails-hyperstack/Gemfile | 1 + ruby/rails-hyperstack/Rakefile | 4 + .../hyperstack/server_side_auto_require.rb | 21 +- .../lib/hyperstack/version.rb | 2 +- ruby/rails-hyperstack/lib/rails-hyperstack.rb | 8 +- .../rails-hyperstack/rails-hyperstack.gemspec | 8 +- 80 files changed, 877 insertions(+), 271 deletions(-) create mode 100644 ruby/hyper-component/spec/test_app/app/xxxjavascript/packs/client_only.js create mode 100644 ruby/hyper-component/spec/test_app/yarn.lock create mode 100644 ruby/hyper-model/spec/test_app/app/assets/config/manifest.js delete mode 100644 ruby/hyper-model/spec/test_app/db/schema.rb create mode 100644 ruby/hyper-operation/spec/test_app/app/assets/config/manifest.js create mode 100644 ruby/hyper-router/spec/test_app/app/assets/config/manifest.js create mode 100644 ruby/hyper-router/yarn.lock create mode 100644 ruby/hyper-spec/lib/hyper-spec/component_test_helpers working.rbx create mode 100644 ruby/hyper-spec/yarn.lock create mode 100644 ruby/hyper-state/yarn.lock create mode 100644 ruby/hyper-store/yarn.lock create mode 100644 ruby/hyper-trace/yarn.lock create mode 100644 ruby/hyperstack-config/spec/test_app/app/assets/config/manifest.js create mode 100644 ruby/hyperstack-config/yarn.lock delete mode 100644 ruby/rails-hyperstack/.ruby-version diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index d7383878c..3c01710b3 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -16,27 +16,27 @@ pipelines: auto_update: true branch: edge stages: -# - cleanup1: -# fetch_materials: true -# keep_artifacts: false -# clean_workspace: false -# approval: -# type: success -# allow_only_on_success: false -# jobs: -# cleanup: -# timeout: 0 -# tasks: -# - exec: -# arguments: -# - compose -# - run -# - --rm -# - --entrypoint -# - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" -# - hyperstack -# command: docker -# run_if: passed + - cleanup1: + fetch_materials: true + keep_artifacts: false + clean_workspace: false + approval: + type: success + allow_only_on_success: false + jobs: + cleanup: + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - --entrypoint + - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" + - hyperstack + command: docker + run_if: passed - execute: fetch_materials: true keep_artifacts: false diff --git a/ruby/hyper-component/.travis.yml b/ruby/hyper-component/.travis.yml index dd10dbb47..a1eec84cf 100644 --- a/ruby/hyper-component/.travis.yml +++ b/ruby/hyper-component/.travis.yml @@ -21,6 +21,8 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ + - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-component/Gemfile b/ruby/hyper-component/Gemfile index 7bb59f443..052aad50c 100644 --- a/ruby/hyper-component/Gemfile +++ b/ruby/hyper-component/Gemfile @@ -4,9 +4,9 @@ gem 'hyper-spec', path: '../hyper-spec' gem 'hyperstack-config', path: '../hyperstack-config' gem 'hyper-store', path: '../hyper-store' gem 'hyper-state', path: '../hyper-state' -unless ENV['OPAL_VERSION']&.match("0.11") - gem 'opal-browser', git: 'https://github.com/opal/opal-browser' -end +# unless ENV['OPAL_VERSION']&.match("0.11") +# gem 'opal-browser', git: 'https://github.com/opal/opal-browser' +# end gem 'hyper-trace', path: '../hyper-trace' #gem 'puma', '~> 3.11.0' # As of adding, version 3.12.0 isn't working so we are locking diff --git a/ruby/hyper-component/hyper-component.gemspec b/ruby/hyper-component/hyper-component.gemspec index 34f4544bb..715207ad5 100644 --- a/ruby/hyper-component/hyper-component.gemspec +++ b/ruby/hyper-component/hyper-component.gemspec @@ -20,25 +20,26 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyper-state', Hyperstack::Component::VERSION spec.add_dependency 'hyperstack-config', Hyperstack::Component::VERSION spec.add_dependency 'opal-activesupport', '~> 0.3.1' - spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' + spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-spec', Hyperstack::Component::VERSION spec.add_development_dependency 'jquery-rails' spec.add_development_dependency 'listen' spec.add_development_dependency 'mime-types' - spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'nokogiri' spec.add_development_dependency 'opal-jquery' - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' + spec.add_development_dependency 'opal-rails' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rails-controller-testing' spec.add_development_dependency 'rake' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop', '~> 0.8.1' end diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index b349f8013..70d586c04 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0009' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0010' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb b/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb index c5e957043..0e51459d2 100644 --- a/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb +++ b/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb @@ -110,9 +110,9 @@ def [](prop) def fetch_from_cache(name, param_type, props) last, cached_value = cache[name] return cached_value if last.equal?(props[name]) - value = convert_param(name, param_type, props) - cache[name] = [props[name], value] - return value + convert_param(name, param_type, props).tap do |value| + cache[name] = [props[name], value] + end end def convert_param(name, param_type, props) diff --git a/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb b/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb index ec7bc5840..19c4f5ade 100644 --- a/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb +++ b/ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb @@ -32,10 +32,11 @@ def self.import_native_component(opal_class, native_class) def self.eval_native_react_component(name) component = `eval(name)` raise "#{name} is not defined" if `#{component} === undefined` + component = `component.default` if `component.__esModule && component.default` is_component_class = `#{component}.prototype !== undefined` && - (`!!#{component}.prototype.isReactComponent` || - `!!#{component}.prototype.render`) + (`!!#{component}.prototype.isReactComponent` || + `!!#{component}.prototype.render`) is_memo = `#{component}.type != undefined` && `typeof #{component}.type.render === "function"` has_render_method = `typeof #{component}.render === "function"` unless is_component_class || stateless?(component) || has_render_method || is_memo diff --git a/ruby/hyper-component/spec/active_support_spec.rb b/ruby/hyper-component/spec/active_support_spec.rb index 8d0546730..a7614ba5f 100644 --- a/ruby/hyper-component/spec/active_support_spec.rb +++ b/ruby/hyper-component/spec/active_support_spec.rb @@ -18,6 +18,7 @@ def payments GenericEnumerable.new([ Payment.new(5), Payment.new(15), Payment.new(10) ]) end end + expect_evaluate_ruby do { Payment.new(5) => 5, Payment.new(15) => 15, Payment.new(10) => 10 } == payments.index_with(&:price) end.to be_truthy diff --git a/ruby/hyper-component/spec/client_features/component_spec.rb b/ruby/hyper-component/spec/client_features/component_spec.rb index 8f469c40f..11093b475 100644 --- a/ruby/hyper-component/spec/client_features/component_spec.rb +++ b/ruby/hyper-component/spec/client_features/component_spec.rb @@ -542,7 +542,7 @@ class Lorem; end end Hyperstack::Component::ReactTestUtils.render_component_into_document(Foo, bar: 10, lorem: Lorem.new) end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nRequired prop `foo` was not specified\nProvided prop `bar` could not be converted to String/) end @@ -560,7 +560,7 @@ class Lorem; end end Hyperstack::Component::ReactTestUtils.render_component_into_document(Foo, foo: 10, bar: '10', lorem: Lorem.new) end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")).to_not match(/prop/) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")).to_not match(/prop/) end end @@ -597,7 +597,7 @@ class Foo Hyperstack::Component::ReactTestUtils.render_component_into_document(foo) end - expect(page.driver.browser.manage.logs.get(:browser) + expect(page.driver.browser.logs.get(:browser) .reject { |entry| entry.to_s.include?('Deprecated feature') } .reject { |entry| entry.to_s.include?('Object freezing is not supported by Opal')} .map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n").size) @@ -612,7 +612,7 @@ class Foo < Hyperloop::Component render { Foo } end end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/did you mean to say Foo()/) end end diff --git a/ruby/hyper-component/spec/client_features/dsl_spec.rb b/ruby/hyper-component/spec/client_features/dsl_spec.rb index 81aa0a60a..68daab280 100644 --- a/ruby/hyper-component/spec/client_features/dsl_spec.rb +++ b/ruby/hyper-component/spec/client_features/dsl_spec.rb @@ -182,7 +182,7 @@ class NestedComp < Hyperloop::Component class Comp; end end end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Comp does not appear to be a react component./) end diff --git a/ruby/hyper-component/spec/client_features/native_library_spec.rb b/ruby/hyper-component/spec/client_features/native_library_spec.rb index 2b1f17f3c..1d54d80ba 100644 --- a/ruby/hyper-component/spec/client_features/native_library_spec.rb +++ b/ruby/hyper-component/spec/client_features/native_library_spec.rb @@ -171,7 +171,7 @@ class Foo < Hyperstack::Component::NativeLibrary rename "MispelledComponent" => "Bar" end end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/NativeLibrary.MispelledComponent is undefined/) # TODO was testing for cannot import, but that message gets trunkated end diff --git a/ruby/hyper-component/spec/client_features/opal_jquery_extensions_spec.rb b/ruby/hyper-component/spec/client_features/opal_jquery_extensions_spec.rb index 62d7637ed..089333340 100644 --- a/ruby/hyper-component/spec/client_features/opal_jquery_extensions_spec.rb +++ b/ruby/hyper-component/spec/client_features/opal_jquery_extensions_spec.rb @@ -90,7 +90,7 @@ class Foo < Hyperloop::Component Element[JS.call(:eval, "(function () { return window; })();")] true end.to be_truthy - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .not_to match(/Exception|Error/) end diff --git a/ruby/hyper-component/spec/client_features/param_declaration_spec.rb b/ruby/hyper-component/spec/client_features/param_declaration_spec.rb index 40befc90b..7d159fb2a 100644 --- a/ruby/hyper-component/spec/client_features/param_declaration_spec.rb +++ b/ruby/hyper-component/spec/client_features/param_declaration_spec.rb @@ -125,7 +125,7 @@ class Foo < Hyperloop::Component end end expect(page.body[-60..-19]).to include('
12-string
') - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo1` could not be converted to String/) end @@ -155,7 +155,7 @@ class Foo2 < Hyperloop::Component Hyperstack::Component::ReactTestUtils.render_component_into_document(Foo2, bar: 10, lorem: Lorem.new) end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo2`\nRequired prop `foo` was not specified\nProvided prop `bar` could not be converted to String/) end @@ -171,7 +171,7 @@ class Foo < Hyperloop::Component end Hyperstack::Component::ReactTestUtils.render_component_into_document(Foo, foo: 10, bar: '10', lorem: Lorem.new) end - expect(page.driver.browser.manage.logs.get(:browser).reject { |m| m.message =~ /(D|d)eprecated/ }.map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).reject { |m| m.message =~ /(D|d)eprecated/ }.map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .not_to match(/Warning|Error/) end @@ -191,7 +191,7 @@ class Foo < Hyperloop::Component param :bar, type: [] end end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo` could not be converted to Array/) end @@ -202,7 +202,7 @@ class Foo < Hyperloop::Component param :bar, type: [String] end end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo`\[0\] could not be converted to String/) end @@ -227,7 +227,7 @@ def self._react_param_conversion(json, validate_only) end end expect(page.body[-60..-19]).to include('1, 2') - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo` could not be converted to BazWoggle/) end diff --git a/ruby/hyper-component/spec/client_features/state_spec.rb b/ruby/hyper-component/spec/client_features/state_spec.rb index e3dacde8f..29d0b9b40 100644 --- a/ruby/hyper-component/spec/client_features/state_spec.rb +++ b/ruby/hyper-component/spec/client_features/state_spec.rb @@ -40,7 +40,7 @@ class << self end expect_evaluate_ruby("MARKUP").to eq('Boom') expect_evaluate_ruby("StateTest.boom").to be_falsy - expect(page.driver.browser.manage.logs.get(:browser).reject { |entry| + expect(page.driver.browser.logs.get(:browser).reject { |entry| entry_s = entry.to_s entry_s.include?("Deprecated feature") || entry_s.include?("Mount() on the server. This is a no-op.") || diff --git a/ruby/hyper-component/spec/deprecated_features/param_declaration_legacy_spec.rb b/ruby/hyper-component/spec/deprecated_features/param_declaration_legacy_spec.rb index a7156e80b..d767b7b1b 100644 --- a/ruby/hyper-component/spec/deprecated_features/param_declaration_legacy_spec.rb +++ b/ruby/hyper-component/spec/deprecated_features/param_declaration_legacy_spec.rb @@ -49,7 +49,7 @@ def setup element = Hyperstack::Component::ReactAPI.create_element(Foo).on(:foo_submit) { 'bar' } Hyperstack::Component::ReactTestUtils.render_into_document(element) end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to_not match(/Exception raised/) end @@ -73,7 +73,7 @@ def setup element = Hyperstack::Component::ReactAPI.create_element(Foo).on(:foo_invoked) { return [1,2,3], 'bar' } Hyperstack::Component::ReactTestUtils.render_into_document(element) end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to_not match(/Exception raised/) end end @@ -199,7 +199,7 @@ class Foo < Hyperloop::Component end end expect(page.body[-60..-19]).to include('
12-string
') - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo1` could not be converted to String/) end @@ -216,7 +216,7 @@ class Foo2 < Hyperloop::Component Hyperstack::Component::ReactTestUtils.render_component_into_document(Foo2, bar: 10, lorem: Lorem.new) end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo2`\nRequired prop `foo` was not specified\nProvided prop `bar` could not be converted to String/) end @@ -233,7 +233,7 @@ class Foo < Hyperloop::Component end Hyperstack::Component::ReactTestUtils.render_component_into_document(Foo, foo: 10, bar: '10', lorem: Lorem.new) end - expect(page.driver.browser.manage.logs.get(:browser).reject { |m| m.message =~ /(D|d)eprecated/ }.map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).reject { |m| m.message =~ /(D|d)eprecated/ }.map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .not_to match(/Warning|Error/) end @@ -254,7 +254,7 @@ class Foo < Hyperloop::Component param :bar, type: [] end end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo` could not be converted to Array/) end @@ -265,7 +265,7 @@ class Foo < Hyperloop::Component param :bar, type: [String] end end - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo`\[0\] could not be converted to String/) end @@ -290,7 +290,7 @@ def self._react_param_conversion(json, validate_only) end end expect(page.body[-60..-19]).to include('1, 2') - expect(page.driver.browser.manage.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) + expect(page.driver.browser.logs.get(:browser).map { |m| m.message.gsub(/\\n/, "\n") }.to_a.join("\n")) .to match(/Warning: Failed prop( type|Type): In component `Foo`\nProvided prop `foo` could not be converted to BazWoggle/) end diff --git a/ruby/hyper-component/spec/spec_helper.rb b/ruby/hyper-component/spec/spec_helper.rb index 47c233658..2c3f55c5c 100644 --- a/ruby/hyper-component/spec/spec_helper.rb +++ b/ruby/hyper-component/spec/spec_helper.rb @@ -1,7 +1,6 @@ ENV["RAILS_ENV"] ||= 'test' require 'opal' -#require 'opal-rspec' require 'opal-jquery' begin @@ -12,10 +11,8 @@ require 'rspec/rails' require 'hyper-spec' require 'pry' -require 'opal-browser' require 'timecop' - RSpec.configure do |config| config.color = true config.fail_fast = ENV['FAIL_FAST'] || false @@ -51,13 +48,13 @@ # Fail tests on JavaScript errors in Chrome Headless class JavaScriptError < StandardError; end - config.after(:each, js: true) do |spec| - logs = page.driver.browser.manage.logs.get(:browser) + config.after(:each, js: true) do + logs = page.driver.browser.logs.get(:browser) errors = logs.select { |e| e.level == "SEVERE" && e.message.present? } - .map { |m| m.message.gsub(/\\n/, "\n") }.to_a + .map { |m| m.message.gsub(/\\n/, "\n") }.to_a if client_options[:deprecation_warnings] == :on warnings = logs.select { |e| e.level == "WARNING" && e.message.present? } - .map { |m| m.message.gsub(/\\n/, "\n") }.to_a + .map { |m| m.message.gsub(/\\n/, "\n") }.to_a puts "\033[0;33;1m\nJavascript client console warnings:\n\n" + warnings.join("\n\n") + "\033[0;30;21m" if warnings.present? end unless client_options[:raise_on_js_errors] == :off diff --git a/ruby/hyper-component/spec/test_app/app/assets/config/manifest.js b/ruby/hyper-component/spec/test_app/app/assets/config/manifest.js index b16e53d6d..27de0df30 100644 --- a/ruby/hyper-component/spec/test_app/app/assets/config/manifest.js +++ b/ruby/hyper-component/spec/test_app/app/assets/config/manifest.js @@ -1,3 +1,4 @@ //= link_tree ../images //= link_directory ../javascripts .js +//= link application.css //= link_directory ../stylesheets .css diff --git a/ruby/hyper-component/spec/test_app/app/hyperstack/components/components.rb b/ruby/hyper-component/spec/test_app/app/hyperstack/components/components.rb index 87bfdc23a..edac28d18 100644 --- a/ruby/hyper-component/spec/test_app/app/hyperstack/components/components.rb +++ b/ruby/hyper-component/spec/test_app/app/hyperstack/components/components.rb @@ -1,14 +1,4 @@ -# require 'hyper-component' -# if Hyperstack::Component::IsomorphicHelpers.on_opal_client? -# require 'browser' -# require 'browser/delay' -# #require 'react/ext/opal-jquery/element' -# require 'hyperstack/component/jquery' -# end -# require 'hyperstack/component/server' -# require 'hyperstack/component/auto-import' require 'js' -# require 'hyper-store' require 'hyperstack/internal/component/haml' # these mechanisms are deprecated in favor of using the features of hyper-spec. However diff --git a/ruby/hyper-component/spec/test_app/app/xxxjavascript/packs/client_only.js b/ruby/hyper-component/spec/test_app/app/xxxjavascript/packs/client_only.js new file mode 100644 index 000000000..52f446dd4 --- /dev/null +++ b/ruby/hyper-component/spec/test_app/app/xxxjavascript/packs/client_only.js @@ -0,0 +1,7 @@ +//app/javascript/packs/client_only.js +// add any requires for packages that will run client side only +ReactDOM = require('react-dom'); // react-js client side code +jQuery = require('jquery'); // remove if you don't need jQuery +// to add additional NPM packages call run yarn add package-name@version +// then add the require here. + diff --git a/ruby/hyper-component/spec/test_app/config/application.rb b/ruby/hyper-component/spec/test_app/config/application.rb index 383ddfaec..1b198059e 100644 --- a/ruby/hyper-component/spec/test_app/config/application.rb +++ b/ruby/hyper-component/spec/test_app/config/application.rb @@ -5,7 +5,7 @@ # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups(assets: %w(development test))) -# require 'jquery-rails' +require 'jquery-rails' # require 'opal' # require 'opal-jquery' # require 'opal-browser' diff --git a/ruby/hyper-component/spec/test_app/yarn.lock b/ruby/hyper-component/spec/test_app/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-component/spec/test_app/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-console/hyper-console.gemspec b/ruby/hyper-console/hyper-console.gemspec index e32c9e62a..1169dc908 100644 --- a/ruby/hyper-console/hyper-console.gemspec +++ b/ruby/hyper-console/hyper-console.gemspec @@ -22,6 +22,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyper-store', Hyperloop::Console::VERSION spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-component', Hyperloop::Console::VERSION spec.add_development_dependency 'hyper-operation', Hyperloop::Console::VERSION spec.add_development_dependency 'hyper-store', Hyperloop::Console::VERSION diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index fe6227804..ebee1c300 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end end diff --git a/ruby/hyper-i18n/.travis.yml b/ruby/hyper-i18n/.travis.yml index de0bd159b..3c34b3436 100644 --- a/ruby/hyper-i18n/.travis.yml +++ b/ruby/hyper-i18n/.travis.yml @@ -18,6 +18,8 @@ before_install: - gem install bundler before_script: - bundle install --jobs=3 --retry=3 + - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-i18n/hyper-i18n.gemspec b/ruby/hyper-i18n/hyper-i18n.gemspec index d90bd8936..e633da327 100644 --- a/ruby/hyper-i18n/hyper-i18n.gemspec +++ b/ruby/hyper-i18n/hyper-i18n.gemspec @@ -24,12 +24,13 @@ Gem::Specification.new do |spec| spec.add_dependency 'i18n' spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-model', Hyperstack::I18n::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::I18n::VERSION - spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0.0' + spec.add_development_dependency 'mini_racer' # , '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'opal-rails' spec.add_development_dependency 'pry' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'rake', '~> 10.0' spec.add_development_dependency 'rspec' spec.add_development_dependency 'rspec-rails' diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 8086e406b..3537f90d2 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 8341816c9..7e4bb57f1 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end end diff --git a/ruby/hyper-model/.travis.yml b/ruby/hyper-model/.travis.yml index 13bad67d6..9a5328ed2 100644 --- a/ruby/hyper-model/.travis.yml +++ b/ruby/hyper-model/.travis.yml @@ -20,6 +20,8 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ + - if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver-update; fi + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which chromedriver; fi diff --git a/ruby/hyper-model/hyper-model.gemspec b/ruby/hyper-model/hyper-model.gemspec index 4c9a33798..0f921f6c1 100644 --- a/ruby/hyper-model/hyper-model.gemspec +++ b/ruby/hyper-model/hyper-model.gemspec @@ -32,10 +32,10 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'hyper-trace', HyperModel::VERSION spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'pg' - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' + spec.add_development_dependency 'opal-rails' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'pusher' spec.add_development_dependency 'pusher-fake' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 740f3812b..2e8d2d097 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end diff --git a/ruby/hyper-model/spec/spec_helper.rb b/ruby/hyper-model/spec/spec_helper.rb index b860162e1..28c895a47 100644 --- a/ruby/hyper-model/spec/spec_helper.rb +++ b/ruby/hyper-model/spec/spec_helper.rb @@ -176,7 +176,7 @@ def finished_all_ajax_requests? module CheckErrors def check_errors - logs = page.driver.browser.manage.logs.get(:browser) + logs = page.driver.browser.logs.get(:browser) errors = logs.select { |e| e.level == "SEVERE" && e.message.present? } .map { |m| m.message.gsub(/\\n/, "\n") }.to_a puts "WARNING - FOUND UNEXPECTED ERRORS #{errors}" if errors.present? @@ -308,7 +308,7 @@ class << self class JavaScriptError < StandardError; end config.after(:each, js: true) do |spec| - logs = page.driver.browser.manage.logs.get(:browser) + logs = page.driver.browser.logs.get(:browser) if spec.exception all_messages = logs.select { |e| e.message.present? } .map { |m| m.message.gsub(/\\n/, "\n") }.to_a @@ -336,7 +336,7 @@ class JavaScriptError < StandardError; end # Capybara.register_driver :chrome do |app| # #caps = Selenium::WebDriver::Remote::Capabilities.chrome("chromeOptions" => {"excludeSwitches" => [ "ignore-certificate-errors" ]}) # caps = Selenium::WebDriver::Remote::Capabilities.chrome("chromeOptions" => {"args" => [ "--window-size=200,200" ]}) - # Capybara::Selenium::Driver.new(app, :browser => :chrome, :desired_capabilities => caps) + # Capybara::Selenium::Driver.new(app, :browser => :chrome, :capabilities => caps) # end # Use legacy hyper-spec on_client behavior diff --git a/ruby/hyper-model/spec/test_app/app/assets/config/manifest.js b/ruby/hyper-model/spec/test_app/app/assets/config/manifest.js new file mode 100644 index 000000000..9c361e667 --- /dev/null +++ b/ruby/hyper-model/spec/test_app/app/assets/config/manifest.js @@ -0,0 +1,2 @@ + //= link_directory ../javascripts .js + //= link_directory ../stylesheets .css \ No newline at end of file diff --git a/ruby/hyper-model/spec/test_app/db/schema.rb b/ruby/hyper-model/spec/test_app/db/schema.rb deleted file mode 100644 index 82639473f..000000000 --- a/ruby/hyper-model/spec/test_app/db/schema.rb +++ /dev/null @@ -1,122 +0,0 @@ -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# This file is the source Rails uses to define your schema when running `rails -# db:schema:load`. When creating a new database, `rails db:schema:load` tends to -# be faster and is potentially less error prone than running all of your -# migrations from scratch. Old migrations may fail to apply correctly if those -# migrations use external dependencies or application code. -# -# It's strongly recommended that you check this file into your version control system. - -ActiveRecord::Schema.define(version: 2021_02_28_200459) do - - # These are extensions that must be enabled in order to support this database - enable_extension "plpgsql" - - create_table "addresses", force: :cascade do |t| - t.string "street" - t.string "city" - t.string "state" - t.string "zip" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "bones", force: :cascade do |t| - t.integer "dog_id" - end - - create_table "child_models", force: :cascade do |t| - t.string "child_attribute" - t.bigint "test_model_id" - t.index ["test_model_id"], name: "index_child_models_on_test_model_id" - end - - create_table "comments", force: :cascade do |t| - t.text "comment" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.bigint "todo_id" - t.bigint "author_id" - t.integer "user_id" - t.integer "todo_item_id" - t.index ["author_id"], name: "index_comments_on_author_id" - t.index ["todo_id"], name: "index_comments_on_todo_id" - end - - create_table "hyperstack_connections", force: :cascade do |t| - t.string "channel" - t.string "session" - t.datetime "created_at" - t.datetime "expires_at" - t.datetime "refresh_at" - end - - create_table "hyperstack_queued_messages", force: :cascade do |t| - t.text "data" - t.integer "connection_id" - end - - create_table "pets", force: :cascade do |t| - t.integer "owner_id" - end - - create_table "scratching_posts", force: :cascade do |t| - t.integer "cat_id" - end - - create_table "test_models", force: :cascade do |t| - t.string "test_attribute" - t.boolean "completed" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "todo_items", force: :cascade do |t| - t.string "title" - t.text "description" - t.boolean "complete" - t.datetime "created_at" - t.datetime "updated_at" - t.integer "user_id" - t.integer "comment_id" - end - - create_table "todos", force: :cascade do |t| - t.string "title" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.boolean "completed", default: false, null: false - t.bigint "created_by_id" - t.bigint "owner_id" - t.index ["created_by_id"], name: "index_todos_on_created_by_id" - t.index ["owner_id"], name: "index_todos_on_owner_id" - end - - create_table "users", force: :cascade do |t| - t.string "role" - t.bigint "manager_id" - t.string "first_name" - t.string "last_name" - t.string "email" - t.datetime "created_at" - t.datetime "updated_at" - t.string "address_street" - t.string "address_city" - t.string "address_state" - t.string "address_zip" - t.integer "address_id" - t.string "address2_street" - t.string "address2_city" - t.string "address2_state" - t.string "address2_zip" - t.string "data_string" - t.integer "data_times" - t.integer "test_enum" - t.index ["manager_id"], name: "index_users_on_manager_id" - end - -end diff --git a/ruby/hyper-operation/.travis.yml b/ruby/hyper-operation/.travis.yml index a7c93c4de..16e36bca3 100644 --- a/ruby/hyper-operation/.travis.yml +++ b/ruby/hyper-operation/.travis.yml @@ -24,6 +24,8 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ + - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index 7b77bd9ca..b1f246ef7 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -26,14 +26,15 @@ Gem::Specification.new do |spec| spec.add_dependency 'tty-table' spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'database_cleaner' spec.add_development_dependency 'hyper-spec', Hyperstack::Operation::VERSION spec.add_development_dependency 'mysql2' - spec.add_development_dependency 'opal-browser', '>= 0.2.0' - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' + # spec.add_development_dependency 'opal-browser', '~> 0.2.0' + spec.add_development_dependency 'opal-rails' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'pusher' spec.add_development_dependency 'pusher-fake' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb index ffc339f40..c1c8440d3 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb @@ -123,7 +123,7 @@ def save self.class.client.hmset("#{table_name}:#{id}", *self.class.jsonize_attributes(attributes)) unless self.class.client.smembers(table_name).include?(id) - self.class.client.sadd?(table_name, id) + self.class.client.sadd(table_name, id) end true @@ -135,7 +135,7 @@ def update(opts = {}) end def destroy - self.class.client.srem?(table_name, id) + self.class.client.srem(table_name, id) self.class.client.hdel("#{table_name}:#{id}", attributes.keys) diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb b/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb index 1d78cc26b..31de6917e 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb @@ -70,7 +70,7 @@ def self.reset_operations if connection[:adapter] == :redis require 'redis' - connection[:redis_url] ||= 'redis://127.0.0.1:6379/hyperstack' + connection[:redis_url] ||= 'redis://127.0.0.1:6379/0' end end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index f9eed06d9..58831a12f 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end end diff --git a/ruby/hyper-operation/spec/spec_helper.rb b/ruby/hyper-operation/spec/spec_helper.rb index c773c3b06..c6d3924da 100644 --- a/ruby/hyper-operation/spec/spec_helper.rb +++ b/ruby/hyper-operation/spec/spec_helper.rb @@ -125,7 +125,7 @@ def self.on_server? # class JavaScriptError < StandardError; end # config.after(:each, js: true) do |spec| - # errors = page.driver.browser.manage.logs.get(:browser) + # errors = page.driver.browser.logs.get(:browser) # .select { |e| e.level == "SEVERE" && e.message.present? } # #.map { |m| m.message.gsub(/\\n/, "\n") }.to_a # #.reject { |e| e =~ /Unexpected response code: 200/ } diff --git a/ruby/hyper-operation/spec/test_app/app/assets/config/manifest.js b/ruby/hyper-operation/spec/test_app/app/assets/config/manifest.js new file mode 100644 index 000000000..9c361e667 --- /dev/null +++ b/ruby/hyper-operation/spec/test_app/app/assets/config/manifest.js @@ -0,0 +1,2 @@ + //= link_directory ../javascripts .js + //= link_directory ../stylesheets .css \ No newline at end of file diff --git a/ruby/hyper-operation/spec/test_app/config/application.rb b/ruby/hyper-operation/spec/test_app/config/application.rb index 424c42ada..b763a19e4 100644 --- a/ruby/hyper-operation/spec/test_app/config/application.rb +++ b/ruby/hyper-operation/spec/test_app/config/application.rb @@ -23,6 +23,7 @@ class Application < Rails::Application config.opal.enable_specs = true config.opal.spec_location = 'spec-opal' config.hyperstack.auto_config = false + config.active_record.yaml_column_permitted_classes = [Symbol, ActiveSupport::HashWithIndifferentAccess] config.assets.cache_store = :null_store # Settings in config/environments/* take precedence over those specified here. diff --git a/ruby/hyper-router/.travis.yml b/ruby/hyper-router/.travis.yml index 24d833891..1d580b7d6 100644 --- a/ruby/hyper-router/.travis.yml +++ b/ruby/hyper-router/.travis.yml @@ -13,6 +13,8 @@ before_script: - bundle update - bundle exec rails db:setup - cd ../../ + - chromedriver-update + - ls -lR ~/.chromedriver-helper/ script: bundle exec rspec gemfile: - gemfiles/opal_0_11_react-rails_2_4.gemfile diff --git a/ruby/hyper-router/hyper-router.gemspec b/ruby/hyper-router/hyper-router.gemspec index cc893a4ca..7e62eea23 100644 --- a/ruby/hyper-router/hyper-router.gemspec +++ b/ruby/hyper-router/hyper-router.gemspec @@ -17,17 +17,18 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyper-component', HyperRouter::VERSION spec.add_dependency 'hyper-state', HyperRouter::VERSION - spec.add_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-spec', HyperRouter::VERSION spec.add_development_dependency 'hyper-store', HyperRouter::VERSION spec.add_development_dependency 'listen' - spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0.0' + spec.add_development_dependency 'mini_racer' # , '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'opal-rails' + spec.add_development_dependency 'opal-jquery' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' spec.add_development_dependency 'rspec-collection_matchers' diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index facfe42ce..0f7be0b7c 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end diff --git a/ruby/hyper-router/spec/test_app/app/assets/config/manifest.js b/ruby/hyper-router/spec/test_app/app/assets/config/manifest.js new file mode 100644 index 000000000..92bfa3059 --- /dev/null +++ b/ruby/hyper-router/spec/test_app/app/assets/config/manifest.js @@ -0,0 +1,3 @@ + //= link_tree ../images + //= link_directory ../javascripts .js + //= link_directory ../stylesheets .css \ No newline at end of file diff --git a/ruby/hyper-router/yarn.lock b/ruby/hyper-router/yarn.lock new file mode 100644 index 000000000..bc8e1f53f --- /dev/null +++ b/ruby/hyper-router/yarn.lock @@ -0,0 +1,248 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/runtime@^7.1.2": + version "7.22.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.6.tgz#57d64b9ae3cff1d67eb067ae117dac087f5bd438" + integrity sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ== + dependencies: + regenerator-runtime "^0.13.11" + +asap@~2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== + +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + integrity sha512-ZiPp9pZlgxpWRu0M+YWbm6+aQ84XEfH1JRXvfOc/fILWI0VKhLC2LX13X1NYq4fULzLMq7Hfh43CSo2/aIaUPA== + +create-react-class@^15.6.0: + version "15.7.0" + resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.7.0.tgz#7499d7ca2e69bb51d13faf59bd04f0c65a1d6c1e" + integrity sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng== + dependencies: + loose-envify "^1.3.1" + object-assign "^4.1.1" + +encoding@^0.1.11: + version "0.1.13" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" + integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== + dependencies: + iconv-lite "^0.6.2" + +fbjs@^0.8.9: + version "0.8.18" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.18.tgz#9835e0addb9aca2eff53295cd79ca1cfc7c9662a" + integrity sha512-EQaWFK+fEPSoibjNy8IxUtaFOMXcWsY0JaVrQoZR9zC8N2Ygf9iDITPWjUTVIax95b6I742JFLqASHfsag/vKA== + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.30" + +history@^4.7.2: + version "4.10.1" + resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3" + integrity sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew== + dependencies: + "@babel/runtime" "^7.1.2" + loose-envify "^1.2.0" + resolve-pathname "^3.0.0" + tiny-invariant "^1.0.2" + tiny-warning "^1.0.0" + value-equal "^1.0.1" + +hoist-non-react-statics@^2.5.0: + version "2.5.5" + resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47" + integrity sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw== + +iconv-lite@^0.6.2: + version "0.6.3" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +is-stream@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== + +isomorphic-fetch@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + integrity sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA== + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + +"js-tokens@^3.0.0 || ^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +node-fetch@^1.0.1: + version "1.7.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" + integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + +path-to-regexp@^1.7.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a" + integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA== + dependencies: + isarray "0.0.1" + +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== + dependencies: + asap "~2.0.3" + +prop-types@^15.5.10, prop-types@^15.6.1: + version "15.8.1" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" + integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.13.1" + +react-dom@^15.6.1: + version "15.7.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.7.0.tgz#39106dee996d0742fb0f43d567ef8b8153483ab2" + integrity sha512-mpjXqC2t1FuYsILOLCj0kg6pbg460byZkVA/80VtDmKU/pYmoTdHOtaMcTRIDiyXLz4sIur0cQ04nOC6iGndJg== + dependencies: + fbjs "^0.8.9" + loose-envify "^1.1.0" + object-assign "^4.1.0" + prop-types "^15.5.10" + +react-is@^16.13.1: + version "16.13.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" + integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== + +react-router-dom@^4.2.2: + version "4.3.1" + resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-4.3.1.tgz#4c2619fc24c4fa87c9fd18f4fb4a43fe63fbd5c6" + integrity sha512-c/MlywfxDdCp7EnB7YfPMOfMD3tOtIjrQlj/CKfNMBxdmpJP8xcz5P/UAFn3JbnQCNUxsHyVVqllF9LhgVyFCA== + dependencies: + history "^4.7.2" + invariant "^2.2.4" + loose-envify "^1.3.1" + prop-types "^15.6.1" + react-router "^4.3.1" + warning "^4.0.1" + +react-router@^4.2.0, react-router@^4.3.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/react-router/-/react-router-4.3.1.tgz#aada4aef14c809cb2e686b05cee4742234506c4e" + integrity sha512-yrvL8AogDh2X42Dt9iknk4wF4V8bWREPirFfS9gLU1huk6qK41sg7Z/1S81jjTrGHxa3B8R3J6xIkDAA6CVarg== + dependencies: + history "^4.7.2" + hoist-non-react-statics "^2.5.0" + invariant "^2.2.4" + loose-envify "^1.3.1" + path-to-regexp "^1.7.0" + prop-types "^15.6.1" + warning "^4.0.1" + +react@^15.6.1: + version "15.7.0" + resolved "https://registry.yarnpkg.com/react/-/react-15.7.0.tgz#10308fd42ac6912a250bf00380751abc41ac7106" + integrity sha512-5/MMRYmpmM0sMTHGLossnJCrmXQIiJilD6y3YN3TzAwGFj6zdnMtFv6xmi65PHKRV+pehIHpT7oy67Sr6s9AHA== + dependencies: + create-react-class "^15.6.0" + fbjs "^0.8.9" + loose-envify "^1.1.0" + object-assign "^4.1.0" + prop-types "^15.5.10" + +regenerator-runtime@^0.13.11: + version "0.13.11" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" + integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== + +resolve-pathname@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd" + integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng== + +"safer-buffer@>= 2.1.2 < 3.0.0": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== + +tiny-invariant@^1.0.2: + version "1.3.1" + resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642" + integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw== + +tiny-warning@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754" + integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA== + +ua-parser-js@^0.7.30: + version "0.7.35" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.35.tgz#8bda4827be4f0b1dda91699a29499575a1f1d307" + integrity sha512-veRf7dawaj9xaWEu9HoTVn5Pggtc/qj+kqTOFvNiN1l0YdxwC1kvel57UCjThjGa3BHBihE8/UJAHI+uQHmd/g== + +value-equal@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c" + integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw== + +warning@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3" + integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w== + dependencies: + loose-envify "^1.0.0" + +whatwg-fetch@>=0.10.0: + version "3.6.2" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" + integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== diff --git a/ruby/hyper-spec/.travis.yml b/ruby/hyper-spec/.travis.yml index 350fc4e93..53741c3e7 100644 --- a/ruby/hyper-spec/.travis.yml +++ b/ruby/hyper-spec/.travis.yml @@ -18,6 +18,8 @@ before_install: - gem install bundler before_script: - bundle install --jobs=3 --retry=3 + - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyper-spec/Gemfile b/ruby/hyper-spec/Gemfile index c0e97c691..12fbd76fc 100644 --- a/ruby/hyper-spec/Gemfile +++ b/ruby/hyper-spec/Gemfile @@ -4,4 +4,5 @@ gem 'hyper-store', path: '../hyper-store' gem 'hyper-state', path: '../hyper-state' gem 'hyperstack-config', path: '../hyperstack-config' #gem 'unparser', path: '../../../unparser' +gem 'opal', '1.0.5' gemspec diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index 9f30cd9d6..d27e9d9c0 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -22,6 +22,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_dependency 'actionview' spec.add_dependency 'capybara' + spec.add_dependency 'chromedriver-helper', '1.2.0' spec.add_dependency 'filecache' spec.add_dependency 'method_source' spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 2.0' @@ -36,11 +37,10 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_development_dependency 'bundler' spec.add_development_dependency 'hyper-component', HyperSpec::VERSION spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency - spec.add_development_dependency 'opal-browser', '>= 0.2.0' spec.add_development_dependency 'opal-rails', '>= 0.9.4' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' spec.add_development_dependency 'react-rails', '>= 2.3.0', '< 2.7.0' diff --git a/ruby/hyper-spec/lib/hyper-spec.rb b/ruby/hyper-spec/lib/hyper-spec.rb index c1eb87f4e..13d57e7fa 100644 --- a/ruby/hyper-spec/lib/hyper-spec.rb +++ b/ruby/hyper-spec/lib/hyper-spec.rb @@ -6,6 +6,7 @@ require 'filecache' require 'webdrivers' + require 'capybara/rspec' require 'hyper-spec/internal/client_execution' require 'hyper-spec/internal/component_mount' @@ -85,9 +86,11 @@ module Selenium module WebDriver module Chrome module Bridge - COMMANDS = remove_const(:COMMANDS).dup - COMMANDS[:get_log] = [:post, 'session/:session_id/log'] - COMMANDS.freeze + if const_defined?(:COMMANDS) + COMMANDS = remove_const(:COMMANDS).dup + COMMANDS[:get_log] = [:post, 'session/:session_id/log'] + COMMANDS.freeze + end def log(type) data = execute :get_log, {}, type: type.to_s @@ -192,17 +195,42 @@ def self.on_server? Capybara.default_max_wait_time = 10 - Capybara.register_driver :chrome do |app| - options = {} - options.merge!( - w3c: false, - args: %w[auto-open-devtools-for-tabs] + Capybara.register_driver :chrome_undocked do |app| + opts = Selenium::WebDriver::Chrome::Options.new(args: %w[auto-open-devtools-for-tabs]) + opts.add_preference( + 'devtools', + 'preferences' => { + 'currentDockState' => '"undocked"', # Or '"bottom"', '"right"', etc. + 'panel-selectedTab' => '"console"' + } ) - options['mobileEmulation'] = { 'deviceName' => ENV['DEVICE'].tr('-', ' ') } if ENV['DEVICE'] - capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( - chromeOptions: options, 'goog:loggingPrefs' => { browser: 'ALL' } + caps = Selenium::WebDriver::Remote::Capabilities.chrome + caps["goog:loggingPrefs"] = { browser: 'ALL' } + + Capybara::Selenium::Driver.new(app, browser: :chrome, options: opts, desired_capabilities: caps) + end + + Capybara.register_driver :chrome_docked do |app| + opts = Selenium::WebDriver::Chrome::Options.new(args: %w[auto-open-devtools-for-tabs]) + opts.add_preference( + 'devtools', + 'preferences' => { + 'currentDockState' => '"right"', # Or '"bottom"', '"undocked"', etc. + 'panel-selectedTab' => '"console"' + } ) - Capybara::Selenium::Driver.new(app, browser: :chrome, desired_capabilities: capabilities) + caps = Selenium::WebDriver::Remote::Capabilities.chrome + caps["goog:loggingPrefs"] = { browser: 'ALL' } + + Capybara::Selenium::Driver.new(app, browser: :chrome, options: opts, desired_capabilities: caps) + end + + Capybara.register_driver :chrome do |app| + caps = Selenium::WebDriver::Remote::Capabilities.chrome + + caps["goog:loggingPrefs"] = { browser: 'ALL' } # if ENV['LOG_JS'] + + Capybara::Selenium::Driver.new(app, browser: :chrome, desired_capabilities: caps) end Capybara.register_driver :firefox do |app| @@ -239,6 +267,8 @@ def self.on_server? Capybara.javascript_driver = case ENV['DRIVER'] when 'beheaded' then :firefox_headless + when 'chrome_undocked' then :chrome_undocked + when 'chrome_docked' then :chrome_docked when 'chrome' then :chrome when 'ff' then :selenium_with_firebug when 'firefox' then :firefox diff --git a/ruby/hyper-spec/lib/hyper-spec/component_test_helpers working.rbx b/ruby/hyper-spec/lib/hyper-spec/component_test_helpers working.rbx new file mode 100644 index 000000000..f41fbe740 --- /dev/null +++ b/ruby/hyper-spec/lib/hyper-spec/component_test_helpers working.rbx @@ -0,0 +1,365 @@ +# see component_test_helpers_spec.rb for examples +require 'parser/current' +require 'unparser' +require 'hyper-spec/unparser_patch' +require 'method_source' +require_relative '../../lib/hyper-spec/time_cop.rb' + +Parser::Builders::Default.emit_procarg0 = true + +module HyperSpec + module ComponentTestHelpers + TOP_LEVEL_COMPONENT_PATCH = + Opal.compile(File.read(File.expand_path('../../sources/top_level_rails_component.rb', __FILE__))) + TIME_COP_CLIENT_PATCH = + Opal.compile(File.read(File.expand_path('../../hyper-spec/time_cop.rb', __FILE__))) + + "\n#{File.read(File.expand_path('../../sources/lolex.js', __FILE__))}" + + class << self + attr_accessor :current_example + attr_accessor :description_displayed + + def display_example_description + "" + end + end + + def build_test_url_for(controller) + unless controller + unless defined?(::HyperstackTestController) + Object.const_set('HyperstackTestController', Class.new(::ActionController::Base)) + end + + controller = ::HyperstackTestController + end + + route_root = controller.name.gsub(/Controller$/, '').underscore + + unless controller.method_defined?(:test) + controller.class_eval do + define_method(:test) do + route_root = self.class.name.gsub(/Controller$/, '').underscore + test_params = ::Rails.cache.read("/#{route_root}/#{params[:id]}") + @component_name = test_params[0] + @component_params = test_params[1] + render_params = test_params[2] + render_on = render_params.delete(:render_on) || :client_only + _mock_time = render_params.delete(:mock_time) + style_sheet = render_params.delete(:style_sheet) + javascript = render_params.delete(:javascript) + code = render_params.delete(:code) + + page = '<%= react_component @component_name, @component_params, '\ + "{ prerender: #{render_on != :client_only} } %>" + unless render_on == :server_only + page = "\n#{page}" + page = "\n#{page}" if code + end + + if render_on != :server_only || Lolex.initialized? + page = "\n#{page}" + end + + if (render_on != :server_only && !render_params[:layout]) || javascript + page = "<%= javascript_include_tag '#{javascript || 'application'}' %>\n#{page}" + end + + if !render_params[:layout] || style_sheet + page = "<%= stylesheet_link_tag '#{style_sheet || 'application'}' %>\n#{page}" + end + page = "\n#{page}" + + title = view_context.escape_javascript(ComponentTestHelpers.current_example.description) + title = "#{title}...continued." if ComponentTestHelpers.description_displayed + + page = "\n#{page}" + + ComponentTestHelpers.description_displayed = true + render_params[:inline] = page + render render_params + end + end + + begin + routes = ::Rails.application.routes + routes.disable_clear_and_finalize = true + routes.clear! + routes.draw do + get "/#{route_root}/:id", to: "#{route_root}#test" + end + ::Rails.application.routes_reloader.paths.each { |path| load(path) } + routes.finalize! + ActiveSupport.on_load(:action_controller) { routes.finalize! } + ensure + routes.disable_clear_and_finalize = false + end + end + + "/#{route_root}/#{@test_id = (@test_id || 0) + 1}" + end + + def isomorphic(&block) + yield + on_client(&block) + end + + def evaluate_ruby(str = '', opts = {}, &block) + insure_mount + if block + str = "#{str}\n#{Unparser.unparse Parser::CurrentRuby.parse(block.source).children.last}" + end + js = Opal.compile(str).gsub("// Prepare super implicit arguments\n", "") + .delete("\n").gsub('(Opal);', '(Opal)') + # workaround for firefox 58 and geckodriver 0.19.1, because firefox is unable to find .$to_json: + # JSON.parse(evaluate_script("(function(){var a=Opal.Array.$new(); a[0]=#{js}; return a.$to_json();})();"), opts).first + JSON.parse(evaluate_script("[#{js}].$to_json()"), opts).first + end + + def expect_evaluate_ruby(str = '', opts = {}, &block) + insure_mount + expect(evaluate_ruby(add_opal_block(str, block), opts)) + end + + def add_opal_block(str, block) + # big assumption here is that we are going to follow this with a .to + # hence .children.first followed by .children.last + # probably should do some kind of "search" to make this work nicely + return str unless block + "#{str}\n"\ + "#{Unparser.unparse Parser::CurrentRuby.parse(block.source).children.first.children.last}" + end + + def evaluate_promise(str = '', opts = {}, &block) + insure_mount + str = "#{str}\n#{Unparser.unparse Parser::CurrentRuby.parse(block.source).children.last}" if block + str = "#{str}.then { |args| args = [args]; `window.hyper_spec_promise_result = args` }" + js = Opal.compile(str).gsub("\n","").gsub("(Opal);","(Opal)") + page.evaluate_script("window.hyper_spec_promise_result = false") + page.execute_script(js) + Timeout.timeout(Capybara.default_max_wait_time) do + loop do + sleep 0.25 + break if page.evaluate_script("!!window.hyper_spec_promise_result") + end + end + JSON.parse(page.evaluate_script("window.hyper_spec_promise_result.$to_json()"), opts).first + end + + def expect_promise(str = '', opts = {}, &block) + insure_mount + expect(evaluate_promise(add_opal_block(str, block), opts)) + end + + def ppr(str) + js = Opal.compile(str).delete("\n").gsub('(Opal);', '(Opal)') + execute_script("console.log(#{js})") + end + + def on_client(&block) + @client_code = + "#{@client_code}#{Unparser.unparse Parser::CurrentRuby.parse(block.source).children.last}\n" + end + + def debugger + `debugger` + nil + end + + def insure_mount + # rescue in case page is not defined... + mount unless page.instance_variable_get('@hyper_spec_mounted') + end + + def client_option(opts = {}) + @client_options ||= {} + @client_options.merge! opts + end + + alias client_options client_option + + def mount(component_name = nil, params = nil, opts = {}, &block) + unless params + params = opts + opts = {} + end + + opts = client_options opts + test_url = build_test_url_for(opts.delete(:controller)) + + if block || @client_code || component_name.nil? + block_with_helpers = <<-code + module ComponentHelpers + def self.js_eval(s) + `eval(s)` + end + def self.dasherize(s) + res = %x{ + s.replace(/[-_\\s]+/g, '-') + .replace(/([A-Z\\d]+)([A-Z][a-z])/g, '$1-$2') + .replace(/([a-z\\d])([A-Z])/g, '$1-$2') + .toLowerCase() + } + res + end + def self.add_class(class_name, styles={}) + style = styles.collect { |attr, value| "\#{dasherize(attr)}:\#{value}" }.join("; ") + cs = class_name.to_s + %x{ + var style_el = document.createElement("style"); + var css = "." + cs + " { " + style + " }"; + style_el.type = "text/css"; + if (style_el.styleSheet){ + style_el.styleSheet.cssText = css; + } else { + style_el.appendChild(document.createTextNode(css)); + } + document.head.appendChild(style_el); + } + end + end + class Hyperstack::Internal::Component::TestDummy + include Hyperstack::Component + render {} + end + #{@client_code} + #{Unparser.unparse(Parser::CurrentRuby.parse(block.source).children.last) if block} + code + opts[:code] = Opal.compile(block_with_helpers) + end + + component_name ||= 'Hyperstack::Internal::Component::TestDummy' + ::Rails.cache.write(test_url, [component_name, params, opts]) + test_code_key = "hyper_spec_prerender_test_code.js" + @@original_server_render_files ||= ::Rails.configuration.react.server_renderer_options[:files] + if opts[:render_on] == :both || opts[:render_on] == :server_only + unless opts[:code].blank? + ::Rails.cache.write(test_code_key, opts[:code]) + ::Rails.configuration.react.server_renderer_options[:files] = @@original_server_render_files + [test_code_key] + ::React::ServerRendering.reset_pool # make sure contexts are reloaded so they dont use code from cache, as the rails filewatcher doesnt look for cache changes + else + ::Rails.cache.delete(test_code_key) + ::Rails.configuration.react.server_renderer_options[:files] = @@original_server_render_files + ::React::ServerRendering.reset_pool # make sure contexts are reloaded so they dont use code from cache, as the rails filewatcher doesnt look for cache changes + end + end + visit test_url + wait_for_ajax unless opts[:no_wait] + page.instance_variable_set('@hyper_spec_mounted', true) + Lolex.init(self, client_options[:time_zone], client_options[:clock_resolution]) + end + + [:callback_history_for, :last_callback_for, :clear_callback_history_for, + :event_history_for, :last_event_for, :clear_event_history_for].each do |method| + define_method(method) do |event_name| + evaluate_ruby("Hyperstack::Internal::Component::TopLevelRailsComponent.#{method}('#{event_name}')") + end + end + + def run_on_client(&block) + script = Opal.compile(Unparser.unparse(Parser::CurrentRuby.parse(block.source).children.last)) + execute_script(script) + end + + def add_class(class_name, style) + @client_code = "#{@client_code}ComponentHelpers.add_class('#{class_name}', #{style})\n" + end + + def open_in_chrome + if false && ['linux', 'freebsd'].include?(`uname`.downcase) + `google-chrome http://#{page.server.host}:#{page.server.port}#{page.current_path}` + else + `open http://#{page.server.host}:#{page.server.port}#{page.current_path}` + end + + while true + sleep 1.hour + end + end + + def pause(message = nil) + if message + puts message + page.evaluate_script "console.log('#{message} (type go() to continue)')" + end + + page.evaluate_script('window.hyper_spec_waiting_for_go = true') + page.evaluate_script('go = function() {window.hyper_spec_waiting_for_go = false}') + loop do + sleep 0.25 + break unless page.evaluate_script('window.hyper_spec_waiting_for_go') + end + end + + def wait_for_size(width, height) + start_time = Capybara::Helpers.monotonic_time + stable_count_w = 0 + stable_count_h = 0 + prev_size = [0, 0] + begin + sleep 0.05 + curr_size = Capybara.current_session.current_window.size + return if [width, height] == curr_size + # some maximum or minimum is reached and size doesnt change anymore + stable_count_w += 1 if prev_size[0] == curr_size[0] + stable_count_h += 1 if prev_size[1] == curr_size[1] + return if stable_count_w > 2 || stable_count_h > 2 + prev_size = curr_size + end while (Capybara::Helpers.monotonic_time - start_time) < Capybara.current_session.config.default_max_wait_time + raise Capybara::WindowError, "Window size not stable within #{Capybara.current_session.config.default_max_wait_time} seconds." + end + + def size_window(width = nil, height = nil) + # return if @window_cannot_be_resized + # original_width = evaluate_script('window.innerWidth') + # original_height = evaluate_script('window.innerHeight') + width, height = [height, width] if width == :portrait + width, height = width if width.is_a? Array + portrait = true if height == :portrait + + case width + when :small + width, height = [480, 320] + when :mobile + width, height = [640, 480] + when :tablet + width, height = [960, 640] + when :large + width, height = [1920, 6000] + when :default, nil + width, height = [1024, 768] + end + + width, height = [height, width] if portrait + + unless RSpec.configuration.debugger_width + Capybara.current_session.current_window.resize_to(1000, 500) + wait_for_size(1000, 500) + inner_width = evaluate_script('window.innerWidth') + RSpec.configuration.debugger_width = 1000 - inner_width + end + Capybara.current_session.current_window + .resize_to(width + RSpec.configuration.debugger_width, height) + wait_for_size(width + RSpec.configuration.debugger_width, height) + end + end + + RSpec.configure do |config| + config.before(:each) do |example| + ComponentTestHelpers.current_example = example + ComponentTestHelpers.description_displayed = false + end + + if defined?(ActiveRecord) + config.before(:all) do + ActiveRecord::Base.class_eval do + def attributes_on_client(page) + page.evaluate_ruby("#{self.class.name}.find(#{id}).attributes", symbolize_names: true) + end + end + end + end + end +end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 0df34d052..24fc27678 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end diff --git a/ruby/hyper-spec/spec/spec_helper.rb b/ruby/hyper-spec/spec/spec_helper.rb index 2ed740a54..deee6f270 100644 --- a/ruby/hyper-spec/spec/spec_helper.rb +++ b/ruby/hyper-spec/spec/spec_helper.rb @@ -1,6 +1,5 @@ require 'hyper-spec' require 'pry' -require 'opal-browser' ENV["RAILS_ENV"] ||= 'test' require File.expand_path('../test_app/config/environment', __FILE__) diff --git a/ruby/hyper-spec/yarn.lock b/ruby/hyper-spec/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-spec/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-state/.travis.yml b/ruby/hyper-state/.travis.yml index 301730173..26da32b7f 100644 --- a/ruby/hyper-state/.travis.yml +++ b/ruby/hyper-state/.travis.yml @@ -12,6 +12,8 @@ before_script: - cd spec/test_app - bundle update - cd ../../ + - chromedriver-update + - ls -lR ~/.chromedriver-helper/ script: - bundle exec rake spec gemfile: diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index edc824c57..7994915d1 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -20,15 +20,16 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyperstack-config', Hyperstack::State::VERSION spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-component', Hyperstack::State::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::State::VERSION spec.add_development_dependency 'listen' - #spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.4' - spec.add_development_dependency 'opal-browser', '>= 0.2.0' - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' + # spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.4' + # spec.add_development_dependency 'opal-browser', '~> 0.2.0' + spec.add_development_dependency 'opal-rails' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index b8bd934de..02586aaed 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end end diff --git a/ruby/hyper-state/yarn.lock b/ruby/hyper-state/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-state/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-store/.travis.yml b/ruby/hyper-store/.travis.yml index 301730173..26da32b7f 100644 --- a/ruby/hyper-store/.travis.yml +++ b/ruby/hyper-store/.travis.yml @@ -12,6 +12,8 @@ before_script: - cd spec/test_app - bundle update - cd ../../ + - chromedriver-update + - ls -lR ~/.chromedriver-helper/ script: - bundle exec rake spec gemfile: diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index 7bd44d53b..126b57be1 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -21,15 +21,16 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyperstack-config', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-component', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'hyper-spec', Hyperstack::Legacy::Store::VERSION spec.add_development_dependency 'listen' #spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency, '~> 0.2.6' - spec.add_development_dependency 'opal-browser', '>= 0.2.0' - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' + spec.add_development_dependency 'opal-browser', '~> 0.2.0' + spec.add_development_dependency 'opal-rails' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' spec.add_development_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index eaa0d4ba9..8944fe5e7 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end end end diff --git a/ruby/hyper-store/yarn.lock b/ruby/hyper-store/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-store/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-trace/hyper-trace.gemspec b/ruby/hyper-trace/hyper-trace.gemspec index d167e26c3..0be02035e 100644 --- a/ruby/hyper-trace/hyper-trace.gemspec +++ b/ruby/hyper-trace/hyper-trace.gemspec @@ -22,5 +22,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyperstack-config', HyperTrace::VERSION spec.add_development_dependency 'hyper-spec', HyperTrace::VERSION spec.add_development_dependency "bundler" + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency "rake" end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 86e621119..009fbe1ec 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end diff --git a/ruby/hyper-trace/yarn.lock b/ruby/hyper-trace/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-trace/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyperstack-config/.travis.yml b/ruby/hyperstack-config/.travis.yml index c1869454f..fd04071be 100644 --- a/ruby/hyperstack-config/.travis.yml +++ b/ruby/hyperstack-config/.travis.yml @@ -21,6 +21,8 @@ before_script: - bundle install --jobs=3 --retry=3 - bundle exec rails db:setup - cd ../../ + - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/hyperstack-config/hyperstack-config.gemspec b/ruby/hyperstack-config/hyperstack-config.gemspec index c0f4f94ae..7a7e575e9 100644 --- a/ruby/hyperstack-config/hyperstack-config.gemspec +++ b/ruby/hyperstack-config/hyperstack-config.gemspec @@ -23,16 +23,17 @@ Gem::Specification.new do |spec| spec.add_dependency 'listen', '~> 3.0' # for hot loader # spec.add_dependency 'mini_racer', '~> 0.2.6' - spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 2.0' - spec.add_dependency 'opal-browser', '>= 0.2.0' + spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 1.1' + spec.add_dependency 'opal-browser' # this is needed everywhere else so its loaded here spec.add_dependency 'uglifier' spec.add_dependency 'websocket' # for hot loader spec.add_development_dependency 'bundler' - spec.add_development_dependency 'opal-rails', '>= 0.9.4', '< 2.0' + spec.add_development_dependency 'chromedriver-helper' + spec.add_development_dependency 'opal-rails' #, '>= 0.9.4', '< 2.0' spec.add_development_dependency 'pry-rescue' spec.add_development_dependency 'pry-stack_explorer' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'rake' spec.add_development_dependency 'rspec', '~> 3.7.0' diff --git a/ruby/hyperstack-config/lib/hyperstack-config.rb b/ruby/hyperstack-config/lib/hyperstack-config.rb index 05a03c34c..d25d062e1 100644 --- a/ruby/hyperstack-config/lib/hyperstack-config.rb +++ b/ruby/hyperstack-config/lib/hyperstack-config.rb @@ -15,9 +15,14 @@ def self.naming_convention require 'hyperstack/active_support_string_inquirer.rb' require 'hyperstack_env' require 'hyperstack/hotloader/stub' + require 'promise' + # uncommenting these lines breaks prerendering + # require 'opal-browser' else require 'opal' + # because promises and features in opal-browsers are used everywhere we load them here require 'opal-browser' + # We need opal-rails to be loaded for Gem code to be properly included by sprockets. begin require 'opal-rails' if defined? Rails @@ -41,9 +46,13 @@ def self.naming_convention Hyperstack.define_setting :hotloader_ping, nil Hyperstack.define_setting :hotloader_ignore_callback_mapping, false Hyperstack.import 'opal', gem: true - Hyperstack.import 'native', client_only: true - Hyperstack.import 'promise/v2', client_only: true - Hyperstack.import 'browser/setup/full', client_only: true + + # because promises and features in opal-browsers are used everywhere we load them here + Hyperstack.import 'promise', client_only: true + Hyperstack.import 'browser', client_only: true + Hyperstack.import 'browser/delay', client_only: true + Hyperstack.import 'browser/interval', client_only: true + Hyperstack.import 'hyperstack-config', gem: true Hyperstack.import 'hyperstack/autoloader' Hyperstack.import 'hyperstack/autoloader_starter' diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 4b2af12c0..cb8733648 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0009' + VERSION = '1.0.alpha1.8.0010' end end diff --git a/ruby/hyperstack-config/lib/hyperstack/native_wrapper_compatibility.rb b/ruby/hyperstack-config/lib/hyperstack/native_wrapper_compatibility.rb index fbb775f19..b8dc25507 100644 --- a/ruby/hyperstack-config/lib/hyperstack/native_wrapper_compatibility.rb +++ b/ruby/hyperstack-config/lib/hyperstack/native_wrapper_compatibility.rb @@ -1,7 +1,7 @@ # allows hyperstack to include Native::Wrapper even if running Opal 0.11 module Native module Wrapper - def self.included(klass) + def self.includedx(klass) if Native.instance_methods.include? :to_n klass.include Native else diff --git a/ruby/hyperstack-config/spec/test_app/app/assets/config/manifest.js b/ruby/hyperstack-config/spec/test_app/app/assets/config/manifest.js new file mode 100644 index 000000000..6f71952ea --- /dev/null +++ b/ruby/hyperstack-config/spec/test_app/app/assets/config/manifest.js @@ -0,0 +1 @@ + //= link_directory ../javascripts .js diff --git a/ruby/hyperstack-config/yarn.lock b/ruby/hyperstack-config/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyperstack-config/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/rails-hyperstack/.ruby-version b/ruby/rails-hyperstack/.ruby-version deleted file mode 100644 index 37c2961c2..000000000 --- a/ruby/rails-hyperstack/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -2.7.2 diff --git a/ruby/rails-hyperstack/.travis.yml b/ruby/rails-hyperstack/.travis.yml index 647aab049..116c1cfd1 100644 --- a/ruby/rails-hyperstack/.travis.yml +++ b/ruby/rails-hyperstack/.travis.yml @@ -18,6 +18,8 @@ before_install: - gem install bundler before_script: - bundle install --jobs=3 --retry=3 + - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi diff --git a/ruby/rails-hyperstack/Gemfile b/ruby/rails-hyperstack/Gemfile index cbc05abe0..bb2b68734 100644 --- a/ruby/rails-hyperstack/Gemfile +++ b/ruby/rails-hyperstack/Gemfile @@ -8,4 +8,5 @@ gem 'hyper-router', path: '../hyper-router' gem 'hyper-spec', path: '../hyper-spec' gem 'webpacker' # TODO: figure out why these two are necessary! gem 'turbolinks' +gem "selenium-webdriver", '3.142.7' gemspec diff --git a/ruby/rails-hyperstack/Rakefile b/ruby/rails-hyperstack/Rakefile index 70271475f..9e31d53fd 100644 --- a/ruby/rails-hyperstack/Rakefile +++ b/ruby/rails-hyperstack/Rakefile @@ -21,11 +21,15 @@ namespace :spec do sh('spring stop') sh('bundle exec rails g hyperstack:install') sh('bundle exec rails generate model Sample name:string description:text') + sleep 1 + sh('pwd') + sh('ls app/models') sh('mv app/models/sample.rb app/hyperstack/models/sample.rb') sh("cat ../server_side_sample.rb >> app/models/sample.rb") sh('bundle exec rake db:migrate') sh('RAILS_ENV=test bundle exec rake db:setup') # sh('bundle exec rails dev:cache') # not tested yet... + sh('RAILS_ENV=test bundle exec rails webpacker:compile') end end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/server_side_auto_require.rb b/ruby/rails-hyperstack/lib/hyperstack/server_side_auto_require.rb index a3388d127..ee500361c 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/server_side_auto_require.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/server_side_auto_require.rb @@ -1,4 +1,17 @@ -Rails.configuration.autoloader = :classic +# require "hyperstack/server_side_auto_require.rb" in your hyperstack initializer +# to autoload shadowed server side files that match files +# in the hyperstack directory + +if Rails.configuration.try(:autoloader) == :zeitwerk + Rails.autoloaders.each do |loader| + loader.on_load do |_cpath, _value, abspath| + ActiveSupport::Dependencies.add_server_side_dependency(abspath) do |load_path| + loader.send(:log, "Hyperstack loading server side shadowed file: #{load_path}") if loader&.logger + require("#{load_path}.rb") + end + end + end +end module ActiveSupport module Dependencies @@ -11,7 +24,7 @@ class << self # and add that as a dependency def require_or_load(file_name, const_path = nil) - add_server_side_dependency(file_name) + add_server_side_dependency(file_name) { |load_path| require_dependency load_path } original_require_or_load(file_name, const_path) end @@ -20,7 +33,7 @@ def require_or_load(file_name, const_path = nil) # the filename, and if a ruby file exists at that location then # add it as a dependency - def add_server_side_dependency(file_name) + def add_server_side_dependency(file_name, loader = nil) path = File.expand_path(file_name.chomp(".rb")) .split(File::SEPARATOR).reverse hs_index = path.find_index(HYPERSTACK_DIR) @@ -32,7 +45,7 @@ def add_server_side_dependency(file_name) return unless File.exist? "#{load_path}.rb" - require_dependency load_path + yield load_path end end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index e8cf35fce..bd24fda01 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0009' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0010' end diff --git a/ruby/rails-hyperstack/lib/rails-hyperstack.rb b/ruby/rails-hyperstack/lib/rails-hyperstack.rb index aacf780bd..1a167e669 100644 --- a/ruby/rails-hyperstack/lib/rails-hyperstack.rb +++ b/ruby/rails-hyperstack/lib/rails-hyperstack.rb @@ -2,10 +2,10 @@ require 'rails/generators' # remove these once lap29 is released ... -# Hyperstack.js_import 'react/react-source-browser', client_only: true, defines: ['ReactDOM', 'React'] -# Hyperstack.js_import 'react/react-source-server', server_only: true, defines: 'React' -# #Hyperstack.js_import 'hyper-router/react-router-source', defines: ['ReactRouter', 'ReactRouterDOM', 'History'] -# Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS' +Hyperstack.js_import 'react/react-source-browser', client_only: true, defines: ['ReactDOM', 'React'] +Hyperstack.js_import 'react/react-source-server', server_only: true, defines: 'React' +#Hyperstack.js_import 'hyper-router/react-router-source', defines: ['ReactRouter', 'ReactRouterDOM', 'History'] +Hyperstack.js_import 'react_ujs', defines: 'ReactRailsUJS' # remove above once lap29 is released ... Hyperstack.import 'hyper-router' diff --git a/ruby/rails-hyperstack/rails-hyperstack.gemspec b/ruby/rails-hyperstack/rails-hyperstack.gemspec index 2756eb3ac..809ff3438 100644 --- a/ruby/rails-hyperstack/rails-hyperstack.gemspec +++ b/ruby/rails-hyperstack/rails-hyperstack.gemspec @@ -58,18 +58,18 @@ You can control how much of the stack gets installed as well: spec.add_dependency 'hyper-model', Hyperstack::VERSION spec.add_dependency 'hyper-router', Hyperstack::ROUTERVERSION spec.add_dependency 'hyperstack-config', Hyperstack::VERSION - spec.add_dependency 'opal-rails' #, '~> 2.0' - - spec.add_dependency 'opal-browser', '>= 0.2.0' + spec.add_dependency 'opal-rails' + spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 1.1' spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' # spec.add_dependency 'mini_racer', '~> 0.2.6' # spec.add_dependency 'libv8', '~> 7.3.492.27.1' spec.add_dependency 'rails', ENV['RAILS_VERSION'] || '>= 5.0.0', '< 7.0' spec.add_development_dependency 'bundler' + spec.add_development_dependency 'chromedriver-helper' spec.add_development_dependency 'hyper-spec', Hyperstack::VERSION spec.add_development_dependency 'pry' - spec.add_development_dependency 'puma' + spec.add_development_dependency 'puma', '<= 5.4.0' spec.add_development_dependency 'bootsnap' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' From e52319564b75224bec17ed8e6c39c675c7b63ff7 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 16:58:27 +0300 Subject: [PATCH 44/67] setup gocd pipeline --- hyperstack.gocd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 3c01710b3..cd863ffe9 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -17,7 +17,7 @@ pipelines: branch: edge stages: - cleanup1: - fetch_materials: true + fetch_materials: false keep_artifacts: false clean_workspace: false approval: From e022c98b78d2506ae749c9994822e237ade91c76 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 17:10:06 +0300 Subject: [PATCH 45/67] setup gocd pipeline --- hyperstack.gocd.yaml | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index cd863ffe9..8d56efb4f 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -16,7 +16,7 @@ pipelines: auto_update: true branch: edge stages: - - cleanup1: + - cleanup: fetch_materials: false keep_artifacts: false clean_workspace: false @@ -55,25 +55,4 @@ pipelines: - --rm - hyperstack command: docker - run_if: passed - - cleanup: - fetch_materials: false - keep_artifacts: false - clean_workspace: false - approval: - type: success - allow_only_on_success: false - jobs: - cleanup: - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - --entrypoint - - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" - - hyperstack - command: docker run_if: passed \ No newline at end of file From 13f47cf776529dd74b7962292bd0e56be6e1d138 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 18:32:24 +0300 Subject: [PATCH 46/67] new version --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index 17c08c28e..b71530065 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0010' +'1.0.alpha1.8.0011' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 70d586c04..4e55c7225 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0010' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0011' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index ebee1c300..4c5f07df7 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 3537f90d2..036000a02 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 7e4bb57f1..3b4d09733 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 2e8d2d097..8adf89286 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index 58831a12f..52e385506 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 0f7be0b7c..0a0e3e12b 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 24fc27678..53e6f4e0b 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index 02586aaed..27984c2da 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index 8944fe5e7..d863de2d2 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 009fbe1ec..a3ba87573 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index cb8733648..8548265b2 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0010' + VERSION = '1.0.alpha1.8.0011' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index bd24fda01..f521e29be 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0010' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0011' end From 4e90333ec10b1acbf18cd7c7b153910982f02cf3 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 18:42:12 +0300 Subject: [PATCH 47/67] setup gocd pipeline --- Dockerfile | 45 ++++++++++++-------------------------------- hyperstack.gocd.yaml | 27 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 33 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5da8373af..975275ee8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,28 +2,22 @@ ARG PRIVATE_REGISTRY=ci.ru.aegean.gr:5000 FROM ${PRIVATE_REGISTRY}/base20:ruby RUN apt-get -y update && apt-get -y install mariadb-server mariadb-client libmysqlclient-dev postgresql postgresql-contrib -#RUN apt-get -y purge google-chrome-stable \ -# && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ -# && dpkg -i google-chrome*.deb \ -# && sed -i -e 's@exec -a "$0" "$HERE/chrome" "$\@"@exec -a "$0" "$HERE/chrome" "$\@" --no-sandbox --user-data-dir $HOME/chrome-dir@g' /opt/google/chrome/google-chrome -#chrome driver -#https://stackoverflow.com/questions/50692358/how-to-work-with-a-specific-version-of-chromedriver-while-chrome-browser-gets-up ARG RUBY_VERSION_TO_INSTALL1=2.7.8 RUN rbenv install ${RUBY_VERSION_TO_INSTALL1} && rbenv global ${RUBY_VERSION_TO_INSTALL1} \ && rbenv rehash && gem install bundler -#ARG RUBY_VERSION_TO_INSTALL2=3.0.6 -#RUN rbenv install ${RUBY_VERSION_TO_INSTALL2} && rbenv global ${RUBY_VERSION_TO_INSTALL2} \ -#&& rbenv rehash && gem install bundler -# -#ARG RUBY_VERSION_TO_INSTALL3=3.1.4 -#RUN rbenv install ${RUBY_VERSION_TO_INSTALL3} && rbenv global ${RUBY_VERSION_TO_INSTALL3} \ -#&& rbenv rehash && gem install bundler -# -#ARG RUBY_VERSION_TO_INSTALL4=3.2.2 -#RUN rbenv install ${RUBY_VERSION_TO_INSTALL4} && rbenv global ${RUBY_VERSION_TO_INSTALL4} \ -#&& rbenv rehash && gem install bundler +ARG RUBY_VERSION_TO_INSTALL2=3.0.6 +RUN rbenv install ${RUBY_VERSION_TO_INSTALL2} && rbenv global ${RUBY_VERSION_TO_INSTALL2} \ +&& rbenv rehash && gem install bundler + +ARG RUBY_VERSION_TO_INSTALL3=3.1.4 +RUN rbenv install ${RUBY_VERSION_TO_INSTALL3} && rbenv global ${RUBY_VERSION_TO_INSTALL3} \ +&& rbenv rehash && gem install bundler + +ARG RUBY_VERSION_TO_INSTALL4=3.2.2 +RUN rbenv install ${RUBY_VERSION_TO_INSTALL4} && rbenv global ${RUBY_VERSION_TO_INSTALL4} \ +&& rbenv rehash && gem install bundler ENV PGUSER=postgres ENV PGPORT=5432 @@ -31,19 +25,4 @@ ENV PGHOST=localhost RUN sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf -RUN git config --global --add safe.directory /root/hyperstack - -## RUN apt-get purge google-chrome-stable -#RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -#RUN dpkg -i google-chrome*.deb - -#RUN apt-get install -y chromium-chromedriver \ -## && ln -s /usr/lib/chromium-browser/chromium-browser /usr/bin/google-chrome \ -# && ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver -# pg_ctlcluster 12 main start -#RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -#RUN apt-get install -y ./google-chrome-stable_current_amd64.deb -#RUN rm google-chrome-stable_current_amd64.deb - -#&& \ -# gem install rubygems-update && gem update --system && gem update && rbenv rehash \ No newline at end of file +RUN git config --global --add safe.directory /root/hyperstack \ No newline at end of file diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 8d56efb4f..61635d095 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -3,7 +3,34 @@ environments: test: pipelines: - hyperstack + - hyperstack-build pipelines: + hyperstack-build: + group: hyperstack + label_template: ${COUNT} + lock_behavior: none + display_order: -1 + materials: + hyperstack: + git: https://github.com/mpantel/hyperstack.git + shallow_clone: false + auto_update: false + branch: edge + stages: + - build: + fetch_materials: true + keep_artifacts: false + clean_workspace: false + approval: + type: success + allow_only_on_success: false + jobs: + cleanup: + timeout: 0 + tasks: + - exec: + command: ./create-docker-image + run_if: passed hyperstack: group: hyperstack label_template: ${COUNT} From aa7bdf03eda1509b3e7f7165dd873cabb1c6398f Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 18:44:50 +0300 Subject: [PATCH 48/67] setup gocd pipeline --- hyperstack.gocd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 61635d095..cd821aac1 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -14,7 +14,7 @@ pipelines: hyperstack: git: https://github.com/mpantel/hyperstack.git shallow_clone: false - auto_update: false + auto_update: true branch: edge stages: - build: From 52e9897441278d58e3119e34c6884ea9ea699359 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 19:48:25 +0300 Subject: [PATCH 49/67] Export --- docker-compose.yml | 7 +- hyperstack.gocd.yaml | 359 ++++++++++++++++++++++++++++++++++++++++++- runone | 22 +++ 3 files changed, 384 insertions(+), 4 deletions(-) create mode 100755 runone diff --git a/docker-compose.yml b/docker-compose.yml index bbb821ab7..764c23ef7 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,12 +29,17 @@ services: domainname: ${BASE_TEST_DOMAIN} hostname: hyperstack container_name: "hyperstack" - entrypoint: ./runall + entrypoint: ./runone stdin_open: true tty: true working_dir: /root/hyperstack environment: BUNDLE_PATH: "/root/local_gems" + DRIVER: "${DRIVER}" + COMPONENT: "${COMPONENT}" + RUBY_VERSION: "${RUBY_VERSION}" + TASK: "${TASK}" + DB: "${DB}" volumes: - ${MOUNT_PATH:-..}/hyperstack:/root/hyperstack - local_gems:/root/local_gems diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index cd821aac1..3f5aed1e5 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -36,6 +36,8 @@ pipelines: label_template: ${COUNT} lock_behavior: none display_order: -1 + environment_variables: + DRIVER: travis materials: hyperstack: git: https://github.com/mpantel/hyperstack.git @@ -64,7 +66,9 @@ pipelines: - hyperstack command: docker run_if: passed - - execute: + - ruby-version-2-7-8: + environment_variables: + RUBY_VERSION: 2.7.8 fetch_materials: true keep_artifacts: false clean_workspace: false @@ -72,7 +76,9 @@ pipelines: type: success allow_only_on_success: false jobs: - run: + rails-hyperstack: + environment_variables: + COMPONENT: rails-hyperstack timeout: 0 tasks: - exec: @@ -82,4 +88,351 @@ pipelines: - --rm - hyperstack command: docker - run_if: passed \ No newline at end of file + run_if: passed + hyper-spec: + environment_variables: + COMPONENT: hyper-spec + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-trace: + environment_variables: + COMPONENT: hyper-trace + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyperstack-config: + environment_variables: + COMPONENT: hyperstack-config + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-state: + environment_variables: + COMPONENT: hyper-state + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-component: + environment_variables: + COMPONENT: hyper-component + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-router: + environment_variables: + COMPONENT: hyper-router + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-store: + environment_variables: + COMPONENT: hyper-store + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-operation: + environment_variables: + COMPONENT: hyper-operation + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-model-part1: + environment_variables: + COMPONENT: hyper-model + TASK: part1 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-model-part2: + environment_variables: + COMPONENT: hyper-model + TASK: part2 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-model-part3: + environment_variables: + COMPONENT: hyper-model + TASK: part3 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-i18n: + environment_variables: + COMPONENT: hyper-i18n + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + - ruby-version-3-0-6: + environment_variables: + RUBY_VERSION: 3.0.6 + fetch_materials: true + keep_artifacts: false + clean_workspace: false + approval: + type: success + allow_only_on_success: false + jobs: + rails-hyperstack: + environment_variables: + COMPONENT: rails-hyperstack + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-spec: + environment_variables: + COMPONENT: hyper-spec + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-trace: + environment_variables: + COMPONENT: hyper-trace + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyperstack-config: + environment_variables: + COMPONENT: hyperstack-config + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-state: + environment_variables: + COMPONENT: hyper-state + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-component: + environment_variables: + COMPONENT: hyper-component + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-router: + environment_variables: + COMPONENT: hyper-router + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-store: + environment_variables: + COMPONENT: hyper-store + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-operation: + environment_variables: + COMPONENT: hyper-operation + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-model-part1: + environment_variables: + COMPONENT: hyper-model + TASK: part1 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-model-part2: + environment_variables: + COMPONENT: hyper-model + TASK: part2 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-model-part3: + environment_variables: + COMPONENT: hyper-model + TASK: part3 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + hyper-i18n: + environment_variables: + COMPONENT: hyper-i18n + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed diff --git a/runone b/runone new file mode 100755 index 000000000..a9f8b5e30 --- /dev/null +++ b/runone @@ -0,0 +1,22 @@ +#!/bin/bash + +service postgresql restart +service mysql restart +redis-server & +sleep 1 +psql -c 'create database hyper_mesh_test_db;' -U postgres +./runtests +#DRIVER=travis COMPONENT=rails-hyperstack RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-spec RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-trace RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyperstack-config RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-state RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-component RUBY_VERSION=2.7.8 ./runtests + +#DRIVER=travis COMPONENT=hyper-router RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-store RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-operation RUBY_VERSION=2.7.8 ./runtests +#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part1 DB=hyper_mesh_test_db ./runtests +#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part2 DB=hyper_mesh_test_db ./runtests +#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part3 DB=hyper_mesh_test_db ./runtests +#DRIVER=travis COMPONENT=hyper-i18n RUBY_VERSION=2.7.8 ./runtests From b0ae5a14b11c96dccdbc7beb58786f0f1d7a1833 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 19:52:54 +0300 Subject: [PATCH 50/67] Export --- hyperstack.gocd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 3f5aed1e5..448f6ce69 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -22,7 +22,7 @@ pipelines: keep_artifacts: false clean_workspace: false approval: - type: success + type: manual allow_only_on_success: false jobs: cleanup: From 2a31edcdd4760217deaf20c2cda5d9a64c703728 Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 21:04:41 +0300 Subject: [PATCH 51/67] Export --- runone | 1 + 1 file changed, 1 insertion(+) diff --git a/runone b/runone index a9f8b5e30..dd843ee69 100755 --- a/runone +++ b/runone @@ -4,6 +4,7 @@ service postgresql restart service mysql restart redis-server & sleep 1 +rbenv global $RUBY_VERSION psql -c 'create database hyper_mesh_test_db;' -U postgres ./runtests #DRIVER=travis COMPONENT=rails-hyperstack RUBY_VERSION=2.7.8 ./runtests From 0e6186cb69fc4ddc56ee03a235952bba2c9c491c Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 21:12:18 +0300 Subject: [PATCH 52/67] Export --- hyperstack.gocd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 448f6ce69..5d110542a 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -69,7 +69,7 @@ pipelines: - ruby-version-2-7-8: environment_variables: RUBY_VERSION: 2.7.8 - fetch_materials: true + fetch_materials: false keep_artifacts: false clean_workspace: false approval: @@ -254,7 +254,7 @@ pipelines: - ruby-version-3-0-6: environment_variables: RUBY_VERSION: 3.0.6 - fetch_materials: true + fetch_materials: false keep_artifacts: false clean_workspace: false approval: From efe680de2052b391627ead05be4d06c52a74a56b Mon Sep 17 00:00:00 2001 From: michail Date: Sat, 8 Jul 2023 21:45:05 +0300 Subject: [PATCH 53/67] v 0011 --- ruby/hyper-component/hyper-component.gemspec | 6 +++--- ruby/hyper-spec/Gemfile | 2 +- ruby/hyperstack-config/hyperstack-config.gemspec | 2 +- ruby/rails-hyperstack/Gemfile | 2 +- ruby/rails-hyperstack/rails-hyperstack.gemspec | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ruby/hyper-component/hyper-component.gemspec b/ruby/hyper-component/hyper-component.gemspec index 715207ad5..803f453ac 100644 --- a/ruby/hyper-component/hyper-component.gemspec +++ b/ruby/hyper-component/hyper-component.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'hyper-state', Hyperstack::Component::VERSION spec.add_dependency 'hyperstack-config', Hyperstack::Component::VERSION spec.add_dependency 'opal-activesupport', '~> 0.3.1' - spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.5.0' + spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' spec.add_development_dependency 'bundler' spec.add_development_dependency 'chromedriver-helper' @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'jquery-rails' spec.add_development_dependency 'listen' spec.add_development_dependency 'mime-types' - spec.add_development_dependency 'mini_racer', '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency + spec.add_development_dependency 'mini_racer'#, '< 0.4.0' # something is busted with 0.4.0 and its libv8-node dependency spec.add_development_dependency 'nokogiri' spec.add_development_dependency 'opal-jquery' spec.add_development_dependency 'opal-rails' @@ -41,5 +41,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' - spec.add_development_dependency 'timecop', '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-spec/Gemfile b/ruby/hyper-spec/Gemfile index 12fbd76fc..3bde0e514 100644 --- a/ruby/hyper-spec/Gemfile +++ b/ruby/hyper-spec/Gemfile @@ -4,5 +4,5 @@ gem 'hyper-store', path: '../hyper-store' gem 'hyper-state', path: '../hyper-state' gem 'hyperstack-config', path: '../hyperstack-config' #gem 'unparser', path: '../../../unparser' -gem 'opal', '1.0.5' +gem 'opal' #, '1.0.5' gemspec diff --git a/ruby/hyperstack-config/hyperstack-config.gemspec b/ruby/hyperstack-config/hyperstack-config.gemspec index 7a7e575e9..794c74e51 100644 --- a/ruby/hyperstack-config/hyperstack-config.gemspec +++ b/ruby/hyperstack-config/hyperstack-config.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'listen', '~> 3.0' # for hot loader # spec.add_dependency 'mini_racer', '~> 0.2.6' - spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 1.1' + spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 2.0' spec.add_dependency 'opal-browser' # this is needed everywhere else so its loaded here spec.add_dependency 'uglifier' spec.add_dependency 'websocket' # for hot loader diff --git a/ruby/rails-hyperstack/Gemfile b/ruby/rails-hyperstack/Gemfile index bb2b68734..70876008e 100644 --- a/ruby/rails-hyperstack/Gemfile +++ b/ruby/rails-hyperstack/Gemfile @@ -8,5 +8,5 @@ gem 'hyper-router', path: '../hyper-router' gem 'hyper-spec', path: '../hyper-spec' gem 'webpacker' # TODO: figure out why these two are necessary! gem 'turbolinks' -gem "selenium-webdriver", '3.142.7' +gem "selenium-webdriver" #, '3.142.7' gemspec diff --git a/ruby/rails-hyperstack/rails-hyperstack.gemspec b/ruby/rails-hyperstack/rails-hyperstack.gemspec index 809ff3438..75a674a76 100644 --- a/ruby/rails-hyperstack/rails-hyperstack.gemspec +++ b/ruby/rails-hyperstack/rails-hyperstack.gemspec @@ -59,7 +59,7 @@ You can control how much of the stack gets installed as well: spec.add_dependency 'hyper-router', Hyperstack::ROUTERVERSION spec.add_dependency 'hyperstack-config', Hyperstack::VERSION spec.add_dependency 'opal-rails' - spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 1.1' + spec.add_dependency 'opal', ENV['OPAL_VERSION'] || '>= 0.11.0', '< 2.0' spec.add_dependency 'react-rails', '>= 2.4.0', '< 2.7.0' # spec.add_dependency 'mini_racer', '~> 0.2.6' # spec.add_dependency 'libv8', '~> 7.3.492.27.1' From ecfcc562a5ebe871f97058536aed5a419637f277 Mon Sep 17 00:00:00 2001 From: michail Date: Mon, 10 Jul 2023 19:01:33 +0300 Subject: [PATCH 54/67] Export --- .ruby-version | 1 + login_to_registry.sh | 2 ++ node_modules/.yarn-integrity | 12 ++++++++++++ ruby/hyper-component/yarn.lock | 4 ++++ ruby/hyper-i18n/node_modules/.yarn-integrity | 10 ++++++++++ ruby/hyper-i18n/yarn.lock | 4 ++++ ruby/hyper-model/node_modules/.yarn-integrity | 12 ++++++++++++ ruby/hyper-model/yarn.lock | 4 ++++ ruby/hyper-operation/node_modules/.yarn-integrity | 10 ++++++++++ ruby/hyper-operation/yarn.lock | 4 ++++ ruby/hyper-spec/node_modules/.yarn-integrity | 10 ++++++++++ ruby/hyper-state/node_modules/.yarn-integrity | 10 ++++++++++ ruby/hyper-store/node_modules/.yarn-integrity | 10 ++++++++++ ruby/hyper-trace/node_modules/.yarn-integrity | 10 ++++++++++ ruby/hyperstack-config/node_modules/.yarn-integrity | 10 ++++++++++ ruby/node_modules/.yarn-integrity | 10 ++++++++++ 16 files changed, 123 insertions(+) create mode 100644 .ruby-version create mode 100755 login_to_registry.sh create mode 100644 node_modules/.yarn-integrity create mode 100644 ruby/hyper-component/yarn.lock create mode 100644 ruby/hyper-i18n/node_modules/.yarn-integrity create mode 100644 ruby/hyper-i18n/yarn.lock create mode 100644 ruby/hyper-model/node_modules/.yarn-integrity create mode 100644 ruby/hyper-model/yarn.lock create mode 100644 ruby/hyper-operation/node_modules/.yarn-integrity create mode 100644 ruby/hyper-operation/yarn.lock create mode 100644 ruby/hyper-spec/node_modules/.yarn-integrity create mode 100644 ruby/hyper-state/node_modules/.yarn-integrity create mode 100644 ruby/hyper-store/node_modules/.yarn-integrity create mode 100644 ruby/hyper-trace/node_modules/.yarn-integrity create mode 100644 ruby/hyperstack-config/node_modules/.yarn-integrity create mode 100644 ruby/node_modules/.yarn-integrity diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..6a81b4c83 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.7.8 diff --git a/login_to_registry.sh b/login_to_registry.sh new file mode 100755 index 000000000..4febf320c --- /dev/null +++ b/login_to_registry.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +docker login -u $LOGNAME -p $GEM_SERVER_KEY ${PRIVATE_REGISTRY} \ No newline at end of file diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity new file mode 100644 index 000000000..9daf555b1 --- /dev/null +++ b/node_modules/.yarn-integrity @@ -0,0 +1,12 @@ +{ + "systemParams": "darwin-x64-115", + "modulesFolders": [ + "node_modules" + ], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyper-component/yarn.lock b/ruby/hyper-component/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-component/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-i18n/node_modules/.yarn-integrity b/ruby/hyper-i18n/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/hyper-i18n/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyper-i18n/yarn.lock b/ruby/hyper-i18n/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-i18n/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-model/node_modules/.yarn-integrity b/ruby/hyper-model/node_modules/.yarn-integrity new file mode 100644 index 000000000..f498cf632 --- /dev/null +++ b/ruby/hyper-model/node_modules/.yarn-integrity @@ -0,0 +1,12 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [ + "node_modules" + ], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyper-model/yarn.lock b/ruby/hyper-model/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-model/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-operation/node_modules/.yarn-integrity b/ruby/hyper-operation/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/hyper-operation/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyper-operation/yarn.lock b/ruby/hyper-operation/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-operation/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-spec/node_modules/.yarn-integrity b/ruby/hyper-spec/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/hyper-spec/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyper-state/node_modules/.yarn-integrity b/ruby/hyper-state/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/hyper-state/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyper-store/node_modules/.yarn-integrity b/ruby/hyper-store/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/hyper-store/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyper-trace/node_modules/.yarn-integrity b/ruby/hyper-trace/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/hyper-trace/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/hyperstack-config/node_modules/.yarn-integrity b/ruby/hyperstack-config/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/hyperstack-config/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file diff --git a/ruby/node_modules/.yarn-integrity b/ruby/node_modules/.yarn-integrity new file mode 100644 index 000000000..3f7172cd8 --- /dev/null +++ b/ruby/node_modules/.yarn-integrity @@ -0,0 +1,10 @@ +{ + "systemParams": "linux-x64-93", + "modulesFolders": [], + "flags": [], + "linkedModules": [], + "topLevelPatterns": [], + "lockfileEntries": {}, + "files": [], + "artifacts": {} +} \ No newline at end of file From 4dde8947498d4b6621339b81381f1f860b8211f3 Mon Sep 17 00:00:00 2001 From: michail Date: Wed, 19 Jul 2023 11:53:34 +0300 Subject: [PATCH 55/67] setup gocd pipeline --- hyperstack.gocd.yaml | 593 ++++++++++++++++--------------------------- runone | 2 + 2 files changed, 220 insertions(+), 375 deletions(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 5d110542a..af8e51ed1 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -1,4 +1,218 @@ format_version: 10 +common: + on_cancel: &cancel + exec: &exec_cancel + arguments: + - compose + - run + - --rm + - --entrypoint + - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" + - hyperstack + command: docker + run_if: any + test_jobs: &test_jobs + rails-hyperstack: + environment_variables: + COMPONENT: rails-hyperstack + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-spec: + environment_variables: + COMPONENT: hyper-spec + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-trace: + environment_variables: + COMPONENT: hyper-trace + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyperstack-config: + environment_variables: + COMPONENT: hyperstack-config + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-state: + environment_variables: + COMPONENT: hyper-state + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-component: + environment_variables: + COMPONENT: hyper-component + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-router: + environment_variables: + COMPONENT: hyper-router + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-store: + environment_variables: + COMPONENT: hyper-store + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-operation: + environment_variables: + COMPONENT: hyper-operation + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-model-part1: + environment_variables: + COMPONENT: hyper-model + TASK: part1 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-model-part2: + environment_variables: + COMPONENT: hyper-model + TASK: part2 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-model-part3: + environment_variables: + COMPONENT: hyper-model + TASK: part3 + DB: hyper_mesh_test_db + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel + hyper-i18n: + environment_variables: + COMPONENT: hyper-i18n + timeout: 0 + tasks: + - exec: + arguments: + - compose + - run + - --rm + - hyperstack + command: docker + run_if: passed + on_cancel: *cancel + - exec: *exec_cancel environments: test: pipelines: @@ -45,394 +259,23 @@ pipelines: auto_update: true branch: edge stages: - - cleanup: - fetch_materials: false - keep_artifacts: false - clean_workspace: false - approval: - type: success - allow_only_on_success: false - jobs: - cleanup: - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - --entrypoint - - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'" - - hyperstack - command: docker - run_if: passed - ruby-version-2-7-8: environment_variables: RUBY_VERSION: 2.7.8 - fetch_materials: false + fetch_materials: true keep_artifacts: false clean_workspace: false approval: type: success allow_only_on_success: false - jobs: - rails-hyperstack: - environment_variables: - COMPONENT: rails-hyperstack - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-spec: - environment_variables: - COMPONENT: hyper-spec - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-trace: - environment_variables: - COMPONENT: hyper-trace - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyperstack-config: - environment_variables: - COMPONENT: hyperstack-config - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-state: - environment_variables: - COMPONENT: hyper-state - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-component: - environment_variables: - COMPONENT: hyper-component - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-router: - environment_variables: - COMPONENT: hyper-router - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-store: - environment_variables: - COMPONENT: hyper-store - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-operation: - environment_variables: - COMPONENT: hyper-operation - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-model-part1: - environment_variables: - COMPONENT: hyper-model - TASK: part1 - DB: hyper_mesh_test_db - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-model-part2: - environment_variables: - COMPONENT: hyper-model - TASK: part2 - DB: hyper_mesh_test_db - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-model-part3: - environment_variables: - COMPONENT: hyper-model - TASK: part3 - DB: hyper_mesh_test_db - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-i18n: - environment_variables: - COMPONENT: hyper-i18n - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed + jobs: *test_jobs - ruby-version-3-0-6: environment_variables: RUBY_VERSION: 3.0.6 - fetch_materials: false + fetch_materials: true keep_artifacts: false clean_workspace: false approval: type: success allow_only_on_success: false - jobs: - rails-hyperstack: - environment_variables: - COMPONENT: rails-hyperstack - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-spec: - environment_variables: - COMPONENT: hyper-spec - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-trace: - environment_variables: - COMPONENT: hyper-trace - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyperstack-config: - environment_variables: - COMPONENT: hyperstack-config - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-state: - environment_variables: - COMPONENT: hyper-state - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-component: - environment_variables: - COMPONENT: hyper-component - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-router: - environment_variables: - COMPONENT: hyper-router - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-store: - environment_variables: - COMPONENT: hyper-store - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-operation: - environment_variables: - COMPONENT: hyper-operation - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-model-part1: - environment_variables: - COMPONENT: hyper-model - TASK: part1 - DB: hyper_mesh_test_db - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-model-part2: - environment_variables: - COMPONENT: hyper-model - TASK: part2 - DB: hyper_mesh_test_db - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-model-part3: - environment_variables: - COMPONENT: hyper-model - TASK: part3 - DB: hyper_mesh_test_db - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed - hyper-i18n: - environment_variables: - COMPONENT: hyper-i18n - timeout: 0 - tasks: - - exec: - arguments: - - compose - - run - - --rm - - hyperstack - command: docker - run_if: passed + jobs: *test_jobs \ No newline at end of file diff --git a/runone b/runone index dd843ee69..b0fa86053 100755 --- a/runone +++ b/runone @@ -6,6 +6,8 @@ redis-server & sleep 1 rbenv global $RUBY_VERSION psql -c 'create database hyper_mesh_test_db;' -U postgres +#mysql -u root -e 'create database test_hyper_operation_db;' + ./runtests #DRIVER=travis COMPONENT=rails-hyperstack RUBY_VERSION=2.7.8 ./runtests #DRIVER=travis COMPONENT=hyper-spec RUBY_VERSION=2.7.8 ./runtests From 830f3c67bd3005a3c40900fbb69a0a0c87137f55 Mon Sep 17 00:00:00 2001 From: michail Date: Wed, 19 Jul 2023 19:04:57 +0300 Subject: [PATCH 56/67] remove yarn files --- node_modules/.yarn-integrity | 12 - ruby/hyper-component/yarn.lock | 4 - ruby/hyper-i18n/node_modules/.yarn-integrity | 10 - ruby/hyper-i18n/yarn.lock | 4 - ruby/hyper-model/node_modules/.yarn-integrity | 12 - ruby/hyper-model/yarn.lock | 4 - .../node_modules/.yarn-integrity | 10 - ruby/hyper-operation/yarn.lock | 4 - ruby/hyper-router/yarn.lock | 248 ------------------ ruby/hyper-spec/node_modules/.yarn-integrity | 10 - ruby/hyper-spec/yarn.lock | 4 - ruby/hyper-state/node_modules/.yarn-integrity | 10 - ruby/hyper-state/yarn.lock | 4 - ruby/hyper-store/node_modules/.yarn-integrity | 10 - ruby/hyper-store/yarn.lock | 4 - ruby/hyper-trace/node_modules/.yarn-integrity | 10 - ruby/hyper-trace/yarn.lock | 4 - .../node_modules/.yarn-integrity | 10 - ruby/hyperstack-config/yarn.lock | 4 - ruby/node_modules/.yarn-integrity | 10 - 20 files changed, 388 deletions(-) delete mode 100644 node_modules/.yarn-integrity delete mode 100644 ruby/hyper-component/yarn.lock delete mode 100644 ruby/hyper-i18n/node_modules/.yarn-integrity delete mode 100644 ruby/hyper-i18n/yarn.lock delete mode 100644 ruby/hyper-model/node_modules/.yarn-integrity delete mode 100644 ruby/hyper-model/yarn.lock delete mode 100644 ruby/hyper-operation/node_modules/.yarn-integrity delete mode 100644 ruby/hyper-operation/yarn.lock delete mode 100644 ruby/hyper-router/yarn.lock delete mode 100644 ruby/hyper-spec/node_modules/.yarn-integrity delete mode 100644 ruby/hyper-spec/yarn.lock delete mode 100644 ruby/hyper-state/node_modules/.yarn-integrity delete mode 100644 ruby/hyper-state/yarn.lock delete mode 100644 ruby/hyper-store/node_modules/.yarn-integrity delete mode 100644 ruby/hyper-store/yarn.lock delete mode 100644 ruby/hyper-trace/node_modules/.yarn-integrity delete mode 100644 ruby/hyper-trace/yarn.lock delete mode 100644 ruby/hyperstack-config/node_modules/.yarn-integrity delete mode 100644 ruby/hyperstack-config/yarn.lock delete mode 100644 ruby/node_modules/.yarn-integrity diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity deleted file mode 100644 index 9daf555b1..000000000 --- a/node_modules/.yarn-integrity +++ /dev/null @@ -1,12 +0,0 @@ -{ - "systemParams": "darwin-x64-115", - "modulesFolders": [ - "node_modules" - ], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-component/yarn.lock b/ruby/hyper-component/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-component/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyper-i18n/node_modules/.yarn-integrity b/ruby/hyper-i18n/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/hyper-i18n/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-i18n/yarn.lock b/ruby/hyper-i18n/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-i18n/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyper-model/node_modules/.yarn-integrity b/ruby/hyper-model/node_modules/.yarn-integrity deleted file mode 100644 index f498cf632..000000000 --- a/ruby/hyper-model/node_modules/.yarn-integrity +++ /dev/null @@ -1,12 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [ - "node_modules" - ], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-model/yarn.lock b/ruby/hyper-model/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-model/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyper-operation/node_modules/.yarn-integrity b/ruby/hyper-operation/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/hyper-operation/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-operation/yarn.lock b/ruby/hyper-operation/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-operation/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyper-router/yarn.lock b/ruby/hyper-router/yarn.lock deleted file mode 100644 index bc8e1f53f..000000000 --- a/ruby/hyper-router/yarn.lock +++ /dev/null @@ -1,248 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@babel/runtime@^7.1.2": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.6.tgz#57d64b9ae3cff1d67eb067ae117dac087f5bd438" - integrity sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ== - dependencies: - regenerator-runtime "^0.13.11" - -asap@~2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== - -core-js@^1.0.0: - version "1.2.7" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" - integrity sha512-ZiPp9pZlgxpWRu0M+YWbm6+aQ84XEfH1JRXvfOc/fILWI0VKhLC2LX13X1NYq4fULzLMq7Hfh43CSo2/aIaUPA== - -create-react-class@^15.6.0: - version "15.7.0" - resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.7.0.tgz#7499d7ca2e69bb51d13faf59bd04f0c65a1d6c1e" - integrity sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng== - dependencies: - loose-envify "^1.3.1" - object-assign "^4.1.1" - -encoding@^0.1.11: - version "0.1.13" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" - integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== - dependencies: - iconv-lite "^0.6.2" - -fbjs@^0.8.9: - version "0.8.18" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.18.tgz#9835e0addb9aca2eff53295cd79ca1cfc7c9662a" - integrity sha512-EQaWFK+fEPSoibjNy8IxUtaFOMXcWsY0JaVrQoZR9zC8N2Ygf9iDITPWjUTVIax95b6I742JFLqASHfsag/vKA== - dependencies: - core-js "^1.0.0" - isomorphic-fetch "^2.1.1" - loose-envify "^1.0.0" - object-assign "^4.1.0" - promise "^7.1.1" - setimmediate "^1.0.5" - ua-parser-js "^0.7.30" - -history@^4.7.2: - version "4.10.1" - resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3" - integrity sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew== - dependencies: - "@babel/runtime" "^7.1.2" - loose-envify "^1.2.0" - resolve-pathname "^3.0.0" - tiny-invariant "^1.0.2" - tiny-warning "^1.0.0" - value-equal "^1.0.1" - -hoist-non-react-statics@^2.5.0: - version "2.5.5" - resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47" - integrity sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw== - -iconv-lite@^0.6.2: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -invariant@^2.2.4: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== - dependencies: - loose-envify "^1.0.0" - -is-stream@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== - -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== - -isomorphic-fetch@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - integrity sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA== - dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" - -"js-tokens@^3.0.0 || ^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -node-fetch@^1.0.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" - integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== - dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" - -object-assign@^4.1.0, object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - -path-to-regexp@^1.7.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a" - integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA== - dependencies: - isarray "0.0.1" - -promise@^7.1.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" - integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== - dependencies: - asap "~2.0.3" - -prop-types@^15.5.10, prop-types@^15.6.1: - version "15.8.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" - integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== - dependencies: - loose-envify "^1.4.0" - object-assign "^4.1.1" - react-is "^16.13.1" - -react-dom@^15.6.1: - version "15.7.0" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.7.0.tgz#39106dee996d0742fb0f43d567ef8b8153483ab2" - integrity sha512-mpjXqC2t1FuYsILOLCj0kg6pbg460byZkVA/80VtDmKU/pYmoTdHOtaMcTRIDiyXLz4sIur0cQ04nOC6iGndJg== - dependencies: - fbjs "^0.8.9" - loose-envify "^1.1.0" - object-assign "^4.1.0" - prop-types "^15.5.10" - -react-is@^16.13.1: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== - -react-router-dom@^4.2.2: - version "4.3.1" - resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-4.3.1.tgz#4c2619fc24c4fa87c9fd18f4fb4a43fe63fbd5c6" - integrity sha512-c/MlywfxDdCp7EnB7YfPMOfMD3tOtIjrQlj/CKfNMBxdmpJP8xcz5P/UAFn3JbnQCNUxsHyVVqllF9LhgVyFCA== - dependencies: - history "^4.7.2" - invariant "^2.2.4" - loose-envify "^1.3.1" - prop-types "^15.6.1" - react-router "^4.3.1" - warning "^4.0.1" - -react-router@^4.2.0, react-router@^4.3.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/react-router/-/react-router-4.3.1.tgz#aada4aef14c809cb2e686b05cee4742234506c4e" - integrity sha512-yrvL8AogDh2X42Dt9iknk4wF4V8bWREPirFfS9gLU1huk6qK41sg7Z/1S81jjTrGHxa3B8R3J6xIkDAA6CVarg== - dependencies: - history "^4.7.2" - hoist-non-react-statics "^2.5.0" - invariant "^2.2.4" - loose-envify "^1.3.1" - path-to-regexp "^1.7.0" - prop-types "^15.6.1" - warning "^4.0.1" - -react@^15.6.1: - version "15.7.0" - resolved "https://registry.yarnpkg.com/react/-/react-15.7.0.tgz#10308fd42ac6912a250bf00380751abc41ac7106" - integrity sha512-5/MMRYmpmM0sMTHGLossnJCrmXQIiJilD6y3YN3TzAwGFj6zdnMtFv6xmi65PHKRV+pehIHpT7oy67Sr6s9AHA== - dependencies: - create-react-class "^15.6.0" - fbjs "^0.8.9" - loose-envify "^1.1.0" - object-assign "^4.1.0" - prop-types "^15.5.10" - -regenerator-runtime@^0.13.11: - version "0.13.11" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" - integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== - -resolve-pathname@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd" - integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng== - -"safer-buffer@>= 2.1.2 < 3.0.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== - -tiny-invariant@^1.0.2: - version "1.3.1" - resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642" - integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw== - -tiny-warning@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754" - integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA== - -ua-parser-js@^0.7.30: - version "0.7.35" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.35.tgz#8bda4827be4f0b1dda91699a29499575a1f1d307" - integrity sha512-veRf7dawaj9xaWEu9HoTVn5Pggtc/qj+kqTOFvNiN1l0YdxwC1kvel57UCjThjGa3BHBihE8/UJAHI+uQHmd/g== - -value-equal@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c" - integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw== - -warning@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3" - integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w== - dependencies: - loose-envify "^1.0.0" - -whatwg-fetch@>=0.10.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" - integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== diff --git a/ruby/hyper-spec/node_modules/.yarn-integrity b/ruby/hyper-spec/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/hyper-spec/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-spec/yarn.lock b/ruby/hyper-spec/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-spec/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyper-state/node_modules/.yarn-integrity b/ruby/hyper-state/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/hyper-state/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-state/yarn.lock b/ruby/hyper-state/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-state/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyper-store/node_modules/.yarn-integrity b/ruby/hyper-store/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/hyper-store/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-store/yarn.lock b/ruby/hyper-store/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-store/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyper-trace/node_modules/.yarn-integrity b/ruby/hyper-trace/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/hyper-trace/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyper-trace/yarn.lock b/ruby/hyper-trace/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyper-trace/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/hyperstack-config/node_modules/.yarn-integrity b/ruby/hyperstack-config/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/hyperstack-config/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/ruby/hyperstack-config/yarn.lock b/ruby/hyperstack-config/yarn.lock deleted file mode 100644 index fb57ccd13..000000000 --- a/ruby/hyperstack-config/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - diff --git a/ruby/node_modules/.yarn-integrity b/ruby/node_modules/.yarn-integrity deleted file mode 100644 index 3f7172cd8..000000000 --- a/ruby/node_modules/.yarn-integrity +++ /dev/null @@ -1,10 +0,0 @@ -{ - "systemParams": "linux-x64-93", - "modulesFolders": [], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [], - "lockfileEntries": {}, - "files": [], - "artifacts": {} -} \ No newline at end of file From 7a353d8c5cf499070a9c01a8c23b9880c5c69b28 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 20 Jul 2023 09:07:49 +0300 Subject: [PATCH 57/67] remove untaint --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyper-component.rb | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-component/lib/react/react-source.rb | 2 +- ruby/hyper-console/lib/hyper-console.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper-model.rb | 6 +++--- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation.rb | 6 +++--- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyper-router.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyper-state.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyper-store.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper-trace.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack-config.rb | 4 ++-- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 25 files changed, 30 insertions(+), 30 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index b71530065..fc316acd6 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0011' +'1.0.alpha1.8.0012' diff --git a/ruby/hyper-component/lib/hyper-component.rb b/ruby/hyper-component/lib/hyper-component.rb index b68d23cdf..546718252 100644 --- a/ruby/hyper-component/lib/hyper-component.rb +++ b/ruby/hyper-component/lib/hyper-component.rb @@ -47,6 +47,6 @@ require 'hyperstack/component/isomorphic_helpers' require 'hyperstack/ext/component/serializers' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) require 'react/react-source' end diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 4e55c7225..fd2387126 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0011' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0012' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-component/lib/react/react-source.rb b/ruby/hyper-component/lib/react/react-source.rb index cbe9b9f07..9db06b632 100644 --- a/ruby/hyper-component/lib/react/react-source.rb +++ b/ruby/hyper-component/lib/react/react-source.rb @@ -13,5 +13,5 @@ require "react/rails/asset_variant" variant = Hyperstack.env.production? ? :production : :development react_directory = React::Rails::AssetVariant.new({ variant: variant }).react_directory - Opal.append_path react_directory.untaint + Opal.append_path react_directory end diff --git a/ruby/hyper-console/lib/hyper-console.rb b/ruby/hyper-console/lib/hyper-console.rb index cc94d7bcc..083ea7414 100644 --- a/ruby/hyper-console/lib/hyper-console.rb +++ b/ruby/hyper-console/lib/hyper-console.rb @@ -9,5 +9,5 @@ require 'securerandom' else require 'hyperloop/console/engine' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 4c5f07df7..ca46a7119 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n.rb b/ruby/hyper-i18n/lib/hyper-i18n.rb index d3db3ddab..77e35b2f9 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n.rb @@ -19,5 +19,5 @@ else require 'opal' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 036000a02..5a5e48d8d 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 3b4d09733..a228509a8 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end end diff --git a/ruby/hyper-model/lib/hyper-model.rb b/ruby/hyper-model/lib/hyper-model.rb index 93b5e51d0..e7324c702 100644 --- a/ruby/hyper-model/lib/hyper-model.rb +++ b/ruby/hyper-model/lib/hyper-model.rb @@ -62,8 +62,8 @@ require_relative 'active_record_base' require 'hyper_model/version' - Opal.append_path File.expand_path('../sources/', __FILE__).untaint - Opal.append_path File.expand_path('../', __FILE__).untaint - Opal.append_path File.expand_path('../../vendor', __FILE__).untaint + Opal.append_path File.expand_path('../sources/', __FILE__) + Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../../vendor', __FILE__) end require 'enumerable/pluck' diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 8adf89286..ca7f834fe 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end diff --git a/ruby/hyper-operation/lib/hyper-operation.rb b/ruby/hyper-operation/lib/hyper-operation.rb index da470051f..c98d07adc 100644 --- a/ruby/hyper-operation/lib/hyper-operation.rb +++ b/ruby/hyper-operation/lib/hyper-operation.rb @@ -59,7 +59,7 @@ def titleize require 'hyper-operation/server_op' require 'hyper-operation/boot' Opal.use_gem 'mutations', false - Opal.append_path File.expand_path('../sources/', __FILE__).untaint - Opal.append_path File.expand_path('../', __FILE__).untaint - Opal.append_path File.expand_path('../../vendor', __FILE__).untaint + Opal.append_path File.expand_path('../sources/', __FILE__) + Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../../vendor', __FILE__) end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index 52e385506..aeb58e741 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end end diff --git a/ruby/hyper-router/lib/hyper-router.rb b/ruby/hyper-router/lib/hyper-router.rb index c334dddd1..1770ec9ba 100644 --- a/ruby/hyper-router/lib/hyper-router.rb +++ b/ruby/hyper-router/lib/hyper-router.rb @@ -25,5 +25,5 @@ require 'hyperstack/internal/router/isomorphic_methods' require 'hyperstack/router/version' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 0a0e3e12b..65133c82e 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 53e6f4e0b..74cff5ede 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end diff --git a/ruby/hyper-state/lib/hyper-state.rb b/ruby/hyper-state/lib/hyper-state.rb index c5f3e3224..ec44a44af 100644 --- a/ruby/hyper-state/lib/hyper-state.rb +++ b/ruby/hyper-state/lib/hyper-state.rb @@ -16,5 +16,5 @@ require 'ext/object_space' else require 'opal' - Opal.append_path(File.expand_path('../', __FILE__).untaint) + Opal.append_path(File.expand_path('../', __FILE__)) end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index 27984c2da..615a2591d 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end end diff --git a/ruby/hyper-store/lib/hyper-store.rb b/ruby/hyper-store/lib/hyper-store.rb index 3e6a072b0..1d95db07b 100644 --- a/ruby/hyper-store/lib/hyper-store.rb +++ b/ruby/hyper-store/lib/hyper-store.rb @@ -25,5 +25,5 @@ class BaseStoreClass < BasicObject if RUBY_ENGINE != 'opal' require 'opal' - Opal.append_path(File.expand_path('../', __FILE__).untaint) + Opal.append_path(File.expand_path('../', __FILE__)) end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index d863de2d2..ec44a250b 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end end end diff --git a/ruby/hyper-trace/lib/hyper-trace.rb b/ruby/hyper-trace/lib/hyper-trace.rb index a291bd4ec..30d438d8d 100644 --- a/ruby/hyper-trace/lib/hyper-trace.rb +++ b/ruby/hyper-trace/lib/hyper-trace.rb @@ -4,5 +4,5 @@ require 'hyper_trace/react_trace.rb' else require 'opal' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index a3ba87573..674dfb599 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end diff --git a/ruby/hyperstack-config/lib/hyperstack-config.rb b/ruby/hyperstack-config/lib/hyperstack-config.rb index d25d062e1..d14bbe46f 100644 --- a/ruby/hyperstack-config/lib/hyperstack-config.rb +++ b/ruby/hyperstack-config/lib/hyperstack-config.rb @@ -58,6 +58,6 @@ def self.naming_convention Hyperstack.import 'hyperstack/autoloader_starter' # based on the environment pick the directory containing the file with the matching # value for the client. This avoids use of ERB for builds outside of sprockets environment - Opal.append_path(File.expand_path("../hyperstack/environment/#{Hyperstack.env}/", __FILE__).untaint) - Opal.append_path(File.expand_path('../', __FILE__).untaint) + Opal.append_path(File.expand_path("../hyperstack/environment/#{Hyperstack.env}/", __FILE__)) + Opal.append_path(File.expand_path('../', __FILE__)) end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 8548265b2..805d310b9 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0011' + VERSION = '1.0.alpha1.8.0012' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index f521e29be..0cc3262b2 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0011' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0012' end From d477e9657d582a4918fa90c20fa52f22b2f5ee7a Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 20 Jul 2023 16:38:29 +0300 Subject: [PATCH 58/67] change docker agent paths --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyper-component.rb | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-component/lib/react/react-source.rb | 2 +- ruby/hyper-console/lib/hyper-console.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper-model.rb | 6 +++--- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation.rb | 6 +++--- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyper-router.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyper-state.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyper-store.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper-trace.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack-config.rb | 4 ++-- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 25 files changed, 30 insertions(+), 30 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index fc316acd6..e1e788be4 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0012' +'1.0.alpha1.8.0014' diff --git a/ruby/hyper-component/lib/hyper-component.rb b/ruby/hyper-component/lib/hyper-component.rb index 546718252..b68d23cdf 100644 --- a/ruby/hyper-component/lib/hyper-component.rb +++ b/ruby/hyper-component/lib/hyper-component.rb @@ -47,6 +47,6 @@ require 'hyperstack/component/isomorphic_helpers' require 'hyperstack/ext/component/serializers' - Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../', __FILE__).untaint require 'react/react-source' end diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index fd2387126..536871059 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0012' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0014' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-component/lib/react/react-source.rb b/ruby/hyper-component/lib/react/react-source.rb index 9db06b632..cbe9b9f07 100644 --- a/ruby/hyper-component/lib/react/react-source.rb +++ b/ruby/hyper-component/lib/react/react-source.rb @@ -13,5 +13,5 @@ require "react/rails/asset_variant" variant = Hyperstack.env.production? ? :production : :development react_directory = React::Rails::AssetVariant.new({ variant: variant }).react_directory - Opal.append_path react_directory + Opal.append_path react_directory.untaint end diff --git a/ruby/hyper-console/lib/hyper-console.rb b/ruby/hyper-console/lib/hyper-console.rb index 083ea7414..cc94d7bcc 100644 --- a/ruby/hyper-console/lib/hyper-console.rb +++ b/ruby/hyper-console/lib/hyper-console.rb @@ -9,5 +9,5 @@ require 'securerandom' else require 'hyperloop/console/engine' - Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../', __FILE__).untaint end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index ca46a7119..32d6e8e9d 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n.rb b/ruby/hyper-i18n/lib/hyper-i18n.rb index 77e35b2f9..d3db3ddab 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n.rb @@ -19,5 +19,5 @@ else require 'opal' - Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../', __FILE__).untaint end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 5a5e48d8d..ef9810064 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index a228509a8..8cf491c17 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end end diff --git a/ruby/hyper-model/lib/hyper-model.rb b/ruby/hyper-model/lib/hyper-model.rb index e7324c702..93b5e51d0 100644 --- a/ruby/hyper-model/lib/hyper-model.rb +++ b/ruby/hyper-model/lib/hyper-model.rb @@ -62,8 +62,8 @@ require_relative 'active_record_base' require 'hyper_model/version' - Opal.append_path File.expand_path('../sources/', __FILE__) - Opal.append_path File.expand_path('../', __FILE__) - Opal.append_path File.expand_path('../../vendor', __FILE__) + Opal.append_path File.expand_path('../sources/', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../../vendor', __FILE__).untaint end require 'enumerable/pluck' diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index ca7f834fe..3b61a32ab 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end diff --git a/ruby/hyper-operation/lib/hyper-operation.rb b/ruby/hyper-operation/lib/hyper-operation.rb index c98d07adc..da470051f 100644 --- a/ruby/hyper-operation/lib/hyper-operation.rb +++ b/ruby/hyper-operation/lib/hyper-operation.rb @@ -59,7 +59,7 @@ def titleize require 'hyper-operation/server_op' require 'hyper-operation/boot' Opal.use_gem 'mutations', false - Opal.append_path File.expand_path('../sources/', __FILE__) - Opal.append_path File.expand_path('../', __FILE__) - Opal.append_path File.expand_path('../../vendor', __FILE__) + Opal.append_path File.expand_path('../sources/', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../../vendor', __FILE__).untaint end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index aeb58e741..891097838 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end end diff --git a/ruby/hyper-router/lib/hyper-router.rb b/ruby/hyper-router/lib/hyper-router.rb index 1770ec9ba..c334dddd1 100644 --- a/ruby/hyper-router/lib/hyper-router.rb +++ b/ruby/hyper-router/lib/hyper-router.rb @@ -25,5 +25,5 @@ require 'hyperstack/internal/router/isomorphic_methods' require 'hyperstack/router/version' - Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../', __FILE__).untaint end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 65133c82e..103a67c62 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 74cff5ede..8abf7548c 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end diff --git a/ruby/hyper-state/lib/hyper-state.rb b/ruby/hyper-state/lib/hyper-state.rb index ec44a44af..c5f3e3224 100644 --- a/ruby/hyper-state/lib/hyper-state.rb +++ b/ruby/hyper-state/lib/hyper-state.rb @@ -16,5 +16,5 @@ require 'ext/object_space' else require 'opal' - Opal.append_path(File.expand_path('../', __FILE__)) + Opal.append_path(File.expand_path('../', __FILE__).untaint) end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index 615a2591d..db84743c6 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end end diff --git a/ruby/hyper-store/lib/hyper-store.rb b/ruby/hyper-store/lib/hyper-store.rb index 1d95db07b..3e6a072b0 100644 --- a/ruby/hyper-store/lib/hyper-store.rb +++ b/ruby/hyper-store/lib/hyper-store.rb @@ -25,5 +25,5 @@ class BaseStoreClass < BasicObject if RUBY_ENGINE != 'opal' require 'opal' - Opal.append_path(File.expand_path('../', __FILE__)) + Opal.append_path(File.expand_path('../', __FILE__).untaint) end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index ec44a250b..f60d5a0a9 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end end end diff --git a/ruby/hyper-trace/lib/hyper-trace.rb b/ruby/hyper-trace/lib/hyper-trace.rb index 30d438d8d..a291bd4ec 100644 --- a/ruby/hyper-trace/lib/hyper-trace.rb +++ b/ruby/hyper-trace/lib/hyper-trace.rb @@ -4,5 +4,5 @@ require 'hyper_trace/react_trace.rb' else require 'opal' - Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../', __FILE__).untaint end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 674dfb599..a29e57ec5 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end diff --git a/ruby/hyperstack-config/lib/hyperstack-config.rb b/ruby/hyperstack-config/lib/hyperstack-config.rb index d14bbe46f..d25d062e1 100644 --- a/ruby/hyperstack-config/lib/hyperstack-config.rb +++ b/ruby/hyperstack-config/lib/hyperstack-config.rb @@ -58,6 +58,6 @@ def self.naming_convention Hyperstack.import 'hyperstack/autoloader_starter' # based on the environment pick the directory containing the file with the matching # value for the client. This avoids use of ERB for builds outside of sprockets environment - Opal.append_path(File.expand_path("../hyperstack/environment/#{Hyperstack.env}/", __FILE__)) - Opal.append_path(File.expand_path('../', __FILE__)) + Opal.append_path(File.expand_path("../hyperstack/environment/#{Hyperstack.env}/", __FILE__).untaint) + Opal.append_path(File.expand_path('../', __FILE__).untaint) end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 805d310b9..cefcebc63 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0012' + VERSION = '1.0.alpha1.8.0014' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 0cc3262b2..552089708 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0012' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0014' end From 5e5510dbe65356424997b8325a3b73afb7cdb60c Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 25 Jul 2023 19:36:33 +0300 Subject: [PATCH 59/67] for ruby 3.2.2 --- ruby/hyper-component/lib/hyper-component.rb | 2 +- ruby/hyper-component/lib/react/react-source.rb | 2 +- ruby/hyper-console/lib/hyper-console.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n.rb | 2 +- ruby/hyper-model/lib/active_record_base.rb | 14 +++++++------- ruby/hyper-model/lib/hyper-model.rb | 6 +++--- .../hyper-model/lib/reactive_record/permissions.rb | 8 ++++---- ruby/hyper-operation/lib/hyper-operation.rb | 6 +++--- .../lib/hyper-operation/transport/hyperstack.rb | 2 +- ruby/hyper-router/lib/hyper-router.rb | 2 +- ruby/hyper-state/lib/hyper-state.rb | 2 +- ruby/hyper-store/lib/hyper-store.rb | 2 +- ruby/hyper-trace/lib/hyper-trace.rb | 2 +- ruby/hyperstack-config/lib/hyperstack-config.rb | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/ruby/hyper-component/lib/hyper-component.rb b/ruby/hyper-component/lib/hyper-component.rb index b68d23cdf..546718252 100644 --- a/ruby/hyper-component/lib/hyper-component.rb +++ b/ruby/hyper-component/lib/hyper-component.rb @@ -47,6 +47,6 @@ require 'hyperstack/component/isomorphic_helpers' require 'hyperstack/ext/component/serializers' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) require 'react/react-source' end diff --git a/ruby/hyper-component/lib/react/react-source.rb b/ruby/hyper-component/lib/react/react-source.rb index cbe9b9f07..9db06b632 100644 --- a/ruby/hyper-component/lib/react/react-source.rb +++ b/ruby/hyper-component/lib/react/react-source.rb @@ -13,5 +13,5 @@ require "react/rails/asset_variant" variant = Hyperstack.env.production? ? :production : :development react_directory = React::Rails::AssetVariant.new({ variant: variant }).react_directory - Opal.append_path react_directory.untaint + Opal.append_path react_directory end diff --git a/ruby/hyper-console/lib/hyper-console.rb b/ruby/hyper-console/lib/hyper-console.rb index cc94d7bcc..083ea7414 100644 --- a/ruby/hyper-console/lib/hyper-console.rb +++ b/ruby/hyper-console/lib/hyper-console.rb @@ -9,5 +9,5 @@ require 'securerandom' else require 'hyperloop/console/engine' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyper-i18n/lib/hyper-i18n.rb b/ruby/hyper-i18n/lib/hyper-i18n.rb index d3db3ddab..77e35b2f9 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n.rb @@ -19,5 +19,5 @@ else require 'opal' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyper-model/lib/active_record_base.rb b/ruby/hyper-model/lib/active_record_base.rb index 464aeda45..56b44b531 100644 --- a/ruby/hyper-model/lib/active_record_base.rb +++ b/ruby/hyper-model/lib/active_record_base.rb @@ -286,23 +286,23 @@ def regulate_relationship(name, &block) alias pre_syncromesh_has_many has_many - def has_many(name, *args, &block) + def has_many(name, *args,**kwargs, &block) __synchromesh_regulate_from_macro( - opts = args.extract_options!, + opts = args.extract_options!.merge(kwargs), name, method_defined?(:"__secure_remote_access_to_#{name}"), &method(:regulate_relationship) ) - pre_syncromesh_has_many name, *args, opts.except(:regulate), &block + pre_syncromesh_has_many name, *args, **opts.except(:regulate), &block end %i[belongs_to has_one composed_of].each do |macro| alias_method :"pre_syncromesh_#{macro}", macro - define_method(macro) do |name, *aargs, &block| - define_method(:"__secure_remote_access_to_#{name}") do |this, _acting_user, *args| - this.send(name, *args) + define_method(macro) do |name, *aargs,**kkwargs, &block| + define_method(:"__secure_remote_access_to_#{name}") do |this, _acting_user, *args,**kargs| + this.send(name, *args,**kargs) end - send(:"pre_syncromesh_#{macro}", name, *aargs, &block) + send(:"pre_syncromesh_#{macro}", name, *aargs,**kkwargs, &block) end end end diff --git a/ruby/hyper-model/lib/hyper-model.rb b/ruby/hyper-model/lib/hyper-model.rb index 93b5e51d0..e7324c702 100644 --- a/ruby/hyper-model/lib/hyper-model.rb +++ b/ruby/hyper-model/lib/hyper-model.rb @@ -62,8 +62,8 @@ require_relative 'active_record_base' require 'hyper_model/version' - Opal.append_path File.expand_path('../sources/', __FILE__).untaint - Opal.append_path File.expand_path('../', __FILE__).untaint - Opal.append_path File.expand_path('../../vendor', __FILE__).untaint + Opal.append_path File.expand_path('../sources/', __FILE__) + Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../../vendor', __FILE__) end require 'enumerable/pluck' diff --git a/ruby/hyper-model/lib/reactive_record/permissions.rb b/ruby/hyper-model/lib/reactive_record/permissions.rb index d074f5b8d..4f51f963e 100644 --- a/ruby/hyper-model/lib/reactive_record/permissions.rb +++ b/ruby/hyper-model/lib/reactive_record/permissions.rb @@ -74,12 +74,12 @@ class << self attr_reader :reactive_record_association_keys [:has_many, :belongs_to, :composed_of].each do |macro| - define_method "#{macro}_with_reactive_record_add_changed_method".to_sym do |attr_name, *args, &block| + define_method "#{macro}_with_reactive_record_add_changed_method".to_sym do |attr_name, *args,**kwargs, &block| define_method "#{attr_name}_changed?".to_sym do instance_variable_get "@reactive_record_#{attr_name}_changed".to_sym end (@reactive_record_association_keys ||= []) << attr_name - send "#{macro}_without_reactive_record_add_changed_method".to_sym, attr_name, *args, &block + send "#{macro}_without_reactive_record_add_changed_method".to_sym, attr_name, *args,**kwargs, &block end alias_method "#{macro}_without_reactive_record_add_changed_method".to_sym, macro alias_method macro, "#{macro}_with_reactive_record_add_changed_method".to_sym @@ -87,8 +87,8 @@ class << self alias belongs_to_without_reactive_record_add_is_method belongs_to - def belongs_to(attr_name, *args) - belongs_to_without_reactive_record_add_is_method(attr_name, *args).tap do + def belongs_to(attr_name, *args,**kwargs) + belongs_to_without_reactive_record_add_is_method(attr_name, *args,**kwargs).tap do define_method "#{attr_name}_is?".to_sym do |model| attributes[self.class.reflections[attr_name.to_s].foreign_key] == model.id end diff --git a/ruby/hyper-operation/lib/hyper-operation.rb b/ruby/hyper-operation/lib/hyper-operation.rb index da470051f..c98d07adc 100644 --- a/ruby/hyper-operation/lib/hyper-operation.rb +++ b/ruby/hyper-operation/lib/hyper-operation.rb @@ -59,7 +59,7 @@ def titleize require 'hyper-operation/server_op' require 'hyper-operation/boot' Opal.use_gem 'mutations', false - Opal.append_path File.expand_path('../sources/', __FILE__).untaint - Opal.append_path File.expand_path('../', __FILE__).untaint - Opal.append_path File.expand_path('../../vendor', __FILE__).untaint + Opal.append_path File.expand_path('../sources/', __FILE__) + Opal.append_path File.expand_path('../', __FILE__) + Opal.append_path File.expand_path('../../vendor', __FILE__) end diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb b/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb index 31de6917e..c8a26a8f2 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb @@ -127,7 +127,7 @@ def self.send_data(channel, data) elsif transport == :pusher pusher.trigger("#{Hyperstack.channel}-#{data[1][:channel].gsub('::', '==')}", *data) elsif transport == :action_cable - ActionCable.server.broadcast("hyperstack-#{channel}", message: data[0], data: data[1]) + ActionCable.server.broadcast("hyperstack-#{channel}", { message: data[0], data: data[1] }) end end diff --git a/ruby/hyper-router/lib/hyper-router.rb b/ruby/hyper-router/lib/hyper-router.rb index c334dddd1..1770ec9ba 100644 --- a/ruby/hyper-router/lib/hyper-router.rb +++ b/ruby/hyper-router/lib/hyper-router.rb @@ -25,5 +25,5 @@ require 'hyperstack/internal/router/isomorphic_methods' require 'hyperstack/router/version' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyper-state/lib/hyper-state.rb b/ruby/hyper-state/lib/hyper-state.rb index c5f3e3224..ec44a44af 100644 --- a/ruby/hyper-state/lib/hyper-state.rb +++ b/ruby/hyper-state/lib/hyper-state.rb @@ -16,5 +16,5 @@ require 'ext/object_space' else require 'opal' - Opal.append_path(File.expand_path('../', __FILE__).untaint) + Opal.append_path(File.expand_path('../', __FILE__)) end diff --git a/ruby/hyper-store/lib/hyper-store.rb b/ruby/hyper-store/lib/hyper-store.rb index 3e6a072b0..1d95db07b 100644 --- a/ruby/hyper-store/lib/hyper-store.rb +++ b/ruby/hyper-store/lib/hyper-store.rb @@ -25,5 +25,5 @@ class BaseStoreClass < BasicObject if RUBY_ENGINE != 'opal' require 'opal' - Opal.append_path(File.expand_path('../', __FILE__).untaint) + Opal.append_path(File.expand_path('../', __FILE__)) end diff --git a/ruby/hyper-trace/lib/hyper-trace.rb b/ruby/hyper-trace/lib/hyper-trace.rb index a291bd4ec..30d438d8d 100644 --- a/ruby/hyper-trace/lib/hyper-trace.rb +++ b/ruby/hyper-trace/lib/hyper-trace.rb @@ -4,5 +4,5 @@ require 'hyper_trace/react_trace.rb' else require 'opal' - Opal.append_path File.expand_path('../', __FILE__).untaint + Opal.append_path File.expand_path('../', __FILE__) end diff --git a/ruby/hyperstack-config/lib/hyperstack-config.rb b/ruby/hyperstack-config/lib/hyperstack-config.rb index d25d062e1..d14bbe46f 100644 --- a/ruby/hyperstack-config/lib/hyperstack-config.rb +++ b/ruby/hyperstack-config/lib/hyperstack-config.rb @@ -58,6 +58,6 @@ def self.naming_convention Hyperstack.import 'hyperstack/autoloader_starter' # based on the environment pick the directory containing the file with the matching # value for the client. This avoids use of ERB for builds outside of sprockets environment - Opal.append_path(File.expand_path("../hyperstack/environment/#{Hyperstack.env}/", __FILE__).untaint) - Opal.append_path(File.expand_path('../', __FILE__).untaint) + Opal.append_path(File.expand_path("../hyperstack/environment/#{Hyperstack.env}/", __FILE__)) + Opal.append_path(File.expand_path('../', __FILE__)) end From 2844702658975fdf62cdf45caddc51707e22b734 Mon Sep 17 00:00:00 2001 From: michail Date: Tue, 25 Jul 2023 19:42:18 +0300 Subject: [PATCH 60/67] 1.8.0015 --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index e1e788be4..0a7c82473 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0014' +'1.0.alpha1.8.0015' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 536871059..3f6fcd181 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0014' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0015' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 32d6e8e9d..5ffd3ac91 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index ef9810064..ab22d7572 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 8cf491c17..e8c949644 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 3b61a32ab..77ff9c522 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index 891097838..da05da5a0 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 103a67c62..2466c9fe1 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 8abf7548c..99eb6b383 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index db84743c6..f3fb7b4d8 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index f60d5a0a9..3d13c6081 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index a29e57ec5..0fc3a0fe2 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index cefcebc63..b60f12446 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0014' + VERSION = '1.0.alpha1.8.0015' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 552089708..8d9977232 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0014' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0015' end From 9c26b81f3eaddc09603eb1ad6e61719dc9c020c6 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 27 Jul 2023 12:25:54 +0300 Subject: [PATCH 61/67] 1.8.0016 remove redis client warning --- HYPERSTACK_VERSION | 2 +- ruby/hyper-component/lib/hyperstack/component/version.rb | 2 +- ruby/hyper-console/lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- ruby/hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- .../transport/connection_adapter/redis/redis_record.rb | 4 ++-- ruby/hyper-operation/lib/hyper-operation/version.rb | 2 +- ruby/hyper-router/lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-state/lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- ruby/hyperstack-config/lib/hyperstack/config/version.rb | 2 +- ruby/rails-hyperstack/lib/hyperstack/version.rb | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index 0a7c82473..59711a51a 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0015' +'1.0.alpha1.8.0016' diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index 3f6fcd181..d04472bb3 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0015' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0016' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 5ffd3ac91..063a4fe83 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index ab22d7572..5281c0fad 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index e8c949644..49311f188 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index 77ff9c522..a09ee3b74 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb index c1c8440d3..ffc339f40 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb @@ -123,7 +123,7 @@ def save self.class.client.hmset("#{table_name}:#{id}", *self.class.jsonize_attributes(attributes)) unless self.class.client.smembers(table_name).include?(id) - self.class.client.sadd(table_name, id) + self.class.client.sadd?(table_name, id) end true @@ -135,7 +135,7 @@ def update(opts = {}) end def destroy - self.class.client.srem(table_name, id) + self.class.client.srem?(table_name, id) self.class.client.hdel("#{table_name}:#{id}", attributes.keys) diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index da05da5a0..f685c34d7 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 2466c9fe1..7b79d008f 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index 99eb6b383..dc56e8452 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index f3fb7b4d8..acf139bbd 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index 3d13c6081..603e75cf2 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 0fc3a0fe2..5c3abd22b 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index b60f12446..297a3fb59 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0015' + VERSION = '1.0.alpha1.8.0016' end end diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 8d9977232..0e15d0c8c 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0015' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0016' end From 80babd0420477951ad36baa54e92420ff4deda10 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 27 Jul 2023 16:26:11 +0300 Subject: [PATCH 62/67] Hyperstack-config pass --- .ruby-version | 1 - HYPERSTACK_VERSION | 2 +- docker-compose.yml | 10 +- docs/specs/Gemfile.lock | 443 ------------------ hyperstack.gocd.yaml | 2 +- ruby/examples/misc/sinatra_app/Gemfile.lock | 159 ------- ruby/hyper-component/hyper-component.gemspec | 2 +- .../lib/hyperstack/component/version.rb | 2 +- ruby/hyper-component/yarn.lock | 4 + .../lib/hyperloop/console/version.rb | 2 +- ruby/hyper-i18n/lib/hyper-i18n/version.rb | 2 +- .../hyper-i18n/lib/hyperstack/i18n/version.rb | 2 +- ruby/hyper-model/hyper-model.gemspec | 2 +- ruby/hyper-model/lib/hyper_model/version.rb | 2 +- ruby/hyper-model/spec/test_app/db/schema.rb | 122 +++++ ruby/hyper-model/yarn.lock | 4 + ruby/hyper-operation/hyper-operation.gemspec | 2 +- .../lib/hyper-operation/version.rb | 2 +- ruby/hyper-operation/yarn.lock | 4 + ruby/hyper-router/hyper-router.gemspec | 2 +- .../lib/hyperstack/router/version.rb | 2 +- ruby/hyper-spec/hyper-spec.gemspec | 2 +- .../lib/hyper-spec/internal/time_cop.rb | 2 +- ruby/hyper-spec/lib/hyper-spec/version.rb | 2 +- ruby/hyper-spec/yarn.lock | 4 + ruby/hyper-state/hyper-state.gemspec | 2 +- .../lib/hyperstack/state/version.rb | 2 +- ruby/hyper-store/hyper-store.gemspec | 2 +- .../lib/hyperstack/legacy/store/version.rb | 2 +- ruby/hyper-trace/lib/hyper_trace/version.rb | 2 +- .../hyperstack-config.gemspec | 2 +- .../lib/hyperstack/config/version.rb | 2 +- .../lib/hyperstack/hotloader/server.rb | 2 +- ruby/hyperstack-config/yarn.lock | 4 + .../install/hyperstack_generator.rb | 2 +- .../install/hyperstack_generator_base.rb | 6 +- .../lib/hyperstack/version.rb | 2 +- yarn.lock | 4 + 38 files changed, 183 insertions(+), 634 deletions(-) delete mode 100644 .ruby-version delete mode 100644 docs/specs/Gemfile.lock delete mode 100644 ruby/examples/misc/sinatra_app/Gemfile.lock create mode 100644 ruby/hyper-component/yarn.lock create mode 100644 ruby/hyper-model/spec/test_app/db/schema.rb create mode 100644 ruby/hyper-model/yarn.lock create mode 100644 ruby/hyper-operation/yarn.lock create mode 100644 ruby/hyper-spec/yarn.lock create mode 100644 ruby/hyperstack-config/yarn.lock create mode 100644 yarn.lock diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index 6a81b4c83..000000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -2.7.8 diff --git a/HYPERSTACK_VERSION b/HYPERSTACK_VERSION index 59711a51a..c969e7ed6 100644 --- a/HYPERSTACK_VERSION +++ b/HYPERSTACK_VERSION @@ -1 +1 @@ -'1.0.alpha1.8.0016' +'1.0.alpha1.8.0017' diff --git a/docker-compose.yml b/docker-compose.yml index 764c23ef7..e2759b8de 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,9 +35,15 @@ services: working_dir: /root/hyperstack environment: BUNDLE_PATH: "/root/local_gems" - DRIVER: "${DRIVER}" + DRIVER: "travis" #"${DRIVER}" COMPONENT: "${COMPONENT}" - RUBY_VERSION: "${RUBY_VERSION}" + RUBY_VERSION: "3.2.2" #"${RUBY_VERSION}" +# RUBY_VERSION: "3.1.4" #"${RUBY_VERSION}" +# RUBY_VERSION: "2.7.8" #"${RUBY_VERSION}" +# RUBY_VERSION: "3.0.6" #"${RUBY_VERSION}" + OPAL_VERSION: "1.7.3" #"${OPAL_VERSION}" +# OPAL_VERSION: "1.6.1" #"${OPAL_VERSION}" +# OPAL_VERSION: "1.5.1" #"${OPAL_VERSION}" TASK: "${TASK}" DB: "${DB}" volumes: diff --git a/docs/specs/Gemfile.lock b/docs/specs/Gemfile.lock deleted file mode 100644 index 106146aea..000000000 --- a/docs/specs/Gemfile.lock +++ /dev/null @@ -1,443 +0,0 @@ -PATH - remote: ../../ruby/hyper-component - specs: - hyper-component (1.0.alpha1.7) - hyper-state (= 1.0.alpha1.7) - hyperstack-config (= 1.0.alpha1.7) - opal-activesupport (~> 0.3.1) - react-rails (>= 2.4.0, < 2.5.0) - -PATH - remote: ../../ruby/hyper-model - specs: - hyper-model (1.0.alpha1.7) - activemodel - activerecord (>= 4.0.0) - hyper-operation (= 1.0.alpha1.7) - -PATH - remote: ../../ruby/hyper-operation - specs: - hyper-operation (1.0.alpha1.7) - activerecord (>= 4.0.0) - hyper-component (= 1.0.alpha1.7) - mutations - opal-activesupport (~> 0.3.1) - tty-table - -PATH - remote: ../../ruby/hyper-router - specs: - hyper-router (1.0.alpha1.7) - hyper-component (= 1.0.alpha1.7) - hyper-state (= 1.0.alpha1.7) - opal-browser (~> 0.2.0) - -PATH - remote: ../../ruby/hyper-spec - specs: - hyper-spec (1.0.alpha1.7) - actionview - capybara - chromedriver-helper (= 1.2.0) - filecache - method_source - opal (>= 0.11.0, < 2.0) - parser - rspec - selenium-webdriver - timecop (~> 0.8.1) - uglifier - unparser (>= 0.4.2) - webdrivers - -PATH - remote: ../../ruby/hyper-state - specs: - hyper-state (1.0.alpha1.7) - hyperstack-config (= 1.0.alpha1.7) - -PATH - remote: ../../ruby/hyperstack-config - specs: - hyperstack-config (1.0.alpha1.7) - listen (~> 3.0) - opal (>= 0.11.0, < 2.0) - opal-browser (~> 0.2.0) - uglifier - websocket - -PATH - remote: ../../ruby/rails-hyperstack - specs: - rails-hyperstack (1.0.alpha1.7) - hyper-model (= 1.0.alpha1.7) - hyper-router (= 1.0.alpha1.7) - hyperstack-config (= 1.0.alpha1.7) - opal-browser (~> 0.2.0) - opal-rails - rails (>= 5.0.0, < 7.0) - react-rails (>= 2.4.0, < 2.5.0) - -GEM - remote: https://rubygems.org/ - specs: - abstract_type (0.0.7) - actioncable (5.2.4.5) - actionpack (= 5.2.4.5) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailer (5.2.4.5) - actionpack (= 5.2.4.5) - actionview (= 5.2.4.5) - activejob (= 5.2.4.5) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.2.4.5) - actionview (= 5.2.4.5) - activesupport (= 5.2.4.5) - rack (~> 2.0, >= 2.0.8) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.2.4.5) - activesupport (= 5.2.4.5) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.2.4.5) - activesupport (= 5.2.4.5) - globalid (>= 0.3.6) - activemodel (5.2.4.5) - activesupport (= 5.2.4.5) - activerecord (5.2.4.5) - activemodel (= 5.2.4.5) - activesupport (= 5.2.4.5) - arel (>= 9.0) - activestorage (5.2.4.5) - actionpack (= 5.2.4.5) - activerecord (= 5.2.4.5) - marcel (~> 0.3.1) - activesupport (5.2.4.5) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - adamantium (0.2.0) - ice_nine (~> 0.11.0) - memoizable (~> 0.4.0) - addressable (2.7.0) - public_suffix (>= 2.0.2, < 5.0) - anima (0.3.2) - abstract_type (~> 0.0.7) - adamantium (~> 0.2) - equalizer (~> 0.0.11) - archive-zip (0.12.0) - io-like (~> 0.3.0) - arel (9.0.0) - ast (2.4.2) - babel-source (5.8.35) - babel-transpiler (0.7.0) - babel-source (>= 4.0, < 6) - execjs (~> 2.0) - bindex (0.8.1) - bootsnap (1.7.2) - msgpack (~> 1.0) - builder (3.2.4) - byebug (11.1.3) - capybara (3.35.3) - addressable - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - childprocess (3.0.0) - chromedriver-helper (1.2.0) - archive-zip (~> 0.10) - nokogiri (~> 1.8) - coderay (1.1.3) - coffee-rails (4.2.2) - coffee-script (>= 2.2.0) - railties (>= 4.0.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concord (0.1.6) - adamantium (~> 0.2.0) - equalizer (~> 0.0.9) - concurrent-ruby (1.1.8) - connection_pool (2.2.3) - crass (1.0.6) - diff-lcs (1.4.4) - equalizer (0.0.11) - erubi (1.10.0) - execjs (2.7.0) - ffi (1.15.0) - filecache (1.0.2) - foreman (0.87.2) - globalid (0.4.2) - activesupport (>= 4.2.0) - i18n (1.8.9) - concurrent-ruby (~> 1.0) - ice_nine (0.11.2) - io-like (0.3.1) - jbuilder (2.11.2) - activesupport (>= 5.0.0) - jquery-rails (4.4.0) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - loofah (2.9.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (0.3.3) - mimemagic (~> 0.3.2) - memoizable (0.4.2) - thread_safe (~> 0.3, >= 0.3.1) - method_source (1.0.0) - mimemagic (0.3.5) - mini_mime (1.0.2) - mini_portile2 (2.5.0) - minitest (5.14.4) - mprelude (0.1.0) - abstract_type (~> 0.0.7) - adamantium (~> 0.2.0) - concord (~> 0.1.5) - equalizer (~> 0.0.9) - ice_nine (~> 0.11.1) - procto (~> 0.0.2) - msgpack (1.4.2) - mutations (0.9.1) - activesupport - nio4r (2.5.7) - nokogiri (1.11.2) - mini_portile2 (~> 2.5.0) - racc (~> 1.4) - opal (1.0.5) - ast (>= 2.3.0) - parser (~> 2.6) - opal-activesupport (0.3.3) - opal (>= 0.5.0, < 2) - opal-browser (0.2.0) - opal - paggio - opal-jquery (0.4.4) - opal (>= 0.10.0, < 1.1) - opal-rails (1.1.2) - jquery-rails - opal (~> 1.0.0) - opal-activesupport (>= 0.0.5) - opal-jquery (~> 0.4.4) - opal-sprockets (~> 0.4.6) - rails (>= 5.1, < 6.1) - sprockets-rails (>= 2.3.3, < 4.0) - opal-sprockets (0.4.9.1.0.3.7) - opal (~> 1.0.0) - sprockets (~> 3.7) - tilt (>= 1.4) - paggio (0.2.6) - parser (2.7.2.0) - ast (~> 2.4.1) - pastel (0.8.0) - tty-color (~> 0.5) - procto (0.0.3) - pry (0.14.0) - coderay (~> 1.1) - method_source (~> 1.0) - public_suffix (4.0.6) - puma (3.12.6) - racc (1.5.2) - rack (2.2.3) - rack-proxy (0.6.5) - rack - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (5.2.4.5) - actioncable (= 5.2.4.5) - actionmailer (= 5.2.4.5) - actionpack (= 5.2.4.5) - actionview (= 5.2.4.5) - activejob (= 5.2.4.5) - activemodel (= 5.2.4.5) - activerecord (= 5.2.4.5) - activestorage (= 5.2.4.5) - activesupport (= 5.2.4.5) - bundler (>= 1.3.0) - railties (= 5.2.4.5) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.3.0) - loofah (~> 2.3) - railties (5.2.4.5) - actionpack (= 5.2.4.5) - activesupport (= 5.2.4.5) - method_source - rake (>= 0.8.7) - thor (>= 0.19.0, < 2.0) - rake (13.0.3) - rb-fsevent (0.10.4) - rb-inotify (0.10.1) - ffi (~> 1.0) - react-rails (2.4.7) - babel-transpiler (>= 0.7.0) - connection_pool - execjs - railties (>= 3.2) - tilt - regexp_parser (2.1.1) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.1) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.2) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-rails (5.0.1) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-support (3.10.2) - ruby_dep (1.5.0) - rubyzip (2.3.0) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.1.0) - railties (>= 5.2.0) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - selenium-webdriver (3.142.7) - childprocess (>= 0.5, < 4.0) - rubyzip (>= 1.2.2) - semantic_range (3.0.0) - spring (2.1.1) - spring-watcher-listen (2.0.1) - listen (>= 2.7, < 4.0) - spring (>= 1.2, < 3.0) - sprockets (3.7.2) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.2) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.4.2) - strings (0.2.1) - strings-ansi (~> 0.2) - unicode-display_width (>= 1.5, < 3.0) - unicode_utils (~> 1.4) - strings-ansi (0.2.0) - thor (1.1.0) - thread_safe (0.3.6) - tilt (2.0.10) - timecop (0.8.1) - tty-color (0.6.0) - tty-screen (0.8.1) - tty-table (0.12.0) - pastel (~> 0.8) - strings (~> 0.2.0) - tty-screen (~> 0.8) - turbolinks (5.2.1) - turbolinks-source (~> 5.2) - turbolinks-source (5.2.0) - tzinfo (1.2.9) - thread_safe (~> 0.1) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) - unicode-display_width (2.0.0) - unicode_utils (1.4.0) - unparser (0.5.5) - abstract_type (~> 0.0.7) - adamantium (~> 0.2.0) - anima (~> 0.3.1) - concord (~> 0.1.5) - diff-lcs (~> 1.3) - equalizer (~> 0.0.9) - mprelude (~> 0.1.0) - parser (>= 2.6.5) - procto (~> 0.0.2) - web-console (3.7.0) - actionview (>= 5.0) - activemodel (>= 5.0) - bindex (>= 0.4.0) - railties (>= 5.0) - webdrivers (4.6.0) - nokogiri (~> 1.6) - rubyzip (>= 1.3.0) - selenium-webdriver (>= 3.0, < 4.0) - webpacker (5.2.1) - activesupport (>= 5.2) - rack-proxy (>= 0.6.1) - railties (>= 5.2) - semantic_range (>= 2.3.0) - websocket (1.2.9) - websocket-driver (0.7.3) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - xpath (3.2.0) - nokogiri (~> 1.8) - -PLATFORMS - ruby - -DEPENDENCIES - bootsnap (>= 1.1.0) - byebug - coffee-rails (~> 4.2) - foreman - hyper-component! - hyper-model! - hyper-operation! - hyper-router! - hyper-spec! - hyper-state! - hyperstack-config! - jbuilder (~> 2.5) - listen (>= 3.0.5, < 3.2) - opal (= 1.0.5) - opal-jquery - pry - puma (~> 3.11) - rails (~> 5.2.4, >= 5.2.4.5) - rails-hyperstack! - rspec-rails - sass-rails (~> 5.0) - spring - spring-watcher-listen (~> 2.0.0) - sqlite3 - turbolinks (~> 5) - tzinfo-data - uglifier (>= 1.3.0) - web-console (>= 3.3.0) - webpacker - -RUBY VERSION - ruby 2.7.2p137 - -BUNDLED WITH - 2.1.4 diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index af8e51ed1..eaba77c8c 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -271,7 +271,7 @@ pipelines: jobs: *test_jobs - ruby-version-3-0-6: environment_variables: - RUBY_VERSION: 3.0.6 + RUBY_VERSION: 3.2.2 fetch_materials: true keep_artifacts: false clean_workspace: false diff --git a/ruby/examples/misc/sinatra_app/Gemfile.lock b/ruby/examples/misc/sinatra_app/Gemfile.lock deleted file mode 100644 index 72b796b6e..000000000 --- a/ruby/examples/misc/sinatra_app/Gemfile.lock +++ /dev/null @@ -1,159 +0,0 @@ -PATH - remote: ../../../hyper-spec - specs: - hyper-spec (1.0.alpha1.5) - actionview - capybara - chromedriver-helper (= 1.2.0) - filecache - method_source - opal (>= 0.11.0, < 2.0) - parser (>= 2.3.3.1) - rspec - selenium-webdriver - timecop (~> 0.8.1) - uglifier - unparser (>= 0.4.2) - webdrivers - -GEM - remote: https://rubygems.org/ - specs: - actionview (6.1.3) - activesupport (= 6.1.3) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activesupport (6.1.3) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 1.6, < 2) - minitest (>= 5.1) - tzinfo (~> 2.0) - zeitwerk (~> 2.3) - addressable (2.7.0) - public_suffix (>= 2.0.2, < 5.0) - archive-zip (0.12.0) - io-like (~> 0.3.0) - ast (2.4.2) - builder (3.2.4) - capybara (3.35.3) - addressable - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - childprocess (3.0.0) - chromedriver-helper (1.2.0) - archive-zip (~> 0.10) - nokogiri (~> 1.8) - coderay (1.1.3) - concurrent-ruby (1.1.8) - crass (1.0.6) - diff-lcs (1.4.4) - erubi (1.10.0) - execjs (2.7.0) - filecache (1.0.2) - i18n (1.8.9) - concurrent-ruby (~> 1.0) - io-like (0.3.1) - loofah (2.9.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - method_source (1.0.0) - mini_mime (1.0.2) - mini_portile2 (2.5.0) - minitest (5.14.4) - mustermann (1.1.1) - ruby2_keywords (~> 0.0.1) - nio4r (2.5.7) - nokogiri (1.11.2) - mini_portile2 (~> 2.5.0) - racc (~> 1.4) - opal (1.1.1) - ast (>= 2.3.0) - parser (~> 3.0) - opal-sprockets (1.0.0) - opal (>= 1.0, < 1.2) - sprockets (~> 4.0) - tilt (>= 1.4) - parser (3.0.0.0) - ast (~> 2.4.1) - pry (0.14.0) - coderay (~> 1.1) - method_source (~> 1.0) - public_suffix (4.0.6) - puma (5.2.2) - nio4r (~> 2.0) - racc (1.5.2) - rack (2.2.3) - rack-protection (2.1.0) - rack - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.3.0) - loofah (~> 2.3) - regexp_parser (2.1.1) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.1) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.2) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.2) - ruby2_keywords (0.0.4) - rubyzip (2.3.0) - selenium-webdriver (3.142.7) - childprocess (>= 0.5, < 4.0) - rubyzip (>= 1.2.2) - sinatra (2.1.0) - mustermann (~> 1.0) - rack (~> 2.2) - rack-protection (= 2.1.0) - tilt (~> 2.0) - sprockets (4.0.2) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - tilt (2.0.10) - timecop (0.8.1) - tzinfo (2.0.4) - concurrent-ruby (~> 1.0) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) - unparser (0.6.0) - diff-lcs (~> 1.3) - parser (>= 3.0.0) - webdrivers (4.6.0) - nokogiri (~> 1.6) - rubyzip (>= 1.3.0) - selenium-webdriver (>= 3.0, < 4.0) - xpath (3.2.0) - nokogiri (~> 1.8) - zeitwerk (2.4.2) - -PLATFORMS - ruby - -DEPENDENCIES - hyper-spec! - opal - opal-sprockets - pry - puma - rack - rspec - sinatra - -BUNDLED WITH - 2.1.4 diff --git a/ruby/hyper-component/hyper-component.gemspec b/ruby/hyper-component/hyper-component.gemspec index 803f453ac..b27b23be7 100644 --- a/ruby/hyper-component/hyper-component.gemspec +++ b/ruby/hyper-component/hyper-component.gemspec @@ -41,5 +41,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyper-component/lib/hyperstack/component/version.rb b/ruby/hyper-component/lib/hyperstack/component/version.rb index d04472bb3..5b06d3183 100644 --- a/ruby/hyper-component/lib/hyperstack/component/version.rb +++ b/ruby/hyper-component/lib/hyperstack/component/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Component - VERSION = '1.0.alpha1.8.0016' # '1.0.alpha1.5' + VERSION = '1.0.alpha1.8.0017' # '1.0.alpha1.5' end end diff --git a/ruby/hyper-component/yarn.lock b/ruby/hyper-component/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-component/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-console/lib/hyperloop/console/version.rb b/ruby/hyper-console/lib/hyperloop/console/version.rb index 063a4fe83..2a5a9f062 100644 --- a/ruby/hyper-console/lib/hyperloop/console/version.rb +++ b/ruby/hyper-console/lib/hyperloop/console/version.rb @@ -1,5 +1,5 @@ module Hyperloop module Console - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end end diff --git a/ruby/hyper-i18n/lib/hyper-i18n/version.rb b/ruby/hyper-i18n/lib/hyper-i18n/version.rb index 5281c0fad..14f3b1592 100644 --- a/ruby/hyper-i18n/lib/hyper-i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyper-i18n/version.rb @@ -1,3 +1,3 @@ module HyperI18n - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end diff --git a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb index 49311f188..64eaa6f73 100644 --- a/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb +++ b/ruby/hyper-i18n/lib/hyperstack/i18n/version.rb @@ -1,5 +1,5 @@ module Hyperstack module I18n - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end end diff --git a/ruby/hyper-model/hyper-model.gemspec b/ruby/hyper-model/hyper-model.gemspec index 0f921f6c1..ea2431d88 100644 --- a/ruby/hyper-model/hyper-model.gemspec +++ b/ruby/hyper-model/hyper-model.gemspec @@ -53,5 +53,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'shoulda-matchers' spec.add_development_dependency 'spring-commands-rspec', '~> 1.0.4' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153, '~> 1.3.6' - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyper-model/lib/hyper_model/version.rb b/ruby/hyper-model/lib/hyper_model/version.rb index a09ee3b74..ae4f0f09c 100644 --- a/ruby/hyper-model/lib/hyper_model/version.rb +++ b/ruby/hyper-model/lib/hyper_model/version.rb @@ -1,3 +1,3 @@ module HyperModel - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end diff --git a/ruby/hyper-model/spec/test_app/db/schema.rb b/ruby/hyper-model/spec/test_app/db/schema.rb new file mode 100644 index 000000000..2d052daf1 --- /dev/null +++ b/ruby/hyper-model/spec/test_app/db/schema.rb @@ -0,0 +1,122 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 2021_02_28_200459) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "addresses", force: :cascade do |t| + t.string "street" + t.string "city" + t.string "state" + t.string "zip" + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "bones", force: :cascade do |t| + t.integer "dog_id" + end + + create_table "child_models", force: :cascade do |t| + t.string "child_attribute" + t.bigint "test_model_id" + t.index ["test_model_id"], name: "index_child_models_on_test_model_id" + end + + create_table "comments", force: :cascade do |t| + t.text "comment" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.bigint "todo_id" + t.bigint "author_id" + t.integer "user_id" + t.integer "todo_item_id" + t.index ["author_id"], name: "index_comments_on_author_id" + t.index ["todo_id"], name: "index_comments_on_todo_id" + end + + create_table "hyperstack_connections", force: :cascade do |t| + t.string "channel" + t.string "session" + t.datetime "created_at" + t.datetime "expires_at" + t.datetime "refresh_at" + end + + create_table "hyperstack_queued_messages", force: :cascade do |t| + t.text "data" + t.integer "connection_id" + end + + create_table "pets", force: :cascade do |t| + t.integer "owner_id" + end + + create_table "scratching_posts", force: :cascade do |t| + t.integer "cat_id" + end + + create_table "test_models", force: :cascade do |t| + t.string "test_attribute" + t.boolean "completed" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "todo_items", force: :cascade do |t| + t.string "title" + t.text "description" + t.boolean "complete" + t.datetime "created_at" + t.datetime "updated_at" + t.integer "user_id" + t.integer "comment_id" + end + + create_table "todos", force: :cascade do |t| + t.string "title" + t.text "description" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.boolean "completed", default: false, null: false + t.bigint "created_by_id" + t.bigint "owner_id" + t.index ["created_by_id"], name: "index_todos_on_created_by_id" + t.index ["owner_id"], name: "index_todos_on_owner_id" + end + + create_table "users", force: :cascade do |t| + t.string "role" + t.bigint "manager_id" + t.string "first_name" + t.string "last_name" + t.string "email" + t.datetime "created_at" + t.datetime "updated_at" + t.string "address_street" + t.string "address_city" + t.string "address_state" + t.string "address_zip" + t.integer "address_id" + t.string "address2_street" + t.string "address2_city" + t.string "address2_state" + t.string "address2_zip" + t.string "data_string" + t.integer "data_times" + t.integer "test_enum" + t.index ["manager_id"], name: "index_users_on_manager_id" + end + +end diff --git a/ruby/hyper-model/yarn.lock b/ruby/hyper-model/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-model/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index b1f246ef7..f9ae83908 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -45,5 +45,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rspec-wait' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyper-operation/lib/hyper-operation/version.rb b/ruby/hyper-operation/lib/hyper-operation/version.rb index f685c34d7..3b698a728 100644 --- a/ruby/hyper-operation/lib/hyper-operation/version.rb +++ b/ruby/hyper-operation/lib/hyper-operation/version.rb @@ -1,5 +1,5 @@ module Hyperstack class Operation - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end end diff --git a/ruby/hyper-operation/yarn.lock b/ruby/hyper-operation/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-operation/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-router/hyper-router.gemspec b/ruby/hyper-router/hyper-router.gemspec index 7e62eea23..6bb618f16 100644 --- a/ruby/hyper-router/hyper-router.gemspec +++ b/ruby/hyper-router/hyper-router.gemspec @@ -40,5 +40,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'shoulda' spec.add_development_dependency 'shoulda-matchers' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyper-router/lib/hyperstack/router/version.rb b/ruby/hyper-router/lib/hyperstack/router/version.rb index 7b79d008f..7f3e84336 100644 --- a/ruby/hyper-router/lib/hyperstack/router/version.rb +++ b/ruby/hyper-router/lib/hyperstack/router/version.rb @@ -1,3 +1,3 @@ module HyperRouter - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index d27e9d9c0..ae7356477 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_dependency 'parser' spec.add_dependency 'rspec' spec.add_dependency 'selenium-webdriver' - spec.add_dependency 'timecop'#, '~> 0.8.1' + spec.add_dependency 'timecop' #, '~> 0.8.1' spec.add_dependency 'uglifier' spec.add_dependency 'unparser', '>= 0.4.2' spec.add_dependency 'webdrivers' diff --git a/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb b/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb index 35437a9f2..08d313d2e 100644 --- a/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb +++ b/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb @@ -202,5 +202,5 @@ def unmock! #:nodoc: @_stack = [] Lolex.unmock end - end + end if RUBY_ENGINE=='opal' end diff --git a/ruby/hyper-spec/lib/hyper-spec/version.rb b/ruby/hyper-spec/lib/hyper-spec/version.rb index dc56e8452..181672ec0 100644 --- a/ruby/hyper-spec/lib/hyper-spec/version.rb +++ b/ruby/hyper-spec/lib/hyper-spec/version.rb @@ -1,3 +1,3 @@ module HyperSpec - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end diff --git a/ruby/hyper-spec/yarn.lock b/ruby/hyper-spec/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-spec/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index 7994915d1..196d84f51 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -38,5 +38,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyper-state/lib/hyperstack/state/version.rb b/ruby/hyper-state/lib/hyperstack/state/version.rb index acf139bbd..a45043e15 100644 --- a/ruby/hyper-state/lib/hyperstack/state/version.rb +++ b/ruby/hyper-state/lib/hyperstack/state/version.rb @@ -1,5 +1,5 @@ module Hyperstack module State - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end end diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index 126b57be1..edb54498a 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -39,6 +39,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb index 603e75cf2..6543efb2e 100644 --- a/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb +++ b/ruby/hyper-store/lib/hyperstack/legacy/store/version.rb @@ -1,7 +1,7 @@ module Hyperstack module Legacy module Store - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end end end diff --git a/ruby/hyper-trace/lib/hyper_trace/version.rb b/ruby/hyper-trace/lib/hyper_trace/version.rb index 5c3abd22b..cd8bee9ec 100644 --- a/ruby/hyper-trace/lib/hyper_trace/version.rb +++ b/ruby/hyper-trace/lib/hyper_trace/version.rb @@ -1,3 +1,3 @@ module HyperTrace - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end diff --git a/ruby/hyperstack-config/hyperstack-config.gemspec b/ruby/hyperstack-config/hyperstack-config.gemspec index 794c74e51..e0410db86 100644 --- a/ruby/hyperstack-config/hyperstack-config.gemspec +++ b/ruby/hyperstack-config/hyperstack-config.gemspec @@ -40,5 +40,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop'#, '~> 0.8.1' + spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyperstack-config/lib/hyperstack/config/version.rb b/ruby/hyperstack-config/lib/hyperstack/config/version.rb index 297a3fb59..7247f252e 100644 --- a/ruby/hyperstack-config/lib/hyperstack/config/version.rb +++ b/ruby/hyperstack-config/lib/hyperstack/config/version.rb @@ -1,5 +1,5 @@ module Hyperstack module Config - VERSION = '1.0.alpha1.8.0016' + VERSION = '1.0.alpha1.8.0017' end end diff --git a/ruby/hyperstack-config/lib/hyperstack/hotloader/server.rb b/ruby/hyperstack-config/lib/hyperstack/hotloader/server.rb index bd97822df..f9eab7dfd 100644 --- a/ruby/hyperstack-config/lib/hyperstack/hotloader/server.rb +++ b/ruby/hyperstack-config/lib/hyperstack/hotloader/server.rb @@ -37,7 +37,7 @@ def setup_directories(options) 'app/assets/stylesheets', 'app/views/components' ].each { |known_dir| - if !@directories.include?(known_dir) && File.exists?(known_dir) + if !@directories.include?(known_dir) && File.exist?(known_dir) @directories << known_dir end } diff --git a/ruby/hyperstack-config/yarn.lock b/ruby/hyperstack-config/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyperstack-config/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator.rb b/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator.rb index 8a1d30a4c..381b43fe1 100644 --- a/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator.rb +++ b/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator.rb @@ -40,7 +40,7 @@ class HyperComponent end def move_and_update_application_record - unless File.exists? 'app/hyperstack/models/application_record.rb' + unless File.exist? 'app/hyperstack/models/application_record.rb' `mv app/models/application_record.rb app/hyperstack/models/application_record.rb` create_file 'app/models/application_record.rb', <<-RUBY # app/models/application_record.rb diff --git a/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator_base.rb b/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator_base.rb index d55bc6088..77b05999e 100644 --- a/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator_base.rb +++ b/ruby/rails-hyperstack/lib/generators/install/hyperstack_generator_base.rb @@ -11,7 +11,7 @@ def warnings end def clear_cache - run 'rm -rf tmp/cache' unless Dir.exists?(Rails.root.join('app', 'hyperstack')) + run 'rm -rf tmp/cache' unless Dir.exist?(Rails.root.join('app', 'hyperstack')) end def insure_hyperstack_loader_installed @@ -66,11 +66,11 @@ def insure_base_component_class_exists file_name = Rails.root.join( 'app', 'hyperstack', 'components', "#{@component_base_class.underscore}.rb" ) - template 'hyper_component_template.rb', file_name unless File.exists? file_name + template 'hyper_component_template.rb', file_name unless File.exist? file_name end def add_to_manifest(manifest, &block) - if File.exists? "app/javascript/packs/#{manifest}" + if File.exist? "app/javascript/packs/#{manifest}" append_file "app/javascript/packs/#{manifest}", &block else create_file "app/javascript/packs/#{manifest}", &block diff --git a/ruby/rails-hyperstack/lib/hyperstack/version.rb b/ruby/rails-hyperstack/lib/hyperstack/version.rb index 0e15d0c8c..f3ab25793 100644 --- a/ruby/rails-hyperstack/lib/hyperstack/version.rb +++ b/ruby/rails-hyperstack/lib/hyperstack/version.rb @@ -1,3 +1,3 @@ module Hyperstack - ROUTERVERSION = VERSION = '1.0.alpha1.8.0016' + ROUTERVERSION = VERSION = '1.0.alpha1.8.0017' end diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + From 089b94359c6b434f6d47d1f63c2c17ccf44be06f Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 27 Jul 2023 18:26:55 +0300 Subject: [PATCH 63/67] testing --- docker-compose.yml | 4 +-- dump.rdb | Bin 0 -> 471 bytes hyperstack.gocd.yaml | 23 +++++++++--------- ruby/hyper-operation/hyper-operation.gemspec | 2 +- ruby/hyper-operation/spec/spec_helper.rb | 2 +- .../hyper-spec/internal/client_execution.rb | 4 +-- ruby/hyper-state/yarn.lock | 4 +++ ruby/hyper-store/yarn.lock | 4 +++ runone | 2 +- temp-293.rdb | Bin 0 -> 92 bytes 10 files changed, 27 insertions(+), 18 deletions(-) create mode 100644 dump.rdb create mode 100644 ruby/hyper-state/yarn.lock create mode 100644 ruby/hyper-store/yarn.lock create mode 100644 temp-293.rdb diff --git a/docker-compose.yml b/docker-compose.yml index e2759b8de..e18d19802 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,9 +41,9 @@ services: # RUBY_VERSION: "3.1.4" #"${RUBY_VERSION}" # RUBY_VERSION: "2.7.8" #"${RUBY_VERSION}" # RUBY_VERSION: "3.0.6" #"${RUBY_VERSION}" - OPAL_VERSION: "1.7.3" #"${OPAL_VERSION}" +# OPAL_VERSION: "1.7.3" #"${OPAL_VERSION}" # OPAL_VERSION: "1.6.1" #"${OPAL_VERSION}" -# OPAL_VERSION: "1.5.1" #"${OPAL_VERSION}" + OPAL_VERSION: "1.5.1" #"${OPAL_VERSION}" TASK: "${TASK}" DB: "${DB}" volumes: diff --git a/dump.rdb b/dump.rdb new file mode 100644 index 0000000000000000000000000000000000000000..61e133844241bea2b54f991128482aba5fd405e4 GIT binary patch literal 471 zcma)&KTE?v7{+61trlHHT*RY@%azL|mt5jfL6NR)Cl|TA_l5@Zk6bFcyE*ukN5v3!423bz~VT{<_x9 z-qN6^8D{H?(?hE{P(@733RM=RxU#;i&yLkOT0ECnnOea^2t}S_>leA%8Om5_;M%4_ z3WvH5*i?B6sgkJBWzrQg=w5EN!)@fUR+`fOfeWb*r2Z&bULFPq{z0MaX$5ypiVxcVvK1Wzr^ZqMVTZ OQ{Tr^XZUvZ^6>+mf0If8 literal 0 HcmV?d00001 diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index eaba77c8c..8851bcb26 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -259,19 +259,20 @@ pipelines: auto_update: true branch: edge stages: - - ruby-version-2-7-8: - environment_variables: - RUBY_VERSION: 2.7.8 - fetch_materials: true - keep_artifacts: false - clean_workspace: false - approval: - type: success - allow_only_on_success: false - jobs: *test_jobs - - ruby-version-3-0-6: +# - ruby-version-2-7-8: +# environment_variables: +# RUBY_VERSION: 2.7.8 +# fetch_materials: true +# keep_artifacts: false +# clean_workspace: false +# approval: +# type: success +# allow_only_on_success: false +# jobs: *test_jobs + - ruby-version-3-2-2: environment_variables: RUBY_VERSION: 3.2.2 + OPAL_VERSION: 1.5.1 fetch_materials: true keep_artifacts: false clean_workspace: false diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index f9ae83908..2ea917427 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -43,7 +43,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'redis' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rspec-steps', '~> 2.1.1' - spec.add_development_dependency 'rspec-wait' + # spec.add_development_dependency 'rspec-wait' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 spec.add_development_dependency 'timecop' #, '~> 0.8.1' end diff --git a/ruby/hyper-operation/spec/spec_helper.rb b/ruby/hyper-operation/spec/spec_helper.rb index c6d3924da..224021d29 100644 --- a/ruby/hyper-operation/spec/spec_helper.rb +++ b/ruby/hyper-operation/spec/spec_helper.rb @@ -14,7 +14,7 @@ require 'rspec-steps' require 'hyper-operation' -require "rspec/wait" +# require "rspec/wait" require 'database_cleaner' Capybara.server = :puma diff --git a/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb b/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb index 39d3666fb..44bf2b0d7 100644 --- a/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb +++ b/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb @@ -1,9 +1,9 @@ module HyperSpec module Internal module ClientExecution - def internal_evaluate_ruby(*args, &block) + def internal_evaluate_ruby(*args,**kwargs, &block) insure_page_loaded - add_promise_execute_and_wait(*process_params(*args, &block)) + add_promise_execute_and_wait(*process_params(*args,**kwargs, &block)) end private diff --git a/ruby/hyper-state/yarn.lock b/ruby/hyper-state/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-state/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/ruby/hyper-store/yarn.lock b/ruby/hyper-store/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/ruby/hyper-store/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/runone b/runone index b0fa86053..43fbd807e 100755 --- a/runone +++ b/runone @@ -6,7 +6,7 @@ redis-server & sleep 1 rbenv global $RUBY_VERSION psql -c 'create database hyper_mesh_test_db;' -U postgres -#mysql -u root -e 'create database test_hyper_operation_db;' +mysql -u root -e 'create database test_hyper_operation_db;' ./runtests #DRIVER=travis COMPONENT=rails-hyperstack RUBY_VERSION=2.7.8 ./runtests diff --git a/temp-293.rdb b/temp-293.rdb new file mode 100644 index 0000000000000000000000000000000000000000..7a7b1c4746e16b416f3ee7307456a6aab7e8428b GIT binary patch literal 92 zcmWG?b@2=~Ffg$E#aWb^l3A= Date: Thu, 27 Jul 2023 18:29:39 +0300 Subject: [PATCH 64/67] testing ruby3 on gocd --- hyperstack.gocd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 8851bcb26..9af9a882a 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -229,7 +229,7 @@ pipelines: git: https://github.com/mpantel/hyperstack.git shallow_clone: false auto_update: true - branch: edge + branch: ruby3 stages: - build: fetch_materials: true From 9c2e235035553f10f3da8d0c4613b92c808174da Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 27 Jul 2023 18:33:00 +0300 Subject: [PATCH 65/67] testing ruby3 on gocd --- hyperstack.gocd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 9af9a882a..9835e296b 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -257,7 +257,7 @@ pipelines: git: https://github.com/mpantel/hyperstack.git shallow_clone: false auto_update: true - branch: edge + branch: ruby3 stages: # - ruby-version-2-7-8: # environment_variables: From 8574e70ec416f9966940a502ce8b6d411d675ee2 Mon Sep 17 00:00:00 2001 From: michail Date: Thu, 27 Jul 2023 18:41:14 +0300 Subject: [PATCH 66/67] testing ruby3 on gocd --- dump.rdb | Bin 471 -> 0 bytes hyperstack.gocd.yaml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 dump.rdb diff --git a/dump.rdb b/dump.rdb deleted file mode 100644 index 61e133844241bea2b54f991128482aba5fd405e4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 471 zcma)&KTE?v7{+61trlHHT*RY@%azL|mt5jfL6NR)Cl|TA_l5@Zk6bFcyE*ukN5v3!423bz~VT{<_x9 z-qN6^8D{H?(?hE{P(@733RM=RxU#;i&yLkOT0ECnnOea^2t}S_>leA%8Om5_;M%4_ z3WvH5*i?B6sgkJBWzrQg=w5EN!)@fUR+`fOfeWb*r2Z&bULFPq{z0MaX$5ypiVxcVvK1Wzr^ZqMVTZ OQ{Tr^XZUvZ^6>+mf0If8 diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 9835e296b..970c66ce2 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -275,7 +275,7 @@ pipelines: OPAL_VERSION: 1.5.1 fetch_materials: true keep_artifacts: false - clean_workspace: false + clean_workspace: true approval: type: success allow_only_on_success: false From 5c79238bcf45d3493ec7723aa6a3a14a63cb75e7 Mon Sep 17 00:00:00 2001 From: michail Date: Fri, 28 Jul 2023 09:55:58 +0300 Subject: [PATCH 67/67] 0.5.1.0016 --- docker-compose.yml | 7 +++-- hyperstack.gocd.yaml | 31 +++++++++---------- ruby/hyper-model/hyper-model.gemspec | 2 +- ruby/hyper-model/lib/active_record_base.rb | 14 ++++----- .../lib/reactive_record/permissions.rb | 8 ++--- ruby/hyper-operation/hyper-operation.gemspec | 4 +-- .../connection_adapter/redis/redis_record.rb | 4 +-- .../hyper-operation/transport/hyperstack.rb | 2 +- ruby/hyper-operation/spec/spec_helper.rb | 2 +- ruby/hyper-router/hyper-router.gemspec | 2 +- ruby/hyper-spec/hyper-spec.gemspec | 2 +- .../hyper-spec/internal/client_execution.rb | 4 +-- .../lib/hyper-spec/internal/time_cop.rb | 2 +- ruby/hyper-state/hyper-state.gemspec | 2 +- ruby/hyper-store/hyper-store.gemspec | 2 +- .../hyperstack-config.gemspec | 2 +- 16 files changed, 45 insertions(+), 45 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e18d19802..2d1b698e9 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,12 +35,13 @@ services: working_dir: /root/hyperstack environment: BUNDLE_PATH: "/root/local_gems" - DRIVER: "travis" #"${DRIVER}" + DRIVER: "${DRIVER}" # "travis" COMPONENT: "${COMPONENT}" - RUBY_VERSION: "3.2.2" #"${RUBY_VERSION}" + RUBY_VERSION: ${RUBY_VERSION}" +# RUBY_VERSION: "3.2.2" #"${RUBY_VERSION}" # RUBY_VERSION: "3.1.4" #"${RUBY_VERSION}" -# RUBY_VERSION: "2.7.8" #"${RUBY_VERSION}" # RUBY_VERSION: "3.0.6" #"${RUBY_VERSION}" +# RUBY_VERSION: "2.7.8" #"${RUBY_VERSION}" # OPAL_VERSION: "1.7.3" #"${OPAL_VERSION}" # OPAL_VERSION: "1.6.1" #"${OPAL_VERSION}" OPAL_VERSION: "1.5.1" #"${OPAL_VERSION}" diff --git a/hyperstack.gocd.yaml b/hyperstack.gocd.yaml index 970c66ce2..af8e51ed1 100644 --- a/hyperstack.gocd.yaml +++ b/hyperstack.gocd.yaml @@ -229,7 +229,7 @@ pipelines: git: https://github.com/mpantel/hyperstack.git shallow_clone: false auto_update: true - branch: ruby3 + branch: edge stages: - build: fetch_materials: true @@ -257,25 +257,24 @@ pipelines: git: https://github.com/mpantel/hyperstack.git shallow_clone: false auto_update: true - branch: ruby3 + branch: edge stages: -# - ruby-version-2-7-8: -# environment_variables: -# RUBY_VERSION: 2.7.8 -# fetch_materials: true -# keep_artifacts: false -# clean_workspace: false -# approval: -# type: success -# allow_only_on_success: false -# jobs: *test_jobs - - ruby-version-3-2-2: + - ruby-version-2-7-8: environment_variables: - RUBY_VERSION: 3.2.2 - OPAL_VERSION: 1.5.1 + RUBY_VERSION: 2.7.8 fetch_materials: true keep_artifacts: false - clean_workspace: true + clean_workspace: false + approval: + type: success + allow_only_on_success: false + jobs: *test_jobs + - ruby-version-3-0-6: + environment_variables: + RUBY_VERSION: 3.0.6 + fetch_materials: true + keep_artifacts: false + clean_workspace: false approval: type: success allow_only_on_success: false diff --git a/ruby/hyper-model/hyper-model.gemspec b/ruby/hyper-model/hyper-model.gemspec index ea2431d88..0f921f6c1 100644 --- a/ruby/hyper-model/hyper-model.gemspec +++ b/ruby/hyper-model/hyper-model.gemspec @@ -53,5 +53,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'shoulda-matchers' spec.add_development_dependency 'spring-commands-rspec', '~> 1.0.4' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153, '~> 1.3.6' - spec.add_development_dependency 'timecop' #, '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-model/lib/active_record_base.rb b/ruby/hyper-model/lib/active_record_base.rb index 56b44b531..464aeda45 100644 --- a/ruby/hyper-model/lib/active_record_base.rb +++ b/ruby/hyper-model/lib/active_record_base.rb @@ -286,23 +286,23 @@ def regulate_relationship(name, &block) alias pre_syncromesh_has_many has_many - def has_many(name, *args,**kwargs, &block) + def has_many(name, *args, &block) __synchromesh_regulate_from_macro( - opts = args.extract_options!.merge(kwargs), + opts = args.extract_options!, name, method_defined?(:"__secure_remote_access_to_#{name}"), &method(:regulate_relationship) ) - pre_syncromesh_has_many name, *args, **opts.except(:regulate), &block + pre_syncromesh_has_many name, *args, opts.except(:regulate), &block end %i[belongs_to has_one composed_of].each do |macro| alias_method :"pre_syncromesh_#{macro}", macro - define_method(macro) do |name, *aargs,**kkwargs, &block| - define_method(:"__secure_remote_access_to_#{name}") do |this, _acting_user, *args,**kargs| - this.send(name, *args,**kargs) + define_method(macro) do |name, *aargs, &block| + define_method(:"__secure_remote_access_to_#{name}") do |this, _acting_user, *args| + this.send(name, *args) end - send(:"pre_syncromesh_#{macro}", name, *aargs,**kkwargs, &block) + send(:"pre_syncromesh_#{macro}", name, *aargs, &block) end end end diff --git a/ruby/hyper-model/lib/reactive_record/permissions.rb b/ruby/hyper-model/lib/reactive_record/permissions.rb index 4f51f963e..d074f5b8d 100644 --- a/ruby/hyper-model/lib/reactive_record/permissions.rb +++ b/ruby/hyper-model/lib/reactive_record/permissions.rb @@ -74,12 +74,12 @@ class << self attr_reader :reactive_record_association_keys [:has_many, :belongs_to, :composed_of].each do |macro| - define_method "#{macro}_with_reactive_record_add_changed_method".to_sym do |attr_name, *args,**kwargs, &block| + define_method "#{macro}_with_reactive_record_add_changed_method".to_sym do |attr_name, *args, &block| define_method "#{attr_name}_changed?".to_sym do instance_variable_get "@reactive_record_#{attr_name}_changed".to_sym end (@reactive_record_association_keys ||= []) << attr_name - send "#{macro}_without_reactive_record_add_changed_method".to_sym, attr_name, *args,**kwargs, &block + send "#{macro}_without_reactive_record_add_changed_method".to_sym, attr_name, *args, &block end alias_method "#{macro}_without_reactive_record_add_changed_method".to_sym, macro alias_method macro, "#{macro}_with_reactive_record_add_changed_method".to_sym @@ -87,8 +87,8 @@ class << self alias belongs_to_without_reactive_record_add_is_method belongs_to - def belongs_to(attr_name, *args,**kwargs) - belongs_to_without_reactive_record_add_is_method(attr_name, *args,**kwargs).tap do + def belongs_to(attr_name, *args) + belongs_to_without_reactive_record_add_is_method(attr_name, *args).tap do define_method "#{attr_name}_is?".to_sym do |model| attributes[self.class.reflections[attr_name.to_s].foreign_key] == model.id end diff --git a/ruby/hyper-operation/hyper-operation.gemspec b/ruby/hyper-operation/hyper-operation.gemspec index 2ea917427..b1f246ef7 100644 --- a/ruby/hyper-operation/hyper-operation.gemspec +++ b/ruby/hyper-operation/hyper-operation.gemspec @@ -43,7 +43,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'redis' spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rspec-steps', '~> 2.1.1' - # spec.add_development_dependency 'rspec-wait' + spec.add_development_dependency 'rspec-wait' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop' #, '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb index ffc339f40..c1c8440d3 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/connection_adapter/redis/redis_record.rb @@ -123,7 +123,7 @@ def save self.class.client.hmset("#{table_name}:#{id}", *self.class.jsonize_attributes(attributes)) unless self.class.client.smembers(table_name).include?(id) - self.class.client.sadd?(table_name, id) + self.class.client.sadd(table_name, id) end true @@ -135,7 +135,7 @@ def update(opts = {}) end def destroy - self.class.client.srem?(table_name, id) + self.class.client.srem(table_name, id) self.class.client.hdel("#{table_name}:#{id}", attributes.keys) diff --git a/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb b/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb index c8a26a8f2..31de6917e 100644 --- a/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb +++ b/ruby/hyper-operation/lib/hyper-operation/transport/hyperstack.rb @@ -127,7 +127,7 @@ def self.send_data(channel, data) elsif transport == :pusher pusher.trigger("#{Hyperstack.channel}-#{data[1][:channel].gsub('::', '==')}", *data) elsif transport == :action_cable - ActionCable.server.broadcast("hyperstack-#{channel}", { message: data[0], data: data[1] }) + ActionCable.server.broadcast("hyperstack-#{channel}", message: data[0], data: data[1]) end end diff --git a/ruby/hyper-operation/spec/spec_helper.rb b/ruby/hyper-operation/spec/spec_helper.rb index 224021d29..c6d3924da 100644 --- a/ruby/hyper-operation/spec/spec_helper.rb +++ b/ruby/hyper-operation/spec/spec_helper.rb @@ -14,7 +14,7 @@ require 'rspec-steps' require 'hyper-operation' -# require "rspec/wait" +require "rspec/wait" require 'database_cleaner' Capybara.server = :puma diff --git a/ruby/hyper-router/hyper-router.gemspec b/ruby/hyper-router/hyper-router.gemspec index 6bb618f16..7e62eea23 100644 --- a/ruby/hyper-router/hyper-router.gemspec +++ b/ruby/hyper-router/hyper-router.gemspec @@ -40,5 +40,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'shoulda' spec.add_development_dependency 'shoulda-matchers' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop' #, '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-spec/hyper-spec.gemspec b/ruby/hyper-spec/hyper-spec.gemspec index ae7356477..d27e9d9c0 100644 --- a/ruby/hyper-spec/hyper-spec.gemspec +++ b/ruby/hyper-spec/hyper-spec.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength spec.add_dependency 'parser' spec.add_dependency 'rspec' spec.add_dependency 'selenium-webdriver' - spec.add_dependency 'timecop' #, '~> 0.8.1' + spec.add_dependency 'timecop'#, '~> 0.8.1' spec.add_dependency 'uglifier' spec.add_dependency 'unparser', '>= 0.4.2' spec.add_dependency 'webdrivers' diff --git a/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb b/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb index 44bf2b0d7..39d3666fb 100644 --- a/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb +++ b/ruby/hyper-spec/lib/hyper-spec/internal/client_execution.rb @@ -1,9 +1,9 @@ module HyperSpec module Internal module ClientExecution - def internal_evaluate_ruby(*args,**kwargs, &block) + def internal_evaluate_ruby(*args, &block) insure_page_loaded - add_promise_execute_and_wait(*process_params(*args,**kwargs, &block)) + add_promise_execute_and_wait(*process_params(*args, &block)) end private diff --git a/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb b/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb index 08d313d2e..35437a9f2 100644 --- a/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb +++ b/ruby/hyper-spec/lib/hyper-spec/internal/time_cop.rb @@ -202,5 +202,5 @@ def unmock! #:nodoc: @_stack = [] Lolex.unmock end - end if RUBY_ENGINE=='opal' + end end diff --git a/ruby/hyper-state/hyper-state.gemspec b/ruby/hyper-state/hyper-state.gemspec index 196d84f51..7994915d1 100644 --- a/ruby/hyper-state/hyper-state.gemspec +++ b/ruby/hyper-state/hyper-state.gemspec @@ -38,5 +38,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop' #, '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyper-store/hyper-store.gemspec b/ruby/hyper-store/hyper-store.gemspec index edb54498a..126b57be1 100644 --- a/ruby/hyper-store/hyper-store.gemspec +++ b/ruby/hyper-store/hyper-store.gemspec @@ -39,6 +39,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-steps', '~> 2.1.1' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' - spec.add_development_dependency 'timecop' #, '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end diff --git a/ruby/hyperstack-config/hyperstack-config.gemspec b/ruby/hyperstack-config/hyperstack-config.gemspec index e0410db86..794c74e51 100644 --- a/ruby/hyperstack-config/hyperstack-config.gemspec +++ b/ruby/hyperstack-config/hyperstack-config.gemspec @@ -40,5 +40,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec-rails' spec.add_development_dependency 'rubocop' #, '~> 0.51.0' spec.add_development_dependency 'sqlite3', '~> 1.4.2' # see https://github.com/rails/rails/issues/35153 - spec.add_development_dependency 'timecop' #, '~> 0.8.1' + spec.add_development_dependency 'timecop'#, '~> 0.8.1' end