Skip to content

Commit b127c25

Browse files
committed
Add minimum specs
1 parent a39b981 commit b127c25

89 files changed

Lines changed: 1865 additions & 10 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
/.bundle/
1212
/log/*.log
1313
/pkg/
14-
/test/dummy/db/*.sqlite3
15-
/test/dummy/db/*.sqlite3-journal
16-
/test/dummy/db/*.sqlite3-*
17-
/test/dummy/log/*.log
18-
/test/dummy/storage/
19-
/test/dummy/tmp/
14+
15+
/spec/dummy/db/*.sqlite3
16+
/spec/dummy/db/*.sqlite3-journal
17+
/spec/dummy/db/*.sqlite3-*
18+
/spec/dummy/log/*.log
19+
/spec/dummy/storage/
20+
/spec/dummy/tmp/

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--require rails_helper
2+
--format documentation
3+
--profile

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ inherit_from:
44
AllCops:
55
Exclude:
66
- bin/*
7+
- spec/dummy/**/*
78

89
Gemspec/RequiredRubyVersion:
910
Enabled: false

administrate-materialize-theme.gemspec

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Gem::Specification.new do |spec|
1111
spec.version = AdministrateMaterializeTheme::VERSION
1212
spec.authors = ["Mattia Roccoberton"]
1313
spec.email = ["mat@blocknot.es"]
14-
spec.homepage = "https://blocknot.es"
14+
spec.homepage = "https://github.com/blocknotes/administrate-materialize-theme"
1515
spec.summary = "Administrate Materialize Theme"
16-
spec.description = "A Material theme for Administrate based on Materialize framework"
16+
spec.description = "A Material Design theme for Administrate using Materialize framework"
1717
spec.license = "MIT"
1818

1919
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -27,7 +27,15 @@ Gem::Specification.new do |spec|
2727

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

30-
spec.add_dependency 'administrate', '~> 0.14.0'
30+
spec.add_runtime_dependency 'administrate', '~> 0.14.0'
3131

32-
spec.add_development_dependency 'rubocop', '~> 0.89.1'
32+
spec.add_development_dependency 'activestorage', '~> 6.0.3.2'
33+
spec.add_development_dependency 'capybara', '~> 3.33.0'
34+
spec.add_development_dependency 'pry', '~> 0.13.1'
35+
spec.add_development_dependency 'puma', '~> 4.3.5'
36+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
37+
spec.add_development_dependency 'rspec-rails', '~> 4.0.1'
38+
spec.add_development_dependency 'rubocop', '~> 0.90.0'
39+
spec.add_development_dependency 'selenium-webdriver', '~> 3.142.7'
40+
spec.add_development_dependency 'sqlite3', '~> 1.4.2'
3341
end

bin/rspec

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'rspec' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
require "pathname"
12+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13+
Pathname.new(__FILE__).realpath)
14+
15+
bundle_binstub = File.expand_path("../bundle", __FILE__)
16+
17+
if File.file?(bundle_binstub)
18+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19+
load(bundle_binstub)
20+
else
21+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23+
end
24+
end
25+
26+
require "rubygems"
27+
require "bundler/setup"
28+
29+
load Gem.bin_path("rspec-core", "rspec")

spec/dummy/.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.7.1

spec/dummy/.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.6.6

spec/dummy/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative 'config/application'
5+
6+
Rails.application.load_tasks
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css
3+
4+
// OFF = link active_storage_db_manifest.js
5+
6+
//= link administrate/application.css
7+
//= link administrate/application.js
8+
9+
//= link administrate-materialize-theme/theme.css
10+
//= link administrate-materialize-theme/theme.js

spec/dummy/app/assets/images/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)