-
Notifications
You must be signed in to change notification settings - Fork 43
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 #10 from thambley/issue1
Don't access the database unless and until necessary
- Loading branch information
Showing
21 changed files
with
430 additions
and
254 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.bundle/* |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ doc | |
.rbenv-version | ||
.ruby-version | ||
/Gemfile.lock | ||
gemfiles/*.gemfile.lock |
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,30 +1,17 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'activeadmin', '~> 1.0' | ||
gem 'spreadsheet', '~> 1.1', '>= 1.1.4' | ||
|
||
group :development, :test do | ||
gem 'haml', require: false | ||
gem 'rails-i18n' # Gives us default i18n for many languages | ||
gem 'rdiscount' # For yard | ||
gem 'sprockets' | ||
gem 'sqlite3' | ||
gem 'yard' | ||
end | ||
|
||
group :test do | ||
gem 'capybara' | ||
gem 'cucumber-rails', require: false | ||
gem 'database_cleaner' | ||
gem 'guard-coffeescript' | ||
gem 'guard-rspec' | ||
gem 'inherited_resources' | ||
gem 'jasmine' | ||
gem 'jslint_on_rails', '~> 1.0.6' | ||
gem 'launchy' | ||
gem 'rspec-mocks' | ||
gem 'rspec-rails' | ||
gem 'sass-rails' | ||
gem 'shoulda-matchers', '1.0.0' | ||
gem 'rspec-mocks', '~> 3.7' | ||
gem 'rspec-rails', '~> 3.7' | ||
gem 'simplecov', require: false | ||
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,23 +1,23 @@ | ||
#!/usr/bin/env rake | ||
require "activeadmin" | ||
require "rspec/core/rake_task" | ||
require 'rspec/core/rake_task' | ||
|
||
desc "Creates a test rails app for the specs to run against" | ||
desc 'Creates a test rails app for the specs to run against' | ||
task :setup do | ||
require 'rails/version' | ||
system("mkdir spec/rails") unless File.exists?("spec/rails") | ||
system('mkdir spec/rails') unless File.exist?('spec/rails') | ||
puts "system \"bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -m spec/support/rails_template_with_data.rb\"" | ||
system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -m spec/support/rails_template_with_data.rb" | ||
end | ||
|
||
RSpec::Core::RakeTask.new | ||
task :default => :spec | ||
task :test => :spec | ||
task default: :spec | ||
task test: :spec | ||
|
||
desc "build the gem" | ||
desc 'build the gem' | ||
task :build do | ||
system "gem build activeadmin-xls.gemspec" | ||
system 'gem build activeadmin-xls.gemspec' | ||
end | ||
desc "build and release the gem" | ||
task :release => :build do | ||
desc 'build and release the gem' | ||
task release: :build do | ||
system "gem push activeadmin-xls-#{ActiveAdmin::Xls::VERSION}.gem" | ||
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env ruby | ||
source 'https://rubygems.org' | ||
|
||
ruby_major_version = RUBY_VERSION.split('.')[0].to_i | ||
ruby_minor_version = RUBY_VERSION.split('.')[1].to_i | ||
|
||
eval_gemfile(File.expand_path(File.join('..', 'Gemfile'), __dir__)) | ||
|
||
gem 'rails', '3.2.22.5' | ||
|
||
gem 'activeadmin', '0.6.6' | ||
|
||
group :assets do | ||
gem 'coffee-rails', '~> 3.2.1' | ||
gem 'sass-rails', '~> 3.2.3' | ||
|
||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', :platforms => :ruby | ||
|
||
gem 'uglifier', '>= 1.0.3' | ||
end | ||
|
||
group :test do | ||
gem 'shoulda-matchers', '~> 2.8.0' | ||
if ruby_major_version > 2 || (ruby_major_version == 2 && ruby_minor_version > 1) | ||
gem 'test-unit', '~> 3.0' | ||
end | ||
end | ||
|
||
gemspec path: "../" |
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,22 @@ | ||
#!/usr/bin/env ruby | ||
source 'https://rubygems.org' | ||
|
||
ruby_major_version = RUBY_VERSION.split('.')[0].to_i | ||
ruby_minor_version = RUBY_VERSION.split('.')[1].to_i | ||
|
||
eval_gemfile(File.expand_path(File.join('..', 'Gemfile'), __dir__)) | ||
|
||
gem 'activeadmin', '1.0.0' | ||
gem 'devise', '~> 4.2' | ||
gem 'rails', '4.2.10' | ||
gem 'turbolinks', '~> 5.0.0' | ||
gem 'tzinfo-data' | ||
|
||
group :test do | ||
gem 'shoulda-matchers', '~> 3.1' | ||
if ruby_major_version > 2 || (ruby_major_version == 2 && ruby_minor_version > 1) | ||
gem 'test-unit', '~> 3.0' | ||
end | ||
end | ||
|
||
gemspec path: "../" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module ActiveAdmin | ||
module Xls | ||
VERSION = '1.0.4'.freeze | ||
VERSION = '1.0.5'.freeze | ||
end | ||
end |
Oops, something went wrong.