Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move to bundler-style gem structure

  • Loading branch information...
commit 02f19db4d12e01fffeae45e96654e99d00bcd874 1 parent 20a25c5
Mike Fulcher authored
View
3  Gemfile
@@ -1,4 +1,3 @@
source "http://rubygems.org"
-gem 'rails', '3.1.0.rc5'
-gem 'sqlite3'
+gemspec
View
11 Gemfile.lock
@@ -1,3 +1,9 @@
+PATH
+ remote: .
+ specs:
+ simple_model (0.0.1)
+ activemodel (~> 3)
+
GEM
remote: http://rubygems.org/
specs:
@@ -73,7 +79,6 @@ GEM
hike (~> 1.2)
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
- sqlite3 (1.3.3)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.10)
@@ -85,5 +90,5 @@ PLATFORMS
ruby
DEPENDENCIES
- rails (= 3.1.0.rc5)
- sqlite3
+ rails (~> 3)
+ simple_model!
View
4 Rakefile
@@ -1,6 +1,7 @@
#!/usr/bin/env rake
begin
require 'bundler/setup'
+ require 'bundler/gem_tasks'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
@@ -20,8 +21,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
Bundler::GemHelper.install_tasks
require 'rake/testtask'
@@ -33,5 +32,4 @@ Rake::TestTask.new(:test) do |t|
t.verbose = false
end
-
task :default => :test
View
5 simple_model.gemspec
@@ -1,5 +1,3 @@
-# Provide a simple gemspec so you can easily use your
-# project in your rails apps through git.
Gem::Specification.new do |s|
s.name = "simple_model"
s.authors = ["Mike Fulcher"]
@@ -8,4 +6,7 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]
s.test_files = Dir["test/**/*"]
s.version = "0.0.1"
+
+ s.add_dependency "activemodel", "~> 3"
+ s.add_development_dependency "rails", "~> 3"
end
View
1  test/test_helper.rb
@@ -1,7 +1,6 @@
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
-require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "rails/test_help"
Rails.backtrace_cleaner.remove_silencers!
Please sign in to comment.
Something went wrong with that request. Please try again.