-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from blocknotes/v1.0.0
v1.0.0
- Loading branch information
Showing
33 changed files
with
2,313 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
exclude_paths: | ||
- bin/* | ||
- db/schema.rb | ||
- gemfiles/**/* | ||
- spec/dummy/**/* | ||
- vendor/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: Specs Rails 6.0 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
ruby: ['2.6', '2.7'] | ||
gemfile: ['rails60_activeadmin22', 'rails60_activeadmin'] | ||
|
||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Run tests | ||
run: bundle exec rspec --profile | ||
|
||
- name: On failure, archive screenshots as artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: test-failed-screenshots | ||
path: spec/dummy/tmp/screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: Specs Rails 7.0 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
ruby: ['2.7', '3.0'] | ||
gemfile: ['rails70_activeadmin'] | ||
|
||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Run tests | ||
run: bundle exec rspec --profile | ||
|
||
- name: On failure, archive screenshots as artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: test-failed-screenshots | ||
path: spec/dummy/tmp/screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise 'rails52-activeadmin20' do | ||
gem 'activeadmin', '~> 2.0.0' | ||
gem 'rails', '~> 5.2.0' | ||
end | ||
|
||
appraise 'rails60-activeadmin22' do | ||
gem 'activeadmin', '~> 2.2.0' | ||
gem 'rails', '~> 6.0.0' | ||
gem 'selenium-webdriver', require: false | ||
end | ||
|
||
appraise 'rails60-activeadmin' do | ||
gem 'activeadmin' | ||
gem 'rails', '~> 6.0.0' | ||
gem 'selenium-webdriver', require: false | ||
end | ||
|
||
appraise 'rails61-activeadmin29' do | ||
gem 'activeadmin', '~> 2.9.0' | ||
gem 'rails', '~> 6.1.0' | ||
end | ||
|
||
appraise 'rails61-activeadmin' do | ||
gem 'activeadmin' | ||
gem 'rails', '~> 6.1.0' | ||
end | ||
|
||
appraise 'rails70-activeadmin' do | ||
gem 'activeadmin' | ||
gem 'rails', '~> 7.0.0' | ||
gem 'sprockets-rails' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2020 Mattia Roccoberton | ||
Copyright (c) 2020-2022 Mattia Roccoberton | ||
|
||
MIT License | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'appraisal' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
require "pathname" | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", | ||
Pathname.new(__FILE__).realpath) | ||
|
||
bundle_binstub = File.expand_path("../bundle", __FILE__) | ||
|
||
if File.file?(bundle_binstub) | ||
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ | ||
load(bundle_binstub) | ||
else | ||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. | ||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") | ||
end | ||
end | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("appraisal", "appraisal") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Development | ||
|
||
## Releases | ||
|
||
```sh | ||
# Update version.rb with the new version | ||
# Update the gemfiles: | ||
bin/appraisal | ||
``` | ||
|
||
## Testing | ||
|
||
```sh | ||
# Running specs using a specific configuration: | ||
bin/appraisal rails60-activeadmin22 rspec | ||
# Using latest activeadmin version: | ||
bin/appraisal rails60-activeadmin rspec | ||
# See gemfiles for more configurations | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "activeadmin", "~> 2.0.0" | ||
gem "rails", "~> 5.2.0" | ||
|
||
group :development, :test do | ||
gem "puma" | ||
gem "sassc" | ||
gem "sqlite3" | ||
gem "capybara" | ||
gem "cuprite" | ||
gem "rspec_junit_formatter" | ||
gem "rspec-rails" | ||
gem "fasterer" | ||
gem "rubocop" | ||
gem "rubocop-packaging" | ||
gem "rubocop-performance" | ||
gem "rubocop-rails" | ||
gem "rubocop-rspec" | ||
gem "pry-rails" | ||
end | ||
|
||
gemspec path: "../" |
Oops, something went wrong.