Skip to content

Commit 76a9274

Browse files
authored
Merge pull request #8 from blocknotes/v1.0.0
v1.0.0
2 parents 4bc1819 + 0734dca commit 76a9274

19 files changed

Lines changed: 758 additions & 37 deletions

.github/workflows/specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Specs
2+
name: Specs Rails 6
33

44
on:
55
push:

.github/workflows/specs2.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Specs Rails 7
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
ruby: ['2.7', '3.0']
19+
gemfile: ['rails70_administrate016', 'rails70_administrate']
20+
21+
env:
22+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
27+
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby }}
32+
bundler-cache: true
33+
34+
- name: Run tests
35+
run: bundle exec rspec --profile
36+
37+
- name: On failure, archive screenshots as artifacts
38+
uses: actions/upload-artifact@v2
39+
if: failure()
40+
with:
41+
name: test-failed-screenshots
42+
path: spec/dummy/tmp/screenshots

Appraisals

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
appraise 'rails60-administrate016' do
44
gem 'administrate', '~> 0.16.0'
55
gem 'rails', '~> 6.0.0'
6-
gem 'selenium-webdriver', require: false # Fix
6+
# gem 'selenium-webdriver', require: false # Fix
77
end
88

99
appraise 'rails60-administrate' do # latest administrate
1010
gem 'rails', '~> 6.0.0'
11-
gem 'selenium-webdriver', require: false # Fix
11+
# gem 'selenium-webdriver', require: false # Fix
1212
end
1313

1414
appraise 'rails61-administrate016' do
@@ -20,11 +20,11 @@ appraise 'rails61-administrate' do # latest administrate
2020
gem 'rails', '~> 6.1.0'
2121
end
2222

23-
# appraise 'rails70-administrate016' do
24-
# gem 'administrate', '~> 0.16.0'
25-
# gem 'rails', '~> 7.0.0'
26-
# end
23+
appraise 'rails70-administrate016' do
24+
gem 'administrate', '~> 0.16.0'
25+
gem 'rails', '~> 7.0.0'
26+
end
2727

28-
# appraise 'rails70-administrate' do # latest administrate
29-
# gem 'rails', '~> 7.0.0'
30-
# end
28+
appraise 'rails70-administrate' do # latest administrate
29+
gem 'rails', '~> 7.0.0'
30+
end

MIT-LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2020 Mattia Roccoberton
1+
Copyright 2022 Mattia Roccoberton
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ Features:
1313
- customizable via SASS variables;
1414
- allow to use *Materialize* components in the admin.
1515

16-
![screenshot](screenshot.png)
16+
![screenshot](extra/screenshot.png)
1717

1818
Please :star: if you like it.
1919

2020
## Installation
2121

22+
- Add a SASS/SCSS gem to your Gemfile (ex. `gem 'sassc'`)
2223
- After installing Administrate, add to *Gemfile*: `gem 'administrate-materialize-theme'` (and execute `bundle`)
2324
- Edit *app/assets/config/manifest.js*, adding at the end:
2425

administrate-materialize-theme.gemspec

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ Gem::Specification.new do |spec|
1616
spec.description = "A Material Design theme for Administrate using Materialize framework"
1717
spec.license = "MIT"
1818

19-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
20-
# to allow pushing to a single host or delete this section to allow pushing to any host.
21-
if spec.respond_to?(:metadata)
22-
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
23-
else
24-
raise "RubyGems 2.0 or newer is required to protect against " \
25-
"public gem pushes."
26-
end
19+
spec.required_ruby_version = '>= 2.6.0'
20+
21+
spec.metadata['homepage_uri'] = spec.homepage
22+
spec.metadata['source_code_uri'] = spec.homepage
23+
spec.metadata['rubygems_mfa_required'] = 'true'
2724

2825
spec.files = Dir["{app,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
2926

30-
spec.add_runtime_dependency 'administrate', '~> 0.14'
31-
spec.add_runtime_dependency 'sassc', '~> 2.4'
27+
spec.add_runtime_dependency 'administrate', '~> 0.16'
3228

3329
spec.add_development_dependency 'appraisal', '~> 2.4'
3430
end
File renamed without changes.

gemfiles/rails60_administrate.gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
source "https://rubygems.org"
44

55
gem "rails", "~> 6.0.0"
6-
gem "selenium-webdriver", require: false
76

87
group :development, :test do
98
gem "puma"

gemfiles/rails60_administrate.gemfile.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
PATH
22
remote: ..
33
specs:
4-
administrate-materialize-theme (0.2.4)
5-
administrate (~> 0.14)
6-
sassc (~> 2.4)
4+
administrate-materialize-theme (1.0.0)
5+
administrate (~> 0.16)
76

87
GEM
98
remote: https://rubygems.org/

gemfiles/rails60_administrate016.gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ source "https://rubygems.org"
44

55
gem "administrate", "~> 0.16.0"
66
gem "rails", "~> 6.0.0"
7-
gem "selenium-webdriver", require: false
87

98
group :development, :test do
109
gem "puma"

0 commit comments

Comments
 (0)