Created
July 27, 2010 21:17
-
-
Save jodosha/492875 to your computer and use it in GitHub Desktop.
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
More info at: http://github.com/jodosha/more_paginate |
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
source :gemcutter | |
group :development do | |
gem "jeweler" | |
gem "git" | |
gem "sqlite3-ruby" | |
end | |
group :test do | |
gem "hanoi" | |
gem "rack", "1.1.0" | |
gem "activesupport", "2.3.8" | |
gem "activerecord", "2.3.8" | |
gem "actionpack", "2.3.8" | |
end | |
group :development, :test do | |
gem "ruby-debug" | |
gem "rspec" | |
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
GEM | |
remote: http://rubygems.org/ | |
specs: | |
actionpack (2.3.8) | |
activesupport (= 2.3.8) | |
rack (~> 1.1.0) | |
activerecord (2.3.8) | |
activesupport (= 2.3.8) | |
activesupport (2.3.8) | |
columnize (0.3.1) | |
gemcutter (0.6.1) | |
git (1.2.5) | |
hanoi (0.0.3) | |
jeweler (1.4.0) | |
gemcutter (>= 0.1.0) | |
git (>= 1.2.5) | |
rubyforge (>= 2.0.0) | |
json_pure (1.4.3) | |
linecache (0.43) | |
rack (1.1.0) | |
rspec (1.3.0) | |
ruby-debug (0.10.3) | |
columnize (>= 0.1) | |
ruby-debug-base (~> 0.10.3.0) | |
ruby-debug-base (0.10.3) | |
linecache (>= 0.3) | |
rubyforge (2.0.4) | |
json_pure (>= 1.1.7) | |
sqlite3-ruby (1.3.1) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
actionpack (= 2.3.8) | |
activerecord (= 2.3.8) | |
activesupport (= 2.3.8) | |
git | |
hanoi | |
jeweler | |
rack (= 1.1.0) | |
rspec | |
ruby-debug | |
sqlite3-ruby |
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
$ rake --trace | |
(in /Users/luca/Developer/more_paginate) | |
rake aborted! | |
You have already activated gemcutter 0.5.0, but your Gemfile requires gemcutter 0.6.1. Consider using bundle exec. | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:27:in `setup' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.1/lib/bundler/spec_set.rb:12:in `each' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.1/lib/bundler/spec_set.rb:12:in `each' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:17:in `setup' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.1/lib/bundler.rb:97:in `setup' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.1/lib/bundler/setup.rb:6 | |
/opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' | |
/opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
/Users/luca/Developer/more_paginate/Rakefile:3 | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 | |
/opt/ruby-enterprise/bin/rake:19:in `load' | |
/opt/ruby-enterprise/bin/rake:19 |
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
require "rubygems" | |
require "bundler" | |
Bundler.setup | |
require "active_support" | |
require "active_record" | |
require "action_view" | |
require "rack" | |
$:.unshift File.expand_path(File.dirname(__FILE__) + "/..") | |
require "lib/more_paginate" | |
load "init.rb" | |
require "spec/fixtures" | |
def create_tables | |
ActiveRecord::Migration.verbose = false | |
ActiveRecord::Schema.define do | |
create_table :events, :force => true do |t| | |
t.string :identifier | |
t.string :name | |
t.date :start_on | |
t.timestamps | |
end | |
create_table :people, :force => true do |t| | |
t.string :identifier | |
t.string :name | |
t.timestamps | |
end | |
create_table :events_people, :force => true, :id => false do |t| | |
t.references :event | |
t.references :person | |
end | |
create_table :photos, :force => true do |t| | |
t.references :event | |
t.string :identifier | |
t.string :title | |
t.timestamps | |
end | |
create_table :tags, :force => true do |t| | |
t.string :identifier | |
t.string :name | |
t.timestamps | |
end | |
create_table :taggings, :force => true do |t| | |
t.references :taggable, :polymorphic => true | |
t.references :tag | |
t.timestamps | |
end | |
end | |
end | |
ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:" | |
ActiveRecord::Base.logger = ActiveSupport::BufferedLogger.new "log/database.log" | |
create_tables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment