Skip to content

Commit e89a9f0

Browse files
committed
Generate redmine_audit plugin.
Only .keep files were created by hand. spec files were deleted because test dir was generated. $ bundle exec rails generate redmine_plugin RedmineAudit
1 parent 27397c4 commit e89a9f0

File tree

13 files changed

+23
-25
lines changed

13 files changed

+23
-25
lines changed

Rakefile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
require "bundler/gem_tasks"
2-
require "rspec/core/rake_task"
2+
require "rake/testtask"
33

4-
RSpec::Core::RakeTask.new(:spec)
4+
Rake::TestTask.new do |t|
5+
t.libs << "test"
6+
files = FileList["test/**/*test.rb"]
7+
t.test_files = files
8+
t.verbose = true
9+
end
510

6-
task :default => :spec
11+
task :default => :test

app/controllers/.keep

Whitespace-only changes.

app/helpers/.keep

Whitespace-only changes.

app/models/.keep

Whitespace-only changes.

app/views/.keep

Whitespace-only changes.

config/locales/en.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# English strings go here for Rails i18n
2+
en:
3+
# my_label: "My label"

config/routes.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Plugin's routes
2+
# See: http://guides.rubyonrails.org/routing.html

db/migrate/.keep

Whitespace-only changes.

init.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Redmine::Plugin.register :redmine_audit do
2+
name 'Redmine Audit plugin'
3+
author 'Sho Hashimoto'
4+
description 'Redmine plugin for checking vulnerabilities'
5+
version RedmineAudit::VERSION
6+
url 'https://github.com/sho-h/redmine_audit/'
7+
author_url 'https://github.com/sho-h/'
8+
end

lib/tasks/.keep

Whitespace-only changes.

spec/redmine_audit_spec.rb

-11
This file was deleted.

spec/spec_helper.rb

-11
This file was deleted.

test/test_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Load the Redmine helper
2+
require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')

0 commit comments

Comments
 (0)