occams 1.0.6.1 → 1.0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eed8972c3dacc31a1970b37be6efbc3f2d19d30d197f8342f13adcb171fa11e4
4
- data.tar.gz: 4735ee50552cb9fd07f9b4dea67e05a53152779b057a1d5b4335a2ffe0bf3769
3
+ metadata.gz: a00b3daa132f332250a7764bb37a42535293eb290c00fdba37febd63f8950873
4
+ data.tar.gz: '05929ac5d67803f5fd855bc602e255e31dd730615108a1561c4e03541cb9528f'
5
5
  SHA512:
6
- metadata.gz: 2434cbce961464f9d317625ff2d36605a3f0dda92d68516f2d5506683b02c97f936632b9868217529a477739124d4957a9d0d2cfc07f8331bb021083a681fe51
7
- data.tar.gz: 6a1bc1e3e9ea9d7dab30de818904d7d5cf540afed08d23573c62029b61274050deb3de6c1c4dfd117eaccf28f4ef3873047e3e0d7761e4680b065de7ce984401
6
+ metadata.gz: ff72090234dae1fc2d750b696c7796d190a73b349bbe2f2e731f5b906c6b4e0550cbdf67a94c9b986f9f603841f7c00ecbe17fd2007492930eb8484a3aaade9d
7
+ data.tar.gz: 5da49c13c964c3b11f5af90b2576175cfdd9e85362a4339d29a3b6cf825615ece8610c141b8fc77c9f351cb302cfe5546753e816bba549adb9d6a2cfe48c5f90
@@ -0,0 +1,47 @@
1
+ name: "Test,Lint,Audit"
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
+
8
+ jobs:
9
+ test_lint_audit:
10
+ strategy:
11
+ matrix:
12
+ ruby-version:
13
+ - "2.7"
14
+ - "3.1"
15
+ - "3.2"
16
+ rails-version:
17
+ - "6.1"
18
+ - "7.0"
19
+ continue-on-error: [false]
20
+ name: ${{ format('Test,Lint,Audit (Ruby {0}, Rails {1})', matrix.ruby-version, matrix.rails-version) }}
21
+ runs-on: ubuntu-latest
22
+ continue-on-error: ${{ matrix.continue-on-error }}
23
+ env:
24
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails-version }}.gemfile
25
+ RAILS_ENV: test
26
+
27
+ steps:
28
+ - uses: actions/checkout@v2
29
+
30
+ - name: Install Ruby
31
+ uses: ruby/setup-ruby@v1
32
+ with:
33
+ ruby-version: ${{ matrix.ruby-version }}
34
+ bundler-cache: true
35
+
36
+ - name: Set up DB
37
+ run: bin/rails db:migrate RAILS_ENV=test
38
+ - name: Run tests
39
+ run: bin/rake test
40
+
41
+ - name: Ruby Lint
42
+ run: bin/bundle exec rubocop --parallel
43
+
44
+ - name: Security audit application code
45
+ run: bin/bundle exec brakeman -q -w3
46
+ - name: Security audit dependencies
47
+ run: bin/bundle exec bundler-audit --update --gemfile-lock gemfiles/${{ matrix.rails-version }}.gemfile.lock
data/.gitignore CHANGED
@@ -11,6 +11,7 @@ rdoc
11
11
  /tmp
12
12
  public/system/
13
13
  Gemfile.lock
14
+ gemfiles/*.gemfile.lock
14
15
  .rvmrc
15
16
  .ruby-version
16
17
  .ruby-gemset
data/.rubocop.yml CHANGED
@@ -7,6 +7,7 @@ AllCops:
7
7
  - db/migrate/**/*
8
8
  - test/fixtures/**/*
9
9
  - tmp/**/*
10
+ - vendor/bundle/**/*
10
11
 
11
12
  # -- Layout --------------------------------------------------------------------
12
13
  Layout/FirstArrayElementIndentation:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.7.1 - 9/22/2023
