Permalink
Browse files

Move vendorized plugins to gemspec

Rails 4.0 no longer supports these plugins
  • Loading branch information...
SamWhited committed Jan 10, 2013
1 parent afcdd5d commit c009914f4b961e349bc84f4c6e8d659193ff93c7
Showing with 1 addition and 2,701 deletions.
  1. +1 −0 radiant.gemspec
  2. +0 −7 vendor/plugins/dataset/.gitignore
  3. +0 −59 vendor/plugins/dataset/CHANGELOG
  4. +0 −19 vendor/plugins/dataset/LICENSE
  5. +0 −111 vendor/plugins/dataset/README
  6. +0 −31 vendor/plugins/dataset/Rakefile
  7. +0 −15 vendor/plugins/dataset/TODO
  8. +0 −4 vendor/plugins/dataset/VERSION.yml
  9. +0 −33 vendor/plugins/dataset/dataset.gemspec
  10. +0 −128 vendor/plugins/dataset/lib/dataset.rb
  11. +0 −157 vendor/plugins/dataset/lib/dataset/base.rb
  12. +0 −19 vendor/plugins/dataset/lib/dataset/collection.rb
  13. +0 −30 vendor/plugins/dataset/lib/dataset/database/base.rb
  14. +0 −34 vendor/plugins/dataset/lib/dataset/database/mysql.rb
  15. +0 −34 vendor/plugins/dataset/lib/dataset/database/postgresql.rb
  16. +0 −32 vendor/plugins/dataset/lib/dataset/database/sqlite3.rb
  17. +0 −21 vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb
  18. +0 −21 vendor/plugins/dataset/lib/dataset/extensions/rspec.rb
  19. +0 −60 vendor/plugins/dataset/lib/dataset/extensions/test_unit.rb
  20. +0 −10 vendor/plugins/dataset/lib/dataset/instance_methods.rb
  21. +0 −37 vendor/plugins/dataset/lib/dataset/load.rb
  22. +0 −73 vendor/plugins/dataset/lib/dataset/record/fixture.rb
  23. +0 −66 vendor/plugins/dataset/lib/dataset/record/meta.rb
  24. +0 −50 vendor/plugins/dataset/lib/dataset/record/model.rb
  25. +0 −110 vendor/plugins/dataset/lib/dataset/resolver.rb
  26. +0 −35 vendor/plugins/dataset/lib/dataset/session.rb
  27. +0 −307 vendor/plugins/dataset/lib/dataset/session_binding.rb
  28. +0 −9 vendor/plugins/dataset/lib/dataset/version.rb
  29. +0 −25 vendor/plugins/dataset/plugit/descriptor.rb
  30. +0 −54 vendor/plugins/dataset/spec/dataset/cucumber_spec.rb
  31. +0 −21 vendor/plugins/dataset/spec/dataset/database/base_spec.rb
  32. +0 −14 vendor/plugins/dataset/spec/dataset/record/meta_spec.rb
  33. +0 −110 vendor/plugins/dataset/spec/dataset/resolver_spec.rb
  34. +0 −133 vendor/plugins/dataset/spec/dataset/rspec_spec.rb
  35. +0 −198 vendor/plugins/dataset/spec/dataset/session_binding_spec.rb
  36. +0 −299 vendor/plugins/dataset/spec/dataset/session_spec.rb
  37. +0 −210 vendor/plugins/dataset/spec/dataset/test_unit_spec.rb
  38. 0 vendor/plugins/dataset/spec/fixtures/datasets/constant_not_defined.rb
  39. +0 −2 vendor/plugins/dataset/spec/fixtures/datasets/ending_with_dataset.rb
  40. +0 −2 vendor/plugins/dataset/spec/fixtures/datasets/exact_name.rb
  41. +0 −2 vendor/plugins/dataset/spec/fixtures/datasets/not_a_dataset_base.rb
  42. +0 −2 vendor/plugins/dataset/spec/fixtures/more_datasets/in_another_directory.rb
  43. +0 −18 vendor/plugins/dataset/spec/models.rb
  44. +0 −26 vendor/plugins/dataset/spec/schema.rb
  45. +0 −7 vendor/plugins/dataset/spec/spec.opts
  46. +0 −47 vendor/plugins/dataset/spec/spec_helper.rb
  47. +0 −18 vendor/plugins/dataset/spec/stubs/mini_rails.rb
  48. +0 −1 vendor/plugins/dataset/spec/stubs/test_help.rb
