Permalink
Browse files

The repositories have split up and moved on

Check out the README for their destination
  • Loading branch information...
1 parent 5600de8 commit baa09df031fd1fd974d929cc77b65e41a3856a85 @namelessjon namelessjon committed Jul 14, 2010
Showing 681 changed files with 0 additions and 36,031 deletions.
View
20 LICENSE
@@ -1,20 +0,0 @@
-Copyright (c) 2009 Dan Kubb
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
156 Rakefile
@@ -1,156 +0,0 @@
-require 'pathname'
-require 'spec/rake/spectask'
-require 'rake/rdoctask'
-require 'rake/gempackagetask'
-require 'fileutils'
-include FileUtils
-
-JRUBY = RUBY_PLATFORM =~ /java/
-WINDOWS = Gem.win_platform? || (JRUBY && ENV_JAVA['os.name'] =~ /windows/i)
-
-## ORDER IS IMPORTANT
-# gems may depend on other member gems of dm-more
-gem_paths = %w[
- dm-adjust
- dm-serializer
- dm-validations
- dm-types
- adapters/dm-ferret-adapter
- adapters/dm-rest-adapter
- dm-aggregates
- dm-ar-finders
- dm-cli
- dm-constraints
- dm-is-list
- dm-is-nested_set
- dm-is-remixable
- dm-is-searchable
- dm-is-state_machine
- dm-is-tree
- dm-is-versioned
- dm-migrations
- dm-observer
- dm-sweatshop
- dm-tags
- dm-timestamps
- rails_datamapper
-]
-
-# skip installing ferret on Ruby 1.9 until the gem is fixed
-if JRUBY || WINDOWS || RUBY_VERSION < '1.9'
- gem_paths -= %w[ adapters/dm-ferret-adapter ]
-end
-
-gems = gem_paths.map { |gem_path| File.basename(gem_path) }
-
-excluded_gems = ENV['EXCLUDE'] ? ENV['EXCLUDE'].split(',') : []
-gem_paths = gem_paths - excluded_gems
-
-gem_spec = Gem::Specification.new do |gem|
- gem.name = 'dm-more'
- gem.summary = 'DataMapper Plugins'
- gem.description = gem.summary
- gem.email = 'dan.kubb [a] gmail [d] com'
- gem.homepage = 'http://github.com/datamapper/dm-more/'
- gem.authors = [ 'Dan Kubb' ]
-
- gem.version = File.read('VERSION').chomp
-
- gem.rubyforge_project = 'datamapper'
-
- gem.add_dependency 'dm-core', '~> 0.10.3'
-
- gems.each do |gem_name|
- gem.add_dependency File.basename(gem_name), '~> 0.10.3'
- end
-
- gem.add_development_dependency 'rspec', '~> 1.3'
- gem.add_development_dependency 'yard', '~> 0.5'
-
- gem.require_path = 'lib'
- gem.files = %w[ LICENSE README.rdoc lib/dm-more.rb ]
-end
-
-Rake::GemPackageTask.new(gem_spec) do |package|
- package.gem_spec = gem_spec
-end
-
-FileList['tasks/**/*.rake'].each { |task| import task }
-
-def rake(cmd, bundle_exec = false)
- sh "#{bundle_exec ? 'bundle exec ' : ''}#{RUBY} -S rake #{cmd}", :verbose => true
-end
-
-def bundle(cmd)
- sh "bundle #{cmd}", :verbose => true
-end
-
-desc "Install #{gem_spec.name}"
-task :install do
- gem_paths.each do |dir|
- Dir.chdir(dir) { rake 'install', true }
- end
-end
-
-desc "Generate gemspecs for all gems in #{gem_spec.name}"
-task :gemspec do
- gem_paths.each do |dir|
- Dir.chdir(dir) { rake 'gemspec', true }
- end
-end
-
-namespace :bundle do
- desc "Runs 'bundle install --without quality' for all gems in #{gem_spec.name} (suitable for spec runs)"
- task :install do
- gem_paths.each do |dir|
- Dir.chdir(dir) { bundle 'install --without quality' }
- end
- end
-
- namespace :install do
- desc "Runs 'bundle install' for all gems in #{gem_spec.name}"
- task :quality do
- gem_paths.each do |dir|
- Dir.chdir(dir) { bundle 'install' }
- end
- end
- end
-end
-
-file 'lib/dm-more.rb' do
- mkdir_p 'lib'
- File.open('lib/dm-more.rb', 'w+') do |file|
- file.puts '### AUTOMATICALLY GENERATED. DO NOT EDIT.'
- gems.each do |gem|
- lib = if '-adapter' == gem[-8..-1]
- gem.split('-')[1..-1].join('_')
- else
- gem
- end
- file.puts "require '#{lib}'"
- end
- end
-end
-
-desc "Release #{gem_spec.name}"
-task :release => [ :gem ] do
- gem_paths.each do |dir|
- Dir.chdir(dir) { rake 'release', true }
-
- # workaround Jeweler bug. it was identifying the repo as
- # in a dirty state, but it is not. running git status clears
- # the dirty state.
- system 'git status >/dev/null'
- end
-
- sh "#{RUBY} -S gem push pkg/dm-more-#{gem_spec.version}.gem"
-end
-
-desc 'Run specs'
-task :spec do
- exit 1 unless (gem_paths - %w[ rails_datamapper ]).map do |gem_name|
- Dir.chdir(gem_name) { rake 'spec', true }
- end.all?
-end
-
-task :default => :spec
View
@@ -1 +0,0 @@
-0.10.3
@@ -1 +0,0 @@
-index
@@ -1,84 +0,0 @@
-source 'http://rubygems.org'
-
-group :runtime do
-
- # We bundle both AS and extlib while extlib compatibility needs to be kept around.
- # require 'dm-core' will ensure that only one is activated at any time though.
- # This is done by trying to require AS components and fallback to requiring
- # extlib in case a LoadError was rescued when requiring AS code.
- #
- # Due to bundle exec activating all groups in the Gemfile, it's recommended to run
- #
- # bundle install --without quality
- #
- # to have a development environment that is able to run the specs. The problem is that
- # metric_fu activates active_support=2.2.3 if we comment out the gem 'activesupport'
- # declaration - have a look below for why we would want to do that (and a bit later, for
- # why that's actually not *strictly* necessary, but recommended)
- #
- # To run the specs using AS, leave this Gemfile as it is and just run
- #
- # bundle install --without qality
- # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
- #
- # To run the specs using extlib, comment out the: gem 'activesupport' line and run
- #
- # bundle install --without quality
- # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
- #
- # If you want to run the quality tasks as provided by metric_fu and related gems,
- # you have to run
- #
- # bundle install
- # bundle exec rake metrics:all
- #
- # Switch back to a bundle without quality gems before trying to run the specs again
- #
- # bundle install --without quality
- # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
- #
- # It was mentioned above that all this is not *strictly* necessary, and this is true.
- # Currently dm-core does the following as the first require when checking for AS
- #
- # require 'active_support/core_ext/object/singleton_class'
- #
- # Because this method is not present in activesupport <= 3.0.0.beta, dm-core's feature
- # detection will actually do the "right thing" and fall back to extlib. However, since
- # this is not the case for all dm-more gems as well, the safest thing to do is to respect
- # the more tedious workflow for now, as it will at least be guaranteed to work the same
- # for both dm-core and dm-more.
- #
- # Note that this won't be an issue anymore once we dropped support for extlib completely,
- # or bundler folks decide to support something like "bundle exec --without=foo rake spec"
- # (which probably is not going to happen anytime soon).
- #
-
- if ENV['EXTLIB']
- gem 'extlib', '~> 0.9.15', :git => 'git://github.com/datamapper/extlib.git'
- else
- gem 'activesupport', '~> 3.0.0.beta2', :git => 'git://github.com/rails/rails.git', :require => nil
- end
-
- gem 'dm-core', '~> 0.10.3', :git => 'git://github.com/datamapper/dm-core.git'
- gem 'ferret', '~> 0.11.6'
-end
-
-group :development do
- gem 'rake', '~> 0.8.7'
- gem 'rspec', '~> 1.3'
- gem 'yard', '~> 0.5'
- gem 'rcov', '~> 0.9.7'
- gem 'jeweler', '~> 1.4'
- gem 'data_objects', '~> 0.10.1'
- gem 'do_sqlite3', '~> 0.10.1'
- gem 'do_mysql', '~> 0.10.1'
- gem 'do_postgres', '~> 0.10.1'
- gem 'uuidtools', '~> 2.1.1'
-end
-
-group :quality do
- gem 'yardstick', '~> 0.1'
- gem 'metric_fu', '~> 1.3'
- gem 'reek', '~> 1.2.7'
- gem 'roodi', '~> 2.1'
-end
@@ -1,20 +0,0 @@
-Copyright (c) 2009 Bernerd Schaefer
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,62 +0,0 @@
-This is a DataMapper plugin for Ferret.
-
-= Setup code
-
-For a single process site, use the ferret index directly:
-
- DataMapper.setup :search, "ferret:///path/to/index"
-
-For a multi-process site, use the distributed index by running `ferret start`
-inside your project's directory and then setting up the :search repository:
-
- DataMapper.setup :search, "ferret:///tmp/ferret_index.sock"
-
-= Sample Code
-
-require 'rubygems'
-require "dm-core"
-require "dm-is-searchable"
-
-DataMapper.setup(:default, "sqlite3::memory:")
-DataMapper.setup(:search, "ferret://#{Pathname(__FILE__).dirname.expand_path.parent + "index"}")
-
-class Image
- include DataMapper::Resource
- property :id, Serial
- property :title, String
-
- is :searchable # this defaults to :search repository, you could also do
- # is :searchable, :repository => :ferret
-
-end
-
-class Story
- include DataMapper::Resource
- property :id, Serial
- property :title, String
- property :author, String
-
- repository(:search) do
- # We only want to search on id and title.
- properties(:search).clear
- property :id, Serial
- property :title, String
- end
-
- is :searchable
-
-end
-
-Image.auto_migrate!
-Story.auto_migrate!
-image = Image.create(:title => "Oil Rig");
-story = Story.create(:title => "Big Oil", :author => "John Doe") }
-
-puts Image.search(:title => "Oil Rig").inspect # => [<Image title="Oil Rig">]
-
-# For info on this, see DM::Repository#search and DM::Adapters::FerretAdapter#search.
-puts repository(:search).search('title:"Oil"').inspect # => { Image => ["1"], Story => ["1"] }
-
-image.destroy
-
-puts Image.search(:title => "Oil Rig").inspect # => []
@@ -1,31 +0,0 @@
-require 'rubygems'
-require 'rake'
-
-begin
- gem 'jeweler', '~> 1.4'
- require 'jeweler'
-
- Jeweler::Tasks.new do |gem|
- gem.name = 'dm-ferret-adapter'
- gem.summary = 'Ferret Adapter for DataMapper'
- gem.description = gem.summary
- gem.email = 'bernerd [a] wieck [d] com'
- gem.homepage = 'http://github.com/datamapper/dm-more/tree/master/adapters/%s' % gem.name
- gem.authors = [ 'Bernerd Schaefer' ]
-
- gem.rubyforge_project = 'datamapper'
-
- gem.add_dependency 'dm-core', '~> 0.10.3'
- gem.add_dependency 'ferret', '~> 0.11.6'
-
- gem.add_development_dependency 'rspec', '~> 1.3'
- gem.add_development_dependency 'uuidtools', '~> 2.1.1'
- gem.add_development_dependency 'yard', '~> 0.5'
- end
-
- Jeweler::GemcutterTasks.new
-
- FileList['tasks/**/*.rake'].each { |task| import task }
-rescue LoadError
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
-end
@@ -1 +0,0 @@
-0.10.3
Oops, something went wrong.

0 comments on commit baa09df

Please sign in to comment.