4
+
5
+ - Addressed deprecations for file type 'image/jpg'
6
+ - Added github workflow for tests, lints and audits
7
+ - Fixed some flagged security warnings
8
+ - Bumped rubocop version to latest
9
+ - Updated some testing parameters
10
+
11
+ ## v1.0.7 - 9/12/2023
12
+
13
+ - Updated coveralls Coverage reporting
14
+ - Added minitest-reporters for test output
15
+ - Adjusted tests to accomodate varying macos and linux outputs
16
+ - Refined test for 'children' tag
17
+ - Lints and 1 typo
18
+ - Added Build Status and Coveralls Coverage Status to README
19
+
3
20
  ## v1.0.6.1 - 9/5/2023
4
21
 
5
22
  - Fixed siblings and children nav tags which as written had problems creating child pages in the admin panel
data/Gemfile CHANGED
@@ -1,16 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'http://rubygems.org'
3
+ source 'https://rubygems.org'
4
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
4
5
 
5
6
  gemspec
6
7
 
8
+ gem 'rails', '~> 7.0'
9
+
7
10
  group :development, :test do
8
11
  gem 'autoprefixer-rails', '~> 8.1.0'
9
12
  gem 'byebug', '~> 10.0.0', platforms: %i[mri mingw x64_mingw]
10
13
  gem 'capybara', '~> 3.39.0'
11
14
  gem 'image_processing', '>= 1.2'
12
15
  gem 'kaminari', '~> 1.2', '>= 1.2.2'
13
- gem 'rubocop', '~> 0.55.0', require: false
14
16
  gem 'selenium-webdriver', '~> 4.9.0'
15
17
  gem 'sqlite3', '~> 1.4.2'
16
18
  end
@@ -21,9 +23,14 @@ group :development do
21
23
  end
22
24
 
23
25
  group :test do
24
- gem 'coveralls', '~> 0.8.23', require: false
26
+ gem 'brakeman', '~> 5.4.1'
27
+ gem 'bundler-audit', '~> 0.9.1'
28
+ gem 'coveralls_reborn', '~> 0.28.0', require: false
25
29
  gem 'diffy', '~> 3.4.2'
26
30
  gem 'equivalent-xml', '~> 0.6.0'
31
+ gem 'minitest-reporters', '~> 1.6.1'
27
32
  gem 'mocha', '~> 2.1.0', require: false
28
33
  gem 'rails-controller-testing', '~> 1.0.5'
34
+ gem 'rubocop', '~> 1.56.0', require: false
35
+ gem 'simplecov', '~> 0.22.0', require: false
29
36
  end
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # ocCaM'S
2
2
 
