Skip to content

Commit c9bdfa3

Browse files
committed
Pour a rails plugin new over the current gem
1 parent 810f6d5 commit c9bdfa3

File tree

64 files changed

+1125
-7
lines changed

Some content is hidden

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

64 files changed

+1125
-7
lines changed

.gitignore

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
*.gem
22
*.rbc
3-
.bundle
43
.config
54
.yardoc
65
Gemfile.lock
@@ -12,6 +11,12 @@ lib/bundler/man
1211
pkg
1312
rdoc
1413
spec/reports
15-
test/tmp
16-
test/version_tmp
17-
tmp
14+
/spec/tmp
15+
/spec/version_tmp
16+
/tmp
17+
/.bundle
18+
/log/*.log
19+
/test_app/db/*.sqlite3
20+
/test_app/log/*.log
21+
/test_app/tmp/
22+
/test_app/.sass-cache

Gemfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
source 'https://rubygems.org'
22

3-
# Specify your gem's dependencies in activeadmin-mongoid.gemspec
3+
# Declare your gem's dependencies in activeadmin-mongoid.gemspec.
4+
# Bundler will treat runtime dependencies like base dependencies, and
5+
# development dependencies will be added by default to the :development group.
46
gemspec
7+
8+
# jquery-rails is used by the dummy application
9+
gem 'jquery-rails'
10+
11+
# Declare any dependencies that are still in development here instead of in
12+
# your gemspec. These might include edge Rails or gems from your path or
13+
# Git. Remember to move these dependencies to your gemspec before releasing
14+
# your gem to rubygems.org.
15+
16+
# To use debugger
17+
# gem 'debugger'

Rakefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
11
#!/usr/bin/env rake
22
require "bundler/gem_tasks"
3+
begin
4+
require 'bundler/setup'
5+
rescue LoadError
6+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7+
end
8+
begin
9+
require 'rdoc/task'
10+
rescue LoadError
11+
require 'rdoc/rdoc'
12+
require 'rake/rdoctask'
13+
RDoc::Task = Rake::RDocTask
14+
end
15+
16+
RDoc::Task.new(:rdoc) do |rdoc|
17+
rdoc.rdoc_dir = 'rdoc'
18+
rdoc.title = 'ActiveadminMongoid'
19+
rdoc.options << '--line-numbers'
20+
rdoc.rdoc_files.include('README.rdoc')
21+
rdoc.rdoc_files.include('lib/**/*.rb')
22+
end
23+
24+
25+
26+
27+
require 'rake/testtask'
28+
29+
Rake::TestTask.new(:test) do |t|
30+
t.libs << 'lib'
31+
t.libs << 'test'
32+
t.pattern = 'test/**/*_test.rb'
33+
t.verbose = false
34+
end
35+
36+
37+
task :default => :test

app/assets/images/activeadmin-mongoid/.gitkeep

Whitespace-only changes.

app/assets/javascripts/activeadmin-mongoid/.gitkeep

Whitespace-only changes.

app/assets/stylesheets/activeadmin-mongoid/.gitkeep

Whitespace-only changes.

app/controllers/.gitkeep

Whitespace-only changes.

app/helpers/.gitkeep

Whitespace-only changes.

app/mailers/.gitkeep

Whitespace-only changes.

app/models/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)