Permalink
Browse files

get rid of jeweler. use gemspec directly

  • Loading branch information...
1 parent 30a308e commit d2f259ff9ec49c0c6d026f9907d305c3152a6995 @ninjudd committed Sep 12, 2012
Showing with 37 additions and 178 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 .rbenv-gemsets
  3. +1 −0 .rbenv-version
  4. +3 −0 Gemfile
  5. +3 −40 Rakefile
  6. +0 −1 lib/model_set.rb
  7. +3 −0 lib/model_set/version.rb
  8. +23 −135 model_set.gemspec
  9. +1 −1 test/model_set_test.rb
  10. +1 −1 test/multi_set_test.rb
View
@@ -1,2 +1,3 @@
+Gemfile.lock
/pkg/
*~
View
@@ -0,0 +1 @@
+model_set
View
@@ -0,0 +1 @@
+ree-1.8.7-2012.02
View
@@ -0,0 +1,3 @@
+source "http://www.rubygems.org"
+
+gemspec
View
@@ -1,47 +1,10 @@
-require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = "model_set"
- s.summary = %Q{Easy manipulation of sets of ActiveRecord models}
- s.email = "code@justinbalthrop.com"
- s.homepage = "http://github.com/ninjudd/model_set"
- s.description = "Easy manipulation of sets of ActiveRecord models"
- s.authors = ["Justin Balthrop"]
- s.add_dependency('ordered_set', '>= 1.0.1')
- s.add_dependency('deep_clonable', '>= 1.1.0')
- s.add_dependency('activerecord', '>= 2.0.0')
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
+require 'bundler/gem_tasks'
Rake::TestTask.new do |t|
- t.libs << 'lib'
+ t.libs = ['lib', 'test']
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'model_set'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |t|
- t.libs << 'test'
- t.test_files = FileList['test/**/*_test.rb']
- t.verbose = true
- end
-rescue LoadError
-end
-
-task :default => :test
+task :default => :test
View
@@ -1,4 +1,3 @@
-require 'rubygems'
require 'active_record'
require 'deep_clonable'
require 'ordered_set'
@@ -0,0 +1,3 @@
+class ModelSet
+ VERSION = "1.0.0"
+end
View
@@ -1,141 +1,29 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'model_set/version'
-Gem::Specification.new do |s|
- s.name = %q{model_set}
- s.version = "1.0.0"
+Gem::Specification.new do |gem|
+ gem.name = "test"
+ gem.version = ModelSet::VERSION
+ gem.authors = ["Justin Balthrop"]
+ gem.email = ["git@justinbalthrop.com"]
+ gem.description = %q{Easy manipulation of sets of ActiveRecord models}
+ gem.summary = gem.description
+ gem.homepage = "https://github.com/ninjudd/model_set"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Justin Balthrop"]
- s.date = %q{2011-06-02}
- s.description = %q{Easy manipulation of sets of ActiveRecord models}
- s.email = %q{code@justinbalthrop.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "lib/model_set.rb",
- "lib/model_set/conditioned.rb",
- "lib/model_set/conditions.rb",
- "lib/model_set/query.rb",
- "lib/model_set/raw_query.rb",
- "lib/model_set/raw_sql_query.rb",
- "lib/model_set/set_query.rb",
- "lib/model_set/solr_query.rb",
- "lib/model_set/sphinx_query.rb",
- "lib/model_set/sql_base_query.rb",
- "lib/model_set/sql_query.rb",
- "lib/multi_set.rb",
- "model_set.gemspec",
- "test/model_set_test.rb",
- "test/multi_set_test.rb",
- "test/test_helper.rb",
- "vendor/sphinx_client/README.rdoc",
- "vendor/sphinx_client/Rakefile",
- "vendor/sphinx_client/init.rb",
- "vendor/sphinx_client/install.rb",
- "vendor/sphinx_client/lib/sphinx.rb",
- "vendor/sphinx_client/lib/sphinx/client.rb",
- "vendor/sphinx_client/lib/sphinx/request.rb",
- "vendor/sphinx_client/lib/sphinx/response.rb",
- "vendor/sphinx_client/spec/client_response_spec.rb",
- "vendor/sphinx_client/spec/client_spec.rb",
- "vendor/sphinx_client/spec/fixtures/default_search.php",
- "vendor/sphinx_client/spec/fixtures/default_search_index.php",
- "vendor/sphinx_client/spec/fixtures/excerpt_custom.php",
- "vendor/sphinx_client/spec/fixtures/excerpt_default.php",
- "vendor/sphinx_client/spec/fixtures/excerpt_flags.php",
- "vendor/sphinx_client/spec/fixtures/field_weights.php",
- "vendor/sphinx_client/spec/fixtures/filter.php",
- "vendor/sphinx_client/spec/fixtures/filter_exclude.php",
- "vendor/sphinx_client/spec/fixtures/filter_float_range.php",
- "vendor/sphinx_client/spec/fixtures/filter_float_range_exclude.php",
- "vendor/sphinx_client/spec/fixtures/filter_range.php",
- "vendor/sphinx_client/spec/fixtures/filter_range_exclude.php",
- "vendor/sphinx_client/spec/fixtures/filter_range_int64.php",
- "vendor/sphinx_client/spec/fixtures/filter_ranges.php",
- "vendor/sphinx_client/spec/fixtures/filters.php",
- "vendor/sphinx_client/spec/fixtures/filters_different.php",
- "vendor/sphinx_client/spec/fixtures/geo_anchor.php",
- "vendor/sphinx_client/spec/fixtures/group_by_attr.php",
- "vendor/sphinx_client/spec/fixtures/group_by_attrpair.php",
- "vendor/sphinx_client/spec/fixtures/group_by_day.php",
- "vendor/sphinx_client/spec/fixtures/group_by_day_sort.php",
- "vendor/sphinx_client/spec/fixtures/group_by_month.php",
- "vendor/sphinx_client/spec/fixtures/group_by_week.php",
- "vendor/sphinx_client/spec/fixtures/group_by_year.php",
- "vendor/sphinx_client/spec/fixtures/group_distinct.php",
- "vendor/sphinx_client/spec/fixtures/id_range.php",
- "vendor/sphinx_client/spec/fixtures/id_range64.php",
- "vendor/sphinx_client/spec/fixtures/index_weights.php",
- "vendor/sphinx_client/spec/fixtures/keywords.php",
- "vendor/sphinx_client/spec/fixtures/limits.php",
- "vendor/sphinx_client/spec/fixtures/limits_cutoff.php",
- "vendor/sphinx_client/spec/fixtures/limits_max.php",
- "vendor/sphinx_client/spec/fixtures/limits_max_cutoff.php",
- "vendor/sphinx_client/spec/fixtures/match_all.php",
- "vendor/sphinx_client/spec/fixtures/match_any.php",
- "vendor/sphinx_client/spec/fixtures/match_boolean.php",
- "vendor/sphinx_client/spec/fixtures/match_extended.php",
- "vendor/sphinx_client/spec/fixtures/match_extended2.php",
- "vendor/sphinx_client/spec/fixtures/match_fullscan.php",
- "vendor/sphinx_client/spec/fixtures/match_phrase.php",
- "vendor/sphinx_client/spec/fixtures/max_query_time.php",
- "vendor/sphinx_client/spec/fixtures/miltiple_queries.php",
- "vendor/sphinx_client/spec/fixtures/ranking_bm25.php",
- "vendor/sphinx_client/spec/fixtures/ranking_none.php",
- "vendor/sphinx_client/spec/fixtures/ranking_proximity.php",
- "vendor/sphinx_client/spec/fixtures/ranking_proximity_bm25.php",
- "vendor/sphinx_client/spec/fixtures/ranking_wordcount.php",
- "vendor/sphinx_client/spec/fixtures/retries.php",
- "vendor/sphinx_client/spec/fixtures/retries_delay.php",
- "vendor/sphinx_client/spec/fixtures/select.php",
- "vendor/sphinx_client/spec/fixtures/set_override.php",
- "vendor/sphinx_client/spec/fixtures/sort_attr_asc.php",
- "vendor/sphinx_client/spec/fixtures/sort_attr_desc.php",
- "vendor/sphinx_client/spec/fixtures/sort_expr.php",
- "vendor/sphinx_client/spec/fixtures/sort_extended.php",
- "vendor/sphinx_client/spec/fixtures/sort_relevance.php",
- "vendor/sphinx_client/spec/fixtures/sort_time_segments.php",
- "vendor/sphinx_client/spec/fixtures/sphinxapi.php",
- "vendor/sphinx_client/spec/fixtures/update_attributes.php",
- "vendor/sphinx_client/spec/fixtures/update_attributes_mva.php",
- "vendor/sphinx_client/spec/fixtures/weights.php",
- "vendor/sphinx_client/spec/sphinx/sphinx-id64.conf",
- "vendor/sphinx_client/spec/sphinx/sphinx.conf",
- "vendor/sphinx_client/spec/sphinx/sphinx_test.sql",
- "vendor/sphinx_client/sphinx.yml.tpl",
- "vendor/sphinx_client/tasks/sphinx.rake"
- ]
- s.homepage = %q{http://github.com/ninjudd/model_set}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Easy manipulation of sets of ActiveRecord models}
+ gem.add_development_dependency 'shoulda'
+ gem.add_development_dependency 'mocha'
+ gem.add_development_dependency 'rsolr'
+ gem.add_development_dependency 'json'
+ gem.add_development_dependency 'activerecord-postgresql-adapter'
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ gem.add_dependency 'ordered_set', '>= 1.0.1'
+ gem.add_dependency 'deep_clonable', '>= 1.1.0'
+ gem.add_dependency 'activerecord', '~> 2.3.9'
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<ordered_set>, [">= 1.0.1"])
- s.add_runtime_dependency(%q<deep_clonable>, [">= 1.1.0"])
- s.add_runtime_dependency(%q<activerecord>, [">= 2.0.0"])
- else
- s.add_dependency(%q<ordered_set>, [">= 1.0.1"])
- s.add_dependency(%q<deep_clonable>, [">= 1.1.0"])
- s.add_dependency(%q<activerecord>, [">= 2.0.0"])
- end
- else
- s.add_dependency(%q<ordered_set>, [">= 1.0.1"])
- s.add_dependency(%q<deep_clonable>, [">= 1.1.0"])
- s.add_dependency(%q<activerecord>, [">= 2.0.0"])
- end
+ gem.files = `git ls-files`.split($/)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.require_paths = ["lib"]
end
-
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require 'test_helper'
class ModelSetTest < Test::Unit::TestCase
class CreateTables < ActiveRecord::Migration
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require 'test_helper'
class MultiSetTest < Test::Unit::TestCase
class CreateTables < ActiveRecord::Migration

0 comments on commit d2f259f

Please sign in to comment.