3
+ [![Build status](https://badge.buildkite.com/6b70f3f81c5922bd134b33d3ba1412c68f53a9f67e0a907ade.svg?branch=main)](https://buildkite.com/gknt/occams)
4
+ [![Test,Lint,Audit](https://github.com/avonderluft/occams/actions/workflows/rubyonrails.yml/badge.svg)](https://github.com/avonderluft/occams/actions/workflows/rubyonrails.yml)
5
+ [![Coverage Status](https://coveralls.io/repos/github/avonderluft/occams/badge.svg?branch=main)](https://coveralls.io/github/avonderluft/occams?branch=main)
3
6
  [![Gem Version](https://img.shields.io/gem/v/occams.svg?style=flat)](http://rubygems.org/gems/occams)
4
7
  [![Gem Downloads](https://img.shields.io/gem/dt/occams.svg?style=flat)](http://rubygems.org/gems/occams)
5
8
 
@@ -20,11 +23,11 @@
20
23
 
21
24
  ## Raison d'etre
22
25
 
23
- ocCaM'S is a revival of [ComfortableMexicanSofa](https://github.com/comfy/comfortable-mexican-sofa), with all due thanks and acknowledgements to [Oleg Khabarov](https://github.com/GBH), et al. 'Comfy' was the simplest and cleanest Rails-based CMS that I had used. Its last commit was in 2020, and I simply did not want to see it die on the vine as [RadiantCMS](https://github.com/radiant/radiant) did some years ago.
26
+ ocCaM'S is a revival of [ComfortableMexicanSofa](https://github.com/comfy/comfortable-mexican-sofa), with all due thanks and acknowledgements to [Oleg Khabarov](https://github.com/GBH), and others. 'Comfy' is in my experience the simplest and cleanest of all Rails-based CMSes. Seeing that its last commit was in 2020, I was determined that it should not die on the vine as [RadiantCMS](https://github.com/radiant/radiant) did some years ago.
24
27
 
25
28
  ## The name
26
29
 
27
- ocCaM'S, pronounced "AH-kums" is a nod to [Occam's Razor](https://en.wikipedia.org/wiki/Occam%27s_razor) - for this Rails-based Content Management System endeavors to follow the principle that unnecessarily complex models should not be preferred to simpler ones.
30
+ ocCaM'S, pronounced "AH-kums" is a nod to [Occam's Razor](https://en.wikipedia.org/wiki/Occam%27s_razor) - for this Rails-based Content Management System endeavors to follow the principle that unnecessarily complex models should not be preferred over simpler ones.
28
31
 
29
32
 
30
33
 
@@ -42,7 +45,7 @@ ocCaM'S, pronounced "AH-kums" is a nod to [Occam's Razor](https://en.wikipedia.o
42
45
  ## Dependencies
43
46
 
44
47
  * File attachments are handled by [ActiveStorage](https://github.com/rails/rails/tree/master/activestorage). Make sure that you can run appropriate migrations by running: `rails active_storage:install` and then `rake db:migrate`
45
- * Image resizing is done with[ImageMagick](http://www.imagemagick.org/script/download.php), so make sure it's installed
48
+ * Image resizing is done with [ImageMagick](http://www.imagemagick.org/script/download.php), so make sure it's installed
46
49
  * Pagination is handled by [kaminari](https://github.com/amatsuda/kaminari) or [will_paginate](https://github.com/mislav/will_paginate). Please add one of those to your Gemfile.
47
50
 
48
51
  ## Compatibility
@@ -58,15 +61,15 @@ Add gem definition to your Gemfile:
58
61
  gem "occams"
59
62
  ```
60
63
 
61
- * From the Rails project's root run:
64
+ * From the Rails project's root run:
62
65
  `bundle install`
63
- * Then add the CMS:
66
+ * Then add the CMS:
64
67
  `rails generate occams:cms`
65
- * If you want to store files in your CMS with Active Storage:
68
+ * If you want to store files in your CMS with Active Storage:
66
69
  `rails active_storage:install`
67
- * Set up the database:
70
+ * Set up the database:
68
71
  `rails db:migrate`
69
-
72
+
70
73
  Now take a look inside your `config/routes.rb` file. You'll see where routes attach for the admin area and content serving. Make sure that content serving route appears as a very last item or it will make all other routes to be inaccessible.
71
74
 
72
75
  ```ruby
@@ -119,5 +122,5 @@ For more detail see [CONTRIBUTING](CONTRIBUTING.md)
119
122
  - Thanks to [Roman Almeida](https://github.com/nasmorn) for contributing OEM License for [Redactor Text Editor](http://imperavi.com/redactor)
120
123
 
121
124
  ---
125
+ - [Occams](https://github.com/avonderluft/occams) Copyright 2023 Andrew vonderLuft, following Comfy, released under the [MIT license](LICENSE)
122
126
  - [ComfortableMexicanSofa](https://github.com/comfy/comfortable-mexican-sofa) Copyright 2010-2019 Oleg Khabarov. Released under the [MIT license](LICENSE)
123
- - [Occams](https://github.com/avonderluft/occams) Copyright 2023 Andrew vonderLuft, following suit, also released under the [MIT license](LICENSE)
@@ -43,6 +43,6 @@ protected
43
43
  end
44
44
 
45
45
  def record_path
46
- raise 'no implemented'
46
+ raise 'not implemented'
47
47
  end
48
48
  end
@@ -3,5 +3,5 @@ label: Child Seed Page
3
3
  layout: nested
4
4
  target_page: '/child_b'
5
5
 
6
- [textares content]
6
+ [textarea content]
7
7
  Child A Page Seed Content
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
+
6
+ gemspec path: '../'
7
+
8
+ gem 'rails', '~> 6.1'
9
+
10
+ group :development, :test do
11
+ gem 'autoprefixer-rails', '~> 8.1.0'
12
+ gem 'byebug', '~> 10.0.0', platforms: %i[mri mingw x64_mingw]
13
+ gem 'capybara', '~> 3.39.0'
14
+ gem 'image_processing', '>= 1.2'
15
+ gem 'kaminari', '~> 1.2', '>= 1.2.2'
16
+ gem 'selenium-webdriver', '~> 4.9.0'
17
+ gem 'sqlite3', '~> 1.4.2'
18
+ end
19
+
20
+ group :development do
21
+ gem 'listen', '~> 3.8.0'
22
+ gem 'web-console', '~> 4.2'
23
+ end
24
+
25
+ group :test do
26
+ gem 'brakeman', '~> 5.4.1'
27
+ gem 'bundler-audit', '~> 0.9.1'
28
+ gem 'coveralls_reborn', '~> 0.28.0', require: false
29
+ gem 'diffy', '~> 3.4.2'
30
+ gem 'equivalent-xml', '~> 0.6.0'
31
+ gem 'minitest-reporters', '~> 1.6.1'
32
+ gem 'mocha', '~> 2.1.0', require: false
33
+ gem 'rails-controller-testing', '~> 1.0.5'
34
+ gem 'rubocop', '~> 1.56.0', require: false
35
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
+
6
+ gemspec path: '../'
7
+
8
+ gem 'rails', '~> 7.0'
9
+
10
+ group :development, :test do
11
+ gem 'autoprefixer-rails', '~> 8.1.0'
12
+ gem 'byebug', '~> 10.0.0', platforms: %i[mri mingw x64_mingw]
13
+ gem 'capybara', '~> 3.39.0'
14
+ gem 'image_processing', '>= 1.2'
15
+ gem 'kaminari', '~> 1.2', '>= 1.2.2'
16
+ gem 'selenium-webdriver', '~> 4.9.0'
17
+ gem 'sqlite3', '~> 1.4.2'
18
+ end
19
+
20
+ group :development do
21
+ gem 'listen', '~> 3.8.0'
22
+ gem 'web-console', '~> 4.2'
23
+ end
24
+
25
+ group :test do
26
+ gem 'brakeman', '~> 5.4.1'
27
+ gem 'bundler-audit', '~> 0.9.1'
28
+ gem 'coveralls_reborn', '~> 0.28.0', require: false
29
+ gem 'diffy', '~> 3.4.2'
30
+ gem 'equivalent-xml', '~> 0.6.0'
31
+ gem 'minitest-reporters', '~> 1.6.1'
32
+ gem 'mocha', '~> 2.1.0', require: false
33
+ gem 'rails-controller-testing', '~> 1.0.5'
34
+ gem 'rubocop', '~> 1.56.0', require: false
35
+ end
@@ -23,22 +23,23 @@ class Occams::Content::Tag::Children < Occams::Content::Tag
23
23
  super
24
24
  @locals = params.extract_options!
25
25
  @style = ''
26
- @style = "<style>#children {#{@locals['style']}}</style>" if @locals['style']
26
+ @style = "<style>#children {#{@locals['style']}}</style>\n" if @locals['style']
27
27
  @exclude = []
28
28
  @exclude = @locals['exclude'].split(',') if @locals['exclude']
29
29
  @list = ''
30
30
  # ActiveRecord_Associations_CollectionProxy
31
31
  @page_children = context.children.order(:position).to_ary
32
+ if Rails.env == 'production'
33
+ @page_children.delete_if { |child| !child.is_published }
34
+ end
32
35
  @page_children.delete_if { |child| @exclude.include? child.slug }
33
36
  end
34
37
 
35
38
  def content
36
39
  if @page_children.any?
37
- @list = '<ul id="children">'
40
+ @list = "<ul id=\"children\">\n"
38
41
  @page_children.each do |c|
39
- next if Rails.env == 'production' && !c.is_published
40
-
41
- @list += "<li><a href=#{c.url(relative: true)}>#{c.label}</a></li>"
42
+ @list += " <li><a href=#{c.url(relative: true)}>#{c.label}</a></li>\n"
42
43
  end
43
44
  @list += '</ul>'
44
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Occams
4
- VERSION = '1.0.6.1'
4
+ VERSION = '1.0.7.1'
5
5
  end
data/occams.gemspec CHANGED
@@ -1,35 +1,35 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- $LOAD_PATH.unshift File.expand_path('lib', __dir__)
4
- require 'occams/version'
3
+ require_relative 'lib/occams/version'
5
4
 
6
- Gem::Specification.new do |s|
7
- s.name = 'occams'
8
- s.version = Occams::VERSION
9
- s.authors = ['Andrew vonderLuft']
10
- s.email = ['wonder@hey.com']
11
- s.homepage = 'http://github.com/avonderluft/occams'
12
- s.summary = 'Rails 6-7+ CMS Engine'
13
- s.description = 'Occams is a powerful Rails 6-7+ CMS Engine'
14
- s.license = 'MIT'
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'occams'
7
+ spec.version = Occams::VERSION
8
+ spec.authors = ['Andrew vonderLuft']
9
+ spec.email = ['wonder@hey.com']
10
+ spec.homepage = 'http://github.com/avonderluft/occams'
11
+ spec.summary = 'Rails 6-7+ CMS Engine'
12
+ spec.description = 'Occams is a powerful Rails 6-7+ CMS Engine'
13
+ spec.license = 'MIT'
15
14
 
16
- s.files = `git ls-files -z`.split("\x0").reject do |f|
15
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
16
  f.match(%r{^(test|doc)/})
18
17
  end
19
18
 
20
- s.required_ruby_version = '>= 2.7.0'
21
- s.metadata['rubygems_mfa_required'] = 'true'
19
+ spec.required_ruby_version = '>= 2.7.0'
20
+ spec.metadata['rubygems_mfa_required'] = 'true'
22
21
 
23
- s.add_runtime_dependency 'active_link_to', '~> 1.0', '>= 1.0.5'
24
- s.add_runtime_dependency 'comfy_bootstrap_form', '~> 4.0', '>= 4.0.0'
25
- s.add_runtime_dependency 'haml-rails', '~> 2.1', '>= 2.1.0'
26
- s.add_runtime_dependency 'image_processing', '~> 1.12', '>= 1.12.2'
27
- s.add_runtime_dependency 'jquery-rails', '~> 4.6', '>= 4.6.0'
28
- s.add_runtime_dependency 'kramdown', '~> 2.4', '>= 2.4.0'
29
- s.add_runtime_dependency 'mimemagic', '~> 0.4', '>= 0.4.3'
30
- s.add_runtime_dependency 'mini_magick', '~> 4.12', '>= 4.12.0'
31
- s.add_runtime_dependency 'rails', '>= 6.1.0'
32
- s.add_runtime_dependency 'rails-i18n', '>= 6.0.0'
33
- s.add_runtime_dependency 'sassc-rails', '~> 2.1', '>= 2.1.2'
34
- s.add_runtime_dependency 'sprockets-rails', '~> 3.4', '>= 3.4.2'
22
+ spec.add_dependency 'active_link_to', '~> 1.0', '>= 1.0.5'
23
+ spec.add_dependency 'comfy_bootstrap_form', '~> 4.0', '>= 4.0.0'
24
+ spec.add_dependency 'haml-rails', '~> 2.1', '>= 2.1.0'
25
+ spec.add_dependency 'image_processing', '~> 1.2', '>= 1.12.2'
26
+ spec.add_dependency 'jquery-rails', '~> 4.6', '>= 4.6.0'
27
+ spec.add_dependency 'kaminari', '~> 1.2', '>= 1.2.2'
28
+ spec.add_dependency 'kramdown', '~> 2.4', '>= 2.4.0'
29
+ spec.add_dependency 'mimemagic', '~> 0.4', '>= 0.4.3'
30
+ spec.add_dependency 'mini_magick', '~> 4.12', '>= 4.12.0'
31
+ spec.add_dependency 'rails', '>= 6.1.0'
32
+ spec.add_dependency 'rails-i18n', '>= 6.0.0'
33
+ spec.add_dependency 'sassc-rails', '~> 2.1', '>= 2.1.2'
34
+ spec.add_dependency 'sprockets-rails', '~> 3.4', '>= 3.4.2'
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occams
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6.1
4
+ version: 1.0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew vonderLuft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_link_to
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '1.12'
79
+ version: '1.2'
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.12.2
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.12'
89
+ version: '1.2'
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: 1.12.2
@@ -110,6 +110,26 @@ dependencies:
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: 4.6.0
113
+ - !ruby/object:Gem::Dependency
114
+ name: kaminari
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '1.2'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.2.2
123
+ type: :runtime
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '1.2'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 1.2.2
113
133
  - !ruby/object:Gem::Dependency
114
134
  name: kramdown
115
135
  requirement: !ruby/object:Gem::Requirement
@@ -249,9 +269,9 @@ files:
249
269
  - ".gitattributes"
250
270
  - ".github/issue_template.md"
251
271
  - ".github/pull_request_template.md"
272
+ - ".github/workflows/rubyonrails.yml"
252
273
  - ".gitignore"
253
274
  - ".rubocop.yml"
254
- - ".travis.yml"
255
275
  - CHANGELOG.md
256
276
  - CONTRIBUTING.md
257
277
  - Gemfile
@@ -652,6 +672,8 @@ files:
652
672
  - db/cms_seeds/sample-site/snippets/default.html
653
673
  - db/migrate/00_create_active_storage_tables.rb
654
674
  - db/migrate/01_create_cms.rb
675
+ - gemfiles/6.1.gemfile
676
+ - gemfiles/7.0.gemfile
655
677
  - lib/generators/occams/cms/README
656
678
  - lib/generators/occams/cms/assets_generator.rb
657
679
  - lib/generators/occams/cms/cms_generator.rb
data/.travis.yml DELETED
@@ -1,45 +0,0 @@
1
- dist: xenial
2
- services:
3
- - xvfb
4
- addons:
5
- sources:
6
- - google-chrome
7
- apt:
8
- packages:
9
- - google-chrome-stable
10
-
11
- language: ruby
12
- rvm:
13
- - 2.7.8
14
- - 3.1.4
15
- - 3.2.2
16
- gemfile:
17
- - test/gemfiles/6.1.gemfile
18
- jobs:
19
- include:
20
- - rvm: 2.7.8
21
- gemfile: test/gemfiles/6.1.gemfile
22
- - rvm: 3.1.4
23
- gemfile: test/gemfiles/6.1.gemfile
24
- - rvm: 3.2.2
25
- gemfile: test/gemfiles/7.0.gemfile
26
- branches:
27
- only:
28
- - master
29
- before_install:
30
- - gem update --system
31
- - gem update bundler
32
- before_script:
33
- - wget http://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
34
- - unzip chromedriver_linux64.zip
35
- - sudo apt-get install libnss3
36
- - sudo apt-get --only-upgrade install google-chrome-stable
37
- - sudo cp chromedriver /usr/local/bin/.
38
- - sudo chmod +x /usr/local/bin/chromedriver
39
- - export DISPLAY=:99.0
40
- - sleep 3
41
- script:
42
- - bundle exec rake db:migrate
43
- - bundle exec rake test
44
- - SKIP_COV=true bundle exec rake test:system
45
- - bundle exec rubocop