Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleaning up gemspec and removing unneccassary runtime dependencies

  • Loading branch information...
commit 53c305d5f1fb991b085c2879aaa3c33f0c0b649e 1 parent 375d2d2
@mdp mdp authored
Showing with 27 additions and 318 deletions.
  1. +1 −0  Gemfile
  2. +2 −32 Rakefile
  3. +3 −0  lib/rturk/version.rb
  4. +21 −286 rturk.gemspec
View
1  Gemfile
@@ -2,5 +2,6 @@ source "http://rubygems.org"
gem 'nokogiri'
gem 'jeweler'
gem 'webmock'
+gem 'fakeweb'
gem 'rest-client'
gem 'rspec', '~> 1.3.1'
View
34 Rakefile
@@ -1,31 +1,4 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'yard'
- YARD::Rake::YardocTask.new do |t|
- t.files = ['lib/**/*.rb', 'lib/**/*.rb']
- end
-rescue LoadError
- puts "YARD is not available. For generating docs, you'll need to sudo gem install yard"
-end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "rturk"
- gem.summary = %Q{Mechanical Turk API Wrapper}
- gem.email = "mark@mpercival.com"
- gem.homepage = "http://github.com/mdp/rturk"
- gem.authors = ["Mark Percival", "Zach Hale", "David Balatero", "Rob Hanlon"]
- gem.add_dependency('rest-client', '>= 1.4.0')
- gem.add_dependency('nokogiri', '>= 1.4.1')
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
-end
+require 'bundler/gem_tasks'
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
@@ -42,7 +15,7 @@ end
task :default => :spec
-require 'rake/rdoctask'
+require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
@@ -56,6 +29,3 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
-
View
3  lib/rturk/version.rb
@@ -0,0 +1,3 @@
+module RTurk
+ VERSION = "2.4.1"
+end
View
307 rturk.gemspec
@@ -1,299 +1,34 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "rturk/version"
Gem::Specification.new do |s|
- s.name = %q{rturk}
- s.version = "2.4.0"
+ s.name = 'rturk'
+ s.version = RTurk::VERSION
+ s.homepage = "http://github.com/mdp/rturk"
+ s.summary = "Mechanical Turk API Wrapper"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Mark Percival", "Zach Hale", "David Balatero", "Rob Hanlon"]
- s.date = %q{2011-06-03}
- s.email = %q{mark@mpercival.com}
+ s.date = "2011-06-03"
+ s.email = "mark@mpercival.com"
s.extra_rdoc_files = [
"LICENSE",
"README.markdown"
]
- s.files = [
- ".gitmodules",
- ".yardoc",
- "CHANGELOG.markdown",
- "Gemfile",
- "LICENSE",
- "README.markdown",
- "Rakefile",
- "TODO.markdown",
- "VERSION",
- "aws_docs/ApiReference_AnswerKeyDataStructureArticle.html",
- "aws_docs/ApiReference_ApproveAssignmentOperation.html",
- "aws_docs/ApiReference_AssignQualificationOperation.html",
- "aws_docs/ApiReference_AssignmentDataStructureArticle.html",
- "aws_docs/ApiReference_BlockWorkerOperation.html",
- "aws_docs/ApiReference_ChangeHITTypeOfHITOperation.html",
- "aws_docs/ApiReference_CommonParametersArticle.html",
- "aws_docs/ApiReference_CreateHITOperation.html",
- "aws_docs/ApiReference_CreateQualificationTypeOperation.html",
- "aws_docs/ApiReference_DataStructuresArticle.html",
- "aws_docs/ApiReference_DisableHITOperation.html",
- "aws_docs/ApiReference_DisposeHITOperation.html",
- "aws_docs/ApiReference_DisposeQualificationTypeOperation.html",
- "aws_docs/ApiReference_ExtendHITOperation.html",
- "aws_docs/ApiReference_ExternalQuestionArticle.html",
- "aws_docs/ApiReference_ForceExpireHITOperation.html",
- "aws_docs/ApiReference_FormattedContentXHTMLArticle.html",
- "aws_docs/ApiReference_GetAccountBalanceOperation.html",
- "aws_docs/ApiReference_GetAssignmentsForHITOperation.html",
- "aws_docs/ApiReference_GetBonusPaymentsOperation.html",
- "aws_docs/ApiReference_GetFileUploadURLOperation.html",
- "aws_docs/ApiReference_GetHITOperation.html",
- "aws_docs/ApiReference_GetHITsForQualificationTypeOperation.html",
- "aws_docs/ApiReference_GetQualificationRequestsOperation.html",
- "aws_docs/ApiReference_GetQualificationScoreOperation.html",
- "aws_docs/ApiReference_GetQualificationTypeOperation.html",
- "aws_docs/ApiReference_GetQualificationsForQualificationTypeOperation.html",
- "aws_docs/ApiReference_GetRequesterStatisticOperation.html",
- "aws_docs/ApiReference_GetReviewableHITsOperation.html",
- "aws_docs/ApiReference_GrantBonusOperation.html",
- "aws_docs/ApiReference_GrantQualificationOperation.html",
- "aws_docs/ApiReference_HITDataStructureArticle.html",
- "aws_docs/ApiReference_HelpOperation.html",
- "aws_docs/ApiReference_LocaleDataStructureArticle.html",
- "aws_docs/ApiReference_NotificationAPI_BuildingANotificationReceptor.html",
- "aws_docs/ApiReference_NotificationAPI_ElementsOfANotification.html",
- "aws_docs/ApiReference_NotificationDataStructureArticle.html",
- "aws_docs/ApiReference_NotificationReceptorAPIArticle.html",
- "aws_docs/ApiReference_NotificationReceptorAPI_RESTTransportArticle.html",
- "aws_docs/ApiReference_NotificationReceptorAPI_SOAPTransportArticle.html",
- "aws_docs/ApiReference_NotifyWorkersOperation.html",
- "aws_docs/ApiReference_OperationsArticle.html",
- "aws_docs/ApiReference_PriceDataStructureArticle.html",
- "aws_docs/ApiReference_QualificationDataStructureArticle.html",
- "aws_docs/ApiReference_QualificationRequestDataStructureArticle.html",
- "aws_docs/ApiReference_QualificationRequirementDataStructureArticle.html",
- "aws_docs/ApiReference_QualificationTypeDataStructureArticle.html",
- "aws_docs/ApiReference_QuestionAnswerDataArticle.html",
- "aws_docs/ApiReference_QuestionFormAnswersDataStructureArticle.html",
- "aws_docs/ApiReference_QuestionFormDataStructureArticle.html",
- "aws_docs/ApiReference_RegisterHITTypeOperation.html",
- "aws_docs/ApiReference_RejectAssignmentOperation.html",
- "aws_docs/ApiReference_RejectQualificationRequestOperation.html",
- "aws_docs/ApiReference_RevokeQualificationOperation.html",
- "aws_docs/ApiReference_SearchHITsOperation.html",
- "aws_docs/ApiReference_SearchQualificationTypesOperation.html",
- "aws_docs/ApiReference_SendTestEventNotificationOperation.html",
- "aws_docs/ApiReference_SetHITAsReviewingOperation.html",
- "aws_docs/ApiReference_SetHITTypeNotificationOperation.html",
- "aws_docs/ApiReference_UnblockWorkerOperation.html",
- "aws_docs/ApiReference_UpdateQualificationScoreOperation.html",
- "aws_docs/ApiReference_UpdateQualificationTypeOperation.html",
- "aws_docs/ApiReference_WsdlLocationArticle.html",
- "aws_docs/ApiReference_XMLParameterValuesArticle.html",
- "aws_docs/Welcome.html",
- "aws_docs/WhatsNew.html",
- "aws_docs/_title.html",
- "aws_docs/_toc.html",
- "aws_docs/aws-docs-IE.css",
- "aws_docs/aws-docs.css",
- "aws_docs/copyrightinfo.html",
- "aws_docs/frameset.js",
- "aws_docs/images/Feedback_link.gif",
- "aws_docs/images/caution.png",
- "aws_docs/images/home.gif",
- "aws_docs/images/important.png",
- "aws_docs/images/next.gif",
- "aws_docs/images/note.png",
- "aws_docs/images/prev.gif",
- "aws_docs/images/tip.png",
- "aws_docs/images/title-swoosh-logo.gif",
- "aws_docs/images/toc_bullet.gif",
- "aws_docs/images/toc_plus.gif",
- "aws_docs/index.html",
- "aws_docs/toc.js",
- "examples/blank_slate.rb",
- "examples/create_hit.rb",
- "examples/example_helper.rb",
- "examples/mturk.sample.yml",
- "examples/newtweet.html",
- "examples/review_answer.rb",
- "init.rb",
- "lib/rturk.rb",
- "lib/rturk/adapter.rb",
- "lib/rturk/adapters/assignment.rb",
- "lib/rturk/adapters/hit.rb",
- "lib/rturk/adapters/worker.rb",
- "lib/rturk/builders/notification_builder.rb",
- "lib/rturk/builders/qualification_builder.rb",
- "lib/rturk/builders/qualifications_builder.rb",
- "lib/rturk/builders/question_builder.rb",
- "lib/rturk/errors.rb",
- "lib/rturk/logger.rb",
- "lib/rturk/macros.rb",
- "lib/rturk/operation.rb",
- "lib/rturk/operations/approve_assignment.rb",
- "lib/rturk/operations/assign_qualification.rb",
- "lib/rturk/operations/block_worker.rb",
- "lib/rturk/operations/create_hit.rb",
- "lib/rturk/operations/create_qualification_type.rb",
- "lib/rturk/operations/disable_hit.rb",
- "lib/rturk/operations/dispose_hit.rb",
- "lib/rturk/operations/dispose_qualification_type.rb",
- "lib/rturk/operations/extend_hit.rb",
- "lib/rturk/operations/force_expire_hit.rb",
- "lib/rturk/operations/get_account_balance.rb",
- "lib/rturk/operations/get_assignments_for_hit.rb",
- "lib/rturk/operations/get_bonus_payments.rb",
- "lib/rturk/operations/get_hit.rb",
- "lib/rturk/operations/get_qualification_requests.rb",
- "lib/rturk/operations/get_qualification_type.rb",
- "lib/rturk/operations/get_qualifications_for_qualification_type.rb",
- "lib/rturk/operations/get_reviewable_hits.rb",
- "lib/rturk/operations/grant_bonus.rb",
- "lib/rturk/operations/grant_qualification.rb",
- "lib/rturk/operations/notify_workers.rb",
- "lib/rturk/operations/register_hit_type.rb",
- "lib/rturk/operations/reject_assignment.rb",
- "lib/rturk/operations/reject_qualification_request.rb",
- "lib/rturk/operations/revoke_qualification.rb",
- "lib/rturk/operations/search_hits.rb",
- "lib/rturk/operations/send_test_event_notification.rb",
- "lib/rturk/operations/set_hit_as_reviewing.rb",
- "lib/rturk/operations/set_hit_type_notification.rb",
- "lib/rturk/operations/unblock_worker.rb",
- "lib/rturk/operations/update_qualification_type.rb",
- "lib/rturk/parser.rb",
- "lib/rturk/parsers/answer_parser.rb",
- "lib/rturk/parsers/assignment_parser.rb",
- "lib/rturk/parsers/bonus_payment_parser.rb",
- "lib/rturk/parsers/hit_parser.rb",
- "lib/rturk/parsers/qualification_parser.rb",
- "lib/rturk/parsers/qualification_request_parser.rb",
- "lib/rturk/parsers/response.rb",
- "lib/rturk/parsers/responses/create_hit_response.rb",
- "lib/rturk/parsers/responses/get_account_balance_response.rb",
- "lib/rturk/parsers/responses/get_assignments_for_hit_response.rb",
- "lib/rturk/parsers/responses/get_bonus_payments_response.rb",
- "lib/rturk/parsers/responses/get_hit_response.rb",
- "lib/rturk/parsers/responses/get_qualification_requests_response.rb",
- "lib/rturk/parsers/responses/get_qualification_type_response.rb",
- "lib/rturk/parsers/responses/get_qualifications_for_qualification_type_response.rb",
- "lib/rturk/parsers/responses/get_reviewable_hits_response.rb",
- "lib/rturk/parsers/responses/register_hit_type_response.rb",
- "lib/rturk/parsers/responses/search_hits_response.rb",
- "lib/rturk/requester.rb",
- "lib/rturk/utilities.rb",
- "lib/rturk/xml_utilities.rb",
- "rturk.gemspec",
- "spec/adapters/assignment_spec.rb",
- "spec/adapters/hit_spec.rb",
- "spec/builders/notification_builder_spec.rb",
- "spec/builders/qualification_spec.rb",
- "spec/builders/qualifications_spec.rb",
- "spec/builders/question_spec.rb",
- "spec/fake_responses/approve_assignment.xml",
- "spec/fake_responses/assign_qualification.xml",
- "spec/fake_responses/block_worker.xml",
- "spec/fake_responses/create_hit.xml",
- "spec/fake_responses/create_qualification_type.xml",
- "spec/fake_responses/disable_hit.xml",
- "spec/fake_responses/dispose_hit.xml",
- "spec/fake_responses/dispose_qualification_type.xml",
- "spec/fake_responses/extend_hit.xml",
- "spec/fake_responses/force_expire_hit.xml",
- "spec/fake_responses/get_account_balance.xml",
- "spec/fake_responses/get_assignments.xml",
- "spec/fake_responses/get_assignments_multiple.xml",
- "spec/fake_responses/get_bonus_payments.xml",
- "spec/fake_responses/get_hit.xml",
- "spec/fake_responses/get_qualification_requests.xml",
- "spec/fake_responses/get_qualification_type.xml",
- "spec/fake_responses/get_qualifications_for_qualification_type.xml",
- "spec/fake_responses/get_reviewable_hits.xml",
- "spec/fake_responses/grant_bonus.xml",
- "spec/fake_responses/grant_qualification.xml",
- "spec/fake_responses/invalid_credentials.xml",
- "spec/fake_responses/notify_workers.xml",
- "spec/fake_responses/register_hit_type.xml",
- "spec/fake_responses/reject_assignment.xml",
- "spec/fake_responses/reject_qualification_request.xml",
- "spec/fake_responses/revoke_qualification.xml",
- "spec/fake_responses/search_hits.xml",
- "spec/fake_responses/set_hit_as_reviewing.xml",
- "spec/fake_responses/unblock_worker.xml",
- "spec/fake_responses/update_qualification_type.xml",
- "spec/mturk.sample.yml",
- "spec/operations/approve_assignment_spec.rb",
- "spec/operations/assign_qualification_spec.rb",
- "spec/operations/block_worker_spec.rb",
- "spec/operations/create_hit_spec.rb",
- "spec/operations/create_qualification_type_spec.rb",
- "spec/operations/disable_hit_spec.rb",
- "spec/operations/dispose_hit_spec.rb",
- "spec/operations/dispose_qualification_type_spec.rb",
- "spec/operations/extend_hit_spec.rb",
- "spec/operations/force_expire_hit_spec.rb",
- "spec/operations/get_account_balance_spec.rb",
- "spec/operations/get_assignments_spec.rb",
- "spec/operations/get_bonus_payments_spec.rb",
- "spec/operations/get_hit_spec.rb",
- "spec/operations/get_qualification_requests_spec.rb",
- "spec/operations/get_qualification_type_spec.rb",
- "spec/operations/get_qualifications_for_qualification_type_spec.rb",
- "spec/operations/get_reviewable_hits_spec.rb",
- "spec/operations/grant_bonus_spec.rb",
- "spec/operations/grant_qualification_spec.rb",
- "spec/operations/notify_workers_spec.rb",
- "spec/operations/register_hit_type_spec.rb",
- "spec/operations/reject_assignment_spec.rb",
- "spec/operations/reject_qualification_request_spec.rb",
- "spec/operations/revoke_qualification_spec.rb",
- "spec/operations/send_test_event_notification_spec.rb",
- "spec/operations/set_hit_as_reviewing_spec.rb",
- "spec/operations/set_hit_type_notification_spec.rb",
- "spec/operations/unblock_worker_spec.rb",
- "spec/operations/update_qualification_type_spec.rb",
- "spec/parsers/answer_parser_spec.rb",
- "spec/parsers/hit_parser_spec.rb",
- "spec/requester_spec.rb",
- "spec/response_spec.rb",
- "spec/rturk_spec.rb",
- "spec/spec_helper.rb",
- "spec/tmp",
- "spec/xml_parse_spec.rb"
- ]
- s.homepage = %q{http://github.com/mdp/rturk}
+
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.7.2}
- s.summary = %q{Mechanical Turk API Wrapper}
+ s.rubygems_version = "1.7.2"
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ s.rubyforge_project = "pulley"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
- s.add_runtime_dependency(%q<webmock>, [">= 0"])
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
- s.add_runtime_dependency(%q<rspec>, ["~> 1.3.1"])
- s.add_runtime_dependency(%q<rest-client>, [">= 1.4.0"])
- s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.1"])
- else
- s.add_dependency(%q<nokogiri>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<webmock>, [">= 0"])
- s.add_dependency(%q<rest-client>, [">= 0"])
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
- s.add_dependency(%q<rest-client>, [">= 1.4.0"])
- s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
- end
- else
- s.add_dependency(%q<nokogiri>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<webmock>, [">= 0"])
- s.add_dependency(%q<rest-client>, [">= 0"])
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
- s.add_dependency(%q<rest-client>, [">= 1.4.0"])
- s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
- end
-end
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+ s.add_dependency('rest-client', ">= 1.4.0")
+ s.add_dependency('nokogiri', ">= 1.4.1")
+ # Development dependencies
+ s.add_development_dependency('rspec', "~> 1.3.1")
+ s.add_development_dependency('webmock')
+end
Please sign in to comment.
Something went wrong with that request. Please try again.