View
@@ -24,6 +24,7 @@ a general purpose content managment system--not merely a blogging engine.}
s.summary = %q{A no-fluff content management system designed for small teams.}
s.license = %q{MIT}
+ s.add_dependency "dataset", "~> 1.3.2"
s.add_dependency "tzinfo", "~> 0.3.31"
s.add_dependency "rails", "~> 3.2.8", "< 4.0.0"
s.add_dependency "acts_as_tree", "~> 0.1.1"
@@ -1,7 +0,0 @@
-log
-sqlite3.db
-environments
-vendor
-tmp
-.tm_last_run_ruby
-pkg
@@ -1,59 +0,0 @@
-*1.3.0 [Rails 2.3.2] (??)
-
-* Supporting Rails 2.3.2 [mhawkins, underlog]
-* Added tasks to load path so folks can require 'dataset.rake' [aiwilliams]
-* Updated gemspec to include dependencies [aiwilliams]
-
-*1.2.0 [Cucumber] (April 8, 2009)
-
-* Support for cucumber [jgarber, seancribbs]
-
-*1.1.0 [STI, belongs_to] (February 14, 2009)
-
-* STI is better supported for inserting, naming and finding records [aiwilliams]
-
- class Place < ActiveRecord::Base; end
- class State < Place; end
- class NorthCarolina < State; end
-
- create_record(NorthCarolina, :state) # no need to define the 'type' column value
- states(:state) == places(:state) == north_carolinas(:state) # read with the class names pluralized
-
-* Moved to jeweler for much cleaner, github embracing gem building [aiwilliams]
-* Support for simple belongs to associations [aiwilliams]
-
- class Person < ActiveRecord::Base; end
- class Note < ActiveRecord::Base
- belongs_to :person
- end
-
- person_id = create_record Person, :myguy
- create_record Note, :person => :myguy
- Note.last.person_id == person_id
-
-* Models inside modules are supported a little more conveniently [aiwilliams]
-
- module MList
- class Message < ActiveRecord::Base
- end
- end
-
- # We'll get rid of the underscore in 'm_list_messages'
- create_record MList::Message, :test
- mlist_messages(:test)
-
-* Helper method for converting strings to useful symbols for finding records [siannopollo]
-
- This is useful if you write creator methods of your own.
-
- def create_person(attributes)
- create_record Person, name_to_sym(attributes[:name]), attributes
- end
-
- create_person(:name => 'Little John')
- people(:little_john)
-
-
-*1.0.0 [Scenarios Replacement] (December 15, 2008)
-
-* Drop-in replacement for Scenarios plugin of old [aiwilliams]
@@ -1,19 +0,0 @@
-Copyright (c) 2008-2009, Adam Williams
-
-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,111 +0,0 @@
-= Dataset
-
-Dataset provides a simple API for creating and finding sets of data in your database. Check out Dataset::RecordMethods and Dataset::ModelFinders.
-
-Dataset loads data intelligently if you use 'nested contexts' in your tests (RSpec, anything that uses Test::Unit::TestCase subclassing for creating nested contexts):
-
- describe Something do
- dataset :a => Dataset :a is loaded (at the right time)
-
- it 'should whatever'
- end
-
- describe More do
- dataset :b => Dataset :b is loaded. :a data is still there
-
- it 'should'
- end
- end
-
- describe Another do => Database is restored to :a, without re-running :a logic
- it 'should'
- end
- end
- end
-
-The goal is to see a marked improvement in overall test run speed, basing this on the assumption that it is faster to have the OS copy a file or mySQL dump and load. Of course, we may find this to be a false assumption, but there were plenty of bugs in the former 'Scenarios' - addressing that afforded the opportunity to test the assumption.
-
-
-Dataset does not prevent you from using other libraries like Machinist or factory_girl. If you were to used either of those, you could have a dataset like this:
-
- require 'faker'
-
- class OrganizationsDataset < Dataset::Base
- Sham.name { Faker::Name.name }
-
- Organization.blueprint do
- name { Sham.name }
- end
-
- def load
- name_model Organization.make, :org_one
- end
- end
-
-The benefit is that you can reuse interesting sets of data, without sacrificing the utility of those other libraries.
-
- describe Organization, 'stuff' do
- dataset :organizations
- end
-
- describe Organization, 'other stuff' do
- dataset :organizations
- end
-
-
-Get things installed, then read more in the Dataset documentation at http://aiwilliams.github.com/dataset
-
-
-== Installation
-
-Install the plugin:
-
- ./script/plugin install git://github.com/aiwilliams/dataset.git
-
-In your test_helper.rb/spec_helper.rb:
-
- require 'dataset'
- class Test::Unit::TestCase
- include Dataset
- datasets_directory "#{RAILS_ROOT}/spec/datasets"
- end
-
-If you don't use rspec_on_rails, or you have specs that aren't of the RailsExampleGroup type, you should do this in spec_helper.rb:
-
- require 'dataset'
- class Spec::Example::ExampleGroup
- include Dataset
- datasets_directory "#{RAILS_ROOT}/spec/datasets"
- end
-
-If you were a user of the Scenarios plugin, and want to do as little as possible to get going (assumes you are using rspec_on_rails):
-
- require 'dataset'
- Scenario = Scenarios = Dataset
- class Test::Unit::TestCase
- include Dataset
- class << self
- alias_method :scenario, :dataset
- end
- end
- class ScenariosResolver < Dataset::DirectoryResolver
- def suffix
- @suffix ||= 'Scenario'
- end
- end
- Dataset::Resolver.default = ScenariosResolver.new("#{RAILS_ROOT}/spec/scenarios")
-
-
-== Credits
-
-Written by [Adam Williams](http://github.com/aiwilliams).
-
-Contributors:
-
-- [Saturn Flyer](http://www.saturnflyer.com) [github](http://github.com/saturnflyer)
-- [Steve Iannopollo](http://github.com/siannopollo)
-- [John Long](http://github.com/jlong)
-
----
-
-Dataset is released under the MIT-License and is Copyright (c)2008 Adam Williams.
@@ -1,31 +0,0 @@
-$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
-
-require File.join(File.dirname(__FILE__), 'plugit/descriptor')
-require 'rubygems'
-require 'spec/rake/spectask'
-
-task :default => :spec
-
-desc "Run all specs"
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--options', 'spec/spec.opts']
-end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = 'dataset'
- s.summary = 'A simple API for creating and finding sets of data in your database, built on ActiveRecord.'
- s.email = 'adam@thewilliams.ws'
- s.files = FileList["[A-Z]*", "{lib,tasks}/**/*", "plugit/descriptor.rb"].exclude("tmp")
- s.require_paths = ["lib", "tasks"]
- s.add_dependency('activesupport', '>= 2.3.0')
- s.add_dependency('activerecord', '>= 2.3.0')
- s.homepage = "http://github.com/aiwilliams/dataset"
- s.description = s.summary
- s.authors = ['Adam Williams']
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
-end
@@ -1,15 +0,0 @@
-take any instance variables already in context and make them available to dataset blocks - this is for nested describes
- I'm not sure about this one. It can be very frustrating to lose context of when the state of an iv is modified.
-
-add ability to clear the database (some tests wanted to guarantee a clear db)
- This is acheived with "dataset {}"
-
-clear database completely at beginning of session, only tables where data was created within a session??
-
-clear all dumps on new run of tests
-be sure we are capturing a dataset if it has already be captured before during a run
-describe what happens when someone has a fixtures file - they get loaded after our datasets, thereby causing all the data in the table of the fixture file (like things.yml) to be deleted - the fixtures are then loaded
-look into truncating database instead individual table deletes
-allow configuration of dataset
- * permatable / global scope
-re-evaluation location of some tests that depend on TestCase in non-test/unit tests
@@ -1,4 +0,0 @@
----
-:patch: 1
-:major: 1
-:minor: 3
@@ -1,33 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{dataset}
- s.version = "1.3.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Adam Williams"]
- s.date = %q{2009-06-12}
- s.description = %q{A simple API for creating and finding sets of data in your database, built on ActiveRecord.}
- s.email = %q{adam@thewilliams.ws}
- s.files = ["CHANGELOG", "LICENSE", "Rakefile", "README", "TODO", "VERSION.yml", "lib/dataset", "lib/dataset/base.rb", "lib/dataset/collection.rb", "lib/dataset/database", "lib/dataset/database/base.rb", "lib/dataset/database/mysql.rb", "lib/dataset/database/postgresql.rb", "lib/dataset/database/sqlite3.rb", "lib/dataset/extensions", "lib/dataset/extensions/cucumber.rb", "lib/dataset/extensions/rspec.rb", "lib/dataset/extensions/test_unit.rb", "lib/dataset/instance_methods.rb", "lib/dataset/load.rb", "lib/dataset/record", "lib/dataset/record/fixture.rb", "lib/dataset/record/meta.rb", "lib/dataset/record/model.rb", "lib/dataset/resolver.rb", "lib/dataset/session.rb", "lib/dataset/session_binding.rb", "lib/dataset/version.rb", "lib/dataset.rb", "tasks/dataset.rake", "plugit/descriptor.rb"]
- s.homepage = %q{http://github.com/aiwilliams/dataset}
- s.require_paths = ["lib", "tasks"]
- s.rubygems_version = %q{1.3.1}
- s.summary = %q{A simple API for creating and finding sets of data in your database, built on ActiveRecord.}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<activesupport>, [">= 2.3.0"])
- s.add_runtime_dependency(%q<activerecord>, [">= 2.3.0"])
- else
- s.add_dependency(%q<activesupport>, [">= 2.3.0"])
- s.add_dependency(%q<activerecord>, [">= 2.3.0"])
- end
- else
- s.add_dependency(%q<activesupport>, [">= 2.3.0"])
- s.add_dependency(%q<activerecord>, [">= 2.3.0"])
- end
-end
Oops, something went wrong.

0 comments on commit c009914

Please sign in to comment.