From 8f80bcc6e10e9ec668671d56e3480f48becc3ebe Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 16:33:02 +0100 Subject: [PATCH 01/15] incremented versions for gems to rails 6 ruby 2.7.0 and mongo 7 --- Gemfile | 4 +- Gemfile.lock | 176 ++++++++++++++++++++---------------- activeadmin-mongoid.gemspec | 29 +++--- 3 files changed, 118 insertions(+), 91 deletions(-) diff --git a/Gemfile b/Gemfile index 3dc13a4..d641641 100644 --- a/Gemfile +++ b/Gemfile @@ -2,9 +2,11 @@ source 'https://rubygems.org' gemspec -gem 'ransack-mongoid', git: 'https://github.com/activerecord-hackery/ransack-mongoid' +# gem 'ransack-mongoid', git: 'https://github.com/activerecord-hackery/ransack-mongoid' +gem 'ransack-mongoid', github: 'jesusalc/ransack-mongoid', branch: 'rails-6-mongoid-7-ruby-2-7-0' gem 'rails', '>= 5.2', '< 6.1' +gem 'webpacker' gem 'devise' diff --git a/Gemfile.lock b/Gemfile.lock index 909e942..3bad658 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,7 @@ GIT - remote: https://github.com/activerecord-hackery/ransack-mongoid - revision: bd1935293d2f285fa7cf33d2c5c90d981bf67338 + remote: https://github.com/jesusalc/ransack-mongoid.git + revision: a56a8ac72be816a34e6f4d3cbb3c583908d0bca2 + branch: rails-6-mongoid-7-ruby-2-7-0 specs: ransack-mongoid (0.1.0) @@ -17,29 +18,42 @@ PATH GEM remote: https://rubygems.org/ specs: - actioncable (5.2.3) - actionpack (= 5.2.3) + actioncable (6.0.2.1) + actionpack (= 6.0.2.1) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailer (5.2.3) - actionpack (= 5.2.3) - actionview (= 5.2.3) - activejob (= 5.2.3) + actionmailbox (6.0.2.1) + actionpack (= 6.0.2.1) + activejob (= 6.0.2.1) + activerecord (= 6.0.2.1) + activestorage (= 6.0.2.1) + activesupport (= 6.0.2.1) + mail (>= 2.7.1) + actionmailer (6.0.2.1) + actionpack (= 6.0.2.1) + actionview (= 6.0.2.1) + activejob (= 6.0.2.1) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (5.2.3) - actionview (= 5.2.3) - activesupport (= 5.2.3) - rack (~> 2.0) + actionpack (6.0.2.1) + actionview (= 6.0.2.1) + activesupport (= 6.0.2.1) + 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.3) - activesupport (= 5.2.3) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.0.2.1) + actionpack (= 6.0.2.1) + activerecord (= 6.0.2.1) + activestorage (= 6.0.2.1) + activesupport (= 6.0.2.1) + nokogiri (>= 1.8.5) + actionview (6.0.2.1) + activesupport (= 6.0.2.1) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) + rails-html-sanitizer (~> 1.1, >= 1.2.0) activeadmin (2.6.0) arbre (~> 1.2, >= 1.2.1) formtastic (~> 3.1) @@ -51,44 +65,44 @@ GEM ransack (~> 2.1, >= 2.1.1) sassc-rails (~> 2.1) sprockets (>= 3.0, < 4.1) - activejob (5.2.3) - activesupport (= 5.2.3) + activejob (6.0.2.1) + activesupport (= 6.0.2.1) globalid (>= 0.3.6) - activemodel (5.2.3) - activesupport (= 5.2.3) - activerecord (5.2.3) - activemodel (= 5.2.3) - activesupport (= 5.2.3) - arel (>= 9.0) - activestorage (5.2.3) - actionpack (= 5.2.3) - activerecord (= 5.2.3) + activemodel (6.0.2.1) + activesupport (= 6.0.2.1) + activerecord (6.0.2.1) + activemodel (= 6.0.2.1) + activesupport (= 6.0.2.1) + activestorage (6.0.2.1) + actionpack (= 6.0.2.1) + activejob (= 6.0.2.1) + activerecord (= 6.0.2.1) marcel (~> 0.3.1) - activesupport (5.2.3) + activesupport (6.0.2.1) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) + zeitwerk (~> 2.2) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) arbre (1.2.1) activesupport (>= 3.0.0) - arel (9.0.0) bcrypt (3.1.13) bson (4.7.1) - builder (3.2.3) - capybara (3.12.0) + builder (3.2.4) + capybara (3.31.0) addressable mini_mime (>= 0.1.3) nokogiri (~> 1.8) rack (>= 1.6.0) rack-test (>= 0.6.3) - regexp_parser (~> 1.2) + regexp_parser (~> 1.5) xpath (~> 3.2) cliver (0.3.2) coderay (1.1.2) concurrent-ruby (1.1.5) - crass (1.0.5) + crass (1.0.6) devise (4.7.1) bcrypt (~> 3.0) orm_adapter (~> 0.1) @@ -97,7 +111,7 @@ GEM warden (~> 1.2.3) diff-lcs (1.3) docile (1.3.1) - erubi (1.8.0) + erubi (1.9.0) ffi (1.12.1) formtastic (3.1.5) actionpack (>= 3.2.13) @@ -107,14 +121,14 @@ GEM has_scope (0.7.2) actionpack (>= 4.1) activesupport (>= 4.1) - i18n (1.6.0) + i18n (1.8.2) concurrent-ruby (~> 1.0) inherited_resources (1.11.0) actionpack (>= 5.0, < 6.1) has_scope (~> 0.6) railties (>= 5.0, < 6.1) responders (>= 2, < 4) - jquery-rails (4.3.3) + jquery-rails (4.3.5) rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) @@ -122,7 +136,7 @@ GEM railties (>= 3.2.16) jslint (1.2.0) json - json (2.1.0) + json (2.3.0) kaminari (1.1.1) activesupport (>= 4.1.0) kaminari-actionview (= 1.1.1) @@ -140,7 +154,7 @@ GEM mongoid launchy (2.4.3) addressable (~> 2.3) - loofah (2.3.1) + loofah (2.4.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) @@ -148,17 +162,17 @@ GEM marcel (0.3.3) mimemagic (~> 0.3.2) method_source (0.9.2) - mimemagic (0.3.3) - mini_mime (1.0.1) + mimemagic (0.3.4) + mini_mime (1.0.2) mini_portile2 (2.4.0) - minitest (5.11.3) + minitest (5.14.0) mongo (2.11.3) bson (>= 4.4.2, < 5.0.0) mongoid (7.0.5) activemodel (>= 5.1, < 6.1) mongo (>= 2.5.1, < 3.0.0) - nio4r (2.3.1) - nokogiri (1.10.5) + nio4r (2.5.2) + nokogiri (1.10.7) mini_portile2 (~> 2.4.0) orm_adapter (0.5.0) poltergeist (1.18.1) @@ -170,46 +184,50 @@ GEM pry (0.12.2) coderay (~> 1.1.0) method_source (~> 0.9.0) - pry-rails (0.3.8) + pry-rails (0.3.9) pry (>= 0.10.4) - public_suffix (3.0.3) - rack (2.0.8) + public_suffix (4.0.3) + rack (2.1.2) + rack-proxy (0.6.5) + rack rack-test (1.1.0) rack (>= 1.0, < 3) - rails (5.2.3) - actioncable (= 5.2.3) - actionmailer (= 5.2.3) - actionpack (= 5.2.3) - actionview (= 5.2.3) - activejob (= 5.2.3) - activemodel (= 5.2.3) - activerecord (= 5.2.3) - activestorage (= 5.2.3) - activesupport (= 5.2.3) + rails (6.0.2.1) + actioncable (= 6.0.2.1) + actionmailbox (= 6.0.2.1) + actionmailer (= 6.0.2.1) + actionpack (= 6.0.2.1) + actiontext (= 6.0.2.1) + actionview (= 6.0.2.1) + activejob (= 6.0.2.1) + activemodel (= 6.0.2.1) + activerecord (= 6.0.2.1) + activestorage (= 6.0.2.1) + activesupport (= 6.0.2.1) bundler (>= 1.3.0) - railties (= 5.2.3) + railties (= 6.0.2.1) sprockets-rails (>= 2.0.0) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) - rails-html-sanitizer (1.2.0) - loofah (~> 2.2, >= 2.2.2) - railties (5.2.3) - actionpack (= 5.2.3) - activesupport (= 5.2.3) + rails-html-sanitizer (1.3.0) + loofah (~> 2.3) + railties (6.0.2.1) + actionpack (= 6.0.2.1) + activesupport (= 6.0.2.1) method_source rake (>= 0.8.7) - thor (>= 0.19.0, < 2.0) - rake (12.3.3) + thor (>= 0.20.3, < 2.0) + rake (13.0.1) ransack (2.3.2) activerecord (>= 5.2.1) activesupport (>= 5.2.1) i18n polyamorous (= 2.3.2) - regexp_parser (1.3.0) - responders (2.4.1) - actionpack (>= 4.2.0, < 6.0) - railties (>= 4.2.0, < 6.0) + regexp_parser (1.6.0) + responders (3.0.0) + actionpack (>= 5.0) + railties (>= 5.0) rspec-core (3.8.0) rspec-support (~> 3.8.0) rspec-expectations (3.8.2) @@ -242,25 +260,30 @@ GEM json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sprockets (3.7.2) + sprockets (4.0.0) concurrent-ruby (~> 1.0) rack (> 1, < 3) sprockets-rails (3.2.1) actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) - thor (0.20.3) + thor (1.0.1) thread_safe (0.3.6) tilt (2.0.10) - tzinfo (1.2.5) + tzinfo (1.2.6) thread_safe (~> 0.1) warden (1.2.8) rack (>= 2.0.6) - websocket-driver (0.7.0) + webpacker (4.2.2) + activesupport (>= 4.2) + rack-proxy (>= 0.6.1) + railties (>= 4.2) + websocket-driver (0.7.1) websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.3) + websocket-extensions (0.1.4) xpath (3.2.0) nokogiri (~> 1.8) + zeitwerk (2.2.2) PLATFORMS ruby @@ -279,6 +302,7 @@ DEPENDENCIES ransack-mongoid! rspec-rails (~> 3.6) simplecov + webpacker BUNDLED WITH - 1.17.3 + 2.1.4 diff --git a/activeadmin-mongoid.gemspec b/activeadmin-mongoid.gemspec index 4e49952..35fb589 100644 --- a/activeadmin-mongoid.gemspec +++ b/activeadmin-mongoid.gemspec @@ -4,27 +4,28 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'active_admin/mongoid/version' Gem::Specification.new do |gem| - gem.authors = ['Elia Schito', 'Nic Boie', 'JD Guzman', 'Grzegorz Jakubiak'] - gem.email = ['elia@schito.me'] - gem.description = %q{ActiveAdmin hacks to support Mongoid (some ActiveAdmin features are disabled)} - gem.summary = %q{ActiveAdmin hacks to support Mongoid} - gem.homepage = '' + gem.authors = ['Jesus Alcaraz', 'Elia Schito', 'Nic Boie', 'JD Guzman', + 'Grzegorz Jakubiak'] + gem.email = %w(jesusalc@gmail.com elia@schito.me) + gem.description = 'ActiveAdmin hacks Mongoid (some features are disabled)' + gem.summary = 'ActiveAdmin hacks to support Mongoid' + gem.homepage = '' - gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - gem.files = `git ls-files`.split("\n") - gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - gem.name = 'activeadmin-mongoid' + gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } + gem.files = `git ls-files`.split("\n") + gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + gem.name = 'activeadmin-mongoid' gem.require_paths = ['lib'] - gem.version = ActiveAdmin::Mongoid::VERSION - gem.license = 'MIT' + gem.version = ActiveAdmin::Mongoid::VERSION + gem.license = 'MIT' gem.required_ruby_version = '>= 2.4' - gem.add_runtime_dependency 'mongoid', '>= 6.0', '< 8.a' + gem.add_runtime_dependency 'mongoid', '>= 6.0', '< 8.a' gem.add_runtime_dependency 'activeadmin', '>= 1.4.3' gem.add_runtime_dependency 'kaminari-mongoid' gem.add_runtime_dependency 'jquery-rails' - gem.add_runtime_dependency 'sass-rails', ['>= 3.1.4'] + gem.add_runtime_dependency 'sass-rails', '>= 3.1.4' - gem.add_development_dependency 'rspec-rails', '~> 3.6' + gem.add_development_dependency 'rspec-rails', '~> 3.6' end From a8448455e3081d390ec0dd7c69385677f05d2349 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 16:45:32 +0100 Subject: [PATCH 02/15] bumped ruby version to 2.5 for activesupport-6.0.2.1 requires ruby version >= 2.5.0, which is incompatible with the current version, ruby 2.4 --- = | 0 activeadmin-mongoid.gemspec | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 = diff --git a/= b/= new file mode 100644 index 0000000..e69de29 diff --git a/activeadmin-mongoid.gemspec b/activeadmin-mongoid.gemspec index 35fb589..b94b237 100644 --- a/activeadmin-mongoid.gemspec +++ b/activeadmin-mongoid.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |gem| gem.version = ActiveAdmin::Mongoid::VERSION gem.license = 'MIT' - gem.required_ruby_version = '>= 2.4' + gem.required_ruby_version = '>= 2.5' gem.add_runtime_dependency 'mongoid', '>= 6.0', '< 8.a' gem.add_runtime_dependency 'activeadmin', '>= 1.4.3' From 105be5b63aefe0cb18977f6335463cd6caa71002 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:06:02 +0100 Subject: [PATCH 03/15] removed random character file = --- = | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 = diff --git a/= b/= deleted file mode 100644 index e69de29..0000000 From ee408618415f155b50c640b0afe79ef4b37a3fb3 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:07:20 +0100 Subject: [PATCH 04/15] bumped version for active admin to 2.6.0 --- Gemfile.lock | 20 ++++++++++---------- activeadmin-mongoid.gemspec | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3bad658..e36aea3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,7 +9,7 @@ PATH remote: . specs: activeadmin-mongoid (1.0.0) - activeadmin (>= 1.4.3) + activeadmin (>= 1.4.3, <= 2.6.0) jquery-rails kaminari-mongoid mongoid (>= 6.0, < 8.a) @@ -137,18 +137,18 @@ GEM jslint (1.2.0) json json (2.3.0) - kaminari (1.1.1) + kaminari (1.2.0) activesupport (>= 4.1.0) - kaminari-actionview (= 1.1.1) - kaminari-activerecord (= 1.1.1) - kaminari-core (= 1.1.1) - kaminari-actionview (1.1.1) + kaminari-actionview (= 1.2.0) + kaminari-activerecord (= 1.2.0) + kaminari-core (= 1.2.0) + kaminari-actionview (1.2.0) actionview - kaminari-core (= 1.1.1) - kaminari-activerecord (1.1.1) + kaminari-core (= 1.2.0) + kaminari-activerecord (1.2.0) activerecord - kaminari-core (= 1.1.1) - kaminari-core (1.1.1) + kaminari-core (= 1.2.0) + kaminari-core (1.2.0) kaminari-mongoid (1.0.1) kaminari-core (~> 1.0) mongoid diff --git a/activeadmin-mongoid.gemspec b/activeadmin-mongoid.gemspec index b94b237..ff68714 100644 --- a/activeadmin-mongoid.gemspec +++ b/activeadmin-mongoid.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 2.5' gem.add_runtime_dependency 'mongoid', '>= 6.0', '< 8.a' - gem.add_runtime_dependency 'activeadmin', '>= 1.4.3' + gem.add_runtime_dependency 'activeadmin', '>= 1.4.3', '<= 2.6.0' gem.add_runtime_dependency 'kaminari-mongoid' gem.add_runtime_dependency 'jquery-rails' gem.add_runtime_dependency 'sass-rails', '>= 3.1.4' From bd6af331098ed1eedd9c1c0dc896b899a9743284 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:07:51 +0100 Subject: [PATCH 05/15] corrected offender double quotes to single quotes --- tasks/js.rake | 14 +++++++------- tasks/test.rake | 32 ++++++++++++++++---------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tasks/js.rake b/tasks/js.rake index e292d7f..72ee9db 100644 --- a/tasks/js.rake +++ b/tasks/js.rake @@ -1,29 +1,29 @@ namespace :js do - desc "Compile the JS for Rails apps without Asset Pipeline" + desc 'Compile the JS for Rails apps without Asset Pipeline' task :compile do require 'sprockets' require 'uglifier' require 'fileutils' - root_dir = File.expand_path(File.join("..", ".."), __FILE__) - js_dir = File.join(root_dir, "app", "assets", "javascripts", "active_admin") + root_dir = File.expand_path(File.join('..', '..'), __FILE__) + js_dir = File.join(root_dir, 'app', 'assets', 'javascripts', 'active_admin') generated_file = File.join(root_dir, 'lib', 'generators', 'active_admin', 'assets', 'templates', '3.0', 'active_admin.js') # The base.js file requires jquery. We don't need jquery to # compile the assets, however Sprockets will try to look it up # and raise an exception. Insteaad, we move the file out of the directory # then put it back after we compile. - base_js = File.join(js_dir, "base.js") - tmp_base_js = File.join(root_dir, "base.js") + base_js = File.join(js_dir, 'base.js') + tmp_base_js = File.join(root_dir, 'base.js') FileUtils.mv base_js, tmp_base_js env = Sprockets::Environment.new env.js_compressor = ::Uglifier.new env.append_path js_dir - File.open generated_file, "w+" do |f| - f << env["application"] + File.open generated_file, 'w+' do |f| + f << env['application'] end FileUtils.mv tmp_base_js, base_js diff --git a/tasks/test.rake b/tasks/test.rake index 0f6b5bc..e9fca92 100644 --- a/tasks/test.rake +++ b/tasks/test.rake @@ -1,39 +1,39 @@ -desc "Creates a test rails app for the specs to run against" +desc 'Creates a test rails app for the specs to run against' task :setup do require 'rails/version' - system("mkdir spec/rails") unless File.exists?("spec/rails") + system('mkdir spec/rails') unless File.exists?('spec/rails') system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -O -m spec/support/rails_template.rb" end # Run specs and cukes -desc "Run the full suite" -task :test => ['spec:unit', 'spec:integration'] +desc 'Run the full suite' +task test: %w(spec:unit spec:integration) namespace :test do def run_tests_against(*versions) - current_version = detect_rails_version if File.exists?("Gemfile.lock") + current_version = detect_rails_version if File.exists?('Gemfile.lock') versions.each do |version| puts puts "== Using Rails #{version}" cmd "./script/use_rails #{version}" - cmd "bundle exec rspec spec" - cmd "bundle exec cucumber features" - cmd "bundle exec cucumber -p class-reloading features" + cmd 'bundle exec rspec spec' + cmd 'bundle exec cucumber features' + cmd 'bundle exec cucumber -p class-reloading features' end cmd "./script/use_rails #{current_version}" if current_version end - desc "Run the full suite against the important versions of rails" + desc 'Run the full suite against the important versions of rails' task :major_supported_rails do - run_tests_against "3.0.12", "3.1.4", "3.2.3" + run_tests_against '3.0.12', '3.1.4', '3.2.3' end - desc "Alias for major_supported_rails" - task :all => :major_supported_rails + desc 'Alias for major_supported_rails' + task all: :major_supported_rails end @@ -43,14 +43,14 @@ RSpec::Core::RakeTask.new(:spec) namespace :spec do - desc "Run the unit specs" + desc 'Run the unit specs' RSpec::Core::RakeTask.new(:unit) do |t| - t.pattern = "spec/unit/**/*_spec.rb" + t.pattern = 'spec/unit/**/*_spec.rb' end - desc "Run the integration specs" + desc 'Run the integration specs' RSpec::Core::RakeTask.new(:integration) do |t| - t.pattern = "spec/integration/**/*_spec.rb" + t.pattern = 'spec/integration/**/*_spec.rb' end end From 5f82ea22e157aa934624bb6c4f9699e8f85dec7c Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:08:45 +0100 Subject: [PATCH 06/15] added bump to rails 6 config config.eager_load to environments test develop production --- test_app/config/environments/development.rb | 1 + test_app/config/environments/production.rb | 1 + test_app/config/environments/test.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/test_app/config/environments/development.rb b/test_app/config/environments/development.rb index ae55b61..b865a2a 100644 --- a/test_app/config/environments/development.rb +++ b/test_app/config/environments/development.rb @@ -1,4 +1,5 @@ Rails.application.configure do + config.eager_load = false # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on diff --git a/test_app/config/environments/production.rb b/test_app/config/environments/production.rb index f569a7a..da0476b 100644 --- a/test_app/config/environments/production.rb +++ b/test_app/config/environments/production.rb @@ -1,4 +1,5 @@ Rails.application.configure do + config.eager_load = true # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests diff --git a/test_app/config/environments/test.rb b/test_app/config/environments/test.rb index 108339c..2aa70e8 100644 --- a/test_app/config/environments/test.rb +++ b/test_app/config/environments/test.rb @@ -1,4 +1,5 @@ Rails.application.configure do + config.eager_load = true # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's From 2fbba87ac2719fcc885cdc42fe6ea28166761cd5 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:09:22 +0100 Subject: [PATCH 07/15] added manifest.js file for rails 6 and initial scripts --- test_app/app/assets/config/manifest.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test_app/app/assets/config/manifest.js diff --git a/test_app/app/assets/config/manifest.js b/test_app/app/assets/config/manifest.js new file mode 100644 index 0000000..5cc2c08 --- /dev/null +++ b/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 From e5acf52cb03485dd9e601a993c80e4865f02752e Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:23:12 +0100 Subject: [PATCH 08/15] bumped version ransack-mongoid from 0.1.0 to 0.1.1 --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e36aea3..262425a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,9 @@ GIT remote: https://github.com/jesusalc/ransack-mongoid.git - revision: a56a8ac72be816a34e6f4d3cbb3c583908d0bca2 + revision: b7f68881081731afdfaa010499d06adc93d17d71 branch: rails-6-mongoid-7-ruby-2-7-0 specs: - ransack-mongoid (0.1.0) + ransack-mongoid (0.1.1) PATH remote: . From 9ffcce2965c403bf1dfb6a753bdc88ac1b0d7e78 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:36:43 +0100 Subject: [PATCH 09/15] bumped version for activeadmin to 2.6.0 --- Gemfile.lock | 4 ++-- activeadmin-mongoid.gemspec | 2 +- lib/active_admin/mongoid/version.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 262425a..f7bd40e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,8 +8,8 @@ GIT PATH remote: . specs: - activeadmin-mongoid (1.0.0) - activeadmin (>= 1.4.3, <= 2.6.0) + activeadmin-mongoid (1.0.1) + activeadmin (>= 2.6.0) jquery-rails kaminari-mongoid mongoid (>= 6.0, < 8.a) diff --git a/activeadmin-mongoid.gemspec b/activeadmin-mongoid.gemspec index ff68714..4472fa0 100644 --- a/activeadmin-mongoid.gemspec +++ b/activeadmin-mongoid.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 2.5' gem.add_runtime_dependency 'mongoid', '>= 6.0', '< 8.a' - gem.add_runtime_dependency 'activeadmin', '>= 1.4.3', '<= 2.6.0' + gem.add_runtime_dependency 'activeadmin', '>= 2.6.0' gem.add_runtime_dependency 'kaminari-mongoid' gem.add_runtime_dependency 'jquery-rails' gem.add_runtime_dependency 'sass-rails', '>= 3.1.4' diff --git a/lib/active_admin/mongoid/version.rb b/lib/active_admin/mongoid/version.rb index c67e774..eeff6cf 100644 --- a/lib/active_admin/mongoid/version.rb +++ b/lib/active_admin/mongoid/version.rb @@ -1,5 +1,5 @@ module ActiveAdmin module Mongoid - VERSION = '1.0.0' + VERSION = '1.0.1' end end From 7b83d9b465b4d4c9b97842f617a53b6322906679 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:39:43 +0100 Subject: [PATCH 10/15] added .freeze to version --- lib/active_admin/mongoid/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_admin/mongoid/version.rb b/lib/active_admin/mongoid/version.rb index eeff6cf..8c36fc7 100644 --- a/lib/active_admin/mongoid/version.rb +++ b/lib/active_admin/mongoid/version.rb @@ -1,5 +1,5 @@ module ActiveAdmin module Mongoid - VERSION = '1.0.1' + VERSION = '1.0.1'.freeze end end From 61484e9b1b0fbd09ee04001fa8de138122bd7b2f Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:40:36 +0100 Subject: [PATCH 11/15] updated lock file with activeadmin to between 1.4.3 and 2.6.0 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index f7bd40e..3b500b5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,7 +9,7 @@ PATH remote: . specs: activeadmin-mongoid (1.0.1) - activeadmin (>= 2.6.0) + activeadmin (>= 1.4.3, <= 2.6.0) jquery-rails kaminari-mongoid mongoid (>= 6.0, < 8.a) From c73189303823bb87fa39ee70b42fea9510d9e16b Mon Sep 17 00:00:00 2001 From: jesusalc Date: Fri, 31 Jan 2020 17:40:37 +0100 Subject: [PATCH 12/15] updated lock file with activeadmin to between 1.4.3 and 2.6.0 --- activeadmin-mongoid.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activeadmin-mongoid.gemspec b/activeadmin-mongoid.gemspec index 4472fa0..ff68714 100644 --- a/activeadmin-mongoid.gemspec +++ b/activeadmin-mongoid.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 2.5' gem.add_runtime_dependency 'mongoid', '>= 6.0', '< 8.a' - gem.add_runtime_dependency 'activeadmin', '>= 2.6.0' + gem.add_runtime_dependency 'activeadmin', '>= 1.4.3', '<= 2.6.0' gem.add_runtime_dependency 'kaminari-mongoid' gem.add_runtime_dependency 'jquery-rails' gem.add_runtime_dependency 'sass-rails', '>= 3.1.4' From 563ece1770cd9f3d1289cdc986cd3db82f126c9a Mon Sep 17 00:00:00 2001 From: jesusalc Date: Tue, 4 Feb 2020 16:43:39 +0100 Subject: [PATCH 13/15] removed 2.4 from travis.yml --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 99957f1..395dbd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ before_install: - gem install bundler - bundle update --bundler rvm: - - 2.4 - 2.5 - 2.6 - 2.7 From 92fc8176e138665bf974aec07d9fecca8999b744 Mon Sep 17 00:00:00 2001 From: jesusalc Date: Mon, 23 Mar 2020 12:32:58 +0100 Subject: [PATCH 14/15] updated activeadmin depency to 3 --- activeadmin-mongoid.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activeadmin-mongoid.gemspec b/activeadmin-mongoid.gemspec index ff68714..35c0c5f 100644 --- a/activeadmin-mongoid.gemspec +++ b/activeadmin-mongoid.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 2.5' gem.add_runtime_dependency 'mongoid', '>= 6.0', '< 8.a' - gem.add_runtime_dependency 'activeadmin', '>= 1.4.3', '<= 2.6.0' + gem.add_runtime_dependency 'activeadmin', '>= 1.4.3', '<= 3.6.0' gem.add_runtime_dependency 'kaminari-mongoid' gem.add_runtime_dependency 'jquery-rails' gem.add_runtime_dependency 'sass-rails', '>= 3.1.4' From cf7585ee397aa44f59b642a688004d79bea3bccc Mon Sep 17 00:00:00 2001 From: jesusalc Date: Mon, 23 Mar 2020 12:35:15 +0100 Subject: [PATCH 15/15] pumped version to 1.0.2 --- lib/active_admin/mongoid/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_admin/mongoid/version.rb b/lib/active_admin/mongoid/version.rb index 8c36fc7..7843a7d 100644 --- a/lib/active_admin/mongoid/version.rb +++ b/lib/active_admin/mongoid/version.rb @@ -1,5 +1,5 @@ module ActiveAdmin module Mongoid - VERSION = '1.0.1'.freeze + VERSION = '1.0.2'.freeze end end